On 6/29/05, The Doctor <the...@bl...> wrote:
> --This one is a bug, maybe, the button gets its colour changed and change=
d back, but once it's back the greyed state isn't visible anymore, maybe be=
cause the system colours are made literal.
You change the font color to grey, then back to the default, then
disable it which basicly greys it, but in wxGTK it looks identical as
if you didn't change the color at all. If however the text completey
dissapeared in MSW, this would be an issue with wxWidgets.
-John
=20
> FRAME =3D wx.wxFrame(
> wx.wxNull,
> -1,
> "The Thinger",
> wx.wxPoint(0,0),
> wx.wxSize(436,332)
> )
>=20
> local PANEL=3Dwx.wxPanel(FRAME,-1)
>=20
> BT=3Dwx.wxButton(PANEL,6,"6",wx.wxPoint(9,032),wx.wxSize(20,21))
> BT:SetForegroundColour(wx.wxColour(140,140,140))
> BT:SetForegroundColour(wx.wxNullColour)
> BT:Enable(nil)
>=20
> FRAME:Centre()
> FRAME:Show(wx.TRUE)
|