Author Topic: Button Issues  (Read 8609 times)

icarah

  • Newbie
  • *
  • Posts: 2
Button Issues
« on: January 17, 2013, 11:02:26 PM »
I've been using HAC for a few days and noticed a couple of anomalies as it concerns button functions:

1. Programming a button to be invisible with ButtonSetView(button,0) leaves an artifact of itself in the form of its 3-D bevel. It does this on Kindle, Nexus and the emulator. It does not do this in the HAC runtime. I played around with the ButtonSetBevel function but it does not affect the appearance of the artifact. I do find that GotoCard (the same card) refreshes the card and the artifacts are gone but it makes the program slower. In the meantime, I am hiding the artifacts behind a canvas of the same card color.

2. ButtonSetMode(button,0) does not disable a button. Even though ButtonModeFN indicates that it's disabled, the button still functions and is not grayed out. It works in the HAC runtime but not in the emulator or an android device.

Are these known bugs or am I missing something ? I'm running JDK V6 and SDK 2.3.1 V9 with my primary target being Kindle Fire w/latest update from Amazon.

Any info you can provide is appreciated, Thanks - Ian


Malkom

  • Administrator
  • Sr. Member
  • *****
  • Posts: 289
Re: Button Issues
« Reply #1 on: January 18, 2013, 08:48:39 AM »
I've been using HAC for a few days and noticed a couple of anomalies as it concerns button functions:

1. Programming a button to be invisible with ButtonSetView(button,0) leaves an artifact of itself in the form of its 3-D bevel. It does this on Kindle, Nexus and the emulator. It does not do this in the HAC runtime. I played around with the ButtonSetBevel function but it does not affect the appearance of the artifact. I do find that GotoCard (the same card) refreshes the card and the artifacts are gone but it makes the program slower. In the meantime, I am hiding the artifacts behind a canvas of the same card color.

2. ButtonSetMode(button,0) does not disable a button. Even though ButtonModeFN indicates that it's disabled, the button still functions and is not grayed out. It works in the HAC runtime but not in the emulator or an android device.

Are these known bugs or am I missing something ? I'm running JDK V6 and SDK 2.3.1 V9 with my primary target being Kindle Fire w/latest update from Amazon.

Any info you can provide is appreciated, Thanks - Ian

Hi Ian

Thank you for finding these button bugs.

I have just made a buttons project and confirmed on an Android tablet that
 - the disable does not work.
 - the hide command does leave a trace.

These used to work but were probably broken a few builds back when the screen refresh and controls were overhauled.

I'll check the other controls for similar problems and the bug fixes should be done for v1.17.

Malkom
 

I am sorry but I do not have time to answer questions by PM or email.
If you post your questions in this forum then it might help others.

icarah

  • Newbie
  • *
  • Posts: 2
Re: Button Issues
« Reply #2 on: January 18, 2013, 09:50:53 PM »
Malkom,

Thanks for the quick reply. I'm looking forward to the next release of HAC.

The HAC environment reminds me of MSFT's VB. Very intuitive and easy to use yet powerful. HAC contains enough commands/controls that make for very functional apps in a rapid fashion. I like it, especially the UDP commands.

You will be seeing my order for a full license shortly. Thanks for a cool product.

Regards,

Ian