HagBaseDir - Main Functions - Hag GUI for Cobra
Procedure HagBaseDir(directory: String)
directory: the location of the hag base directory.
This optional procedure tells hag where to look for the hag base directory. If this procedure is not called then the default of "hag\" is used. This base directory must be included with any program using the hag GUI.
This procedure, if used, must appear before HagInit is called.
See also: Packaging
Example:
Program
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
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.