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 #2478 is a reply to message #2473] Thu, 13 April 2006 23:59 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
fudadmin wrote on Thu, 13 April 2006 19:32

forlano wrote on Thu, 13 April 2006 16:43

fudadmin wrote on Thu, 13 April 2006 16:47

void Avail3(One<Ctrl>& ctrl)
{
//	ctrl.Create<Option>().ThreeState();
	ctrl.Create<OptionImage>().ThreeState().SetImage(imgYes(), imgNo(), imgMaybe());
	
}

Smile



I remind to have tried even this combination but without success Embarassed . Perhaps there were a mistake in some other place.
Luigi


1. Perhaps you should try exactly what is here? (it's not in your code...)

2. I'm surprised how from such simple U++ application you were able to make a "spaghetti code"... Smile. First of all, it doesn't run out of the box because I don't use C: and I don't have MyApps... - Why do you use absolute references in *.upp file?
And you don't need a hundred of #include in each file with U++...

http://en.wikipedia.org/wiki/Spaghetti_code



Thank you to all of you for the precious advices I've receveid. Now it is more clear.

I know perfectly what "spaghetti" and "spaghetti code" means. Nevertheless I do not understand what Aris mean in point 2) and file *.upp and #include.
I know only that now I've a beautiful OptionImage with which to play Very Happy , inside and outside an ArrayCtrl. I'm very satisfied by what I've although I'm aware that there is space for improvement.
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
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:24 CEST 2024

Total time taken to generate the page: 0.02388 seconds