Jump to content

How to repaint/update elements on ShowModal()


Int3g3r

Recommended Posts

Hello,

I've created a form with a scrollbox. By default the scrollbox is set to "visible:=false", because i need the same form for diffrent tasks.
In the first task i set "visible" property to "true" when i press a button. This works just fine.
In the second task i need to set the "visible" property to true as soon the form gets showed.

I noticed that the forms don't get destroyed on close. Because of that i tried to implement the second behavior like follow example:

 public
    procedure showModalEdit;

procedure TfrmEkScan.showModalEdit;
begin
  self.ShowModal();
  self.scrollbox.Visible := true;
end;

The form gets showed but the scrollbox is not visible. Can someone explain me why ?
Is it possible to redraw/repaint the scrollbox ? I tested most of the default methods but they don't work.

Regards Int3g3r

Link to comment
Share on other sites

46 minutes ago, Int3g3r said:

The form gets showed but the scrollbox is not visible. Can someone explain me why ?
Is it possible to redraw/repaint the scrollbox ? I tested most of the default methods but they don't work.

Hi,

Your case is not very clear to me.

UniMainModule.EnableSynchronousOperation = True or False !?

Link to comment
Share on other sites

×
×
  • Create New...