Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Shelf show/hide in application: (5 Items)
   
Shelf show/hide in application  
Hi:

By command:shelf -e, we can click [Shelf is Open] to hide.

My application need to hide/show Shelf (both at bottom and right), so that my Ptwindow can be fullscreen.
how can I hide/show the Shelf in my C program ?

Thanks 
Weixing
Re: Shelf show/hide in application  
Currently there is no way of doing it via an API. 
But you can try to do something like this:
- setup your shelfs to auto-collapse
- use PhMoveCursorAbs() to move the pointer over a shelf when needed -- this will make shelf auto-expand, once you move 
cursor away from the shelf it will auto-collapse.
Re: Shelf show/hide in application  
But when you run calib command, it will hide the shelf. and it goes to fullscreen. quit the calib, the shelf will come 
again.

I want to do same as calib, Can I know how the calib do it ?

Thanks 
Re: Shelf show/hide in application  
Ok. Disable all decorations on your window (Pt_ARG_WINDOW_RENDER_FLAGS) and set the dim of your window to occupy the 
entire screen (Pt_ARG_DIM).
Re: Shelf show/hide in application  
You could use spawn to start shelf -e from your app.


- Malte