home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / fj / maillis / xwindow / 18992 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  1.4 KB

  1. Path: sparky!uunet!europa.asd.contel.com!paladin.american.edu!howland.reston.ans.net!sol.ctr.columbia.edu!spool.mu.edu!sdd.hp.com!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
  2. From: rvt@pandora.cs.wayne.edu (Rahul V. Tikekar)
  3. Newsgroups: fj.mail-lists.x-window
  4. Subject: XView question: Menu Buttons
  5. Message-ID: <1992Dec30.211026.19303@sm.sony.co.jp>
  6. Date: 30 Dec 92 21:10:26 GMT
  7. Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
  8. Distribution: fj
  9. Organization: Wayne State University, Detroit
  10. Lines: 34
  11. Approved: michael@sm.sony.co.jp
  12.  
  13. Date: 30 Dec 92 18:21:57 GMT
  14. Message-Id: <1992Dec30.182157.27819@cs.wayne.edu>
  15. Newsgroups: comp.windows.x
  16. Sender: xpert-request@expo.lcs.mit.edu
  17.  
  18. A question on XView and menu buttons. How do I get the
  19. the triangle on the menu button of a panel to point to
  20. the right? Currently, it points down.
  21.  
  22. Here is a little of my code (in C++) on a SPARC.
  23.  
  24. // first create the menu
  25. Menu menu = (Menu)xv_create (NULL, MENU,
  26.     MENU_ACTION_ITEM,    "item1", proc1,
  27.     MENU_ACTION_ITEM,    "item2", proc2,
  28.     NULL);
  29.  
  30. // create panel button and attach the menu to it
  31. (void)xv_create (panel3, PANEL_BUTTON,
  32.     PANEL_LABEL_STRING,    "Menu...",
  33.     PANEL_ITEM_MENU,    menu,
  34.     NULL);
  35. .
  36. .
  37. .
  38. .
  39. The panel is created with the menu button. However the
  40. triangle on the menu button points down (the menu is displayed
  41. below the button). I want the menu displayed to the right of
  42. the button.
  43.  
  44. I will appreciate any help.
  45.  
  46. -- Rahul
  47.