popup

opening a popup in IE - “Member not found”

拜拜、爱过 提交于 2019-12-10 19:38:02
问题 This happens in IE6 when the user opens a popup window that opens a PDF inside. (this part works). Then, the user opens another popup window, and at this point i get this error. There is a good description and a possible solution here my question is this: Is there a better solution? Opening up a window and closing it right away seems like a silly solution to me. 回答1: I think I've got a better solution that doesn't involve closing the window first. The issue is that IE won't override a window

Padding/ Size / Margin, when using ToolstripControlHost for a popup control

亡梦爱人 提交于 2019-12-10 18:58:45
问题 I'm using VB2008 Express. And I've been working on a "popup" to select a date range. The DateTimePicker isn't ideal because the purpose is to pick a date range, which will always be one full week, from Sunday through Saturday. The control works just fine and I'm pretty proud of it. My problem has to do with the border added when using ToolstripControlHost for this. I've included a screenshot and my code. In the code below, assume there exists a button named "btnTimePeriod", below which I

Dynamically set the Popup position/placement

孤街浪徒 提交于 2019-12-10 18:48:06
问题 The Popup control is left-aligned by default. Its left edge is aligned with the left edge of its parent. What I would like to do is to have the control right-aligned so that its right edge is aligned with the right edge of its container. I want this to be dynamic because I dynamically bind the data and I don't know how big the popup will be. I tried playing with the Opened , SizeChanged and Loaded event to get the Child 's width and set it to the HorizontalOffset but there seems to be timing

How to close a popup when its parent is collapsed?

北城以北 提交于 2019-12-10 18:47:29
问题 Background I have a control template for a HeaderedContentControl which contains a button as the header, which opens a popup containing the main content when clicked (via an EventTrigger ). This works as I expect, until I try to add a button to the popup which collapses the control. The main button (the header) disappears, but the popup (the content) stays where it is until I take mouse focus from it (by clicking somewhere). Here's a shortened example demonstrating the issue: <Window xmlns=

WPF Popup IsOpen issue

喜你入骨 提交于 2019-12-10 18:02:25
问题 Using a concept found here on StackOverflow. Note that the ToggleButton.IsHitTestVisible is bound to Popup.IsOpen , with StaysOpen="False" . This should mean that touching anywhere outside the Popup would cause it to close. However... Touching/Clicking on an ListBoxItem in the ItemsControl won't close the Popup , as is intended. Touching anywhere else within the Popup does close it. That doesn't seem to add up, according to how this is set up. <Grid ClipToBounds="True"> <Border Name="Root">

Popup does not closed event Stayopen set as False

我们两清 提交于 2019-12-10 17:43:46
问题 I have use the following code snippet to define the Popup. Code snippet[XAML]: <Grid Margin="0,0,0,0" Height="40"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="19" /> <ColumnDefinition Width="19" /> </Grid.ColumnDefinitions> <TextBlock HorizontalAlignment="Stretch" Text="HeaderText" FontWeight="Bold" TextTrimming="CharacterEllipsis" VerticalAlignment="Center"/> <Grid Grid.Column="1"> <Button Width="19" x:Name="FilterButton" Click="FilterButton_OnClick"

Open popup, click link, open in parent window, close popup?

泪湿孤枕 提交于 2019-12-10 17:27:06
问题 I need help please. What I want to do from my page is to open a popup for which I use this: <a class="txt-button" onclick="javascript:void window.open('http://mypage.com/1/index.html','','width=700,height=500,resizable=false,left=0,top=0');return false;">Buy Now</a> When a link on the popup is clicked I want it to open in the main window and for the popup to close. I've tried many things and cant get it to work:-( 回答1: I think you can use window.opener window.opener.location.href=x 回答2: To

Show popup window when the browser close

烂漫一生 提交于 2019-12-10 17:18:19
问题 I'm developing an eCommerce(PHP) web site and here's my requirement. Once the customer leave the order page or close the browser, I would like to offer another product with pop up or alert box. If they choose 'Yes', it will redirect to another product page instead of closing window. I tried with javascript window.open() on body "onunload" event. But the browsers keep blocking it. Is there anyway to accomplish this? Thank you, Den 回答1: First off: This is not user friendly at all. Just like

Issue with “Multiple methods named…”

◇◆丶佛笑我妖孽 提交于 2019-12-10 17:09:53
问题 I got a probelm. I would like to implement the UAModalpanelview to my project. At first it worked fine...I implemented the files...whatever. But now I would like to run the application, but I got this error every time. It is because of the "center" it shows me that "Mutliple methods named center found with mismatched result, parameter type or attributes". - (IBAction)showPopup:(id)sender { UAModalPanel *modalPanel = [[UAExampleModalPanel alloc] initWithFrame:self.view.bounds]; [self.view

How can I disable and gray the top level menu item using MFC

大兔子大兔子 提交于 2019-12-10 17:08:32
问题 I have a dialog application in which I want to have clickable menu items at the top of the dialog. These items do not show a drop down menu but actually run the associated commands. I did this by setting Popup=False in the dialogs properties and assigning a message-id but my problem is not having the ability to disable the item properly when it makes no sense for the item to be clickable (depending on internal state stored in the dialog) I have already found out how to disable any popup