Jump to content

Recommended Posts

Posted

Hi

I am using a websockets and on receive of a message I would like to show a panel and make it visible. For some reason this is not happening, if the show hide is done from button is OK but not from the event.

The component could be panel of memo etc but make no difference. The contents gets updated but the screen not refreshed.

Appreciate any feedback.

 

procedure TMainForm.sgcWebSocketClient1Message(Connection: TsgcWSConnection;
  const Text: string);
begin
  uniMemo1.lines.add(Text);     //memo get updated with the text but memo stays invisible.
  UniMemo1.Visible := not UniMemo1.Visible;
end;

procedure TMainForm.UniButton1Click(Sender: TObject);
begin
  uniMemo1.lines.add('Button clicked');
  UniMemo1.Visible := not UniMemo1.Visible;
end;
 

Regards

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...