this is a widget that indicates north like a compass or direction indicator.
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.
Kind regards
Bernd
north widget
-
- Livecode Staff Member
- Posts: 818
- Joined: Fri Feb 06, 2015 4:03 pm
Re: north widget
Very nice, thanks Bernd
Best,
Panos
--
Best,
Panos
--
-
- VIP Livecode Opensource Backer
- Posts: 4003
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: north widget
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
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