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
Re: How to use droplist and switch [message #10829 is a reply to message #10812] Wed, 01 August 2007 07:46 Go to previous messageGo to previous message
bonami is currently offline  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

 
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 15:38:58 CEST 2024

Total time taken to generate the page: 0.02853 seconds