Foros - Stratos

Proyectos => CRM32Pro => Mensaje iniciado por: Mikenoworth en 29 de Octubre de 2007, 06:03:05 AM

Título: IButton->GetState() On Right-Click Bug??
Publicado por: Mikenoworth en 29 de Octubre de 2007, 06:03:05 AM
IButton->GetState((SOME_INPUT_BOX)) returns an invalid state when you right-click on an input box.

I am removing the load and save buttons in the map editor to save visual space, so I decided to use a left-click & right-click mouse interface on the input boxes but when you right click on the input boxes IButton->GetState whines that the state is invalid and forces it to 1 instead of returning the invalid state.

Looks to me like you planned on implementing a state for right-clicks but forgot about it ???

Anywho it would be sweet if you could patch this - I almost require this without doing a buttload more work re-implementing save and load buttons. :)

P.S. I didn't check for buttons, but they may also return invalid states for right-clicks. Im sure you will know the answer to that as well.
Título: IButton->GetState() On Right-Click Bug??
Publicado por: TheAzazel en 29 de Octubre de 2007, 10:43:57 AM
Hi Mike,

Uhmm...I think you are right but I have to check it... and I will send you a CRM32Pro patched, let me have a look to it and I will tell you :)

cheers!
Título: IButton->GetState() On Right-Click Bug??
Publicado por: Mikenoworth en 02 de Noviembre de 2007, 04:55:26 AM
ok :)
Título: IButton->GetState() On Right-Click Bug??
Publicado por: Mikenoworth en 10 de Noviembre de 2007, 11:17:58 PM
Hope you can get it soon :) My dev. is halted on the map editor.
Título: IButton->GetState() On Right-Click Bug??
Publicado por: TheAzazel en 11 de Noviembre de 2007, 09:58:38 PM
Hi Mike,

I had a few minutes off on my job and I had a look to your issue and yes, I only handle the left button, nothing about right and center buttons.

They will cause an "unknown state" and the state will not be changed, that is the reason you get 1 instead of the real state.

I could modify it to work with any mouse button, will be it enough for you or you prefer any other behaviour?

Cheers!
Título: IButton->GetState() On Right-Click Bug??
Publicado por: Mikenoworth en 11 de Noviembre de 2007, 10:09:20 PM
Nope, no other behavior needed. I Just need to know what mouse buttons are being used on the gui button.

Even tho it's minor doing so would really improve your buttons interface :) Plus I would love it.

Thanks!
Título: IButton->GetState() On Right-Click Bug??
Publicado por: TheAzazel en 12 de Noviembre de 2007, 12:43:20 AM
Mike, you have an email :)

more is coming tomorrow :), I need to sleep NOW hehehe

cheers!
Título: IButton->GetState() On Right-Click Bug??
Publicado por: Mikenoworth en 12 de Noviembre de 2007, 03:54:52 AM
Thank you!