Hi
I'm using TIWCGJQLockIndicator, but I can't create it in RunTime.
I'm trying to use only one for the entire system, so if i change the loading GIF, I don't have to change in all screens.
also, can I link it to any form property?
Att. Futura.
procedure TIWForm1.IWAppFormCreate(Sender: TObject);
begin
With TIWCGJQLockIndicator.Create(Self) do
begin
Name:= 'IWCGJQLockIndicator1'; // <- add this line
Indicators.Add;
AsyncIndicatorIndex := 0;
SubmitIndicatorIndex := 0;
end;
end;
IWCGJQLockIndicator.Indicators.Add
procedure TIWForm1.IWAppFormCreate(Sender: TObject);
var
LItem: TIWCGJQLockIndicatorItem;
begin
With TIWCGJQLockIndicator.Create(Self) do
begin
Name:= 'IWCGJQLockIndicator1';
LItem:= Indicators.Add;
LItem.ImageSetting.Image:= jqlidiLoading17;
LItem.ImageSetting.Alignment:= jqliiaTop;
AsyncIndicatorIndex := 0;
SubmitIndicatorIndex := 0;
end;
end;