(quite newvie) fixed size custom dialog with widgets

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
(quite newvie) fixed size custom dialog with widgets

Submitted by Anonymous (not verified) on Fri, 06/15/2012 - 12:07

I want to pop-up a custom dialog box to set up some start-up preferences for an application and I have some problem and questions.
- I need to run it before the main app loop, so I wrote a small dispatch loop myself (with a different app context), which can exit when a button is finished. this seems to work, but I don't know how to remove the created window. If I just leave it there the rest of the program works. I tried to unmanage the main widget I got from the AppInitialize but that makes my app crash
- I would need the created window to be of fixed size, since it contains a fixed number fo labels and text fields. Is there a resource I can set so the window results non-resizable ?
- I want a better way to lay-out the widgets, currently I have a form and attach each other at the borders,but this makes little space between them. I would not mind a way to hard-code pixel locations since the window would be of fixed size anyway. The goal is howewer to be able to lay out the widgets more freely, with some space among them and some more freedom to put the accept button, more like stnadard dialog boxes are
- I'm used to group elements in boxes and draw dividers using other gui's. is there an easy way to do that in motif? are there widgets to do that ?
the application is BSD and has public cvs http://nebula-irc.sf.net
thanks,
R
‹ [Reworded] Deiconifying a window using Win ID and Display XiCombinationBox Epak Problem ›

gandalf

Thu, 10/28/2004 - 16:17#1

(quite newvie) fixed size custom dialog with widgets

I solved most of the problems by creating a proper dialog box. This solved also the need of an extra-event loop. I just needed to set up everything before.

the only problem is a good layout of the items in the dialog shell