BBGadTools Version 1.4 - Copyright © 2001
Written by Harald Wagner & Turgut Temucin
A GUI (Include-File) for BlitzBasic
(FreeWare)
[Introduction] - What's the BBGadTools?
[Command-Index] - All BBGadTools Commands & Functions.
[Tool-Using] - Using of BBGadTools.
[Examples] - The Example-Listings.
[Used Colors] - RGB-Values of the Used Colors.
[Screen & Windows] - Using of Screen & Windows.
[Copyright] - Copyright Infos to the BBGadTools.
[Report] - Please Send Bug Reports to Author.
[History] - The History of the BBGadTools.
[Final Comment] - Why I have Create the BBGadTools.
Introduction: What's the BBGadTools?:
BBGadTools is A GUI (Graphical User Interface) for BlitzBasic in form of a Include-File.
You must so including it with the Include-Command from BlitzBasic on Your Mainprogram.
Now You have new Commands & Functions for any Gadgets. I have not only create a GUI with
Buttons and so on, but also Masks for easy create own Programs in WindowsLook.
Back to the Menu
All BBGadTools-Commands & Functions in overlook:
Including the BBGadTools with Include"Device+Path\BBGadTools.bb"
on Your Mainprogram. Following Commands are now available.
BBGraphicsMode(Width,Height[,ColorDepth])
BBScreenMode(1-3) {640x480/800x600/1024x768}
BBUseDesktopColors()
BBUseGuiColors()
BBShowWallpaper()
BBScreenBar("Title-Name")
BBOpenWindow(X,Y,Width,Height,"Window-Name")
BBCloseWindow()
BBWindowMove()
BBWindowHit()
BBWindowCloseHit()
BBClearWindow(X,Y,Width,Height)
BBWinNums()
BBWinId()
BBWinPosX()
BBWinPosY()
BBWinWidth()
BBWinHeight()
BBMakeMask(X,Y,Width,Height,0-4)
BBMakeBorder(X,Y,Width,Height,0-1,"Border-Name")
BBMakeHLine(X,Y,Width)
BBMakeVLine(X,Y,Height)
BBText(X,Y,0-1,Text$)
BBShowMouse()
BBLoadMouse("BMP-Picture"[,R,G,B])
BBMouseMenu("Text1|Text2|Text3...")
BBMouseMenuHit()
BBFreeGadList()
BBPushButton(Id,X,Y,"Button-Name")
BBPushButtonHit()
BBRemovePushButton(Id[,0-1])
BBToggleButton(Id,X,Y,On/Off,"Button-Name")
BBToggleButtonHit()
BBSetToggleButtonState(Id,On/Off)
BBGetToggleButtonState(Id)
BBRemoveToggleButton(Id)
BBCheckBox(Id,X,Y,On/Off)
BBCheckBoxHit()
BBSetCheckBoxState(Id,On/Off)
BBGetCheckBoxState(Id)
BBRemoveCheckBox(Id[,0-1])
BBRadioButton(Id,X,Y,On/Off)
BBRadioButtonHit()
BBSetRadioButtonState(Id,On/Off)
BBGetRadioButtonState(Id)
BBRemoveRadioButton(Id[,0-1])
BBStringGadget(Id,X,Y,GadLenInPixel,MaxTextLen)
BBStringGadgetHit()
BBSetStringGadgetState(Id,String$)
BBGetStringGadgetState$(Id)
BBRemoveStringGadget(Id[,0-1])
BBTextGadget(Id,X,Y,GadLenInPixel)
BBSetTextGadgetState(Id,String$)
BBRemoveTextGadget(Id)
BBProgressIndicator(Id,X,Y,0-2)
BBSetProgressState(Id,Count,Value)
BBRemovePIndicator(Id)
BBFileRequest$(0-2[,Pattern$])
BBRequest("Text1|Text2|Text3...","ButtonName1","ButtonName2",0-1)
BBVSlider(Id,X,Y,Height,MaxTextsToShow[,0-1])
BBSetVSliderEntrys(Id,NumEntrys)
BBVSliderHit()
BBSetVSliderState(Id,Entry)
BBGetVSliderState(Id)
BBRemoveVSlider(Id)
BBHSlider(Id,X,Y,Width,MaxCharsToShow[,0-1])
BBSetHSliderEntrys(Id,NumChars)
BBHSliderHit()
BBSetHSliderState(Id,Char)
BBGetHSliderState(Id)
BBRemoveHSlider(Id)
BBSliderUse()
BBRotateButton(ID,PosX,PosY,Scale,Height>19,Pos,Color1-4)
BBRotateButtonHit()
BBRotateButtonState(ID)
BBRemoveRotateButton(ID)
BBMouseHelpSet(ID,PosX,PosY,Width,Height,HelpText,Timer)
BBMouseHelp()
BBRemoveMouseHelp(ID)
Back to the Menu
Using of the BBGadTools:
With it you can use the BBGadTools, you must Including the BBGadTools on your
Mainprogram. You can it do with the Include-Command of BlitzBasic.
Please Move the Cursor to bottom of your Mainprogram and write now:
Include "Device+Path\BBGadTools.bb"
Type in Device+Path the Directory of the BBGadTools, with it BlitzBasic can
it find and Load the BBGadTools.
Back to the Menu
The Example-Listings:
In the Directory ':Examples/' can You find to all Buttons a
Example-Listing. The Examples are available in all GraphicsMode.
(640x480/800x600/1024x768) All Examples are directly as BB-Files
saved and can showing with a TextED, or load it with 'Open File'
in the BlitzBasic-Editor. Please check the path before in the last line
with it BlitzBasic can find and load the BBGadTools. I have create
only small Examples for a better overlook.
BTW:
Please note thats not all Monitors Support the Resolutions of some
Example-Listings. Please Use in case of doubt only the Examples
with a Resolution of 640x480 Pixel, or read before Your MonitorGuide.
Back to the Menu
RGB-Values of the Used Colors:
Here now the RGB-Values that I have use in the BBGadTools,
If You will Draws with Own BB-Commands (like Rect, Oval, Line and so on)
in a Window. These Colors are the Colors that you get with the BBGetGuiColors()-Command
Screen-Background: ................................................ $00,$80,$80 (Turquoise)
Window-Background: ................................................ $C0,$C0,$C0 (Gray)
Window-Bar: ....................................................... $00,$00,$8C (Blue)
Window-Border and Inside of Buttons: .............................. $80,$80,$80 (Dark Gray)
Window-Border and Inside of Buttons: .............................. $E6,$E6,$E6 (Bright Gray)
Window-Border and Buttons: ........................................ $FF,$FF,$FF (White)
Window-Border and Buttons: ........................................ $00,$00,$00 (Black)
Back to the Menu
Using of Screen and Windows:
If you not use a Window, BBGadTools will use the Screen. All BBGadTools Commands will Draws
now in the Current Screen. The two Commands "BBWinPosX()" + "BBWinPosY()" Returns so
always "0" as X+Y Position.
Back to the Menu
Copyright Infos to the BBGadTools:
BBGadTools is FreeWare. You can it use in Your own Programs and spreading.
Modifications to the BBGadTools are Prohibited. If You have a idea to improve
the BBGadTools, please contact the Author.
Back to the Menu
Please Send Bug Reports to Author:
If you have found any bugs, please contact the Authors, and We correct our Tool.
Contact us under:
E-Mail: al90@lycos.de (Harald Wagner)
E-Mail: turguttemucin@compuserve.de (Turgut Temucin)
Back to the Menu
The History:
V1.0b First Release. (Converted from Amiga)
V1.1
-------
- Improved FileRequester (Now with Scrollbar). The Option "Pattern$" is now Optional
- BBMakeVLine() + BBMakeHLine() was exchanged in the Names. Now corrected
- BBLoadMouse() Command Included. (For use other MouseSprites)
- BBGraphicsMode() Command Included. (As a alternative to the BBScreenMode() Command)
- Vertical + Horizontal Sliders (Scrollbars) Included.
- BBSliderUse() Command Included, for checkings Sliders is in Use or not in Use.
- Add a TextReader to the Examples. (Demonstrate the Sliders)
- Add a simple MouseMenu.
- Add Complete English Docs.
V1.2
-------
- No waits more when LeftMousebutton is hold down on ToggleButton. (For better look)
- Before a StringGadget is selected, Keybuffer will now cleared.
- BBUseDesktopColors() and BBUseGuiColors()-Command Included.
- BBShowWallpaper()-Command Included.
- BBLoadMouse() has now an optional Parameter to select own MaskColors.
- BBFileRequest's Parent ("..") Symbol works now also with the last BlitzBinarys (V1.6)
- BBText,BBMakeMask and BBMakeBorder draws no longer over current Window (if it's longer)
- BBRemoveXYZButton has now an optional Parameter to remove Buttons Complete from Screen
V1.3
-------
- BBWinNums() Command Included, for Check the Number of Opening Windows.
- BBWindowHit() Command Included, for Click Windows into Front.
- BBOpenWindow() Returns now the Window-Id.
- Add ArrowButtons to Sliders. (Optional Parameter for BBVSlider & BBHSlider).
- BBSetVSliderState() & BBSetHSliderState() Command Included, to manipulate Sliders State.
V1.4
-------
- RotateButtons Included.
- MouseHelp Included.
- BBMakeBorder() Fixed: Border Views now correct when no BorderName is selected.
- BBUseDesktopColors() Fixed, for better getting the Colors from Win.INI (Win98)
- Active & Inactive WindowLook is now like the original Desktop. (Copper Effect)
- BBShowWallpaper() Fixed, for better getting the Desktop-Picture from Win.INI
- BBRequest() Fixed, for better getting the SoundData from Windows-Dir.
- BugFixed: Sliders Shows now correct when no ArrowButtons is selected.
- BBRemoveVSlider() & BBRemoveHSlider() Command Included.
- BBRemoveToggleButton() Command Included.
For more Details read please Command-Index
(You can Download Here the latest Version of the BBGadTools!)
Back to the Menu
Final Comment:
Why I have Create the BBGadTools:
Firstly it is very heavy to create a Mask for BlitzBasic. (My first GUI was 1995 for AmosPro
on Amiga. AmosPro was Like BlitzBasic. Therefore I have it converted today for BlitzBasic-PC)
Secondly I think BlitzBasic is not only a GameCreator. I hope with the BBGadTools
coming now more Tools & Utilitys thats write in BlitzBasic.
Back to the Menu