Bring a stack to front when it is already open

Phil Davis phil at pdslabs.net
Sat Oct 26 15:58:18 EDT 2024


Oops - sorry about the run-on words. Weird.

    put the style of stack "untitled 1" into x
    set the style of stack "untitled 1" to "palette"
    set the style of stack "untitled 1" to x


On 10/26/24 12:48 PM, Phil Davis via use-livecode wrote:
> Hi Bob,
>
> This may answer your need but isn't very elegant:
>
>    *put*thestyleofstack"untitled 1"intox
>    *set*thestyleofstack"untitled 1"to*palette*
>    *set*thestyleofstack"untitled 1"tox
>
> Phil Davis
>
>
> On 10/25/24 9:38 AM, Bob Sneidar via use-livecode wrote:
>> This may seem simple, but for some reason it’s not working. I have a 
>> Views function that can open multiple windows in one click, but 
>> sometimes stacks can be obscured by others, so I have a Modules Menu 
>> where you can select a stack and it will open it.
>>
>> The problem is, Open Stack and Go Card x Of Stack are not bringing 
>> the stack I select to the front, and neither is topLevel which only 
>> works if the stack is not already open.
>>
>> How?
>>
>> Bob S
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>

-- 
Phil Davis
(503) 307-4363




More information about the use-livecode mailing list