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 » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » OptionImage ctrl: how to make it better...
Re: OptionImage ctrl: how to make it better... [message #2451 is a reply to message #2446] Thu, 13 April 2006 08:45 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
fudadmin wrote on Wed, 12 April 2006 23:11

If you download it, it runs "out of the box"...


Aris,
I tried your code. It works very nice (what do you mean with
"out of the box"?). I've even learned how to put in the designer a new class object (just rename the classobject after CTRL+T). Before to do my 'todo' task I tried to put the wonderful OptionImage in the arrayctrl. I've added the .iml file and the .h file then

1th temptive.
	arr.AddColumn("Avail", "Avail?", 4).Ctrls<OptionImage>();  

nothing appear.

2th temptive.
	arr.AddColumn("Avail", "Avail?", 4).Ctrls(Avail3);   

where, on the model of past example,
void Avail3(One<Ctrl>& ctrl)
{
//	ctrl.Create<Option>().ThreeState();
	ctrl.Create<OptionImage>();
	ctrl.ThreeState(true).SetImage( imgYes(), imgNo(), imgMaybe());
}

but the compiler cryed:
C:\MyApps\vegaMenuStatus\tab1.cpp: In function `void Avail3(One<Ctrl>&)':
C:\MyApps\vegaMenuStatus\tab1.cpp:18: error: 'class One<Ctrl>' has no member named 'ThreeState'


Any idea? I attach the zipped project if could be useful. This part of the code is in the file tab1.cpp. Unzip in vegaMenuStatus with no subfolder.
Thank you,
Luigi

Edit by fudamin:
P.S old zip deleted to save space on the server. New zip below.

[Updated on: Fri, 14 April 2006 07:48] by Moderator

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Different color for three state option button
Next Topic: How to create a non modal dialog
Goto Forum:
  


Current Time: Fri May 10 11:11:18 CEST 2024

Total time taken to generate the page: 0.02192 seconds