TuilProxy examples

Do you have any examples of using a TuilProxy. I can use it to disable items, but can't find a way to check the "secure" status.

Ted

It's unclear what you mean with "secure status".

Typically, you'd use TUILProxy by implementing its event handlers:


procedure TForm1.uilProxy1SetEnabled(Sender: TObject);
begin
  if (Sender as TUILProxy).Enabled then
    mycomponent.SomeProperty := SomeValue
  else
    mycomponent.SomeProperty := OtherValue;
end;

and similar for OnSetVisible, OnSetReadOnly.

Thanks for the example. I thought I might need to type case it.

Ted