Home » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » Different color for three state option button
Re: Different color for three state option button [message #2415 is a reply to message #2410] |
Wed, 12 April 2006 11:55   |
 |
forlano
Messages: 1207 Registered: March 2006 Location: Italy
|
Senior Contributor |
|
|
fudadmin wrote on Wed, 12 April 2006 03:38 | Ok, Luigi, it' time for you to learn image designer... 
Try and tell how it works...
P.S I haven't tested the logic and all functionality properly. This is a quick sample. Try to improve...
Any questions - just ask...
Unzip into ForlanoOption folder (no folders inside!)
|
Aris,
It works as all your code although this time it is not at all friendly and in the laizy people style 
If I desire a three state button with no standard images I think should be enough a declaration as this:
btnOpt.Add("Label_text", img1thState, img2thState, img3thState);
where img1thState, img2thState, img3thState are the images defined in the *.iml file.
Moreover it could be useful a method that set the position of the text with respect the image:
btnOpt.TextvsImage(LEFT); // test at the left of the image
btnOpt.TextvsImage(RIGHT); // test at the left of the image
The bottom and top case can be resolved with a separate label below of upper the button. Then, in the U++ style, should be possible the following line:
btnOpt.Add("Label_text", img1thState, img2thState, img3thState).TextvsImage(LEFT);
The same for a two state button:
btnOpt.Add("Label_text", img1thState, img2thState).TextvsImage(LEFT);
The minimum dimension of the button should be calculate considering the text lenght and the greatest of the three image dimension.
If I've not said silly thing I'll put this post in the wish list.
Luigi
|
|
|
 |
|
Different color for three state option button
By: forlano on Tue, 11 April 2006 22:19
|
 |
|
Re: Different color for three state option button
By: fudadmin on Tue, 11 April 2006 22:31
|
 |
|
Re: Different color for three state option button
By: mirek on Tue, 11 April 2006 23:26
|
 |
|
Re: Different color for three state option button
By: fudadmin on Wed, 12 April 2006 03:38
|
 |
|
Re: Different color for three state option button
By: mirek on Wed, 12 April 2006 11:28
|
 |
|
Re: Different color for three state option button
By: fudadmin on Wed, 12 April 2006 13:31
|
 |
|
Re: Different color for three state option button
By: mirek on Wed, 12 April 2006 17:42
|
 |
|
Re: Different color for three state option button
By: forlano on Wed, 12 April 2006 11:55
|
 |
|
Re: Different color for three state option button
By: mr_ped on Wed, 12 April 2006 12:20
|
 |
|
Re: Different color for three state option button
By: forlano on Wed, 12 April 2006 13:27
|
 |
|
Re: Different color for three state option button
By: fudadmin on Wed, 12 April 2006 13:44
|
 |
|
Re: Different color for three state option button
By: forlano on Wed, 12 April 2006 14:11
|
Goto Forum:
Current Time: Sat Jul 05 17:55:22 CEST 2025
Total time taken to generate the page: 0.03705 seconds
|