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 WithDropChoice?
How to use WithDropChoice? [message #12933] Thu, 29 November 2007 13:24 Go to next message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
Can anyone provide me an example how to use WithDropChoice?

Lets say i have this:

Add(lblCustomerName.SetText("Name:").SetAlign(ALIGN_RIGHT).RightPos(270, 150).TopPos(top, 20));
Add(fldCustomerName.RightPos(10, 250).TopPos(top, 20));
fldCustomerName.SetText(customerName);


How can i add a DropChoise-List to fldCustomerName which is an EditField-widget?

Michael
Re: How to use WithDropChoice? [message #12938 is a reply to message #12933] Thu, 29 November 2007 14:19 Go to previous messageGo to next message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
You need to declare it as
WithDropChoice<EditField> fldCustomerName
(or whatever ctrl you want).

You can do this in the designer by changing the control type (left of ctrl name).

James.

[Updated on: Thu, 29 November 2007 14:21]

Report message to a moderator

Re: How to use WithDropChoice? [message #12939 is a reply to message #12933] Thu, 29 November 2007 14:35 Go to previous message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
Oh, this is really easy to handle.

WithDropChoice<EditField> fldProduct;

Add(lblProduct.SetText("Produkt:").SetAlign(ALIGN_RIGHT).RightPos(270, 150).TopPos(top, 20));
Add(fldProduct.RightPos(10, 250).TopPos(top, 20));
fldProduct.SetText(product);
fldProduct.ClearList();
fldProduct.AddList("product1");
fldProduct.AddList("product2");
fldProduct.AddList("product3");

Sometimes it would be easier if there would be an example in every manual-entry.

Thanks

Michael
Previous Topic: Using RichEdit in dialog
Next Topic: ArrayCtrl with labels / layouts inside ?
Goto Forum:
  


Current Time: Sun May 05 00:06:42 CEST 2024

Total time taken to generate the page: 0.02468 seconds