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 #2430 is a reply to message #2426] Wed, 12 April 2006 14:11 Go to previous message
forlano is currently offline  forlano
Messages: 1207
Registered: March 2006
Location: Italy
Senior Contributor
fudadmin wrote on Wed, 12 April 2006 13:44

Quote:

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


1. I've learned the lesson and now I trying to think in the laziest way I can Smile

2. Of course not, I was just speaking in general.

Luigi
 
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: Thu Jul 03 21:18:44 CEST 2025

Total time taken to generate the page: 0.04028 seconds