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 #10829 is a reply to message #10812] |
Wed, 01 August 2007 07:46 |
|
bonami
Messages: 186 Registered: June 2007 Location: Beijing
|
Experienced Member |
|
|
mrjt wrote on Tue, 31 July 2007 17:19 |
comm_type.SetLabel("UDP\nTCP");
or
comm_type.Add("UDP").Add("TCP");
or
comm_type.Add(0, "UDP").Add(1, "TCP");
Will all work.
I would guess that you haven't made the Switch ctrl large enough in the Layout Designer (it does not resize automatically) and so you cannot see the other opptions.
James.
|
as i posted, i have used all these methods and none works for me. i tried again exactly using your Add... and failed. my layout is large enough to hold an elephant.
solution: put Add... in a function called after window class' constructor. i put Add... in topwindow's subclass' constructor then nothing works as i said and i cannot even stop there to debug. but if i put it elsewhere and call it after construction, it succeeds. this really puzzles me.
FUDAMIN, i've succeeded modifying .lay using TheIDE. this works.
thank you both anyway.
[Updated on: Wed, 01 August 2007 07:50] 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 15:38:58 CEST 2024
Total time taken to generate the page: 0.02853 seconds
|