Welcome to Pauls PureProject
 Home Online Reference Guide duplicated from http://cvs.purebasic.com  
 Online Resources
   · Reference

 Libraries
     2DDrawing
     Billboard
     Camera
     CDAudio
     Cipher
     Clipboard
     Console
     Database
     Date
     Desktop
     Engine3D
     Entity
     File
     FileSystem
     Font
     Gadget
     Help
     Image
     ImagePlugin
     Joystick
     Keyboard
     Library
     Light
     LinkedList
     Material
     Math
     Memory
     Menu
     Mesh
     Misc
     Module
     Mouse
     Movie
     Network
     OnError
     Packer
     Palette
     Particle
     Preference
     Printer
     Requester
     Sort
     Sound
     SoundPlugin
     Sprite
     Sprite3D
     StatusBar
     String
     SysTray
     Terrain
     Texture
     Thread
     Toolbar
     Window

 Handles and IDs

Identifiers

All created objects are identified by a number. In this manual, these Identifiers are marked as #Number (for example, each gadget created have a #Gadget number).

The numbers you assign to them do not need to be constants, but they need to be unique for each object in your program (an image can get the same number as a gadget, because these are different types of objects). These identifiers are used to later access these objects in your program.

For example, the event handling functions return these IDs:
  EventGadgetID()
  EventMenuID()
  EventWindowID()

Handles

All objects also get a unique number assigned to them by the system. These identifiers are called handles. Sometimes, a PureBasic function doesn't need the identifier as argument, but the handle. In this manual, such things are mentioned, also as an ID.

Example:

        ImageGadget(#Gadget, x, y, Width, Heigth, ImageID [, Flags])
        ; #Gadget needs to be the identifier you want to assign to the Gadget
        ; ImageID needs to a handle to the image.
To get the handle to an object, there are special functions like:
  WindowID()
  GadgetID()
  ImageID()
  MemoryID()
  FontID()
Also, most of the functions that create these objects also return this handle as a result, if they were successful.

Example:

  GadgetHandle = ImageGadget(...)



Hosted by Reel Media Productions Copyright©2001-2004 All Rights Reserved