Page 1 of 1
Button Opacity/Transparency?
Posted: Mon Jun 08, 2020 12:02 pm
by harrisonje
We have the need to select a area on a display that contains multiple fields and whitespace. We were thinking we could create a button over top of these fields and make it transparent so that a user could press anywhere in that area.
Is this the right approach? we could not make the button clear/transparent and still be over the fields, is there a way to do this?
Re: Button Opacity/Transparency?
Posted: Mon Jun 08, 2020 12:28 pm
by Scott Klement
I'm not sure what you mean by 'select' (mouse selection?) but it seems like the 'transparent button' technique might not work? I haven't tried it, but it feels like a lot could go wrong with that technique. What is the purpose of the button?
Why not use the 'onclick' event of the items in question?
Or, perhaps put them all in a layout, and use the onclick of the layout?
Re: Button Opacity/Transparency?
Posted: Mon Jun 08, 2020 2:11 pm
by harrisonje
sorry for the button analogy -- it was a conceptual idea. We have a program that someone wrote that mimicked a subfile, down to the previous/next buttons, but wasn't. So we have four records on a screen that look exactly like a subfile, but none of the command/control words and wanted to be able to press anywhere on the 4 2 line records on the screen and be able to get the 'record' number.
Thanks for for direction, I think Simple container layout widget is what I was thinking and we were getting stuck on the idea if you press something, it must be a button.
thanks for the guidance
Re: Button Opacity/Transparency?
Posted: Mon Jun 08, 2020 4:06 pm
by Scott Klement
no problem, good luck!