Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Show a specific child ctrl from child ctrl stack
Show a specific child ctrl from child ctrl stack [message #14524] Thu, 28 February 2008 23:46 Go to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Hi,

I like to implement a child ctrl stack within another ctrl, i.e. all child ctrls overlaying each other.
I add all child ctrls in the parent ctrl constructor, then the last added ctrl is the shown one in parent ctrl.

How can I enable and show a specific child ctrl inside this parent ctrl after the app has started, I tried with Enable(), Show() functions, but its not working?

Matthias
Re: Show a specific child ctrl from child ctrl stack [message #14567 is a reply to message #14524] Mon, 03 March 2008 20:20 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
masu wrote on Thu, 28 February 2008 17:46

Hi,

I like to implement a child ctrl stack within another ctrl, i.e. all child ctrls overlaying each other.
I add all child ctrls in the parent ctrl constructor, then the last added ctrl is the shown one in parent ctrl.

How can I enable and show a specific child ctrl inside this parent ctrl after the app has started, I tried with Enable(), Show() functions, but its not working?

Matthias


Not quite sure I understand, but Hide others Wink Show/Hide does not bring it to top, but simply hides or shows it. Putting more widgets on the same place and use Hide/Show to show only single one is quite commong practice in U++. E.g. TabCtrl works that way.

Mirek
Re: Show a specific child ctrl from child ctrl stack [message #14574 is a reply to message #14567] Mon, 03 March 2008 21:16 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Hi Mirek,

thanks for replying.
So you say I have to loop over all child ctrls to get a specific one onto top?
I guess this has to be done anyway Wink.

Matthias
Re: Show a specific child ctrl from child ctrl stack [message #14581 is a reply to message #14574] Tue, 04 March 2008 01:24 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
masu wrote on Mon, 03 March 2008 15:16

Hi Mirek,

thanks for replying.
So you say I have to loop over all child ctrls to get a specific one onto top?
I guess this has to be done anyway Wink.

Matthias


Actually, if you really want to move it to top, Remove and Add it again...

But Hide/Show loop is more effective IMO.

Mirek
Previous Topic: How to turn off Ctrl Updatable action?
Next Topic: Images in menus causing enormous padding
Goto Forum:
  


Current Time: Thu Mar 28 18:13:53 CET 2024

Total time taken to generate the page: 0.01942 seconds