The Devils Jester
17 years ago
I have been trying to implement a custom "pop-up" of sorts (its more
closely related to a combo box pop-up) however I have run into two
separate problems.
1. If I have the popup as a modal wxFrame, then the wxActivateEvent
is not called when the pop-up is deactivated (i.e. the user clicks
somewhere other than the popup).
2. If I have the popup as a modeless wxFrame, then it never gets
input focus because its parent is modal.
Is there a solution to either of these, or should I be using something
else to implement the pop-up?
I noticed a dialog called wxPopupWindow, but it doesnt seem to support
all of my targets (GTK2, MSW, MAC).
closely related to a combo box pop-up) however I have run into two
separate problems.
1. If I have the popup as a modal wxFrame, then the wxActivateEvent
is not called when the pop-up is deactivated (i.e. the user clicks
somewhere other than the popup).
2. If I have the popup as a modeless wxFrame, then it never gets
input focus because its parent is modal.
Is there a solution to either of these, or should I be using something
else to implement the pop-up?
I noticed a dialog called wxPopupWindow, but it doesnt seem to support
all of my targets (GTK2, MSW, MAC).
--
If you make something that any idiot can use, only idiots will use it.
If you make something that any idiot can use, only idiots will use it.