ComponentOne Query 8.0
PerformMainMenuAction Method

Syntax

C1QueryFrame.PerformMainMenuAction(MainMenuItem)

Notes

Method applies to C1QueryFrame control.

Arguments

MainMenuItem specifies the action corresponding to one of the items of the controls’ main menu:

Constant Value

Name Meaning

1 – c1q MenuAddElementary

Add a new elementary condition

2 – c1qMenuAddAdvanced

Add a new advanced elementary condition

3 – c1qMenuAddComplex

Add a new complex condition

4 – c1qMenuDeleteCurrent

Delete current condition

5 – c1qMenuAddResField

Add a new result field

6 – c1qMenuMoveForward

Move current condition forward

7 – c1qMenuMoveBackward

Move current condition backward

Return Value

None

Description

This method changes the control’s contents, adds, deletes and moves items programmatically, simulating menu selection.

After adding, removing and modifying query items, you must call the Render method to update display.

See Also

Accessing and Modifying Query Items

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback