Focus on nothing & Select empty problem

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm

Focus on nothing & Select empty problem

Post by townsend » Thu Jul 19, 2012 8:05 pm

This may not be possible, but I thought I'd ask before I give up.

I've got these popup reminder messages that happen occasionally.
Basically, a sub-stack opens with the stack size set the the size of a text field.
But sometimes while the user is typing away in a text field on the main stack,
one of these popup reminder sub-stack messages happen,
and focus goes to the reminder sub-stack window,
and suddenly the user is no longer able to continue typing,
because the main stack has lost focus to the sub-stack.

I've tried to no avail:

Code: Select all

    select empty
    set the cantSelect of this stack to true
    focus on nothing
So-- is there any way have this sub-stack open, while retaining focus in the main stack?

Maybe-- is it possible to save a focus point in the main stack before the sub-stack opens,
then have the sub-stack return focus to that saved main stack focus point as soon as it opens?

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Focus on nothing & Select empty problem

Post by BvG » Fri Jul 20, 2012 1:57 pm

open the substack as palette.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm

Re: Focus on nothing & Select empty problem

Post by townsend » Fri Jul 20, 2012 3:48 pm

BvG wrote:open the substack as palette.
I was watching this thread yesterday. It got a lot of views-- but no solution.
I had given up on it-- but then today-- I see the answer.

Thanks Björnke!

Code: Select all

palette stack "Message"

Post Reply