Jump to content

How to create multiple screans with number of widgets?


Recommended Posts

Posted

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

Posted

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!

Posted

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!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...