Guidance
指路人
g.yi.org
Guidance Forums
/
Rapid-Q Basic
/ Menu Separator
最新
搜索
论坛
Reginald Rexx
STC(宏晶)单片机与电路设计
wxWidgets (wxWindows) in C++
奇瑞QQ车友论坛
生活信息交流与学习角
质量与可靠性
Rapid-Q Basic
FreeBasic
Reginald
Forum
Examples
RapidQ
Forum
Bugs
Examples
Resource
RQ Doc
RQ Intro
System
LeonAutoBackup
Home
Software
App
Lib
RapidQ
Reginald
Upload
Chrononet
回顶部
⇑
Forum List
•
Thread List
•
Refresh
•
New Topic
•
Search
•
Previous
•
Next
1
1.
Menu Separator
#819
Posted by:
2003-03-15 10:43:31
How can I make a separator in a QMenuItem? Thanks.
2.
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
1
掌柜推荐
¥1,800.00
·
¥489.00
·
¥288.00
·
¥908.00
·
¥748.00
·
¥264.00
·
©
Sun 2024-11-24
Guidance Laboratory Inc.
Email:
webmaster1
g.yi
.
org
Hits:
0