Recent

Author Topic: a form always in background and a form on the top... [solved]  (Read 12019 times)

gulyone

  • Guest
Re: a form always in background and a form on the top...
« Reply #15 on: August 16, 2012, 09:44:31 pm »
try this :

 uses embededform_unit;

  Screen.MoveFormToZFront(MainForm);
  Screen.MoveFormToZFront(MyEmbededForm1);


supposing uve designed a TMyEmbededForm1, then move it with Left and Top properties

gulyone

  • Guest
Re: a form always in background and a form on the top...
« Reply #16 on: August 16, 2012, 09:49:38 pm »
suppose uve designed a TembededForm ok ?

try this
 
uses embeded_form;

...

  Screen.MoveFormToZFront(MainForm); //MainForme to Z order Front
  Screen.MoveFormToZFront(EmbededForm); //Embeded Form ...
  EmbededForm.Left:= xxx;
  EmbededForm.Top:= xxx;

gulyone

  • Guest
Re: a form always in background and a form on the top...
« Reply #17 on: August 16, 2012, 09:52:44 pm »
(meanwhile I also tried
"with form1 do with current_form do setzorder(true);" but it did not work all the same!!"

the Screen global Object Manipulates and commands all CustomForms and descendants created with CreateForm ! got this concept ??

Blue1987

  • Full Member
  • ***
  • Posts: 165
Re: a form always in background and a form on the top...
« Reply #18 on: August 17, 2012, 01:01:18 am »
thank you for the advices and the pascal lesson :D

this solved my issue and taught me something.


sincerely,
Paolo

gulyone

  • Guest
Re: a form always in background and a form on the top... [solved]
« Reply #19 on: August 17, 2012, 01:12:14 am »
NP you are very welcome sir :)

 

TinyPortal © 2005-2018