Author Topic: Adding a button causes an error  (Read 2488 times)

AnonymousPostings

  • Newbie
  • *
  • Posts: 49
Adding a button causes an error
« on: July 01, 2010, 10:16:28 AM »
I am using HyperNext Creator v3.83 and am getting the following error when I try and add a new button to my card.
 
RuntimeWindow.cpp: 1907
Failure Condition: form
 
I have 50 other buttons on this perticular card and had no problems until adding the new one. Please advise. Thank you.
« Last Edit: January 01, 1970, 12:00:00 AM by Guest »

Malkom

  • Administrator
  • Newbie
  • *****
  • Posts: 381
  • Here to help you
Re: Adding a button causes an error
« Reply #1 on: July 01, 2010, 10:18:31 AM »
There is a limit of 50 buttons on each card. Unfortunately a bug in HN v3.83 causes it to crash when this limit is exceeded.

There is an alternative to using many buttons though - use canavas:-
I have cards which appear to have many more than 50 buttons on them. 
I simply use a canvas and load it with a graphic of the buttons all on one image.
Then use the mouse down event in the canvas to detect mouse X,Y coordinates and hence which "Button" has been clicked
For instance a full QWERTY keyboard can be implemented in ONE canvas.
You can also add some drawing commands to make it look as if a particular button has been pressed.

There is some use of canvases in the HN projects on our website.
« Last Edit: January 01, 1970, 12:00:00 AM by Guest »
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.

 

anything