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   |
 |
forlano
Messages: 1207 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
|
|
|
 |
|
OptionImage ctrl: how to make it better...
By: fudadmin on Wed, 12 April 2006 17:24
|
 |
|
Re: OptionImage ctrl: how to make it better...
By: fudadmin on Wed, 12 April 2006 17:51
|
 |
|
Re: OptionImage ctrl: how to make it better...
By: forlano on Wed, 12 April 2006 23:03
|
 |
|
Re: OptionImage ctrl: how to make it better...
By: fudadmin on Wed, 12 April 2006 23:11
|
 |
|
Re: OptionImage ctrl: how to make it better...
By: forlano on Thu, 13 April 2006 08:45
|
 |
|
Re: OptionImage ctrl: how to make it better...
By: fudadmin on Thu, 13 April 2006 16:47
|
 |
|
Re: OptionImage ctrl: how to make it better...
By: fudadmin on Thu, 13 April 2006 17:13
|
 |
|
Re: OptionImage ctrl: how to make it better...
By: forlano on Thu, 13 April 2006 17:43
|
 |
|
Re: OptionImage ctrl: how to make it better...
By: mr_ped on Thu, 13 April 2006 18:16
|
 |
|
Re: OptionImage ctrl: how to make it better...
By: mirek on Thu, 13 April 2006 18:18
|
 |
|
Re: OptionImage ctrl: how to make it better...
By: mr_ped on Thu, 13 April 2006 18:37
|
 |
|
Re: OptionImage ctrl: how to make it better...
By: fudadmin on Thu, 13 April 2006 18:24
|
 |
|
Re: OptionImage ctrl: how to make it better...
By: fudadmin on Thu, 13 April 2006 19:32
|
 |
|
Re: OptionImage ctrl: how to make it better...
By: forlano on Thu, 13 April 2006 23:59
|
 |
|
Re: OptionImage ctrl: how to make it better...
By: fudadmin on Fri, 14 April 2006 00:18
|
 |
|
Re: OptionImage ctrl: how to make it better...
By: fudadmin on Fri, 14 April 2006 00:33
|
 |
|
Re: OptionImage ctrl: how to make it better...
By: forlano on Fri, 14 April 2006 07:09
|
 |
|
Re: OptionImage ctrl: how to make it better...
By: forlano on Fri, 14 April 2006 07:26
|
 |
|
Re: OptionImage ctrl: how to make it better...
By: fudadmin on Fri, 14 April 2006 07:29
|
 |
|
Re: OptionImage ctrl: how to make it better...
By: forlano on Fri, 14 April 2006 18:46
|
 |
|
Re: OptionImage ctrl: how to make it better...
By: fudadmin on Fri, 14 April 2006 20:45
|
 |
|
Re: OptionImage ctrl: how to make it better...
By: fudadmin on Fri, 14 April 2006 07:44
|
 |
|
Re: OptionImage ctrl: how to make it better...
By: mr_ped on Fri, 14 April 2006 09:01
|
 |
|
Re: OptionImage ctrl: how to make it better...
By: mirek on Fri, 14 April 2006 09:26
|
Goto Forum:
Current Time: Sat Apr 26 08:30:54 CEST 2025
Total time taken to generate the page: 0.03320 seconds
|