Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
irregularly shaped buttons?
#1
Hi,

Is it possible to have a button with an irregular shape (or, at least, an irregular "hit area")?

I'm designing a screen for my irrigation control, and rather than have the traditional checkbox type button graphics, I'd like to simply use an aerial depiction of my landscape and have the various irrigation "zones" be denoted on the landscape as the button to turn on/off the zone.

Thoughts?

Best,

Chris
Reply
#2
You can't have an irregular hit area currently. You can have PNG images in which only those parts that you want are non-transparent. But the whole button area would respond to button presses. I need to add code to deal with seeing if a button press is in the non-transparent part of the current image or not.
Dean Roddey
Explorans limites defectum
Reply
#3
just use a couple of square boxes with the same action in them.
Reply
#4
potts.mike Wrote:just use a couple of square boxes with the same action in them.
Yeah, I'll probably go that route for the time being.

Dean, just a thought -- when you implement the hit test on transparent regions of an image, consider making that whole capability something you can turn on/off for a given button. That way, you could still create transparent buttons.

Best,

Chris
Reply
#5
Yeh, it would have to be optional.
Dean Roddey
Explorans limites defectum
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pico Buttons simplextech 10 2,755 01-07-2020, 05:06 PM
Last Post: simplextech
  Hiding Command Buttons on template kfly 5 2,908 12-14-2018, 06:52 PM
Last Post: Dean Roddey
  Trapping Elk F5/F6 Buttons IVB 29 9,823 03-04-2018, 03:41 PM
Last Post: Dean Roddey
  Inc Dec buttons Ron Haley 1 1,783 07-26-2014, 06:44 PM
Last Post: Dean Roddey
  Learn>Videos>Buttons fotofreak 6 2,997 07-20-2014, 06:59 PM
Last Post: Dean Roddey
  Increment Decrement Buttons usage help Shaky 1 1,842 11-22-2011, 10:24 PM
Last Post: Dean Roddey
  Radio buttons dgeffs 8 4,255 09-11-2011, 07:19 PM
Last Post: batwater
  Overview of Buttons/Images shipped with CQC MavRic 1 1,551 11-15-2010, 03:13 PM
Last Post: Dean Roddey
  Question about Static Buttons hunt2714 6 2,402 03-05-2010, 11:10 PM
Last Post: hunt2714
  What is the best way to change buttons on a tool bar? Acropolis 1 1,582 04-11-2009, 03:58 PM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)