popup

How to edit UIAlertAction text font size and color

↘锁芯ラ 提交于 2019-11-27 02:46:27
问题 How to edit UIAlertAction text size and color? I have taken a UIAlertController acoording to it how to edit the size. This i smy Code UIAlertController *controller = [UIAlertController alertControllerWithTitle:@"Do you wish to logout?" message:@"" preferredStyle:UIAlertControllerStyleAlert]; UIAlertAction *logOut = [UIAlertAction actionWithTitle:@"Log Out" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {}]; Now i want my 'Log Out' text with font size 22 and green

Javascript window.open is blocked by IE popup blocker

北城余情 提交于 2019-11-27 02:44:17
问题 Can anyone help, I have a popup that is being blocked. It is a popup that is created because somebody has clicked on a Print picture on my site. I thought IE is not supposed to block these when the popup came via an onclick ? Can anyone help? The child1 variable is always returned as NULL if popup blocker enabled... Maybe the problem is that the onclick event then passes control to a new function which loads a html file and does child.document.write Here is my simple code.. var width = 800;

How to allow for multiple popups at once in WinRT?

孤街浪徒 提交于 2019-11-27 02:27:58
问题 If you call the ShowAsync command on a MessageDialog object when another MessageDialog object has already been displayed to the user but not dismissed (i.e. you show a popup when another one is already up), an UnauthorizedAccessException is thrown. This can make things difficult when you have multiple threads attempting to alert the user at the same time. My current (stopgap) solution is merely to surround the ShowAsync call with a try/catch block and swallow the exception. This undesirably

Rails 3.2 Modal popup on show action

蓝咒 提交于 2019-11-27 02:24:09
问题 None of the questions on this forum seem to address my specific need. Basically, I have a "Details" button. I want it that when it clicks, a modal dialog shows up with information drawn from the show.html.erb of the model. I have a book.rb model. In the index page I have: <div class="detail_button"><%= link_to "Details", book %></div> Clicking this button normally would take me to the book/id page, using the show action. But I don't want it to leave the page, rather I want a modal popup which

Bypass IE “The webpage you are viewing…” pop up

半世苍凉 提交于 2019-11-27 02:18:35
问题 Is there a way to bypass the following IE popup box: The webapge you are viewing is trying to close the window. Do you want to close this window? Yes|No This is occurring when I add window.close() to the onclick event of an asp.net button control. 回答1: Your JavaScript code can only close a window without confirmation that was previously opened by window.open(). This is an intentional security precaution because a script running on a webpage does not own the window, and by closing it discards

How Can I Open a WPF Popup with a Delay?

左心房为你撑大大i 提交于 2019-11-27 01:38:50
问题 I simply want to open up the WPF Popup with a delay, sort of like a ToolTip. How can I achieve this? And, by the way, Popup.PopupAnimation = PopupAnimation.Fade ... fades in too quickly. I want at least half a second in there. 回答1: You can create a style to be applied to the Popup in the following way: <Style x:Key="TooltipPopupStyle" TargetType="Popup"> <Style.Triggers> <DataTrigger Binding="{Binding PlacementTarget.IsMouseOver, RelativeSource={RelativeSource Self}}" Value="True">

set the focus of a popup window every time

和自甴很熟 提交于 2019-11-27 01:37:09
问题 I have two pages one.html and two.html I am opening a new window using following code //here popup is a global variable popup=window.open('two.html','two'); for the first time a popup window open successfully and get the focus but if I try to open it again without closing already opened popup then two.html is not getting focus for the second time. note: I have set popup window's name as 'two' 回答1: you can achive by using focus function as used below <script language="javascript" type="text

How to create an SVG “tooltip”-like box?

假装没事ソ 提交于 2019-11-27 01:27:59
问题 Given an existing valid SVG document, what's the best way to create "informational popups", so that when you hover or click on certain elements (let's say ) you popup a box with an arbitrary amount (i.e. not just a single line tooltip) of extra information? This should display correctly at least in Firefox and be invisible if the image was rasterized to a bitmap format. 回答1: <svg> <text id="thingyouhoverover" x="50" y="35" font-size="14">Mouse over me!</text> <text id="thepopup" x="250" y=

How do you add a scroll bar to a div?

℡╲_俬逩灬. 提交于 2019-11-27 01:26:17
问题 I have a popup that displays some results, and I want a scroll bar to be display since the results are being cutt off (and I don't want the popup to be too long). 回答1: You need to add style="overflow-y:scroll;" to the div tag. (This will force a scrollbar on the vertical). If you only want a scrollbar when needed, just do overflow-y:auto; 回答2: Css class to have a nice Div with scroll .DivToScroll{ background-color: #F5F5F5; border: 1px solid #DDDDDD; border-radius: 4px 0 4px 0; color: #3B3C3E

How to change background color popup menu android

天涯浪子 提交于 2019-11-27 01:02:24
I generate each option of menu from querying database. Here is my code. final PopupMenu popupMenu = new PopupMenu(getBaseContext(), v); SQLiteDatabase db = AdapterDb.getReadableDatabase(); Cursor cursor = db.rawQuery(sql, null); int ctritem = 0; if (cursor.moveToFirst()) { popupMenu.getMenu().add(Menu.NONE, ctritem, Menu.NONE, "ALL ITEMS"); do { ctritem++; popupMenu.getMenu().add(Menu.NONE, ctritem, Menu.NONE, cursor.getString(0)); } while (cursor.moveToNext()); } Everything is okay, but the problem is how to change color of option menu or background color of popup menu (from black to white),