2022 June Release

Enum COOSYSTEM@1.1:ActionCode Permanent link for this heading

Defines the possible action codes for methods that edit properties with a property page. You can integrate your own controls in the Property Editor dialog with an action. When this action is called by the Property Editor, it passes an action code to the action, that determines the task the control should complete.

Additional Information

Values Permanent link for this heading

Name

Value

Description

ACTCODE_CREATE

0

Create

The control should be created but not displayed. At this time the default sizes can be defined by the control. The window handle of the control must be returned to the Property Editor by the control as parameter. The control is displayed by the Property Editor independently. This is done when the respective property page is activated.
If your control needs much data for initialization, you should perform the initialization when the size of the control is changed for the first time. Consider that the first parameter is either a property definition, an object class, or a display item.

ACTCODE_SAVE

1

Save

After all data was entered correctly, the action Save is invoked. In this action the control should save the properties of the object. If the function Edit Common Properties is executed, the Property Editor method with the action Save is invoked for all objects, whose properties should be modified.
The action ACTCODE_SAVE is called only for properties on the object level. Properties in compound types are only asked for their values with ACTCODE_GETVALUE.

ACTCODE_CLOSE

2

Close

For Close the window is to be removed. This action can be (and mainly is) called only after closing the Property Editor window.

ACTCODE_REFRESH

3

Refresh

Refresh the window.

ACTCODE_ISDIRTY

4

Is Dirty?

Data is changed?

ACTCODE_ISVALID

5

Is Valid?

Data is consistent?

ACTCODE_SETFOCUS

6

Set Focus

The action SetFocus demands that the focus should be set to a certain property (e.g. because it was opened from a document via an OLE link). Specify the path to the property to be focused in the sixth parameter (attrpath). A path is only necessary, if the property is part of a compound type. SetFocus can also be called by software components that want to focus a control in the Property Editor explicitely.

ACTCODE_ATTRCHANGED

7

Property Changed

The action AttrChanged is used to signal a control that the property was modified in another method. The control should read the property anew in this case. You should use the transaction you get during the method call in this case.

ACTCODE_GETVALUE

20

Get Value of Control

ACTCODE_SETVALUE

21

Set Value of Control

ACTCODE_GETCONTROL

22

Get Control

ACTCODE_GETOLEITEM

23

Save OLE Item

ACTCODE_SAVECOMPLETED

24

Save Completed

ACTCODE_EDITCOMPLETED

25

Edit Completed

ACTCODE_GETTOOLBAR

26

Get Toolbar

ACTCODE_CALLMETHOD

27

Call Method

ACTCODE_GETMENU

28

Get Menu

ACTCODE_RESIZE

29

Control Size Request

ACTCODE_GETSELECTION

30

Get Selected Values

ACTCODE_SETSELECTION

31

Set Object Selection

ACTCODE_FRAME

32

Frame

ACTCODE_PLACE

33

Define Area Currently Visible

ACTCODE_SCROLL

34

Scroll Request to Container

ACTCODE_RENDERSTART

35

Initialization Before Iterative Calls of ACTCODE_RENDER

ACTCODE_RENDER

36

Render to Device Context for Printing

ACTCODE_RENDEREND

37

Called After Last ACTCODE_RENDER

ACTCODE_UPDATEVERB

38

Update Verb

ACTCODE_GETRANGE

39

Get Valid Data Range

ACTCODE_SETRANGE

40

Set Valid Data Range

ACTCODE_GETPROPERTY

41

Get Control Property

ACTCODE_SETPROPERTY

42

Set Control Property