Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
marksmithhfx
- VIP Livecode Opensource Backer

- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Post
by marksmithhfx » Sun Aug 21, 2011 6:24 pm
Is there a command to change the LC cursor/pointer shape? For example, if when hovering over an object you want the cursor to change into a little hand with a pointing finger (such as occurs when you point at the smilies to the right of this edit box

) how would you do that?
2nd question: is there a list of "standard" livecode cursor shapes? (in particular I want to implement a vsplit or hsplit cursor when you hover over a divider between 2 objects).
Thank you
-- Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
-
Klaus
- Posts: 14194
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Sun Aug 21, 2011 6:33 pm
Hi Mark,
check erm... "cursor" in the dictionary and you might be surprised
There are also some more cursors in the LiveCode "Image library" that you can use:
Menu: Development: Image Library -> TAB "Images" -> Pulldown menu "Cursors"
Moving the mouse over these cursors will show you their image IDs as a tooltip!
Best
Klaus
-
marksmithhfx
- VIP Livecode Opensource Backer

- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Post
by marksmithhfx » Sun Aug 21, 2011 11:29 pm
Klaus wrote:Hi Mark,
check erm... "cursor" in the dictionary and you might be surprised
There are also some more cursors in the LiveCode "Image library" that you can use:
Menu: Development: Image Library -> TAB "Images" -> Pulldown menu "Cursors"
Moving the mouse over these cursors will show you their image IDs as a tooltip!
Best
Klaus
Thanks Klaus... I know it sounds stupid... but I was looking all over for that... don't know how I missed searching on the obvious

. Also, I found a thread where dglass posted a complete working example of a 3 panel divider (one horizontal, one vertical, similar to the dictionary) which I wanted to thank him for (but the forum was locked so I'll thank him here). And dglass, if you don't mind, I am going to upload your example here as well. Its nicely done.
-- Mark
-
Attachments
-
- Splitter Example.livecode.zip
- Panel divider example by dglass
- (1.61 KiB) Downloaded 334 times
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
-
marksmithhfx
- VIP Livecode Opensource Backer

- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Post
by marksmithhfx » Tue Aug 23, 2011 1:26 pm
Here's an update to dglass's example that provides a basic "LC dictionary" interface using 3 controls and 2 drag bars (1 vertical and 1 horizontal). All of the code in this example is in the 2 drag bars, everything else is attached to the window or drag bars using the geometry manager. Potentially thousands of uses.
Its not quite as smooth as the LC dictionary when resizing the controls. I am going to have another go using "hand written" code instead of the geometry manager and I'll let you know if it's any faster.
Still having lots of fun learning livecode!
Cheers,
-- Mark
-
Attachments
-
- cc7.livecode.zip
- example implements "LC dictionary" interface
- (5.42 KiB) Downloaded 338 times
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS