Author Topic: super noob Q's  (Read 3900 times)

VuLMz

  • Newbie
  • *
  • Posts: 4
super noob Q's
« on: February 16, 2011, 06:45:28 AM »
hello HyperNext forums
i have been reading the quickstart guide, might not have read it as thoroughly as i should have, but have some questions, i am at the part of creating my first plug-in in the developer, it says go to edit menu and select MainCode, my version doesnt have this first of all and i just downloaded it so should be the most recent, i just went to edit script and should be the maincode they are talking about right?

it says to create a new handler called Init
how do you create a new handler?

probably more questions later but these are for now, thanks guys

V

p.s. anyone who willing to answer some noob questions and has skype my skype name is mr.vulmz
[please specify that you are from these forums and who you are] lol thanks for reading
« Last Edit: January 01, 1970, 01:00:00 AM by Guest »

VuLMz

  • Newbie
  • *
  • Posts: 4
Re: super noob Q's
« Reply #1 on: February 16, 2011, 07:14:24 AM »
tried to wing it.. totally failed.

maybe just the handler part, but when i tried to run it it looked like it was going to the script page then went to a blank card.

if someone can clarify the steps in the basic plug-in thing maybe that will help, thanks guys
« Last Edit: January 01, 1970, 01:00:00 AM by Guest »

Malkom

  • Administrator
  • Newbie
  • *****
  • Posts: 435
  • Here to help you
Re: super noob Q's
« Reply #2 on: February 17, 2011, 07:31:54 PM »
Quote from: "VuLMz"
tried to wing it.. totally failed.

maybe just the handler part, but when i tried to run it it looked like it was going to the script page then went to a blank card.

if someone can clarify the steps in the basic plug-in thing maybe that will help, thanks guys

Sorry for all the problems - mostly due to the docs not being updated when the editor was.

To find the MainCode section:-

1) Click on the card or an object such as a button

2) To open the Editor - from the Properties Window (toolbar) click the Script button
     its on the left-most tab - Main

3) Near the top of the Editor Window click the MainCode button

_________________________

About Handlers - all object (controls) and cards have them by default.
You can create new procedures within each object handler - these procedures are local to that handler

_________________________
The blank card you reported when you ran the project is caused by a bug but there is a simple work around:--

The card's handler script needs 2 or more lines in it otherwise the card sometimes does not initialize fully when loading - so Gotos do not work for that card or it does not display its controls.
Just open the card's script and add a blank line after the comment line.
Of course if you put code in there it will also work.


The Circles plug-in is probably the most interesting to follow - its in the HyperNext Examples - Developer Projects folder
« Last Edit: January 01, 1970, 01: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