On Tue, 15 Jul 2014 15:07:40 +0200
Benoît Minisini <gam...@users.sourceforge.net> wrote:

> Le 15/07/2014 00:52, B Bruen a écrit :
...
> > 1) I'd like to define some new color names (e.g. DarkBackground) as
> > there is just not enough standard color names to do all I need. This
> > is not a problem with the Color override as I can define as many
> > different names as I like. My problem is the IDE.  It wont let me
> > type a color name in the Background field on the properties panel,
> > the only way to set a color name is via the button and the "Select a
> > Color" popup which, of course, has never heard of my "DarkBackground"
> > color.  So, is the textbox part of the Background property control
> > really read only or have I done something silly to our local version
> > of the IDE?
> >
> 
> You should not expect the IDE to be modified by your single own personal 
> program.
> 
> The pre-defined system colors are a common subset of system colors 
> defined by QT4 and GTK+. Some of them, like Color.LightBackground and 
> Color.LightForeground are actually a mix of two system colors.
> 
> 
> ...
> 
> Regards,
> 
> -- 
> Benoît Minisini
> 

No I didn't expect the IDE to cope with "my single own personal program". 
What I was looking at was a way to define "custom color names" that the IDE 
could cope with somehow. But 
having stepped through the IDE code and how it handles property "realValue"s I 
see the difficulties involved.  It seems a bit of a shame actually as I think 
custom color names could add value to the IDE. I'm thinking color-names like 
ErrorBackground or ErrorForeground  could be used by someone who wants to 
highlight all controls that failed validation on an update action on a form and 
things like that.  Or whatever other name a developer would want to use to 
highlight multiple controls on a form.

Nevertheless, I will work on how this could be done using our local version of 
the IDE in my spare time (haha!). Which means I may have to come back to you on 
some specific issues with the code. :-)

regards
Bruce
-- 
B Bruen <bbr...@paddys-hill.net>

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to