Install - Hag GUI for Cobra
To install, download and extract the latest version of hag.
The "Source" folder contains the uncompiled source code for hag and the Hag Theme Compiler.
The "Compiled" folder contains the hag unit compiled for Pure2D, Cobra2D and Cobra3D. You should put these files:
hagP2D.clm hagC2D.clm hagC3D.clm hagP2D.o hagC2D.o hagC3D.o
Into your Cobra\bin\libs\ folder, usually located at:
[DRIVE]:\Program Files\SqueakyDuck\Cobra\bin\libs\
You can optionally also copy the following file:
hag.ver
Into your Cobra\bin\ folder, usually located at:
[DRIVE]:\Program Files\SqueakyDuck\Cobra\bin\
To compile the Hag Theme Compiler (optional) you will need to download the latest version of Basilisk.
The "hag" folder must be copied into the same directory as any Cobra project that uses hag. You can move and rename this folder as the procedure HagBaseDir(dir: String) tells hag where to look for it - see Packaging.
The following barebones program shows how to include the unit:
Uses
cobra2D,
hagC2D,
keyset
Begin
OpenScreen(640,480,32,FALSE)
HagBaseDir("hag\")
HagInit(640, 480)
HagLoadGuiTheme("xp")
// SetUp Your Controls...
HagUpdateOnce()
While Not KeyDown(VK_ESCAPE)
// Update Your Controls...
HagUpdateAll_AutoKeys()
Flip
Pause(1)
Wend
HagFreeAll()
End
Stay Subscribed
RSS feed or get updates by e-mail.
, subscribe to theYou can also contact me directly - I make an effort to reply to every e-mail.