Jump to content
Sign in to follow this  
ddawson

Hide a mouse rect?

Recommended Posts

Guest mgipson

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

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


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

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
Guest mgipson

That's exactly what I need, but in C.

Share this post


Link to post
Share on other sites
Guest harry3

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
Guest mgipson

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...