StrokesPlus.net
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
kassiop  
#1 Posted : Sunday, May 16, 2021 6:37:37 PM(UTC)
kassiop

Rank: Member

Reputation:

Groups: Approved
Joined: 5/16/2021(UTC)
Posts: 10

There is a bug in "Show popup menu" example (ver. 0.4.2.7, Windows 10, x64):

Error: Type 'StrokesPlus.net.Engine.PopupMenuInfoEx' has no constructor that matches the specified arguments
at Script:3:23 -> var popupMenuInfoEx = new PopupMenuInfoEx(sp.GetCurrentMouseCursor());
Rob  
#2 Posted : Monday, May 17, 2021 12:26:16 AM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 952
United States
Location: Tampa, FL

Thanks: 22 times
Was thanked: 274 time(s) in 239 post(s)
GetCurrentMouseCursor returns a string, like "Hand", "Arrow"

You want GetCurrentMousePoint:
Code:
var popupMenuInfoEx = new PopupMenuInfoEx(sp.GetCurrentMousePoint())
kassiop  
#3 Posted : Thursday, May 20, 2021 10:03:32 PM(UTC)
kassiop

Rank: Member

Reputation:

Groups: Approved
Joined: 5/16/2021(UTC)
Posts: 10

Thank you.
GetCurrentMousePoint fixes it.

But this "Show popup menu" example is out of box after installing.
IMHO better fix there too to avoid similar questions.
Rob  
#4 Posted : Friday, May 21, 2021 12:48:04 AM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 952
United States
Location: Tampa, FL

Thanks: 22 times
Was thanked: 274 time(s) in 239 post(s)
I definitely will!
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.