Hi
with current CVS setColor for tSpeedButton don't work
DrawFrameControl can draw only rectangle with or without shadow, no
other possibilities
rest investigation under
now i prepare patch for
tSpeedButton
Why use Frame3D instead of DrawFrameControl ?
its simpler,
and why one function for drawing for all components, (on other side is
used only 3 times toolbutton, speedbutton and checkbutton)
SpeedButton is draw near all without widget,
Frame3D should be faster and identical on all platforms
The buttons look should follow the users theme. They should not look
the >>same on all platforms.
With Frame3D we loose the theme background of buttons. I commented this
out and kept the old DrawFrameControl.
Under tSpeedButton is no background (as I know), all is painting
I have similar problem with tPanel and tHeader, but i will investigate
in next time
A button under gtk1 is an area, not just the frame. Some themes define a
simple darkened area when presses, some some define whole images (e.g.
round buttons). Maybe gtk2 has more possibilities for TSpeedButton.
Interesting are there possibilities, which we can use in all OS, of
course we can implement all myself, but we are limited
by LCL API, for example now I can't change color of shadow (tButton have
not thous properties)
I think, that we should implement more flexible widgets, not so
dependent from desired library (GTK, WIN, QT)
I don't know exactly, but DrawFrameControl can't draw round frame, thats
not issue,
we have own paint function with caption and glyph, only frame left from
widgets
I don't know, what windows can do with DrawFrameControl, but under gtk it
draws an area in a specific style. If this is a button style, and the theme
defines an image, it paints it.
If I want (as programmer) to one of buttons will be red, user should'n
change it by change theme
for tButton all depend from widgets, but for me in tSpeedButton all
should be independent. (GTK has't two widgets)
Gtk has less widgets, because the idea is combine them. A TGroupbox is a
single widget under windows, while under gtk it needs two. For gtk it is
pretty normal to put a 'listbox' into a menu. That's why you have more
possibilties.
A TSpeedButton that is used a button and that draws some rectangles, when
all other widgets on the application have shaded round widgets looks very
ugly. Especially if you use broken themes, that merely defines images and no
colors.
DrawFrameControl not avoid this
it's only my suggestion
What is the trouble with theme painted speedbuttons?
it's not work
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives