Page 1 of 1

north widget

Posted: Wed Jul 12, 2017 3:24 pm
by bn
this is a widget that indicates north like a compass or direction indicator.
northWidget.png
northWidget.png (12.39 KiB) Viewed 5409 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 346 times
Kind regards
Bernd

Re: north widget

Posted: Wed Jul 12, 2017 5:10 pm
by LiveCode_Panos
Very nice, thanks Bernd :)

Best,
Panos
--

Re: north widget

Posted: Fri Dec 21, 2018 11:14 am
by bn
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 260 times