Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Activate a form from the stack
#1
Hi,

In a stack of created forms  (7 of them).
How do I make nr 3 the active form?
Reply
#2
Calling method Show() of any IWForm makes it the active one.

You can use one of many IWApplication methods do obtain a reference to that existing form. For instance:

FindFormByName(const AFormName: string), like:

var
myForm: TIWForm;
begin
myForm := WebApplication.FindFormByName('MyForm') as TIWForm;
if Assigned(myForm) then
myForm.Show();
end;

You can also use the ActiveForms[index] property directly if you know the position of the form that you need.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)