motifdeveloper.com
Sponsored by IST Limited
Formerly MW3: Motif on the World Wide Web [MW3 Logo]
Last Updated
November 18, 2002
 


X-Designer - The Leading X/Motif GUI Builder - Click to download a FREE evaluation
 

motifdeveloper.com
Home
About the site
Bulletin Board
News Archive
OpenGroup News
Events
Search
Frequently Asked Questions
The Motif FAQ
X/Motif FAQs
General FAQs
Ask Antony
Latest Q & A
All Q & As
Submit Question
Tips & Pointers
Code Examples
Software
OpenMotif
Widget Sets
GUI Toolkits & Libraries
Motif suppliers
Non-commercial S/W
Commercial Software
Multimedia
Miscellaneous
Organizations
Docs & Pubs
X/Motif Newsgroups
Security
Internationalization
Feedback
Feedback Form
Contributors
 

How can I make any dialog fullscreen, without any window manager
decorations and on top of all other applications?

8-Dec-00 12:00 GMT

This is supplementary to the question How can I make a drawing area occupy the full screen size?

 

The solution to this is straightforward. To start with, you need to deduce the size of the physical screen. This can be done simply enough: the Screen object has a width amd height element to the structure.

We can get at the Screen object using XtScreen() from an arbitrary widget as follows:

	Screen *screen = XtScreen(some_widget);

To make our dialog occupy the entire area, we set the width and height of the top level manager under the shell to the data found in the screen object:

	XtVaSetValues (top_manager,
		       XmNwidth, screen->width,
		       XmNheight, screen->height,
		       NULL);

The next problem is to get rid of window manager interaction. This can be done at a stroke: we set the XmNoverrideRedirect resource of the top level shell to TRUE: this should be performed before the shell is realized:

	XtVaSetValues (top_shell, XmNoverrideRedirect, TRUE, NULL);

Lastly, after we have called XtRealize() on our top level shell, we make sure the window is on top using XRaiseWindow():

	XRaiseWindow (XtDisplay(top_shell), XtWindow(top_shell));

 


Sponsored by X-Designer - The Leading X/Motif GUI Builder - Click to download a FREE evaluation

 

Goto top of page

 

[IST Limited]
IST Limited is the
proud sponsor of motifdeveloper.com.
 

Thanks to all the contributors to these pages.

Privacy Policy

 
"Motif" is a registered trademark of The Open Group. All other trademarks are the property of their respective owners.

Some articles/papers here have their own copyright notice. All other information is copyright ©1999-2008 IST Limited

[CommerceOne] MW3 site originally by Ken Sall of Commerce One (formerly Century Computing).