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

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!gatech!destroyer!wsu-cs!pandora.cs.wayne.edu!rvt
  3. From: rvt@pandora.cs.wayne.edu (Rahul V. Tikekar)
  4. Subject: XView question: Menu Buttons
  5. Message-ID: <1992Dec30.182157.27819@cs.wayne.edu>
  6. Keywords: menu buttons, xview
  7. Sender: usenet@cs.wayne.edu (Usenet News)
  8. Reply-To: rvt@pandora.cs.wayne.edu (Rahul V. Tikekar)
  9. Organization: Wayne State University, Detroit
  10. Date: Wed, 30 Dec 1992 18:21:57 GMT
  11. Lines: 31
  12.  
  13. A question on XView and menu buttons. How do I get the
  14. the triangle on the menu button of a panel to point to
  15. the right? Currently, it points down.
  16.  
  17. Here is a little of my code (in C++) on a SPARC.
  18.  
  19. // first create the menu
  20. Menu menu = (Menu)xv_create (NULL, MENU,
  21.     MENU_ACTION_ITEM,    "item1", proc1,
  22.     MENU_ACTION_ITEM,    "item2", proc2,
  23.     NULL);
  24.  
  25. // create panel button and attach the menu to it
  26. (void)xv_create (panel3, PANEL_BUTTON,
  27.     PANEL_LABEL_STRING,    "Menu...",
  28.     PANEL_ITEM_MENU,    menu,
  29.     NULL);
  30. .
  31. .
  32. .
  33. .
  34. The panel is created with the menu button. However the
  35. triangle on the menu button points down (the menu is displayed
  36. below the button). I want the menu displayed to the right of
  37. the button.
  38.  
  39. I will appreciate any help.
  40.  
  41. -- Rahul
  42.  
  43.  
  44.