Hi Conal,
Conal Elliott wrote:
> I=92m trying to selectively highlight panels and controls. I=92ve tri=
ed setting the=20
=93color=94 and the =93bgcolor=94 attributes, with no visible effect
.. This should definitely work with panels. Maybe try to set them 'later'=
:
> do p <- panel [..]
> set p [bgcolor :=3D blue]
or 'earlier':
> do p <- panel [bgcolor :=3D red]
Also look at the "samples/wx/customcontrol.hs" sample.
> on panels. I=92m using a row & column layouts with enough spacing to =
mouse into the=20
space between controls, and I do get enter events there.
The "enter" and "leave" events seem to be broken on windows. They kind
of work, but they are only fired after a while. The documentation of wxWi=
dgets
seems to imply that the windows API itself doesn't allow for precise
enter/leave events.
> I=92ve also tried using the border attribute on panels and controls, =
also without=20
visible result. I=92m running Windows XP.
Hmm, border should work too. Maybe it is an attribute that you can only
set on construction, ie. use:
> do p <- panel f [border :=3D BorderStatic]
I hope this helps,
-- Daan
>
>
>
> Should color, bgcolor, or border work for panels?
>
>
> Is there another way to dynamically highlight a control or panel?
>
>
>
> Thanks!
>
>
>
> - Conal
>
|