How can I disable / enable a photon widget (say button) from the code.
Thanks
Rajan
You need to do two things:
- Enable the Pt_BLOCKED flag (see PtWidget)
- You should also enable the Pt_GHOST flag (see PtWidget) to dim the
widget, such that the user can see it’s blocked
Also, there is the newsgroup qdn.public.qnxrtp.photon for Photon specific
questions
Markus
<rajanr@in.ibm.com> wrote in message
news:9jmk9r$1326$1@sp15at20.hursley.ibm.com…
How can I disable / enable a photon widget (say button) from the code.
Thanks
Rajan
Barry Robertson wrote:
I sometimes just PtUnrealizeWidget() them. Why bother a user
with an option they can’t use?
I remember a thread several years ago in comp.human-factors about
this. My conclusion was that there are occasions when when you
can confuse the users (“I could have sworn there was an XXX
button”) or enlighten them (“You can’t click me right now.”).
Barry
Markus Loffler wrote:You need to do two things:
- Enable the Pt_BLOCKED flag (see PtWidget)
- You should also enable the Pt_GHOST flag (see PtWidget) to dim the
widget, such that the user can see it’s blocked
Also, there is the newsgroup qdn.public.qnxrtp.photon for Photon specific
questions
Markusrajanr@in.ibm.com> > wrote in message
news:9jmk9r$1326$> 1@sp15at20.hursley.ibm.com> …How can I disable / enable a photon widget (say button) from the code.
Thanks
Rajan