More cursors for Canvas.

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

More cursors for Canvas.

Post by DoubleDutch »

In canvas you can set the cursor to:

Code: Select all

#PB_Cursor_LeftRight: left and right arrows
#PB_Cursor_UpDown   : up and down arrows
But not to the two different diagonals... these are needed to show diagonal stretches within the canvas.

Maybe this is an oversight? Will this be possible in the release version?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: More cursors for Canvas.

Post by freak »

They don't exist as a standard cursor on all OS, that is why i left them out.
quidquid Latine dictum sit altum videtur
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: More cursors for Canvas.

Post by DoubleDutch »

I see. Could you not put it in even if it only exists on one OS, similar to what you did with:

Code: Select all

#PB_Cursor_Arrows   : arrows in all direction (not available on Mac OSX)
At least then Windows programs may have it...
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
PMV
Enthusiast
Enthusiast
Posts: 727
Joined: Sat Feb 24, 2007 3:15 pm
Location: Germany

Re: More cursors for Canvas.

Post by PMV »

freak wrote:They don't exist as a standard cursor on all OS, that is why i left them out.
There are some other windows only features, so i doesn't think this is a reason. :mrgreen:
User avatar
Frabbing
User
User
Posts: 10
Joined: Mon May 09, 2011 7:59 pm
Contact:

Re: More cursors for Canvas.

Post by Frabbing »

I need the two diagonal-cursors, too. Please build in.
Best regards,
Frank
Franky
Enthusiast
Enthusiast
Posts: 213
Joined: Sat Apr 26, 2003 2:58 pm

Re: More cursors for Canvas.

Post by Franky »

Wouldn't it be easier, just to add a custom-Cursor-Function like in Toolbars? Just an idea.
Give Up everything but trying!
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: More cursors for Canvas.

Post by freak »

I added the diagonal cursors, but it will only work on Windows. Dunno why the other OS do not have default cursors for this.
quidquid Latine dictum sit altum videtur
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: More cursors for Canvas.

Post by DoubleDutch »

Will you be able to add a way to point to a custom cursor - so on the other os we can add it?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: More cursors for Canvas.

Post by freak »

Yes, you can add a custom cursor, but you will have to load/create it through non-PB means first. I thought about adding a full 'Cursor' library, but its a bit overkill if the CanvasGadget is the only place where you can use it so I decided against that. Maybe in a future PB version.
quidquid Latine dictum sit altum videtur
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: More cursors for Canvas.

Post by DoubleDutch »

In the long term that would be good. One to add for the roadmap.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
Post Reply