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.
window on top
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
window on top
Deving on WinVista Home Prem. SP2 32 bit. Using LiveCode 4.6.1 Pro Build 1392
Re: window on top
Hi Jesse,
Once a stack is open already, the go command brings a stack to front.
Try something like this:
Best regards,
Mark
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
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: window on top
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?

I clicked the row in the data grid and the new window opened but still feel behind the datagrid. any other ideas?
Deving on WinVista Home Prem. SP2 32 bit. Using LiveCode 4.6.1 Pro Build 1392
Re: window on top
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.
I was using mouseDoubleDown but should have been using mouseDoubleUp.

Deving on WinVista Home Prem. SP2 32 bit. Using LiveCode 4.6.1 Pro Build 1392
Re: window on top
Hi there i am interested why you illustrated the code above like you have.Mark wrote:Hi Jesse,
Once a stack is open already, the go command brings a stack to front.
Try something like this:
Best regards,Code: Select all
on mouseDoubleUp send "openInFront" to me in 0 millisecs end mouseDoubleUp on openInFront go stack "Whatever the name is" end openInFront
Mark
Why cant that just be:
Code: Select all
on mouseDoubleUp
go stack "Whatever the name is"
end mouseDoubleUp
Kind regards Gary.
Kind Regards
Gary
https://www.doobox.co.uk
Gary
https://www.doobox.co.uk