Monday, May 21st 2018, 7:25am UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Date of registration: Apr 5th 2018

Posts: 3


Thursday, May 17th 2018, 5:28pm

Strange behaviours of WM_ShowWindow WM_HideWindow

Hi everybody,
I'm facing some strange behaviours in my UI application, base on the STemWin. Foundamentally, the structure of the panel displayed is divided into 4 child windows, as shown in the image attached.
The "bars" are just used for navigation purproses, while it's the Central Window that contains relevant widgets/data.
Problems begin when a change from a panel to another is requested: Central Window is cleared and re-created with new widgets, while toolbars remain without beeing deleting, but the button in the Top Toolbar it's hidden, even if I never call WM_HideWindow() on the button handle.
Also, buttons in navigation toolbar are kept shown after a WM_HideWindow() - WM_ShowWindow() calls and I'm unable to hide them, even if calling WM_HideWindow() in my callback and somewhere else.
Hope someone could help me.
Many thanks
andrea.laini has attached the following image: