home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / windows / x / motif / 5888 < prev    next >
Encoding:
Text File  |  1992-08-29  |  2.2 KB  |  72 lines

  1. Newsgroups: comp.windows.x.motif
  2. Path: sparky!uunet!srg!scurry
  3. From: scurry@srg.af.mil (Scott Curry)
  4. Subject: Question: resizing of resources
  5. Organization: ARINC Research, Corp.
  6. Date: Fri, 28 Aug 92 13:17:23 GMT
  7. Message-ID: <1992Aug28.131723.24171@srg.srg.af.mil>
  8. Followup-To: scurry%srg@uunet.uu.net
  9. Keywords: resize resources ODTI need some help with a particular Motif problem.  
  10. Sender: scurry@pansy (Scott Curry)
  11. Lines: 59
  12.  
  13.  
  14.  
  15.  
  16. Hopefully, I can explain the problem clearly.  
  17.  
  18. What I have:
  19. *    running SCO Unix 3.2 with ODT 1.0
  20.  
  21. *    a form with several children attached to it such as label gadgets, 
  22. textboxes, listboxes, etc.
  23.  
  24. *     each of the children are sized and position according to a percentage.
  25.  
  26. *    These children are attached by position and the form is 
  27. proportionally resizable.
  28.  
  29.  
  30. What I want:
  31. *    each textbox to be sized according to the number of characters expected.
  32. for instance, if I have a textbox expecting 20 characters, I want the textbox
  33. to be only 20 characters long.  I need to calculate this size on the fly.
  34.  
  35. *    all children of the form except the textboxes to be resized according
  36. to the correct proportions of the form when it is resized.  The textbox 
  37. children should remain the same size regardless of the form's size to
  38. support the above.
  39.  
  40.  
  41. So given the above, is there a way to do this with Motif?  Second, is there an
  42. easy way to do this?  
  43.  
  44. Any help, guidance, comments, RTFM info, code frags, etc. would be most
  45. appreciated.  Your welcome to post or email responses.
  46.  
  47. If there is interest, I will post a summary of responses.
  48.  
  49. Thanks in advance,
  50.  
  51. Scott
  52.  
  53.  
  54. please try any of the email addresses below:
  55.  
  56. scurry%srg@uunet.uu.net
  57. scurry@srg.af.mil
  58. uunet!srg!scurry
  59.  
  60.  
  61.  
  62. -- 
  63. ***Disclaimer: The above are solely my own opinions, NOT of Arinc Research.  *
  64. * Scott Curry, Analyst              Email: scurry%srg@uunet.uu.net         *
  65. * Phone:  (410)266-4940          Smail: 2551 Riva Road  MS 5-230     *
  66. * Fax:    (410)573-3024                        Annapolis, MD  21401-7461    *
  67. --
  68. ***Disclaimer: The above are solely my own opinions, NOT of Arinc Research.  *
  69. * Scott Curry, Analyst              Email: scurry%srg@uunet.uu.net         *
  70. * Phone:  (410)266-4940          Smail: 2551 Riva Road  MS 5-230     *
  71. * Fax:    (410)573-3024                        Annapolis, MD  21401-7461    *
  72.