Sign in to follow this  
ddawson

Hide a mouse rect?

Recommended Posts

Hi all.Is it possible to hide a mouse rect in C?I have a gauge where I only want a mouse rect if a certain part of the gauge is active. Is there something like HIDE_IMAGE for mouse rects? I know I can just ignore the mouse click but I want to stop the mouse cursor changing to an up or down arrow as well.Thanks,Mark

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

There's no explicit way to "hide" a mouse rect that I'm aware of...

Share this post


Link to post
Share on other sites

Hi,Don't know in C, but XML supports conditional for mouse areas. When (False), the cursor shows its normal state (ie no hand/arrow)Tom

Share this post


Link to post
Share on other sites

Well what Tom said just means that the cursor is the normal arrow, but no hand or Up/Down arrow.What you mean is that the mouse cursor completly disappears, but I'm not aware of any way to do this.(neither c nor xml)Regards,Harry

Share this post


Link to post
Share on other sites

I want want Tom said. I want to be able to set a mouse rect so the mouse cursor does not change into a up or down cursor at runtime.

Share this post


Link to post
Share on other sites

If it does exist an equivalence in C for the tag inside an , (does it??) shouldn't be any similar for tags??Tom

Share this post


Link to post
Share on other sites

Well, if you define your mouse function thus: BOOL FSAPI mouse_click( PPIXPOINT relative_point, FLAGS32 mouse_flags)then placing this line in said mouse function will turn the cursor off: ((PMOUSECALLBACK)relative_point)->mouse->cursor = CURSOR_NONE;If you can figure out a way of calling the mouse function without clicking on the gauge, then this line will turn your cursor back on: ((PMOUSECALLBACK)relative_point)->mouse->cursor = CURSOR_HAND;gauges.h indicates that although the first argument in the function is described as being of type PPIXPOINT, it is actually type PMOUSECALLBACK, which is why these lines work.If you can figure out a way of accessing the mouse callback from outside the mouse function, you're home free.Doug

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this