home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x.motif
- Path: sparky!uunet!spool.mu.edu!yale.edu!jvnc.net!newsserver.technet.sg!edbis
- From: edbis@solomon.technet.sg (Koh Eng San)
- Subject: Help: Resizing widgets
- Message-ID: <C04Bq4.KF3@newsserver.technet.sg>
- Sender: news@newsserver.technet.sg
- Nntp-Posting-Host: solomon.technet.sg
- X-Newsreader: TIN [version 1.1 PL8]
- Date: Thu, 31 Dec 1992 09:58:51 GMT
- Lines: 44
-
- Happy New Year Everybody,
-
- I was writing a program and couldn't get the fForm Widget to maximise with
- the main window. Would appreciate if someone can help me out. Below is part
- of the program.
-
- parent = XtInitialize(argv[0], 'Msh', NULL, 0, &argc, argv);
- n = 0;
- XtSetArg(args[n], XmNallowShellResize, True); n++;
- XtSetValues(parent, args, n);
-
- n = 0;
- XtSetArg[args[n], XmNwidth, 700); n++;
- XtSetArg[args[n], XmNheight, 700); n++;
- XtSetArg[args[n], XmNshadowThickness, 4) ; n++;
- ......
- main_window = XmCreateMainWindow(parent, "main", args, n);
-
- XtManageChild(main_window);
-
- n = 0;
- XtSetArg(args[n], XmNtopAttachment, XmATTACH_POSITION); n++;
- XtSetArg( ........
- ........
-
- form = XmCreateForm(main_window, 'form', args, n);
- XtManageChild(form);
-
- XtRealiizeWidget(parent)
- XtMainloop()
-
-
-
-
-
- --
- ===============================================================================
- Koh Eng San Tel: (65) 3306-779
- Systems Programmer Fax: (65) 3306-786
- Economic Development Board Internet Id: edbis@solomon.technet.sg
- of Singapore
-
- Have a GREAT Day!!!
- ==============================================================================
-