Home » U++ Library support » U++ Widgets - General questions or Mixed problems » How to use droplist and switch
Re: How to use droplist and switch [message #10897 is a reply to message #10881] |
Fri, 03 August 2007 04:19 |
|
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
|
|
|
|
|
How to use droplist and switch
|
|
|
Re: How to use droplist and switch
By: mirek on Sat, 18 March 2006 08:54
|
|
|
Re: How to use droplist and switch
By: bonami on Tue, 31 July 2007 04:47
|
|
|
Re: How to use droplist and switch
By: mrjt on Tue, 31 July 2007 11:19
|
|
|
Re: How to use droplist and switch
By: bonami on Wed, 01 August 2007 07:46
|
|
|
Re: How to use droplist and switch
By: mirek on Wed, 01 August 2007 18:05
|
|
|
Re: How to use droplist and switch
By: bonami on Thu, 02 August 2007 03:06
|
|
|
Re: How to use droplist and switch
|
|
|
Re: How to use droplist and switch
By: dmcgeoch on Thu, 02 August 2007 13:34
|
|
|
Re: How to use droplist and switch
By: bonami on Fri, 03 August 2007 04:19
|
|
|
Re: How to use droplist and switch
By: mrjt on Tue, 07 August 2007 14:53
|
|
|
Re: How to use droplist and switch
By: bonami on Wed, 08 August 2007 08:57
|
Goto Forum:
Current Time: Tue May 21 20:42:44 CEST 2024
Total time taken to generate the page: 0.02835 seconds
|