PNG control & alpha / clickeable area
Posted: Mon Apr 27, 2015 6:03 pm
Hi everyone
What if you come from a tool like Sketch, or Photoshop, and you have, e.g., built a mock up UI with clickeable areas that don't match neat "sqare buttons", which for that reason don't lend themselves to custom skinning? In fact, anything non-square doesn't really.
Maybe I'm missing something, but if you have any non-square clickeable controls in LiveCode, you still, and always, get a rectangular bounding box. This leads to rather awkward hilite and hover behaviour, when you approach, say, a round control and it highlights before you've actually entered its visible border.
SVG support is a feature that users have requested a while ago, and I realize that's somehow part of the upcoming Widget update to LC 8, so that may help, but still:
Just being able to make use of the Alpha Channel of a PNG control seems to my simple not impossibly complex to implement, and it would mean a tremendous liberation for the UI designer.
If there were a control property that lets you deactivate the 100% transparent part of a PNG from being clickable - that would be huge improvement. There needs to be way, IMHO, to use the visible area of a control, rather than its (invisible) bounding box, for interaction design.
Long story short: can anyone tell me if there is a way around this issue? Or will there soon be...? I've know RunRev / LiveCode for years, but only recently started to get serious with it. The straightforwardness, the quick results, the modular approach - it all makes for joyful development. But when it comes to UI design, cookie cutter controls may put many designers off. And it seems so unecessary - all you'd need is full control over the PNG alpha channel. The data is there already - so is there, will there be a way to access this?
Thanks for any help, thoughts, info!
Maurice
What if you come from a tool like Sketch, or Photoshop, and you have, e.g., built a mock up UI with clickeable areas that don't match neat "sqare buttons", which for that reason don't lend themselves to custom skinning? In fact, anything non-square doesn't really.
Maybe I'm missing something, but if you have any non-square clickeable controls in LiveCode, you still, and always, get a rectangular bounding box. This leads to rather awkward hilite and hover behaviour, when you approach, say, a round control and it highlights before you've actually entered its visible border.
SVG support is a feature that users have requested a while ago, and I realize that's somehow part of the upcoming Widget update to LC 8, so that may help, but still:
Just being able to make use of the Alpha Channel of a PNG control seems to my simple not impossibly complex to implement, and it would mean a tremendous liberation for the UI designer.
If there were a control property that lets you deactivate the 100% transparent part of a PNG from being clickable - that would be huge improvement. There needs to be way, IMHO, to use the visible area of a control, rather than its (invisible) bounding box, for interaction design.
Long story short: can anyone tell me if there is a way around this issue? Or will there soon be...? I've know RunRev / LiveCode for years, but only recently started to get serious with it. The straightforwardness, the quick results, the modular approach - it all makes for joyful development. But when it comes to UI design, cookie cutter controls may put many designers off. And it seems so unecessary - all you'd need is full control over the PNG alpha channel. The data is there already - so is there, will there be a way to access this?
Thanks for any help, thoughts, info!
Maurice