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 #1764 is a reply to message #1751] Sat, 18 March 2006 08:54 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
mechatronic wrote on Fri, 17 March 2006 11:32

Hi everybody.
I'm a newbie in U++ and I have a project that communicate to other device via rs232 or LPT. I want to place a switch (ratio box - i think so Very Happy ), or droplist (combo box - sure). When an user choose one, program will set a variant (ex: user choose com1, so port = com1), but I don't know what to do. No example and reference programs about this.
Help me, please Razz


Just add "key"-"display value" pairs to your DropList. Its value will be the "key".

DropList dl;
dl.Add(1, "One");
dl.Add(2, "Two");
dl <<= 1;
..........
PromptOK(AsString(~dl));


Mirek
 
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 12:01:33 CEST 2025

Total time taken to generate the page: 0.05924 seconds