text over button prevents button from working |SOLVED|
Posted: Fri Jul 04, 2014 4:01 pm
Hi all,
I made a button out of custom icons, basically a simple white square, and as down-state a grey square. On top of that button I have place 2 labels. One big one that covers 2 thirds of the button, one small one underneath that. I then grouped these 3 objects. When I test it however, the button only responds to my mouse when the mouse is over a part of the button that has no text on top of it.
So my problem is, the whole group should act as the button. I cannot seem to find how to prevent LiveCode from giving focus to the labels. I could of course just make different images in photoshop, but later on I will have to make an onscreen keyboard too, which should change the available characters according to the selected language, so I would really like to be able to create my buttons like this...
Any help is, as always, greatly appreciated!
Johan
I made a button out of custom icons, basically a simple white square, and as down-state a grey square. On top of that button I have place 2 labels. One big one that covers 2 thirds of the button, one small one underneath that. I then grouped these 3 objects. When I test it however, the button only responds to my mouse when the mouse is over a part of the button that has no text on top of it.
So my problem is, the whole group should act as the button. I cannot seem to find how to prevent LiveCode from giving focus to the labels. I could of course just make different images in photoshop, but later on I will have to make an onscreen keyboard too, which should change the available characters according to the selected language, so I would really like to be able to create my buttons like this...
Any help is, as always, greatly appreciated!
Johan