On Wed, Jun 11, 2008 at 11:39 PM, Pritpal Bedi <[EMAIL PROTECTED]> wrote:
> Can you explain how tou would like to implement this functionality.
> It is available in GTWVG but am not sure what you are looking for.
If I had to implement it I'd use an hash like { "color0" => "#ff55ff",
"color1" => "bc9df2", ... } to pass to a HB_GTI_SETPALETTE() function.
In this way hbini could be used to have an external file like colors.ini
[paletteA]
color0=#ff5ff
color1=#bc9df2
...
that returns an hash like hColors[ "paletteA" ].
This also would be very similar to terminal programs like putty and
pterm that use "resources" f.e.:
pterm.color0:
...
pterm.Font: 9x15
pterm.BoldFont: 9x15bold
pterm.BoldAsColour: 0
pterm.Colour0: 255,255,255
pterm.Colour8: 255,0,0
pterm.Colour10: 0,255,0
pterm.Colour12: 255,255,0
pterm.Colour14: 30,144,255
pterm.Colour15: 99,184,255
pterm.Colour16: 255,0,255
pterm.Colour18: 0,255,255
pterm.Colour20: 255,255,255
...
>>Today I've changed the #define.
>
> Viktor snsed what you meant. I could not. Can you explain a little?
Sorry I was not clear enough, what I meant was that as a workaround I
changed the values of the #defines in gtwvt.h and gtxwc.c.
Which is of course not an ideal situation.
In general I think Harbour should extend the "colors syntax" since in
this way strings like "B/W+" have no meaning.
It would be nice if colors could be set using sth like
"#ff55ff/#cb3f56" or "{255,123,255}/{178,83,156}"
Instead numbers strings like "1/13" are useful as reference to the
palette's colors.
best regards,
Lorenzo
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour