Page 1 of 1

Stack operations (bring to front, activate, etc...)

Posted: Mon Jul 05, 2010 11:02 am
by ale870
Hello,

I need to make a couple of operations in RunRev, but I cannot find any function/message.

1) I need to open a stack and "force" it to arise on top of other RunRev windows. I know I can use "the systemWindow" property, but I don't want to use it, since it will "oblige" my form to stay always in front. I simply need to move it in front (but the users should be able to put it in back).

2) When a stack is open, how can I detect if the user activate/deactivate the form? Better: when the user click on another program (not RunRev program), my stack will be "deactivated". Then if the user click in the stack, such stack will be activated. I need to "grab" those messages.

Thank you for your help!

Re: Stack operations (bring to front, activate, etc...)

Posted: Mon Jul 05, 2010 11:11 am
by Mark
ale870,

Normaly, the "go" command brings a stack to front.

You will want to read about suspend, resume, suspendStack and resumeStack in the dictionary.

Best regards,

Mark

Re: Stack operations (bring to front, activate, etc...)

Posted: Mon Jul 05, 2010 4:13 pm
by ale870
Thank you (resume and resumeStack are the ones I was looking for!).

About "go": it seems sometimes the stack does not come in front. Is there any function to "force" it? In Delphi I use the function "BringToFront".

Re: Stack operations (bring to front, activate, etc...)

Posted: Mon Jul 05, 2010 4:24 pm
by Mark
ale870,

Go should work. Is there anything non-standard about your stack?

Best,

Mark

Re: Stack operations (bring to front, activate, etc...)

Posted: Mon Jul 05, 2010 4:29 pm
by ale870
the application I made is quite complex, I can say that, from my stack, I'm runnning an external main stack (not a substack).

Re: Stack operations (bring to front, activate, etc...)

Posted: Mon Jul 05, 2010 4:53 pm
by Mark
Sorry, ale870 , but that's insufficient info. Is there anything about that stack that's different from a standard stack window? Can you say anything about those cases when the go command doesn't work as desired?

Mark

Re: Stack operations (bring to front, activate, etc...)

Posted: Mon Jul 05, 2010 4:58 pm
by ale870
There is nothing "abnormal". But I will make a couple of tests to give you more info.
Thank you!