I plan to use wxPopupTransientWindow to popup a window with a wxVListBox. Then I find that I can't use mouse wheel to scroll my vlistbox. The point is that vlistbox can't accept focus while it is in a window derived from wxPopupTransitentWindow. I test the popup example. I find that mouse wheel fail in wxSpinCtrl, too.
I use wxWidgets-3.1.0 with visual studio 15.
PopupWindow SetFocus fail
-
- Earned a small fee
- Posts: 24
- Joined: Thu Jan 04, 2018 8:05 am
Re: PopupWindow SetFocus fail
Hi,
What is your question exactly? Or what problem you are trying to solve?
Thank you.
What is your question exactly? Or what problem you are trying to solve?
Thank you.
-
- Earned a small fee
- Posts: 24
- Joined: Thu Jan 04, 2018 8:05 am
Re: PopupWindow SetFocus fail
Maybe I need state clearly. My native language is not English. I am sorry for my poor English. I want to implement a hybrid button like hybrid style in wxRibbonButtonBar. But it has custom appearance. So I derive MyPopupWindow from wxPopupTransitentWindow. In the window, there is a listbox derived from wxVListBox. I find that I can't use mouse wheel to scroll the listbox. So did it in "popup" example, there is a wxSpinCtrl.
-
- Earned a small fee
- Posts: 24
- Joined: Thu Jan 04, 2018 8:05 am
Re: PopupWindow SetFocus fail
https://stackoverflow.com/questions/964 ... dow-handle#
Here is some solution.
Here is some solution.
-
- Earned a small fee
- Posts: 24
- Joined: Thu Jan 04, 2018 8:05 am
Re: PopupWindow SetFocus fail
Yesterday I tried it successfully. Yesterday I use wxWidgets by linking lib file, but, today I use dll to link. The Windows API ::SetForegroundWindow fail.tgg_splash wrote:https://stackoverflow.com/questions/964 ... dow-handle#
Here is some solution.