Label's OnClick event blocked by nearby rectangle???

M

Max Moor

Hi All,

I have a label I use as a quick and dirty command button. I want it to
sit inside a rectanle on a from. The rectangle has a transparent background,
and, in any case, I have sent it to the back, and brought the label to the
front. The label's OnClick event doesn't fire.

I tried moving the label out of the rectangle, but still right next to
it. They are the same height, and in the same horizontal "stripe." The
OnClick event still doesn't fire.

I moved the label down a little, so its lower half is out of the
horizontal stripe the rectangle is in. If I click on the bottom half of the
label, the event fires. Click the top half, no event.

It's like the rectangle is covering up any part of the label that is in
its horizontal stripe. Again, this is even with the rectangle set to
transparent and sent to the back and with the label brought to the front.

Any ideas about what's going on?

Regards,
Max
 
P

Peter Hibbs

Max,

I don't know why it doesn't work but if you want an invisible button
over a label I would use a standard button and set its Transparent
property to Yes.

HTH

Peter Hibbs.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top