
will give you this....

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Thanks Mark,marksmithhfx wrote: ↑Tue Apr 27, 2021 11:24 pm. I did run into one error when hovering over the gears. The version I downloaded from livecodeshare had a .rev extension, but the code is looking for a file with a .livecode extension.
https://postimg.cc/YjhzWjtq
Have a look at the image I just posted with the extension in my dloads folder after using the download button on Livecodeshare. I changed it to .livecode and the gear errors I was having disappeared. Your tool is very useful, and very functional. For myself, I don't expect something in this "helper class" to be completely polished. If it gets the job done...
Code: Select all
--start using stack (specialFolderPath("documents") & "/My LiveCode/plugins/skPopover.livecode")
Code: Select all
start using stack (revEnvironmentUserPluginsPath() & "/skPopover.livecode")
Code: Select all
on openControl
if the environment is "development" then
revIDESubscribe "ideToolChanged"
end if
ideToolChanged
end openControl
Thank you for the tips @mwieder! I'll implement and upload a new version when possible (right now bogged down between my IRL non-coding work and coding projects that are long overdue for said work... but will implement these changes along with some others that have been bothering me with the plugin...mwieder wrote: ↑Sat Jul 03, 2021 4:33 am...fixes the problem.Code: Select all
start using stack (revEnvironmentUserPluginsPath() & "/skPopover.livecode")
...
Initializing the icon on starting the plugin depending on the current tool would fix this:Code: Select all
on openControl if the environment is "development" then revIDESubscribe "ideToolChanged" end if ideToolChanged end openControl
I've redesigned this and uploaded to liveCodeShare: http://livecodeshare.runrev.com/stack/990/SkPopover
Code: Select all
on mouseDown
repeat with x = 1 to the number of groups of this card
if the isSkPopover of group x of this card then hide group x of this card
end repeat
end mouseDown
Thanks @mwieder - that bnGuides thing was probably an accidental leftover/bug from Bernd’s bnGuides plug-in. Certainly not intended. But in the other hand, since the button is invisible and serves only to store the behaviour script is of no consequence - but will make sure it’s removed!mwieder wrote: ↑Sat Oct 23, 2021 2:50 amNice. Added to my plugins folder now.
Made a couple of changes though:
Button "skPopoverBehavior" still has a bnGuides button as its behavior script. Obviously a relic of some object placement - its lack is mostly harmless, but it shows up as a red flag in the Project Browser, so I deleted the behavior.
I unchecked the selectGroupedControls checkbox for the prototypePopover group. This makes it possible to move the popover once it's been copied to the topstack. Did the same for group "skRadial" in stack "skRadial"
Stam, if you get round to it I'd be interested in trying it out.
Hi Mark, i had some time spare (well, more like i was trying to avoid other workmarksmithhfx wrote: ↑Sat Oct 23, 2021 5:44 pmStam, if you get round to it I'd be interested in trying it out.
Best,
Mark