SRL Archive - Help

Form Parent


sm0k3

2011-04-23 15:13:07

.. is there any way to set a forms parent as SMART..

Basicly i have a form .
when the form loads, up pops simba with the form over the top .
i need the form to start and simba to stay at the back and the form to open in front of SMART .

Any ideas .. ? :)

Blumblebee

2011-04-23 16:44:45

Freddy1990 has a tutorial about launching a form during runtime, You cannot use the SMART canvas as a parent afaik, but a runtime form is possible. (It's in tutorials for advanced if I recall correctly).

Sex

2011-04-23 16:53:52

That is just a non modal form.

Richard

2011-04-23 19:34:33

SMART does actually have a paint function, which means you can print shapes and text directly onto the client. You can't have functions that allow clicking and such, though, as Simba (PS) doesn't support multithreading which is needed for listeners like mouse clicking.

Coh3n

2011-04-24 01:17:45

From: Blumblebee
Freddy1990 has a tutorial about launching a form during runtime, You cannot use the SMART canvas as a parent afaik, but a runtime form is possible. (It's in tutorials for advanced if I recall correctly).

You can just call

TFrom.Visible := True;
anywhere in your script (assuming you've properly created the form, just kept it invisible).