Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setup IWGrid visibility in OnAsyncClick event
#1
Hi

Simple bug in IW15.1.4, but very annoying.
OnAsyncClick Event:
                        IWGrid1.visible: = not IWGrid1.visible;
... and the position of the Grid is moving!
(The position is correct for the OnClick event.)

Other components have no such error.

Error presentation:
http://95.140.46.153/gridvisibletest


Can you help me with this?


Best regards
brsoft

Code:
type
  TIWForm1 = class(TIWAppForm)
    IWGrid1: TIWGrid;
    IWButton1: TIWButton;
    IWButton2: TIWButton;
    procedure IWButton1AsyncClick(Sender: TObject; EventParams: TStringList);
    procedure IWButton2Click(Sender: TObject);
  public
  end;

implementation
{$R *.dfm}

procedure TIWForm1.IWButton1AsyncClick(Sender: TObject; EventParams: TStringList);
begin
IWGrid1.Visible:=not IWGrid1.Visible;
end;

procedure TIWForm1.IWButton2Click(Sender: TObject);
begin
IWGrid1.Visible:=not IWGrid1.Visible;
end;



Attached Files
.zip   gridvisibletest.zip (Size: 5.37 KB / Downloads: 0)
Reply


Messages In This Thread
Setup IWGrid visibility in OnAsyncClick event - by brsoft - 09-07-2019, 09:27 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)