This content is provided AS IS for archive purposes only. Content may be out of date with no guarantee of correctness.

HagBaseDir - Main Functions - Hag GUI for Cobra - Static

Main Article

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

Stay Subscribed

Follow me on twitter @golightlyb, subscribe to the RSS feed or get updates by e-mail.

You can also contact me directly - I make an effort to reply to every e-mail.


Login
v0.34.archive