home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / windows / x / 16627 < prev    next >
Encoding:
Text File  |  1992-09-13  |  1.6 KB  |  52 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!dankoski
  3. From: dankoski@leland.Stanford.EDU (Paul Dankoski)
  4. Subject: Xview Pinnable Windows.
  5. Message-ID: <1992Sep14.035954.19010@leland.Stanford.EDU>
  6. Keywords: Xview, SUN
  7. Sender: news@leland.Stanford.EDU (Mr News)
  8. Organization: Stanford University
  9. Distribution: ba
  10. Date: Mon, 14 Sep 92 03:59:54 GMT
  11. Lines: 39
  12.  
  13.  
  14.   Hello, I am looking for anyone with experience with
  15. pinnable menus in XView.  I am trying to modify the
  16. menu_dir2.c file in the back of the XView Programming
  17. Manual (3rd Edition).  Here's the problem:
  18.  
  19.  
  20.   When I add about 60 items to a pullright menu it will format
  21. the pop-up menu fairly nicely (in 3 columns).  But when I pin 
  22. the same menu it comes out in only a single column (which happen to 
  23. run off the edge of my screen).   I have tried setting the 
  24. attribute MENU_NCOLS to 3 (say).  And when I pin the menu I 
  25. still get only 1 column of data.
  26.  
  27.    Is this the default behavior?  I realize I could try to 
  28. add a MENU_PIN_PROC to replace the menu_default_pin_proc().  
  29. However, I would prefer not to replace the default behavior if there
  30. is a cleaner solution.  Perhaps the solution has something
  31. to do with the fact that once you pin a window it is
  32. no longer a menu?
  33.  
  34. Thanks for your help,
  35.  
  36. Paul Dankoski
  37.  
  38.  
  39.  
  40. Other points:
  41.    I am attaching the menus to a panel instead of a canvas.  
  42. (I don't think that this should be a problem).
  43.    I have tried setting the attribute MENU_NCOLS to 3 both
  44. before and after I have added the menu_items to the menu
  45. with no impact on the problem.
  46.  
  47. -- 
  48. Paul Dankoski
  49. email: dankoski@isl.stanford.edu
  50. W1: (415) 723-3024
  51. W2: (415) 725-6948
  52.