Hypernext Studio Language Reference
Total Page:16
File Type:pdf, Size:1020Kb
HyperNext Studio Language Reference v3.83 updated 31st December 2007 TigaByte Software 2007. http://www.tigabyte.com [email protected] Contents 1 INTRODUCTION....................................................................................5 WELCOME .................................................................................................5 RESOURCES ...............................................................................................6 2 HYPERNEXT CREATOR ..........................................................................7 USING HYPERNEXT CREATOR...........................................................................7 RUNNING PROJECT .......................................................................................8 COMPILING PROJECT.....................................................................................8 BUILD STACK .............................................................................................8 BUILD CLASSIC APPLICATION ..........................................................................8 BUILD OS X APPLICATION..............................................................................9 BUILD WINDOWS XP/VISTA APPLICATION ...........................................................9 BUILDING FOR MACINTOSH ON WINDOWS XP/VISTA...............................................9 SCRIPT EDITOR...........................................................................................9 MENU DESIGNER ....................................................................................... 10 ABOUT BOX ............................................................................................. 10 SPLASH SCREEN........................................................................................ 11 SOUND LIBRARY ........................................................................................ 11 IMAGE LIBRARY......................................................................................... 11 MOVIE LIBRARY ........................................................................................ 11 3 HYPERNEXT DEVELOPER.....................................................................13 PLUGINS ................................................................................................. 13 USING DEVELOPER ..................................................................................... 13 COMPILE PLUGIN ....................................................................................... 14 RUN PLUGIN ............................................................................................ 14 BUILD PLUGIN .......................................................................................... 14 PLUGIN NAMES ......................................................................................... 14 NEURAL NETWORKS.................................................................................... 15 4 HYPERNEXT PLAYER...........................................................................16 USING HYPERNEXT PLAYER ........................................................................... 16 DISTRIBUTING STACKS................................................................................ 16 5 HYPERNEXT LANGUAGE......................................................................17 INTRODUCTION ......................................................................................... 17 FEATURES ............................................................................................... 17 LIMITATIONS............................................................................................ 18 HYPERNEXT EVENTS ................................................................................... 18 CONTROL STATEMENTS................................................................................ 20 USER INTERACTION .................................................................................... 24 CLIPBOARD.............................................................................................. 28 FONTS AND SYSTEM ................................................................................... 29 MAIN TIMER ............................................................................................ 30 RUNTIME ERRORS ...................................................................................... 31 COMPILE ERRORS ...................................................................................... 32 LOCALIZATION .......................................................................................... 33 6 VARIABLES.........................................................................................35 GLOBAL & LOCAL ...................................................................................... 35 SIMPLE................................................................................................... 36 COMPLEX ................................................................................................ 36 BOOLEAN ................................................................................................ 37 COLOURS ................................................................................................ 37 7 PROCEDURES & HANDLERS ................................................................38 MAINCODE .............................................................................................. 38 CONTROL HANDLERS .................................................................................. 39 PARAMETERS ............................................................................................ 39 8 OPERATIONS......................................................................................40 GENERAL ................................................................................................ 40 BINARY .................................................................................................. 43 MATHS................................................................................................... 46 STRING .................................................................................................. 50 SORTING ................................................................................................ 55 DATE & TIME .......................................................................................... 58 ARRAYS.................................................................................................. 61 9 CARDS, WINDOWS & SCREENS............................................................65 SCREEN & SCREENSHOTS ............................................................................ 65 CARD COMMANDS ...................................................................................... 67 10 CONTROL TYPES ...............................................................................72 BUTTONS ................................................................................................ 72 FIELDS................................................................................................... 79 Field Events ....................................................................................... 85 CANVASES............................................................................................... 87 Canvas Events ................................................................................... 92 TEXTS.................................................................................................... 95 CHECK BOXES .......................................................................................... 99 RADIO BUTTONS ..................................................................................... 103 POPUP MENUS ........................................................................................ 108 SCROLL BARS......................................................................................... 112 MOVIES................................................................................................ 116 LISTBOXES ............................................................................................ 121 Listbox Events.................................................................................. 124 SLIDERS ............................................................................................... 134 SCROLLBARS .......................................................................................... 137 PROGRESS BARS ..................................................................................... 141 TIMERS ................................................................................................ 144 11 CANVAS GRAPHICS.........................................................................146 EXAMPLES ............................................................................................. 146 12 PLAYING SOUNDS & MUSIC............................................................149 COMMANDS & FUNCTIONS .......................................................................... 149 13 NOTE PLAYER .................................................................................151 COMMANDS & FUNCTIONS .......................................................................... 151 INSTRUMENT LIST .................................................................................... 155 14 PRINTING.......................................................................................158 COMMANDS & FUNCTIONS .......................................................................... 159 15 FILES..............................................................................................164