1. Place a C1MainMenu on the form, right-click New Command, and then select Edit from its context menu. The Link to Command designer appears.
2. In the Link to Command designer, change the following command properties.
o Text textbox to File
o Name textbox to MenuFile
3. Select ContextMenu from the Create a new command listbox. This will create a
command with a submenu which can be used as a context menu. Select OK, in the Link to Command dialog box. The new C1MainMenu, File will appear.
4. Right-click on the New Command item in the File menu and select Edit from its context menu. Set the properties in the Link to Command designer to the following:
o Text to New
o Name to cmdFileNew
详情请参见文档:
55-Context Menu Tasks.docx
(183.75 KB, 下载次数: 290)
|
|