ComponentOne True DBInput Pro 8.0
Redraw Property (TDBCalendar)

Sets/returns whether the control is refreshed when its value changes. The Redraw property is provided so that, when extensive data is being modified, as when using the attribute and drawing styles for example, the drawing capabilities can be turned off to keep the control from flickering.

Syntax

control.Redraw= boolean

Read/Write at run time. Not available at design time.

Values

True - Turn drawing features on (Default).

False - Turn drawing features off.

Remarks

If the Redraw property is set to True, the control automatically refreshes itself each time a property setting is changed.

If set to False, the control will not be repainted until the Redraw property is set back to True. This can speed up your application when performing certain operations, which will prevent the control from flickering.

For example, set the Redraw property to False when making many changes to the control; when you are finished, reset the Redraw property to True. This will refresh all the settings that have changed.

The calendar control has extensive drawing capabilities, changing a few properties would force the control to repaint many times, which means the control will flicker a lot. By setting the Redraw property to False before the drawing-related properties are changed, and then resetting the Redraw property to True once again, this will paint the control just once with the newest changes.

 

 


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

Product Support Forum  |  Documentation Feedback