Page 1 of 1
window on top
Posted: Wed May 25, 2011 4:48 am
by jesse
can anyone explain what code is used to bring a window to the front? I have a data grid row I double click on that opens up a new card
but for some reason i guess because of the double click the new card that opens up actually ends up behind the datagrid window.
how can i bring it to the front when it opens up? I dont need to keep it on top permanently just for the initial period when it opens.
Re: window on top
Posted: Wed May 25, 2011 9:41 am
by Mark
Hi Jesse,
Once a stack is open already, the go command brings a stack to front.
Try something like this:
Code: Select all
on mouseDoubleUp
send "openInFront" to me in 0 millisecs
end mouseDoubleUp
on openInFront
go stack "Whatever the name is"
end openInFront
Best regards,
Mark
Re: window on top
Posted: Thu May 26, 2011 1:48 am
by jesse
Thanks Mark. I tried your suggestion unfortunately it did not work

I clicked the row in the data grid and the new window opened but still feel behind the datagrid. any other ideas?
Re: window on top
Posted: Thu May 26, 2011 3:49 am
by jesse
I was able to figure it out finally, I think... It appears I was using the wrong command in the datagrid script.
I was using mouseDoubleDown but should have been using mouseDoubleUp.

Re: window on top
Posted: Sun May 29, 2011 10:49 pm
by doobox
Mark wrote:Hi Jesse,
Once a stack is open already, the go command brings a stack to front.
Try something like this:
Code: Select all
on mouseDoubleUp
send "openInFront" to me in 0 millisecs
end mouseDoubleUp
on openInFront
go stack "Whatever the name is"
end openInFront
Best regards,
Mark
Hi there i am interested why you illustrated the code above like you have.
Why cant that just be:
Code: Select all
on mouseDoubleUp
go stack "Whatever the name is"
end mouseDoubleUp
Any little tips like this will serve me well in learning live code.
Kind regards Gary.