PtMenuButton changes color

I set the fill color of a PtMenuButton widget to white. When the user clicks
on a PtMenuButton widget, it changes its fill color to grey. Any way to
prevent this?
Thanks
Markus

Markus Loffler <loffler@ces.clemson.edu> wrote:

I set the fill color of a PtMenuButton widget to white. When the user clicks
on a PtMenuButton widget, it changes its fill color to grey. Any way to
prevent this?

PtButton as an arm fill resource that controls this, but there
isn’t a direct equivalent on PtMenuButton. Try clearing the
Pt_SELECT_NOREDRAW bit in Pt_ARG_FLAGS - that looks like it would
do the trick.

Norbert Black
QSSL Training Services

Thanks, tried this, didn’t work. Looks like PtMenuButton has its “own mind”
Markus


“Norbert Black” <nblack@qnx.com> wrote in message
news:95fml0$2pf$1@nntp.qnx.com

Markus Loffler <> loffler@ces.clemson.edu> > wrote:
I set the fill color of a PtMenuButton widget to white. When the user
clicks
on a PtMenuButton widget, it changes its fill color to grey. Any way to
prevent this?

PtButton as an arm fill resource that controls this, but there
isn’t a direct equivalent on PtMenuButton. Try clearing the
Pt_SELECT_NOREDRAW bit in Pt_ARG_FLAGS - that looks like it would
do the trick.

Norbert Black
QSSL Training Services