popup

How to close custom positioned PopupMenu in delphi?

◇◆丶佛笑我妖孽 提交于 2019-12-07 08:56:52
问题 I have a project with CoolTrayIcon and PopupMenu with disabled AutoPopup property. I would like to position the PopupMenu and show it for the user. The position is OK but menu doesn't close if the user clicks away or press ESC button. I have not found any property like Active which could help if the menu is used or not. Here I position the menu: procedure TForm1.CoolTrayIcon1MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); var pnt: TPoint; yy:integer; begin

Can't get magnific popup to work, two javascript errors

馋奶兔 提交于 2019-12-07 08:10:47
问题 I am trying to make a lightbox gallery and have used the example source code. Here is the documentation I read over: http://dimsemenov.com/plugins/magnific-popup/documentation.html Uncaught TypeError: undefined is not a function Uncaught ReferenceError: $ is not defined I am not sure what the errors mean or what to do with them. In a video tutorial I watched, they said something about a jquery conflict being a potential problem. On a different page of the website, I used a Kwicks sliding menu

webview don't display javascript windows.open()

旧城冷巷雨未停 提交于 2019-12-07 07:02:22
问题 I have a WebView in which i display web content which i have no control over. The content displays fine, but have links which spawn a popup window. The javascript function that does that looks like this: function getEntry(id) { var win = window.open('', 'Booking', 'resizable=yes,scrollbars=yes,status=no,width=500,height=400'); win.document.location = '/some/url/1-' + id ; } I can't easily change this, and if the people responsible for the page i download would change it, i guess my app would

Can I modify JComboBox popup background color of an existing object?

大憨熊 提交于 2019-12-07 06:27:26
问题 I have an existing JComboBox object. I can modify many of its properties using the internal methods. However, I could not find similar methods to customize the popup's appearance - specifically, the popup's background color. I have an existing object, so I wish to use its existing methods/properties, not to write a dedicated class. Is this possible? Note: this question is NOT the same as the linked question above (which incorrectly states that this question already has an answer): that

How to create Form Sheet popup for iPad (iOS 8.1)

落爺英雄遲暮 提交于 2019-12-07 05:42:30
问题 I want to make very basic popup window by using Swift (8.1) with presentation type "Form Sheet", it should be a window that float at the middle of the screen without tales. I created two View Controllers, one button and connect the button from one controller to another with parameter "Present As Popover". Second view controller was selected as "Form Sheet", but the result is wrong: Why? 回答1: Don't present it as a Popover. You want the segue to be Modal and present it as a form sheet. In the

Popup window, how to Hide URL bar in IE8

旧城冷巷雨未停 提交于 2019-12-07 05:39:23
问题 when I open popup window and set location=0 or location=no, url bar is still shown in IE8 and readonly. How can hide it? Thanks 回答1: It cannot be done, modern browser don't allow it at that would be a major security flaw. See also this answer, shamelessly copied from David Dorward: In Internet Explorer 7 and later, you cannot remove the address bar in Internet Zone windows, for security (anti-spoofing) reasons. http://msdn.microsoft.com/en-us/library/ms536651%28VS.85%29.aspx 回答2: Use

Invisible opened popup

此生再无相见时 提交于 2019-12-07 05:25:35
问题 Second day fighting this issue. To reproduce, create new WPF application, xaml <StackPanel Orientation="Horizontal" VerticalAlignment="Top"> <Button Width="100" Height="100" MouseMove="Button_MouseMove"/> <Popup x:Name="popup" StaysOpen="False" AllowsTransparency="True" Placement="Center"> <TextBlock>Some random text</TextBlock> </Popup> <CheckBox IsChecked="{Binding (Popup.IsOpen), ElementName=popup}">Popup</CheckBox> </StackPanel> and code private void Button_MouseMove(object sender,

Javafx popup won't hide behind other application upon losing focus

冷暖自知 提交于 2019-12-07 05:13:09
问题 So my question, as stated (sort of) in the title, is about the behaviour in some respects of the Javafx (namely 2.2) Popup. Most of the time, you get a popup, and you give it a window to act as it's parent, you give it some scene, and it tends to act relatively independently. This is all fine, however, in my case, I needed a popup that would anchor itself to a particular stage (window), at a particular location, when an event happened. That popup would then, in turn, disappear when the window

How to open a popup window from an adapter class

家住魔仙堡 提交于 2019-12-07 04:16:52
问题 I created a class for showing employee details in a CardView inside a RecyclerView . New requirement is to show a popup window of card while clicking. So I added setOnClickListener and it works fine(I got card name in Log). But how do I open a popup window from this click? Actually am a newbie in android public class EmployeeCardAdapter extends RecyclerView.Adapter<EmployeeCardAdapter.ViewHolder> { private Context context; private EmployeeBean employeeBean; private ArrayList<EmployeeBean>

About the “body” parameter for tinymce's “windowManager.open” method

谁说胖子不能爱 提交于 2019-12-07 03:09:53
问题 I'm looking at this example w.r.t creating tinyMCE plugin. What I want to do is to open a popup, and the content inside the popup is specified programmatically, without having to load a physical page at certain url: Add an input element of type=file in tinymce container Basically the author solved the issue about a plugin he was trying to create. I'm trying the same code but the popup is completely empty for me, no errors, any suggestions? Where can I find info about the "body" parameter when