HyperNext Studio

HyperNext Studio => Interface Controls => Topic started by: AnonymousPostings on July 01, 2010, 11:16:28 AM

Title: Adding a button causes an error
Post by: AnonymousPostings on July 01, 2010, 11: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.
Title: Re: Adding a button causes an error
Post by: Malkom on July 01, 2010, 11: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.