diff options
author | Steve Pledger <spledger91@yahoo.com> | 2011-01-01 18:00:34 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-01-02 00:27:36 -0600 |
commit | 194291dc638e8f3f4c1305400db2e499c5ea15c9 (patch) | |
tree | c7cdb2ee500f1264166ceee755e88bfe2c2f5044 /libraries/hug/README.SLACKWARE | |
parent | dd98e2a1a610a042020d0d38aac82d910b8654b2 (diff) | |
download | slackbuilds-194291dc638e8f3f4c1305400db2e499c5ea15c9.tar.gz |
libraries/hug: Added (easily build GUI's for BaCon programs)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/hug/README.SLACKWARE')
-rw-r--r-- | libraries/hug/README.SLACKWARE | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/libraries/hug/README.SLACKWARE b/libraries/hug/README.SLACKWARE new file mode 100644 index 0000000000..eebe61c2a4 --- /dev/null +++ b/libraries/hug/README.SLACKWARE @@ -0,0 +1,29 @@ +README.SLACKWARE for hug + +To use HUG, put the following at the start of your BaCon program: + + SETENVIRON "LANG", "C" + INCLUDE "/usr/include/hug_imports.bac" + + REM Initialize the HUG library: + INIT + +For example, here's the classic "Hello World" program with HUG: + + SETENVIRON "LANG", "C" + INCLUDE "/usr/include/hug_imports.bac" + + REM Initialize the HUG library: + INIT + + REM Create widgets: + window = WINDOW("Hello", 110, 30) + text = MARK("Hello, world!", 100, 20) + + REM Attach text widget to main window: + ATTACH(window, text, 5, 5) + + REM endless gtk loop + DISPLAY + +The HUG documentation can be read online here: http://basic-converter.org/hugdoc.html |