Vadim1980 Posted February 15, 2022 Report Share Posted February 15, 2022 I mean - one screan for TCP/IP settings, another screan - for user administration. May be I have to use containers, but does all widjets, wich was created befor, stay in the memory even one container is visible and another not? thanks advance Link to comment Share on other sites More sharing options...
Vadim1980 Posted February 16, 2022 Author Report Share Posted February 16, 2022 So, I try to use gwinDestroy(ghContainer) and seems to me it works! In this function deletes all child items, that belong to this container. But font settings losts too, so I make definition before the every container creation! Solved! Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted February 17, 2022 Report Share Posted February 17, 2022 Hello and welcome to the µGFX community! On 16/02/2022 at 12:08, Vadim1980 said: So, I try to use gwinDestroy(ghContainer) and seems to me it works! In this function deletes all child items, that belong to this container. That is indeed the correct/expected behavior On 16/02/2022 at 12:08, Vadim1980 said: But font settings losts too, so I make definition before the every container creation! Depending on your application design, you can just keep the font open and re-use it later. So during initialization, open your font and keep it open. You can create and destroy any number of widgets & containers you want without having to close the font if you plan to re-use it later. On 16/02/2022 at 12:08, Vadim1980 said: Solved! Glad to hear that - sorry for the late response. Please don't hesitate to ask if you have any other questions! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now