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
icon8.gif  Re: How to use droplist and switch [message #10808 is a reply to message #1751] Tue, 31 July 2007 04:47 Go to previous messageGo to previous message
bonami is currently offline  bonami
Messages: 186
Registered: June 2007
Location: Beijing
Experienced Member
707dev1, winxp
how to add items to a switch? thank you.
i've got a switch in .lay, which can be assigned only one value. i try to add more in my main function with all methods as follows, but never achieved.

char s[] = "UDP TCP";
s[3]='\n';
comm_type.EnableCase(1);
comm_type.EnableCase(2);
comm_type.EnableCase(3);
comm_type.SetLabel(s);
comm_type.SetLabel(2, "TCP");
comm_type.Add(1,"UDP");
comm_type.Add(2,"TCP");
comm_type.EnableCase(1);
comm_type.EnableCase(2);
comm_type.EnableCase(3);
 
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: Mon Aug 25 11:34:09 CEST 2025

Total time taken to generate the page: 0.06324 seconds