Skip to content

Dynamic_Update_State - cUIObject

Determines whether or not the image of an object that can be seen will be updated when a change to the object occurs

Type: Property
Access: Read/Write
Data Type: Boolean
Parameters: None

Syntax

Property Boolean Dynamic_Update_State
Access Type Syntax
Read Access: Get Dynamic_Update_State to BooleanVariable
Write Access: Set Dynamic_Update_State to BooleanVariable/Value

Description

The Dynamic_update_state property determines whether or not the image of an object that can be seen will be updated when a change to the object occurs. Each time the data in the visible portion of an object changes, the object will update the screen image of that object. There are often times when mass changes are being performed on the object that this automatic update becomes a problem. The programmer may change the update status of the object during the update process.

procedure do_a lot
    integer old_state
    get dynamic_update_state to old_state
    set dynamic_update_state to false
    send change_object_a lot
    set dynamic_update_state to old_state
end_procedure

When an object's dynamic_update_state is set to true, it will send itself a paint message to ensure that the display correctly reflects the data maintained by the object.

Default is true.