Page 1 of 1

changing the cursor/pointer shape

Posted: Sun Aug 21, 2011 6:24 pm
by marksmithhfx
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 :wink: ) 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

Re: changing the cursor/pointer shape

Posted: Sun Aug 21, 2011 6:33 pm
by Klaus
Hi Mark,

check erm... "cursor" in the dictionary and you might be surprised :D

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

Re: changing the cursor/pointer shape

Posted: Sun Aug 21, 2011 11:29 pm
by marksmithhfx
Klaus wrote:Hi Mark,

check erm... "cursor" in the dictionary and you might be surprised :D

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 :oops: . 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

Re: changing the cursor/pointer shape

Posted: Tue Aug 23, 2011 1:26 pm
by marksmithhfx
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