Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 972 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Stop engine from changing mouse cursor to finger. #461987
09/01/16 02:07
09/01/16 02:07
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline OP
Senior Expert
Quad  Offline OP
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Hello,

I want to manage mouse cursor myself. I use winapi SetCursor + LoadCursor to change cursors but engine keeps changing it back to finger/pointer cursor. The cursor flickers between what i want and the finger. Also setting a transparent mouse_map does not work either, it just flickers. Also, no, i can't use mouse_map to set the cursor image i want using a bitmap, because app has additional possible windows, which are not engine windows, that use same cursor changing mechanism.

I tried changing it every frame and every time window receives a message (in on_message). Still flickers. I think engine_frame() changes it to a finger. Is there anyway to stop this behaviour.

Also wtf, why does engine do that by default.


3333333333
Re: Stop engine from changing mouse cursor to finger. [Re: Quad] #461988
09/01/16 08:10
09/01/16 08:10
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
For setting your own mouse pointer, look here: http://manual.3dgamestudio.net/mouse_pointer.htm.

Re: Stop engine from changing mouse cursor to finger. [Re: jcl] #462012
09/02/16 23:18
09/02/16 23:18
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline OP
Senior Expert
Quad  Offline OP
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
This could be useful(also could i swear that i read all manual sections starting with mouse_ more than a couple of times, still missed mouse_pointer though.), though i worked around the problem by using a transparent mousemap and drawing the cursor myself with dx9 myself on all windows. Also just setting mouse_mode to 0 and using SetCursor also flickers. I am not gonna go through all possible values and see what gives me which cursor. I just switched to using mouse_pointer=0 instead of using a transparent mouse map and still draw the cursors myself.

edit: went back to transparent mouse_map, because i want the mouse on the window frame too.

Last edited by Quad; 09/02/16 23:19.

3333333333

Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1