Guidance
指路人
g.yi.org
Guidance Forums / Rapid-Q Basic / Menu Separator

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Menu Separator
#819
Posted by: 2003-03-15 10:43:31
How can I make a separator in a QMenuItem? Thanks.
Message2. Re: Menu Separator
#820
Posted by: OvalX 2003-03-15 13:23:57
Try this little example:
DIM Form AS QForm

DIM MainMenu AS QMainMenu
   MainMenu.Parent = Form
  
   DIM Item1 AS QMenuItem
      Item1.Caption = "&File"
  
   DIM Item11 AS QMenuItem
      Item11.Caption = "&New"
      Item11.ShortCut = "Ctrl+N"
   ' This is menu separator
   DIM Separator1 AS QMenuItem
      Separator1.Caption = "-"
     
   DIM Item12 AS QMenuItem
      Item12.Caption = "&End"
      Item12.ShortCut = "Esc"
    
     MainMenu.AddItems Item1
     Item1.AddItems Item11, Separator1, Item12

Form.Center
Form.ShowModal
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥1,800.00 ·
 
 
¥489.00 ·
 
 
¥288.00 ·
 
 
¥908.00 ·
 
 
¥748.00 ·
 
 
¥264.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0