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! » Different color for three state option button
Re: Different color for three state option button [message #2426 is a reply to message #2415] Wed, 12 April 2006 13:44 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
forlano wrote on Wed, 12 April 2006 10:55

fudadmin wrote on Wed, 12 April 2006 03:38

Ok, Luigi, it' time for you to learn image designer... Smile
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 lazy people style Smile

1. 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.

2. The minimum dimension of the button should be calculate considering the text lenght and the greatest of the three image dimension.
Luigi


1. and 2. I expected you are not so lazy... Smile and add this funcionality yourself... Smile

Btw, 2. - Do you want different size images? - it's even more against native look Laughing
 
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: F2 tree editor...
Next Topic: OptionImage ctrl: how to make it better...
Goto Forum:
  


Current Time: Sat Jul 05 10:06:21 CEST 2025

Total time taken to generate the page: 0.04036 seconds