home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / motif / 8275 < prev    next >
Encoding:
Text File  |  1992-12-31  |  1.5 KB  |  56 lines

  1. Newsgroups: comp.windows.x.motif
  2. Path: sparky!uunet!spool.mu.edu!yale.edu!jvnc.net!newsserver.technet.sg!edbis
  3. From: edbis@solomon.technet.sg (Koh Eng San)
  4. Subject: Help: Resizing widgets
  5. Message-ID: <C04Bq4.KF3@newsserver.technet.sg>
  6. Sender: news@newsserver.technet.sg
  7. Nntp-Posting-Host: solomon.technet.sg
  8. X-Newsreader: TIN [version 1.1 PL8]
  9. Date: Thu, 31 Dec 1992 09:58:51 GMT
  10. Lines: 44
  11.  
  12. Happy New Year Everybody,
  13.  
  14. I was writing a program and couldn't get the fForm Widget to maximise with
  15. the main window.  Would appreciate if someone can help me out. Below is part
  16. of the program.
  17.  
  18. parent = XtInitialize(argv[0], 'Msh', NULL, 0, &argc, argv);
  19. n = 0;
  20. XtSetArg(args[n], XmNallowShellResize, True); n++;
  21. XtSetValues(parent, args, n);
  22.  
  23. n = 0;
  24. XtSetArg[args[n], XmNwidth, 700); n++;
  25. XtSetArg[args[n], XmNheight, 700); n++;
  26. XtSetArg[args[n], XmNshadowThickness, 4) ; n++;
  27.  ......
  28. main_window = XmCreateMainWindow(parent, "main", args, n);
  29.  
  30. XtManageChild(main_window);
  31.  
  32. n = 0;
  33. XtSetArg(args[n], XmNtopAttachment, XmATTACH_POSITION); n++;
  34. XtSetArg( ........
  35.  ........
  36.  
  37. form = XmCreateForm(main_window, 'form', args, n);
  38. XtManageChild(form);
  39.  
  40. XtRealiizeWidget(parent)
  41. XtMainloop()
  42.  
  43.  
  44.  
  45.  
  46.  
  47. --
  48. ===============================================================================
  49. Koh Eng San                Tel: (65) 3306-779
  50. Systems Programmer            Fax: (65) 3306-786
  51. Economic Development Board        Internet Id: edbis@solomon.technet.sg
  52. of Singapore
  53.  
  54.             Have a GREAT Day!!!
  55. ==============================================================================
  56.