Determines if the ribbon redraws when a property is set.

Usage

Set_Property(OLECtrlEntID, "OLE.Redraw", Boolean)

Values

[True | False]

Default: True

Remarks

The Redraw property specifies whether or not the control redraws itself each time a property is changed or a method is called. Since the ribbon control is merged with the parent form (rather than simply a control on the form), multiple calls to properties and methods could cause flickering. Set this property to 0 before calling a block of properties and methods, and then set it back to 1 to redraw the control in its final state to avoid it.

Example

// Temporarily disable redrawing 
Set_Property(@Window:".OLE_RIBBON", "OLE.Redraw", 0) 

//... 
// Do lots of property changes and method calls here... 
//... 

// Now redraw the ribbon 
Set_Property(@Window:".OLE_RIBBON", "OLE.Redraw", 1)
  • No labels