Search found 121 matches

by paulclaude
Sat Mar 13, 2021 2:56 pm
Forum: Talking LiveCode
Topic: Hide custom plugins opening Script Editor
Replies: 25
Views: 13291

Re: Hide custom plugins opening Script Editor

Here is a plugin (actually, I did edit the revExample.rev plugin for this purpose) which will detect if the SE is opened or closed. See bottom-left label which is red or green according to the SE state. your plugin seems not able to intercept suspending or resuming of Script Editor. Sorry for the d...
by paulclaude
Mon Mar 08, 2021 10:41 am
Forum: Talking LiveCode
Topic: Hide custom plugins opening Script Editor
Replies: 25
Views: 13291

Re: Hide custom plugins opening Script Editor

When I want a window that sort of acts like a palette but doesn't sit on top of everything, I set the stack to modeless. You don't need to track any other stacks that way. However, it won't consistently appear above other stacks either unless you click on it. In the end, after some experiments (not...
by paulclaude
Sat Mar 06, 2021 6:05 pm
Forum: Talking LiveCode
Topic: Hide custom plugins opening Script Editor
Replies: 25
Views: 13291

Re: Hide custom plugins opening Script Editor

I made a stack named "seTest" with a field in it, and put this in the SE stack script: on mouseEnter put "Entering SE" into fld 1 of stack "seTest" end mouseEnter on mouseLeave put "Leaving SE" into fld 1 of stack "seTest" end mouseLeave These fire. Can you make this work for your Plug-in thing? Cr...
by paulclaude
Sat Mar 06, 2021 3:28 pm
Forum: Talking LiveCode
Topic: Hide custom plugins opening Script Editor
Replies: 25
Views: 13291

Re: Hide custom plugins opening Script Editor

i just need to hide plugins when the script editor window comes to the foreground, so i need to identify the state changes of the window itself Hi Paul, Here is a plugin (actually, I did edit the revExample.rev plugin for this purpose) which will detect if the SE is open or closed. See bottom-left ...
by paulclaude
Thu Mar 04, 2021 10:13 am
Forum: Talking LiveCode
Topic: Hide custom plugins opening Script Editor
Replies: 25
Views: 13291

Re: Hide custom plugins opening Script Editor

Been a long time since I used the "idle" message, but might this do: in the card script: on idle if the mouseLoc is within the rect of this cd then showYourPlugIns else hideYourPlugIns end idle This does nothing for you if you merely want to glance at the contents of the SE as opposed to actually w...
by paulclaude
Tue Mar 02, 2021 6:50 pm
Forum: Talking LiveCode
Topic: Hide custom plugins opening Script Editor
Replies: 25
Views: 13291

Re: Hide custom plugins opening Script Editor

I have some personal plugins that, if opened, stay on front when I open the script editor, covering a part of it. Is there any way to hide them exactly as happens with the original Livecode palettes? So now I am not sure what you are asking. If the plug-ins are visible, and you open the SE, what do...
by paulclaude
Tue Mar 02, 2021 5:51 pm
Forum: Talking LiveCode
Topic: Hide custom plugins opening Script Editor
Replies: 25
Views: 13291

Re: Hide custom plugins opening Script Editor

Do the stacks really need to be palettes? Yes, they are custom plugins, they have to intercept messages and avoid going to the foreground Hi. Wouldn't it be simpler to show your plug-in stacks only when the visible of stack "newRevScriptEditor" is "false", and hide them when it is "true"? Craig No,...
by paulclaude
Tue Mar 02, 2021 3:02 pm
Forum: Talking LiveCode
Topic: Hide custom plugins opening Script Editor
Replies: 25
Views: 13291

Re: Hide custom plugins opening Script Editor

Well, that certainly looks simpler than the code the IDE is actually using (*IF* this is the code, I *believe* it is :P ) on revSEDelayTogglePalettes pShow lock screen local tOldLock put the lockMessages into tOldLock lock messages if pShow then if the iconic of stack revIDEPaletteToStackName("menu...
by paulclaude
Tue Mar 02, 2021 1:26 pm
Forum: Talking LiveCode
Topic: Hide custom plugins opening Script Editor
Replies: 25
Views: 13291

Re: Hide custom plugins opening Script Editor

I found a really inelegant but effective solution: on revEditScript send "hide stack " & quote & "Stack Collector" & quote to stack "Stack Collector" in 1 millisecond pass revEditScript end revEditScript on revResumeStack put the openStacks into op if line 1 of op contains "revNewScriptEditor" then ...
by paulclaude
Tue Mar 02, 2021 1:06 pm
Forum: Talking LiveCode
Topic: Hide custom plugins opening Script Editor
Replies: 25
Views: 13291

Re: Hide custom plugins opening Script Editor

Not knowing in what way your using these (i.e., interacting with them, don't require interaction, etc), I'd probably say one of several things: 25 1. If you need to be able to interact with it on occasion, set the plugin's mode to modeless, which should allow the SE to be above it when your in the ...
by paulclaude
Tue Mar 02, 2021 12:07 pm
Forum: Talking LiveCode
Topic: Hide custom plugins opening Script Editor
Replies: 25
Views: 13291

Hide custom plugins opening Script Editor

Hello,
I have some personal plugins that, if opened, stay on front when I open the script editor, covering a part of it. Is there any way to hide them exactly as happens with the original Livecode palettes?
Thanks....
by paulclaude
Mon May 27, 2019 8:16 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Field number in a group
Replies: 27
Views: 18577

Re: Field number in a group

Once again, there is a direct function: the number. If you wish to have the number of a fld relative to its enclosing group then this is 1 + the difference of its number to the number of fld 1 of this enclosing group. So function getFldNumberInGroupByID pID return 1 - (the number of fld 1 of the ow...
by paulclaude
Sun May 26, 2019 12:54 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Field number in a group
Replies: 27
Views: 18577

Re: Field number in a group

I agree with Jacque, your english is fine, but unless it is a top government secret or something, please post what exactly you are trying to accomplish. No top government secrets, Bogs, simply I wrote many applications in these years and, sometimes, I happened to want to refer to the number of a fi...
by paulclaude
Sat May 25, 2019 4:27 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Field number in a group
Replies: 27
Views: 18577

Re: Field number in a group

Assume you have a group "main" containing a group "test" that contains fld id 1101 (layer 1), fld id 1012 (layer 2), btn a (layer 3), fld id 1001 (layer 4). Now use the single function function getFldNumberInGroup pNr return 1 - (the number of fld 1 of the owner of fld id pNr) \ + (the number of fl...
by paulclaude
Sat May 25, 2019 2:09 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Field number in a group
Replies: 27
Views: 18577

Re: Field number in a group

I can do it because I have only fields in the group, of course. Many controls (in the group) of different type with variable order make the trick useless. If you use the keyword "control" rather than "field" it will work for any object. Hi Jaqueline, Thank you for your advice., but maybe you haven'...