north widget

LiveCode Builder is a language for extending LiveCode's capabilities, creating new object types as Widgets, and libraries that access lower-level APIs in OSes, applications, and DLLs.

Moderators: LCMark, LCfraser

Post Reply
bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3990
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

north widget

Post by bn » Wed Jul 12, 2017 3:24 pm

this is a widget that indicates north like a compass or direction indicator.
northWidget.png
northWidget.png (12.39 KiB) Viewed 5267 times
Might be usefull if displaying a map to help in orientation.

It is optionally interactive (user can "dial" the needle), displays optionally letter "N" for North either at top or at the tip of the needle. Needle color and ellipse color and text font can be set via Properties Inspector.

It is tested with LC 8.1.5 and LC 9 DP 2 and DP7.

If you compiled and installed "north" using the "Extension Builder" for LC 8 series and want to use it in LC 9 DP you have to uninstall the widget (using Extension Manager) and recompile/reinstall the widget. The same applies the other way around, i.e. installed in LC 9 and you then want to use it in LC 8.

This is the .lcb file you use to compile the widget.
north_0_1_0.lcb.zip
(4.74 KiB) Downloaded 335 times
Kind regards
Bernd

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: north widget

Post by LiveCode_Panos » Wed Jul 12, 2017 5:10 pm

Very nice, thanks Bernd :)

Best,
Panos
--

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3990
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: north widget

Post by bn » Fri Dec 21, 2018 11:14 am

Due to a bug fix in livecode builder for ATAN2 in LC 9.0.2 the interactive "turns" of the needle where inverted.

This is a version that works in LC 8.x.x and 9.x.x

Instal the .lce file via "Extension Manager" either using LC 8.x or 9.x. (LC 9.x will automatically recompile the widget)
The source code will be in your "My Livecode" folder "Extensions" "community.livecode.berndn.north.0.0.3" folder the "north_0_0_3.lcb" file.

Kind regards
Bernd

community.livecode.berndn.north.0.0.3.lce.zip
(16.36 KiB) Downloaded 253 times

Post Reply

Return to “LiveCode Builder”