Hello,I am a beginner in development at Renesas, I hope you understand!I have a window and inside it I have two other windows that will not be displayed initially, but when I click on the button1, window1 will be displayed, if I click on button2, window 2 will be displayed! How to make?
GUIX Studio 220.127.116.11
Hello Dalton, Upon displaying top-level widget, all of its children will also be visible. You can prevent that by calling gx_widget_detach for each of these sub-windows inside window event handler for GX_EVENT_SHOW event. To show the window, you should call gx_widget_attach. Alternatively you can use gx_widget_hide/show API's, which do not deactivate widget, but prevent it from being rendered on the screen. I recommend that you implement an event handler for the top-level window and create event cases for button clicks (i.e. GX_SIGNAL(BUTTON_ID, GX_EVENT_CLICKED) to manipulate status of the pop-up windows. Regards
In reply to Renesas Karol:
In reply to Dalton:
a screenshot of the call stack could be helpful in finding a solution.
To add an image to your reply you have to select "Use rich formatting" option below the reply window:
Then you will be able to drag-and-drop an image file from your file manager. You can alternatively choose Insert > Insert image/video/file from the top-side menu bar:
Select "File upload" and browse your file system for the desired file. Hit ok and the file will be placed in the text field.
It may be shown as an replacement icon. To preview your post choose Tools > Preview:
In reply to anper:
Thanks for the instructions! Really, I have to use this forum more!
Here's the image ... I put a breakpoint when calling the function to detach the window and it showed the error using a very strange path! "C:\iotsoftware\Kallithea/ssp\src\framework\el\gx\gx_src\gxe_widget_detach.c". Obviously, this path was not found! But why does this occur?
In reply to adboc:
I used the GUIX Source component, cleaned all the code and generated it again, look at the error message it gave ... What can it be?