Logo: Geos Online Print Archiv
G.O.P.A. - Geos Online Print Archiv
27.01.2021 Archiv  #  Recherche  #  Links  #  Kontakt  #  Gästebuch  #  Impressum

Index
Register
Login

Die Anzeige des Archivs erfolgt grafisch. Ändern

NewBasic: Vordefinierte Konstanten

Autor: Jürgen Heinisch

In jedem NewBasic Programm werden vom NewBasicBuilder eine Anzahl schon festgelegter Konstanten definiert. Diese stehen dem Programmierer zur Verfügung. Wer sie kennt, muß sich nicht überlegen, ob er entsprechende Konstanten selbst definieren muß.
Die Konstanten sind in der Subroutine sub duplo_ui_ui_ui() festgelegt. Die Bedeutung der Konstanten erklärt sich durch passend gewählte Bezeichnungen.

Uhrzeit

STRUCT TimeOfDay
        DIM hour as integer
        DIM minute as integer
        DIM second as integer
END STRUCT


Datum

STRUCT Date
        DIM year as integer
        DIM month as integer
        DIM day as integer
END STRUCT


Notification

STRUCT Notification
        DIM arg1 as integer
        DIM arg2 as integer
        DIM arg3 as integer
        DIM arg4 as integer
        DIM arg5 as string
        DIM arg6 as complex
END STRUCT


Farben

CONST WHITE          &Hffffffff
CONST BLACK          &Hff000000
CONST GRAY_50        &Hff808080
CONST GREY_50        &Hff808080
CONST DARK_GRAY      &Hff555555
CONST LIGHT_GRAY     &Hffaaaaaa
CONST DARK_GREY      &Hff555555
CONST LIGHT_GREY     &Hffaaaaaa
CONST DARK_GREEN     &Hff00aa00
CONST LIGHT_GREEN    &Hff55ff55
CONST DARK_BLUE      &Hff0000aa
CONST LIGHT_BLUE     &Hff5555ff
CONST DARK_CYAN      &Hff00aaaa
CONST LIGHT_CYAN     &Hff55ffff
CONST DARK_PURPLE    &Hffaa00aa
CONST LIGHT_PURPLE   &Hffff55ff
CONST DARK_RED       &Hffaa0000
CONST LIGHT_RED      &Hffff5555
CONST BROWN          &Hffaa5500
CONST YELLOW         &Hffffff55


Schriftstile

CONST UNDERLINE      1
CONST STRIKE_THRU    2
CONST SUBSCRIPT      4
CONST SUPERSCRIPT    8
CONST ITALIC        16
CONST BOLD          32


Wahrheitswerte

CONST TRUE     1
CONST FALSE    0


Sound

CONST SS_ERROR        0
CONST SS_WARNING      1
CONST SS_NOTIFY       2
CONST SS_NO_INPUT     3
CONST SS_KEY_CLICK    4
CONST SS_ALARM        5


Mouse

CONST MOUSE_PRESS       1
CONST MOUSE_HOLD        2
CONST MOUSE_DRAG        3
CONST MOUSE_TO          4
CONST MOUSE_RELEASE     5
CONST MOUSE_LOST        6
CONST MOUSE_FLY_OVER    7


System

CONST C_SYS_00             &Hff00
CONST C_SYS_FF             &Hffff
CONST C_SYS_BACKSPACE      &Hff08
CONST C_SYS_TAB            &Hff09
CONST C_SYS_ENTER          &Hff0d
CONST C_SYS_ESCAPE         &Hff1b
CONST C_SYS_F1             &Hff80
CONST C_SYS_F2             &Hff81
CONST C_SYS_F3             &Hff82
CONST C_SYS_F4             &Hff83
CONST C_SYS_F5             &Hff84
CONST C_SYS_F6             &Hff85
CONST C_SYS_F7             &Hff86
CONST C_SYS_F8             &Hff87
CONST C_SYS_F9             &Hff88
CONST C_SYS_F10            &Hff89
CONST C_SYS_F11            &Hff8a
CONST C_SYS_F12            &Hff8b
CONST C_SYS_F13            &Hff8c
CONST C_SYS_F14            &Hff8d
CONST C_SYS_F15            &Hff8e
CONST C_SYS_F16            &Hff8f
CONST C_SYS_UP             &Hff90
CONST C_SYS_DOWN           &Hff91
CONST C_SYS_RIGHT          &Hff92
CONST C_SYS_LEFT           &Hff93
CONST C_SYS_HOME           &Hff94
CONST C_SYS_END            &Hff95
CONST C_SYS_PREVIOUS       &Hff96
CONST C_SYS_NEXT           &Hff97
CONST C_SYS_INSERT         &Hff98
CONST C_SYS_CLEAR          &Hff99
           rem Not used in Geos.
CONST C_SYS_DELETE         &Hff9a
CONST C_SYS_PRINT_SCREEN   &Hff9b
CONST C_SYS_HELP           &Hff9d
           rem Not used in Geos.
CONST C_SYS_BREAK          &Hff9e
CONST C_SYS_CAPS_LOCK      &Hffe8
CONST C_SYS_NUM_LOCK       &Hffe9
CONST C_SYS_SCROLL_LOCK    &Hffea
CONST C_SYS_LEFT_ALT       &Hffe0
CONST C_SYS_RIGHT_ALT      &Hffe1
CONST C_SYS_LEFT_CTRL      &Hffe2
CONST C_SYS_RIGHT_CTRL     &Hffe3
CONST C_SYS_LEFT_SHIFT     &Hffe4
CONST C_SYS_RIGHT_SHIFT    &Hffe5


Tasten

CONST KEY_BS            &Hff08
CONST KEY_DEL           &Hff9a
CONST KEY_ENTER         &Hff0d
CONST KEY_KP_RETURN     &Hffff
CONST KEY_HOME          &Hff94
CONST KEY_TAB           &Hff09
CONST KEY_END           &Hff93
CONST KEY_ESC           &Hff1b
CONST KEY_UP_ARROW      &Hff90
CONST KEY_LEFT_ARROW    &Hff93
CONST KEY_RIGHT_ARROW   &Hff92
CONST KEY_DOWN_ARROW    &Hff91


Datumsformate

CONST DTF_LONG                         0
CONST DTF_LONG_CONDENSED               1
CONST DTF_LONG_NO_WEEKDAY              2
CONST DTF_LONG_NO_WEEKDAY_CONDENSED    3
CONST DTF_SHORT                        4
CONST DTF_ZERO_PADDED_SHORT            5
CONST DTF_MD_LONG                      6
CONST DTF_MD_LONG_NO_WEEKDAY           7
CONST DTF_MD_SHORT                     8
CONST DTF_MY_LONG                      9
CONST DTF_MY_SHORT                    10
CONST DTF_YEAR                        11
CONST DTF_MONTH                       12
CONST DTF_DAY                         13
CONST DTF_WEEKDAY                     14


Zeitformate

CONST DTF_HMS          15
CONST DTF_HM           16
CONST DTF_H            17
CONST DTF_MS           18
CONST DTF_HMS_24HOUR   19
CONST DTF_HM_24HOUR    20


PI

CONST PI   3.14159265359


Zahlenformate

CONST FFAF_SCIENTIFIC       &H100
CONST FFAF_PERCENT          &H80
CONST FFAF_USE_COMMAS       &H40
CONST FFAF_NO_TRAIL_ZEROS   &H20
CONST FFAF_NO_LEAD_ZERO     &H10

 

Jürgen Heinisch

 

 

 

 




Dieser Artikel ist Bestandteil von:

Ausgabe 63

! - - - - - M I C R O F I L M - - - - - ! | Editorial | Projekt: Hobbytronic & Computershow 2000 | Hobbytronic & Computershow 1999 | News Regio Baden | Neues aus der GEOS 64 / 128 Welt | BetaTest: Wheels 128 | Canon Drucker unter Geos 64 / 128 | Aktuelles ... im April | NewBasic: Beta V1.0 | Deutsche Rechtschreibung in NDO R3 | RESET.BAT anpassen | NewFile Fehler | Windows 95 als NDO98 R3 Basisbetriebssystem | GEOS.INI Internas | Internetzugang konfigurieren | NewBasic: Vordefinierte Konstanten | Borland C++ 3.1


Kurzlink hierhin: http://geos-printarchiv.de/2902


Letzte Änderung am 01.11.2019