TxdsControlsStates Component <HowTo> < Buy Source Code> < Download Component> < www.xdenser.com>

Description

TxdsControlsStates is Delphi Component to store states of controls and components on your form to recall later during run-time.

Let's consider follwoing scenario for example:

You have to disable some controls on your form and enable others according to user input. What do you do in that case? Someting like this:

case <State> of
<State1>:begin
...
series of assignments;
...
end;
<State2>:begin
...
series of assignments;
...
end;
...
<StateN>:begin
...
series of assignments;
...
end;
end

or

if <CheckState1> then begin
...
series of assignments;
...
end else
if <CheckState2> then begin
...
series of assignments;
...
end else
... if <CheckStateN> then begin
...
series of assignments;
...
end

or something similar divided into several event handlers.

TxdsControlsStates allows you to eliminate that series of assignments and replace it with single method call to

TxdsControlsStates.RestoreState(StateName:String);

The set of Component Properties and States are defined during design-time in property editor.

<HowTo> < Buy Source Code> < Download Component> < www.xdenser.com>