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 » How to use droplist and switch
icon6.gif  Re: How to use droplist and switch [message #10897 is a reply to message #10881] Fri, 03 August 2007 04:19 Go to previous messageGo to previous message
bonami is currently offline  bonami
Messages: 186
Registered: June 2007
Location: Beijing
Experienced Member
as i did afterwards, you changed .lay, too. this is the best way.
the key is the second problem you mentioned. i suppose the control is partialy initialized after the TopWindow so that you cannot set it in TopWindow's constructor.
as for the first one, i changed .lay, so i see the size is OK and did not change it back for the code to describe this question, i.e., it is not a problem.

further more, when i try to get selected value, if i directly call GetData(), it won't work, since .lay does not generate default values, even values as indexes or labels.
void ezcommwin::Butt_out()
{
...
comm_type.Set(0,0, "uu"); // this works
comm_type.Set(1,1);  //this does not work
type = comm_type.GetData(); //only now can we get the value


after all, maybe it is a good idea not to use .lay for switches

[Updated on: Fri, 03 August 2007 11:48]

Report message to a moderator

 
Read Message
Read Message
Read Message icon8.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon6.gif
Read Message
Read Message icon14.gif
Previous Topic: howto force evaluation after <CR>
Next Topic: "ScrollArea"...
Goto Forum:
  


Current Time: Tue May 21 20:42:44 CEST 2024

Total time taken to generate the page: 0.02835 seconds