PopupWindowMenu and Labels

BlitzMax Forums/BlitzMax Beginners Area/PopupWindowMenu and Labels

Marco A G Pinto(Posted 2012) [#1]
Hello!

I want to use popmenus to select existing addresses from a panel, stored in labels inside the panel.

First I was trying to detect the right mouse click inside the panel but, after placing the labels, it starts working badly.

Is there a command to check if we are right clicking over a label?

Thanks!

Kind regards,
>Marco A.G.Pinto
--------------------





Scaremonger(Posted 2012) [#2]
I suspect the problem is that your mouse click is being captured by the labels instead of the panel.

Add the following line after creating the labels but your event will not come from the panel.
SetGadgetSensitivity( address_found[f], SENSITIZE_MOUSE )


Last edited 2012


Scaremonger(Posted 2012) [#3]
Just had a look through your code and amended it a bit. Because a label doesn't pass the event up to the panel, I added some extra data to the label objects so that I can identify them within the loop later.


I also cleaned up your X/Y calculation a little and removed the GOTO. :)


Marco A G Pinto(Posted 2012) [#4]
Thanks,

I will have a closer look at it tomorrow since it is late in Europe.

Kind regards,
>Marco A.G.Pinto
--------------------