Date: 02-16-2022
Select a snippet (by title) from the categorized list below.
Or, if you know the gbs snippet number 'gbs_xxxxx', you can type it
it and press Open Snippet.
.Reference Materials
.API - Commonly Used (by me)
.API - Longer List (Desc only)
.API - Short List (Most Useful, with snippets)
.Controls - Child Controls of Common/Standard Controls
.Controls - Edit/Static/Button PowerBASIC Control Types
.Controls - Feature List
.Controls - MSDN Control Library Listing (ClassName + DLL)
.Controls - PowerBASIC Supported
.Data Types
.Default Control Styles (5 Line Separation)
.Default Control Styles (Equate Versions)
.Default Controls (One of Each)
.Default Font
.Dialog Units
.Message Structure
.MSDN links
.Notifications, Messages, Styles (by Common Control)
.Notifications, Messages, Styles (by Sys Object)
.Notifications, Messages, Styles (unsupported Common Controls)
.PBWin9/10 Include Differences
.Pointer Discussion
.PowerBASIC Command Syntax (PBWin10)
.PowerBASIC Command Syntax (PBWin9)
.PowerBASIC Compiler
.PowerBASIC Keywords
.PreDefined Class Names
.Programmer Tools
.Styles Constraints (by Common Control)
.TextBox Style
.Virtual-Key Codes
.Web Sites of Interest
.Window Styles
.WM_ Messages (Arguments, Summary, Descriptions)
API Functions
ChildWindowFromPoint
ClientToScreen
WM_CopyData
GetCursorPos
GetDlgCtrlID
GetDlgItem
GetFocus
GetModuleHandle/GetModuleFileName/LoadLibrary
GetParent
GetWindowText Test
IsDialogVisible
IsIconic
IsZoomed
LoadLibrary/GetProcAddress
MapWindowPoints
ScreenToClient
SendMessage
SetCursorPos
SetFocus
WindowFromPoint
WM_GetDlgCode I
WM_GetDlgCode II
WM_GetDlgCode III
.Unicode
.Control List
.Unicode Notes
Is %Unicode Defined
WM_DrawItem Test - Which Controls Send it
WM_NotifyFormat Test - Which Controls Send It
.Default Controls (One of Each)
IsWindowUnicode Test
Application Features
..X Commands
3-Levels of Dialogs
About Dialog
Admin Status
Allow Single Instance of Application
Animated Status Icon in Dialog (Thread Version)
AutoUpdater
Backup Strategy
Big Cursor
Big Pointer
Borderless Resize
Borderless Resize II
Browse For Folder
Button in a Caption
Cancel Closure (Capture Alt-F4 and "X" Button)
Capture F1
Center on Screen
Change Style at Runtime I
Change Style at Runtime II
Close And Restart An App I
Close and Restart An App II
Color on Display Font
Context Menu
Create Required Subfolders If Do Not Exist
Create SendTo Shortcut
Custom Cursor (Resource)
Desktop Shortcut
DeskTop Shortcut II
Determine Dialog Units
Dialog Set Text Test
Dialog Units
Disable Elements of the Title Bar
Display ASCII Table
DragDrop File on Application
DragDrop Multiple Files
Drop and Run App
Dynamic Taskbar Animation
Enumerate INI Entries I
Enumerate INI Entries II
File/Folder Browser I
File/Folder Browser II
File/Folder Browser III
Find and Replace
Force WM_Sizing on Startup
gbCodeInside
gbCodeInside - DLL Version
Get Window EXE
Get Window EXE (Jose)
Get EXE Associated with Extension
Get Caption Height
Get Edit Text from TeamViewer
Get Daily Message
Get True Window Position
Hide a Window
Instance Count
Interaction Between Main/Secondary Dialog
InterProcess Communication - App A
InterProcess Communication - App B
Keep Caption Blue
Keep on Top
TopMost on TopMost
Limit Min/Max Size
Maintain Aspect Ratio When Resizing (WM_GetMinMaxInfo)
Maintain MRU List
Manifest
Manifest - Admin Privileges
Manifest - comctrl32.dll
Manifest - Standard Privileges
Maximize Window
Message Pump - Dialog DoEvents
Minimize/Maximize Programatically
Mouse Cursor - Changing
Move Dialog Without Caption
MRU - Simple I
MRU - Simple II
MRU Using Array
MsgBox$ - Confirmation of Action
MsgBox$ - Modeless
MsgBox$ - Programmatically Close
Multiple Dialogs With Shared DlgProc
Online Update #1 - Check For Updates
Online Update #1 - Check for Updates (w/Progress)
Online Update #2 - gbOnlineUpdate.exe
On-Screen Keyboard
Open File In Client App
Open Help at a Topic
Open Help Files (.chm or .hlp)
Optional DLL
Paste To Dialog Surface
Path from Link
Please Wait ... Dialog
Poor Man's MDI I
Poor Man's MDI II
PreProcessor for Compiler
Print the Active Dialog
Print the Screen
Print Just a Control
Register Hotkey
Resize Control When Form Resizes
Resource - VersionInfo PBWin10
Resource File (Accessing)
Resource File (Create File-Based Resources)
Resource File (Enumerate Items)
Resource File (Files/Text/Number Resources)
Resource File (Get Bitmap Dimensions) I
Resource File (Get Bitmap Dimensions) II
Resource File (Get ICON Dimensions)
Resource File (Save Resource to File)
Return UDT from Function
Return UDT from Function II
Return Value from Dialog Show
Rollup With Desktop Edge Avoidance
Run DOS Commands
Run Embedded DLL
Save/Get Settings using INI file
Self Delete
Scroll Client Area of Dialog
Select Code For Compilation
Send Ctrl-V To Target App.
Set Caption
Set Z-Order
Settings_INI Template
Shortcut File Name From Which EXE Started
Splash Screen
Splitter Bars
Splitter Bars (Minimal)
Splitter Bars (Minimal, Sub-Classed)
Splitter Bars II
Splitter Bars II (Minimal, Sub-Classed)
Splitter Bars III
Splitter Bars III (Upper/Lower division only)
Splitter Bars IV Left/Right Split Only
Start Application With Window III
Start Application With Window IV
Start Application With Windows
Start Application With Windows II
Start External App
Status Icon in Dialog - PBWin10
Status Icon in Dialog - PBWin9
Test for Minimized/Maximized
Toolbar Only Dialog
Undo
Upside Down Window I
Upside Down Window II
Upside Down Window III - Jose
Vertical Form Accessible By Scrolling
View Stack Content
Wide Scroll Bars
Arrays
.Dimension An Array
.Pass Array to Sub/Function
Array Read/Write I
Array Read/Write II
Bubble Sort Variations
Bubble Sort - Two Dimension String Array
Bubble Sort Multiple Arrays at Same Time
Check If Array Is Dimensioned
Clear An Array
Custom UDT Sort
Cycle Through Array
External App Handle
Fast Array Copy
Fast Sort (John Gleason)
Insert Specific Element
Join Numeric Array Elements into a Single String
Join String Array Elements into a Single String
Min/Max Value of Array
On Disk UDT Sort
Pass UDT Array Element
QuickSort
Randomly Shuffle
Read/Write Array Data to File
Remove Duplicates
Remove Row or Col of 2D Array (numeric type only)
Remove Row or Col of 2D Array (all data types)
Remove Specific Element
Reverse An Array
Search (Binary)
Search Array RAM vs HardDrive
Search (Scan) Numeric Array
Search (Scan) String Array
Show Difference Between 2 String Arrays
Sort Numeric Array
Sort String Array
Assembly Language
.Tutorial
ASM Code
Convert Binary File to Inline Assembly Statements
String Comparison I - Paul Dixon
String Comparison II
String Comparison III
Callbacks
.Callback Return Values
Callback Skeleton
CB Functions
Control Callback
Custom Message
Lo/Hi Word Extraction
Pointers - Retreiving Structures from Messages
Pointers - Sending Structures with Messages
Clipboard
Clipboard Monitor
Copy Image To Clipboard
Copy Part of Screen To Clipboard
Capture Part of Dialog to Clipboard
Copy Union of Windows to Clipboard
Size of Bitmap on Clipboard
Collections
Simple Collection Example
Controls - .Basic Examples
. One of Everything
. Syntax Summary
All Controls
Button
Calendar Control - Full
Check3State
CheckBox
ComboBox
Frame
Graphic
Image
ImageX
ImgButton
ImgButtonX
Label
Line
ListBox
ListView
Monthly Calender
Option
ProgressBar
ScrollBar
StatusBar
TAB
TextBox
Toolbar
Trackbar
Trackbar - Used to Set Timer Interval
TreeView
Up-Down Control
Controls - .Customization
.Overview
.Owner Draw Reference
.Custom Draw Reference
Owner Draw - Button
WM_CtlColor
Controls - .Techniques
All Controls - Drag Control To New Location
All Controls - Drag Control To New Location (PBWin10)
All Controls - Explode a Control
All Controls - Get/Sect Focus
All Controls - Is Scrollbar Visible
All Controls - Set Child Window as Top-Level
All Controls - Set TAB Order
All Controls - SubClassing
All Controls - SuperClassing
All Controls - Tooltip
All Controls - Variable Tooltip
Button - Fake Button Using Image Control I
Button - Fake Button Using Image Controls II
Button - OwnerDrawn (Kev Peel)
Button - OwnerDrawn I
Button - OwnerDrawn II
Buttons - Programmatically Click
Calendar Control - Calendar Only (Context)
Calendar Control - Calendar Only (Dialog)
ComboBox - Combo Select I - Gary
ComboBox - Combo Select II - Gary
ComboBox - Combo Select III - Borje
ComboBox - Combo Select IV - Gary
ComboBox - MouseWheel on Numerical Values
Get Pre and Post Selection Text
ComboBox - Hide Selection
ComboBox - List Manager
ComboBox - Maintain Selection on ComboBox
ComboBox - Maintain Selection on ComboBox - Semem
ComboBox - Maintain Selecton on ComboBox (Hide When Lost Focus)
ComboBox - ReSize Dropdown List To Fit Data
ComboBox - Right Click Dropdown List
ComboBox - Set BG Color of ComboBox Edit Control
ComboBox - Subclass Edit Control
Graphic Control - Anti-Flicker
Graphic Control - Click on Control
Graphic Control - Drag Viritual Position
Graphic Control - Ensure Focus
Graphic Control - Load Image from File
Graphic Control - Load Image from Resource (PBWin10)
Graphic Control - Load Image from Resource File *.PBR
Graphic Control - Maintain Virtual Position
Graphic Control - Image Gallery
Graphic Control - Image Gallery Virtual
Graphic Control - Toggle Between Two Images
Graphic Control - Virtual Graphic Test
ImgButton - Change Image in ImgButton When Pressed I
ImgButton - Change Image in ImgButton When Pressed II
InputBox$ - Center Over Application
Custom InputBox$
InputBox$ - Resize InputBox$ - Hooking
InputBox$ Customization
InputBox$ - Password Protection
Label - Active URL
Line - Set Background Color (Undocumented)
Line - Set Background Color
ListBox - Add CheckBoxes
ListBox - AutoSize to Content
ListBox - Drag Items To New Location
ListView - Drag Items to New Position
Listbox - Fill Right From Left
ListBox - Find Text and Set at Top of ListBox
ListBox - Horizontal Scrollbar
ListBox - MultiColumn ListBox
ListBox - OwnerDrawn Colored ListBox
ListBox - Scroll Specified #Lines
ListBox - Smooth Loading
ListBox - Sort Keeps Selection
ListBox - Synchronized Scroll
ListBox - Two Columns
ListBox = Used As Property Dialog
ListView - Set Font of Header and List
MsgBox - Center Over Application
MsgBox - Custom Sound/Icon
MsgBox - Resize MsgBox
Progress Bar - 10 Bar ProgressBar
Progress Bar - Poor Man's Progress Bar (in Satusbar) II
Progress Bar - Poor Man's Progress Bar (in Statusbar) I
Progress Bar - Within Statusbar
Progress Bar - Within Statusbar II
Progress Bar - Within StatusBar III
StatusBar - Determine Part Clicked On
TAB - Change Icon on Page
Tab - Detect Click on Tab Icon
Tab - Disable Page
TAB - Detect Right Mouse Click on TAB Header
TAB - Drag Tab Pages to New Location
TAB - Keep Select History
TAB - Move TAB Positions
TAB - Two Icons on TAB
Toolbar - Change Button Image at RunTime
TaskBar - Detect Changes in TaskBar
Taskbar - Determines if AutoHide is On
Taskbar - Monitor Presence of TaskBar
TaskBar - Taskbar Messages
Toolbar - Built-In + User Icons (from files)
Toolbar - Built-In Icons (DDT)
Toolbar - Built-In Icons (SDK)
Toolbar - DoubleClick
Toolbar - Drag Dialog Using Toolbar
Toolbar - Drag Buttons on Toolbar I - Simple
Toolbar - Drag Buttons on Toolbar II - Shift-Drag
Toolbar - Drag Buttons on Toolbar III - non-Shift-Drag
Toolbar - Dropdown Buttons
Toolbar - Dual TOP Toolbars (Top-Most Method)
Toolbar - Dual TOP Toolbars (Wrap Method)
Toolbar - Dynamic Images I
Dynamic Images II
Dynamic Images III - Shortest Version
Change Toolbar Icon Colors at RunTime
Toolbar - Enabled/Disabled ImageLists
Toolbar - Floating/Synchronized
Toolbar - Fixed Width
Toolbar - Get Focus
Toolbar - Gray Button vs Disable Button
Toolbar - Save Toolbar Changes
Toolbar - Save Toolbar Changes - Using Customization Dialog
Toolbar - Tooltips (DDT)
Toolbar - Tooltips (SDK)
Toolbar - Transparent I
Toolbar - Transparent II
Toolbar - Transparent III
Toolbar - Transparent IV
Toolbar - Transparent V
Wide Toolbar
Wide Toolbar II
Controls - Edit Controls
..Edit Controls Overview
.64K Limit Issues
.API Summary (Edit Controls)
.Compilable Edit Control Example (Skeleton)
.Edit Control vs RichEdit Control Messages
.Notifications
AutoHighlight Text
Avoid Highlighting When Get Focus - TextBox - No SubClassing
Big Caret
Big Caret II
Customize Context menu (Textbox)
Detect Enter Key in MultiLine TextBox
Detect Enter Key in SingleLine TextBox
Find Text
Flicker Control
Force Case on Text Input
Get All Text
Get Caret Location
Get Characters M-N
Get Current Line Number
Get Current Line Text
Get Line Count
Get Line M Text
Get Line M-N Text
Get Selected Text / Selection Boundary
Get Text of TopMost Visible Line
Get Top and Bottom Line #'s
Hide Caret in TextBox
Hide Scrollbars At RunTime
Hide Scrollbar at RunTime II
Maintain Selection on TextBox (Hide When Lost Focus)
Multiple TextBox SubClasssing
Password Toggle
Allow Only Specified Keys
Remove Highlighting of TextBox on Startup
Replace All Text (Set Text)
Replace Current Line
Replace Line M
Replace Lines M-N
Replace Chars M-N
Replace Selection / Insert At Caret
Select All Text
Select Chars M-N
Select Current Line
Select Line M
Select Lines M-N
Select None (UnSelect All)
Set Margin
Set Text Limit
SubClassing
SubClassing With Shared DlgProc
SubClass Many
TextBox - WordWrapping
Undo/ Redo
Unselect Text
Controls - ListView
.Simple ListView Example
Colored Lines
Colored Lines (non-OwnerDraw)
ComboBox in ListView
Context menu
Delete Row
Detect Checkbox Change
Detect CheckBox Change II
Detect New Selection
Expand/Collapse Rows
Ensure Visible Cell
File/Folder Search Test - Virtual ListView
File/Folder Search Test II - Virtual ListView
FilterBar
Get Image Index
Get List of Selected Lines
Get Selected Cell
Grouping
Grouping II
Group III - Collapsible
Identify Selected Item (or Not)
Item Changed
LabelTip - I - Built-In InfoTip
LabelTip - II - Built-In InfoTip Enhanced
LabelTip - III - Tooltip Control
Last ListView Row Selected
List Files in ListView
ListBox in ListView
Mouse Emulation of Shift-Click Selection
Outlook as Posted
Outlook Listview Sizing
Outlook ListView Sizing II
OutLook ListView Sizing III
Outlook ListView Sizing IV
Outlook ListVIew Sizing V
Outlook ListView Sizing VI
Outlook ListView Sizing VII
Prevent Resizing of Column Headers
Save Session
Set Cell Colors of Listview
Set Top Item Of ListView
Sizing I
Sizing II
Sort Arrows
Sort Columns
Synchronize Mouse and Keyboard Focus
Synchronized Scrolling I - Kev Peel
Synchronized Scrolling II - Pierre
Synchronized Scrolling III - Pierre Modified
Synchronized Scrolling IV - More DDT
Synchronized Scrolling V - Virtual
Synchronized Scrolling VI - Non-SubClass - Pierre
Synchronized Scrolling VII - Non-SubClass - MCM
Toggle CheckBoxes
Two Icons Columns
Virtual ListView
Virtual Listview - Index Based Sort
Virtual ListView with Two Icons
Virtual ListView (Single Array)
Width Test
Controls - MLG
Wrapper Functions
...OverView
..DDT Template (Minimal)
..DDT Template (Switch Examples)
..Using MLG - Switches
..Using MLG - Basic Actions
.Reference: Functions
.Reference: Messages (List)
.Reference: Messages (Usage)
.Reference: Notifications
.Reference: Structures and Equates
Absolute Array
CallBack
Clear Grid
Copy Grid Image to Clipboard
Copy Grid Values to An Array
Cut/Copy/Insert/Paste Column
Cut/Copy/Insert/Paste Row
Cut/Copy/Paste/Delete Cell
Dirty Grid
Print a Cell Range
Save/Restore Grid Between Sessions
Set Cell Font, Font Size, and Color
Set Header Color/Width
Sort By Multiple Columns
Sort By One Column
WorkBooks
Controls - RichEdit
.3 Control Versions
.64K Limit Issues
.API Summary
.Compilable RichEdit Example (Skeleton)
.Compilable RichEdit Example (Smaller Skeleton)
.Notifications
.RichEdit vs Edit Control Messages
.Shortcut Keys
.Usage Summary - RichEdit Control
AutoHighlight Text
Basic 1: Get Text/Boundaries: AllText, Selection, Caret, Current Line, LineM, LinesM-N, CharsM-N
Basic 2: Replace Text: All, Selection, Current Line, LineM, LinesM-N, CharsM-N
Basic 3: Select Text: All, Current Line, LineM, LinesM-N, CharsM-N
Big Caret
Bullets on Text
Character To Left of Cursor
Character Spacing
Combined FriendlyURL and Wide Spacing
Context menu (RichEdit control)
Ctrl-V Capture via Subclassing
Cycle Through RichEdit Lines
Display Line Numbers/Colors
Enable Hyperlinks
Enable HyperLinks II
Set HyperLink Cursor
Export To HTML
Export to HTML (w/TAB Expansion)
Fast Syntax Highlighter - Borje
Find Replace with Richedit
Flicker Control
Get Bottom Visible Line#
Get Characters m-n
Get Line Count
Get Text of TopMost Visible Line
Get/Save RTF Content
Intellisense
Intellisense w/Syntax Highlighting
Keep Selection When Lose Focus - RichEdit
Line Height (3 Methods)
Line Numbers in RE I
Line Numbers in RE I
Multiple RichEdit "Selections" I
Multiple RichEdit "Selections" II
Original Syntax Highlighter - Borje
Prevent Paste
Print RTF (Color)
RE Stream
Rich Edit - Protected Text
RichEdit - Keep Selection II When Lost Focus - RichEdit
RichEdit - Keep Selection III When Lose Focus - Dominic
RichEdit from Borje
RTF Wide LInes
Save/Restore Position
Search Up and Down
Sequentially Highlight Words (Of Selection)
Set Text Limit
Set Top Line
Setting TabStops
Spell Check (Single Word)
Spell Check (Source Code Strings/Comments)
Spell Check (Using Word Object)
StrikeOut
SubClassing
Synchronized Scroll (2 RichEdit Controls)
Syntax Highlighting
Syntax Highlighting Template
Syntax Highlighting (Visible Lines Only)
Syntax Highlighting (Visible Lines Only)
TAB Capture - Subclass (KeyDown)
TAB Capture - Subclass (WM_GetDlgCode)
TAB Capture - WM_NextDlgCtl
Unselect Text
Vertical Centering
Wide Spacing
Controls - Scintilla
Example00: Introduction
Example01: Minimal Code
Example02: Messages - Controlling Scintilla
Example03: Strings In Messages
Example04: Barely Above Minimal Code
Example05: Template (Shorter)
Example06: Template (Longer)
Example07: Notifications
Example08: Caret Features
Example09: Cursor Shape
Example10: Zoom
Example11: Replace PopupMenu
Example12: Styles
Example13: Display Style Info
Example14: Fonts
Example15: Margins
Example16: Colors
Example17: Find & Replace
Example18: Replace Text Using Targets
Example19: RegExp Find
Example20: Create URL Hotspot
Example20B: Create URL Hotspot - Single Line Version
Example21: Greenbar
Example22: Greenbar II
Example23: Greenbar III
Example24: Markers
Example25: Multiple Views
Example25B: Multiple Views (Simple)
Example26: Indentation Guides
Example27: White Space and End of Line Characters
Example28: Printing
Example29: Keyboard Commands
Example30: Undo/Redo
Example31: Dirty Document Handler
Example32: Cut/Copy/Paste
Example33: Scrolling and AutoScroll
Example34: Count/Position Information
Example35: Selections
Example36: Get/Set Text Actions
Example37: Line Wrapping
Example38: Indicators
Example39: Call Tips
Example40: Brace Highlighting
Example41: AutoCompletion
Example42: Intellisense
Example43: Annotations
Example44: Direct Access (Speed Tip)
Example45: Lexer - Built-In
Example46: Lexer - Container (Simple)
Example47: Lexer - Container (Advanced)
Example48: Lexer - Create External DLL ... on hold
Example49: Lexer - Using External DLL ... on hold
Example50: Folding - Built-In
Example51: Folding - Container (Simple)
Example52: Folding - Container (Advanced)
Example53: Notification Monitoring
Example54: AutoIndentation
Example55: Bookmarks
Example56: Load Text into Scintilla Control
Example57: HTML Help Usage
Reference: LexPB.cxx
Reference: LexVB.cxx
Reference: PureBasic Custom Lexer
Reference: ScintillaBase.cxx
Controls - TreeView
.Compilable TreeView Example
Edit/Modify
Build Treeview from Text Content
Cut/Copy/Paste Nodes
Change Style At RunTime
Change Node Icons at RunTime
Cut/Copy/Paste/Delete Nodes (Context Menu)
Delete Children of Node (including sub-nodes)
Delete Node + Children (including sub-nodes)
Retrieve Incremental Search String (WM_User)
Search TreeView - Limited to Parent Sibling List
Edit Tree Label (in-place)
Expand/Collapse Node
Expand/Collapse Node (including sub-nodes)
Move Node Up/Down Amongst Its Siblings
Remove CheckBox from Node
Save/Restore Tree
Sort Children of Node (no sub-nodes)
Sort Children of Node + SubNodes
Turn Icon Display On/Off
Information
Does Node Exist
Is Node a Parent
Node Child Count
Node Child Count (including sub-nodes)
Traverse/Walk Tree
Children of Node (return last child)
Children+SubNodes of Node (return last node)
Node to End of Tree (return last node)
One Node Down
Debug
.Compiler Directives
.Trace Template
Error List
IsProcedure
Monitor Messages - Callback (GetMsgText)
Monitor Messages - Console Method
Monitor Messages - Console Method (WinMsg)
Place Log File Anywhere
TXT Window
zTrace
Dialogs (built-in)
Browse Folders Dialog
Browser Folder (fix for scrolling)
Color Dialog
Font Dialog
Modify Dialog Button Text
Open File Dialog
Printer Dialog
Save File Dialog
Direct Show
_0_DirectShow Include
_1_CameraList
_2_Display First Camera
_3_GetCurrentFormat
_4_GetSupportedFormats
_5_SetSpecifiedIndex
_6_DisplayNamedCamera
_7_SetCameraAndResolution
New Sibling
Merge of All Examples
All Examples
DirectShow Reference
Jose - Enumerate Filters
Jose - Play Video Clip - DDT
Play a File #0
GetCameraList #1
DisplayFirstCamera #2
DisplayNamedCamera #3
Get/Set Settings #4
Get Supported Formats #5
Modify Frame In-Stream (ISampleGrabber) #6
New Sample Grabber
Alt Grabber Method
Working Version A
Conversion, Overlapping Dialogs, Multiple Versions
Zoom In/Out Using Graphic Control
DLLs
.Background DLL Information
.Calling Conventions
.Declare Syntax
Create - DLL (LibMain)
Create - DLL (PBLibMain)
Create - Simple DLL
Create - Very Simple DLL
Indirect Calling (Internal Procedure)
RunTime DLL
Use - DLL (LibMain)
Use - DLL (PBLibMain)
Use - Simple DLL
Use - Very Simple DLL
Files/Folders
Age of File
Alternate DIR$ Syntax
Backup/Restore a File
Clear File Cache
ClearFileCache
Combine Path/File Parts
Compare Two Folders
Confirm Overwrite Of a File
Convert Relative Path to Full Path
Create Folders
Create Zip File From File
Create Zip File From Files
Create Zip File From Folder
Create Large Empty File
CVL Test
Cycle Next Through Files in a Folder
Cycle Through Files in a Folder - Backward/Forward
Delete Folder & Sub-Folders
Determine If File Is Open
Determine If File or Folder Exists
Extract Parts of PathName
FastDeleteFolder - Pierre
FastDeleteFolder
FastFolderKiller
File Exists
File Exists - zExist
File List Using PathMatchSpec
File Search
File Size from DirData
File/Folder Browser
File/Folder List
File/Folder List - ListBox
File/Folder List - Speed Test
FileCopy
Get Date/Time of File
Get File Attributes
Get List of Folders
Get List of All Files and Folders
Get File Size
Get Mode of Open File
Get Parent Folder
Hex Dump of String/File (Beene)
Hex Dump of String (Hutch)
Hex Dump non-ASM (minimal)
Hex Dump non-ASM Speed Test
Indexed Text Files
List Drive Letters (DDT only)
List Drive Letters (with type)
List Files/Folders
List Files/Folders (Recursive)
List Files/Folders in TreeView/ListView
Monitor File Change
Move to Recycle BIn
Move to Recycle Bin II
Move to Recycle Bin III
Open DOS at Path
Open Explorer at Path
Open Window at Path
Read Entire Text File Into Array
Read Entire Text File Into String
Read Fixed Lines Into TextBox
Read First n Lines of Text File Into Array
Read MFT - Pierre
Read MFT - Slater
Read Text File, One Line At a Time
Read/Write Entire Numeric Array
Send File/Folder to Recycle Bin
Send File/Folder to Recycle Bin
SHBrowseForFolder - Jose
SHBrowseForFolder - MCM
SHBrowserForFolder - Karl Peterson
Use Temp Directory
Wipe Drive
Write/Read UDT To/From File
Fonts
Enum Font List
Enum Font List II - EnumFontFamilies
Enum Font List III - EnumFontFamilies
Enum Font List III - EnumFonts
Font End Demo
Font Viewer
LED Font
Make Font
System Fonts
Games
Game Board
Hilbert
Moving Eyes
Draw Eyes II
Graphics
.Color Conversions - RGB/BGR/Long
.Color Notation
.Graphics Links at MSDN
.Graphics Overview - PowerBASIC
.Image Formats
.BMP File Format
.GIF File Format
.JPG File Format
.PNG File Format
3D
3D Mini Blocks
3D Modelling I - Minimal Code
3D Modelling II - Minimal Code + Read From File
3D Pie Chart
Art
Ascii Art
Matrix Waterfall Graphics
Mosaic Stereogram
Picture Art
Text Stereogram
Aspect Ratio
Largest AR Rectangle
Maintain Aspect Ratio of Client I
Maintain Aspect Ratio of Client II
Bitmaps
Array Overlay on bmp$
Convert Image to DATA Statements
Convert To BW
Convert To GrayScale
GrayScale and Contrast and Brightness
Count Colors
Display Bitmap
Get Bitmap Color Depth (From *.bmp File)
Get Bitmap Dimensions (From *.bmp File)
Get Image Sizes - 4 Standard System Types
Get Resource Bitmap Size
Lighten/Darken an Image I
Lighten/Darken An Image II
Load Image From File (DDT)
Modify Image Using Graphic Get/Set Bits
Full Screen Black and Whitee
Pixel Manipulation - DIM ... AT
Pixel Manipulation (Bits String)
Pixel Manipulation (show AND/MASK bits)
Resize Control - Maintain Aspect Ratio - 2 Otpions
Resize Image - Maintain Aspect Ratio (PBWin10)
Resize Image - Maintain Aspect Ratio (PBWin9)
Zero 4th Byte in Bit String
BMP Tutor Series (API)
.BMP Tutor Reference
BMP Tutor - API Copy Image From One Control to Another
BMP Tutor - Convert bmp$ --> Colors(x,y)
BMP Tutor - Convert Colors(x,y) --> bmp$
BMP Tutor - Create *.bmp by Code
BMP Tutor - Manually Create --> hDIB
BMP Tutor - Read *.bmp (file) --> hBMP (Get/Put)
BMP Tutor - Read *.bmp (file) --> hBMP (LoadImage)
BMP Tutor - Read *.bmp (file) --> hDIB (LoadImage)
BMP Tutor - Read *.bmp (resource) --> hBMP (LoadImage)
BMP Tutor - Ref-01 API/Data Structure Reference
BMP Tutor - Ref-02 Bitmap Types: DIB, DDB, and DIB Section
BMP Tutor - Ref-03 PowerBASIC Bitmap Options: Load/Display/Edit/Save
BMP Tutor - Ref-04 DIB Bitmap File Overview
BMP Tutor - Ref-05 Commonly Used API
BMP Tutor - Ref-06 Padding Calculations
BMP Tutor - Ref-07 Load OEM Bitmaps
BMP Tutor - Ref-08 Load OEM Icons
BMP Tutor - Ref-09 Determine Type of Bitmap
BMP Tutor - Ref-10 Delete/Release DC
BMP Tutor - Ref-11 Extracting Image Color Data
BMP Tutor - Ref-12 Color Arrays and Bistrings
BMP Tutor - Ref-13 Copy DC to DC (BitBlt)
DIB Section
Colors
Adjust Color Dialog - Equate Arrays
Adjust Color Dialog - Fixed Equates
Color Swap
Fast GetPixel From Screen
Get Color Anywhere On Screen - Get and Keep DC
Get Color Anywhere On Screen - Get And Release DC
Get RGB Speed Test
Color Inversion
Controls
Copy Control To File
Copy Control To File II
Graphic Window
Load 2 Graphic Controls At One Time
Load Image/ImageX Controls (from .pbr)
Load ImgButton/ImgButtonX Controls (from .pbr)
Load JPG/GIF Images (ListView)
Convert Bitmap to Icon
Convert hBMP to hIcon (B&W)
Convert hBMP to hIcon (Color)
Convert hBMP to hIcon (Dixon)
Convert hBMP to hIcon (Gary+Paul)
Drawing
Draw Arrows
Draw Arrows at Angle
Draw Boxes at Angle
Ellipse Arc Length
Ellipse Arc Length II
Bezier Curve
Smooth Curve (Series of Bezier Curves)
Cross Hatch Lines
CrossHairs
Focus Rectangle - Over Dialog, API
Focus Rectangle - Over Dialog, Persistent, Manually Draw Points
Focus Rectangle - Over Dialog, Persistent, OffsetRect API
Focus Rectangle - Over Graphic Control, DDT
Free Style I
Free Style II
Free Style Line Drawing (Simulated)
Free Style Line Direction
Graphic Line Equivalent
Graphic Line Equivalent II
MidPoint Circle Algorithm
PtInEllipse
Thick Line
Games
Fire I - Graphic Set Pixel
Fire II - Graphic BitStrings
Falling Sand
Gradients
Color Table 13x9
HLS to RGB Conversion - Color Wheel
Gradient DDT II
Gradient Fill
Gradient Fill Between Two Colors
Gradient Fill I
Gradient Fill II
Gradient Fill III
Gradient Fill IV
Icons
Animated Taskbar Icon
Animated Taskbar Icon II
Animated Taskbar Icon III
Animated TaskBar Icon IV
Use Built-In Icon for Dialog Icon
Built-In Icons
Built-In Icons II
Extract Icon
Get Icon Dimensions (Resource Image)
Icon - gbSnippets Logo
Icon Extractor
Load Icon
Read and Store Icon
Layered Windows
Basic Example
Another Basic Example
Transparent Calendar (Draw on Dialog)
Control on Transparent Dialog
Draw Directly on on Transparent Dialog
Transparent Clock
Transparency Test
Transparent Color Keying
Two Dialog Layers - Color Key + Mouse Effect
Two Dialog Layers - Just Transparency
Miscellaneous
BarCode
Gauge
Region of Interest
Region of Interest II
SlideShow
ArcSin
Bound Pt WithIn a Rectangle
Maze
Icons in File
Water Ripple
Non-Rectangular Dialogs
Un-Square Dialog Holes VI - CreateEllipticalRgn
Un-Square Dialog I - CreateEllipticalRgn
Un-Square Dialog III - CreatePolygonRgn
Un-Square Image IV - CreateEllipticalRgn
Un-Square Image V - CreateEllipticalRgn
Plotting
Histogram
Plot Data
Oscilloscope with Moving Sine Wave
Ripples
Water Ripple Demo
Rotation
Bounding Box for Rotated Image
Flip V/H Speed Test
Flip Vert/Horz
Get Full 0-360 Angle of a Point
PlgBlt I
PlgBlt II
Pointer VS of Rotate
Rotate/Show Any Image
Rotate Bitmap
Rotate Bitmap II
Rotate Bitmap II
Rotate Bitmap IV
Rotate Bitmap V - World Transformations
Rotate Image w/OpenGl
Rotate Image w/OpenGl (Jose CreateTexture)
Rotate Text
RotateBitmap III
RotateBitmap IV - Interpolation
Simple Text Rotate
Text Rotate
Screen Capture
Capture Dialog (VK_Snapshot)
Capture Dialog (WM_Print)
Capture Part of Screen
Capture Screen
Capture/Save Both Dialog/Screen
Print Dialog (Uses clipboard)
Print Dialog (Uses DCs)
Repetitive Screen Captures
Repetitive Screen Captures
Screen Capture
Screen Capture II
Screen Capture III
Simple Screen Capture
Screensaver Tutor Series
Screensaver - Dialog as Canvas
ScreenSaver - Moving Sprites
ScreenSaver - RFoxDesigns
ScreenSaver - Start Screensaver
ScreenSaver - Template (Dialog As Drawing Surface)
ScreenSaver - Template (Uses Graphic Control)
ScreenSaver - AutoStart ScreenSaver
Darken Monitor
Sprite Tutor Series
Sprite 01 - RealTime, No Buffer, 1 Sprite
Sprite 02 - One Static Image (Bitmap), Single Frame, Memory Bitmap per Frame
Sprite 03 - One Static Image (Icon), Single Frame
Sprite 04 - RealTime Images
Sprite 05 - Array of Static Images (Bitmaps), Single Frame
Sprite 06 - Array of Static Images (Icons), Single Frame
Sprite 07 - Array (1000, 32x32) of Images (Icons) w/Redraw
Sprite 08 - Array (1000, 4x4) of Images (Icons) w/Redraw
Sprite 09 - Array (50Composite, 128x128) of Images (Icons) w/Redraw
Sprite 10 - Array (1000Composite, 32x32) of Images (Icons) w/Redraw
Sprite 101
Sprite 11 - Array (1000Composite, 4x4) of Images (Icons) w/Redraw
Sprite 12 - Dixon (All BASIC)
Sprite 13 - Dixon (All BASIC) - Modified
Sprite 14 - Dixon (w/ASM)
Sprite 15 - Draw/Erase Sprite
Sprite 16 - Draw/Erase Sprite (No Mask)
Tiling
Tiled Images I
Tiled Images II
Wallpaper
Remove Wallpaper
Set Wallpaper - from file
Set Wallpaper - use dialog image
Graphics - GDI
.. 1x1 Demo
.. API Arguments / Data Structure Reference
.. Create a Color Bitmap
.. DC Examples
.. GDI/Bitmap Links
.. Get Pixel Speed Test
..Bitmaps
..Brushes/Pens
..Colors/FilledShapes/Lines.Curves
..Desktop Question
..Device Context
..Fonts and Text
..Painting and Drawing
.Graphics Overview - GDI
.Introduction
Bitmap Structures
Bitmaps I
Bitmaps II
DC Test - Chris Boss
DC Test - Chris Boss II
DC Test - Chris Boss III
Draw Directly on Dialog
Device Context
Filled Shapes / Lines & Curves
Fonts & Text ... empty
GDI Article - DIBs and Their Use
GDI Examples
GDI Graphic Functions
GDI vs PowerBASIC
Load Image From File
More bitmap stuff
Painting and Drawing
Paths/Regions/Clipping ... empty
Pens/Brushes
Rectangle Math
Rounded Box Corners
Stephens - I - GraphicA -> CompatDC -> GraphicB
Stephens - II - GetBitmapBits/SetBitmaps (x,y) in Bytes
Stephens - III - GetBitmapBits/SetBitmaps (x,y) in Long
Stephens - III - GetBitmapBits/SetBitmaps (x,y) in RGBQuad
Stephens - IV - GetiDIBits (x,y) in Long
Write Directly To Desktop
Graphics - GDI+
.Graphics Overview - GDI+
Template for Loading/Editing/Saving JPG/PNG/BMP/GIF Images
Template II for Loading/Editing/Saving JPG/PNG/BMP/GIF Images
Load Image File To Memory Bitmap
Load Image File With Transparency
Animation of JPG/GIF/PNG Images
.Mini GDI+ Include
.Questions
.Template - long duration
.Template - short duration
.Tutorial
.Tutorial II
.Tutorial III
Draw on Graphic Control
Get Image Size (non-BMP)
GDI+ - Load BMP/GIF/JPG Image to Graphic Control
GDI+ - Save Graphic Control Image as BMP/GIF/JPG
GDI+ Test Bed
GDIPlus Image Rotation (Petr)
Get Bitmap Dimensions (Resource Image)
Load JPG/GIF Images (GDI+)
Load JPG/GIF Images (GDI+) to Graphic Controls
Load JPG/GIF Images to Memory Bitmap
Load JPG/GIF Imagse to Array of Memory Bitmaps
Load Image to Clipboard
Save Image File as BMP/GIF/JPG
Save Resource as BMP
Save Any Image File as BMP
Text to PNG
OPen PNG
Graphics - OpenGL
.GDIImage Links
.GDIPlus_Simple Include
All 10 Primitives
Barely Minimal Code
Bare Code - Label Control
Better Minimal Code (2nd Dialog)
Better Minimal Code (Dialog)
Circle of Line_Loops
Cubes (Points, Wireframe, Solid)
Cylinder, Disk, Partial Disk
Depth Field
Display List I (1 Cube)
Display List II (2 Cubes)
Display List III (Many Cubes)
glPushMatrix / glPopMatrix
Line, Wide, Antialiasing
Orthographic vs Perspective Projection
Point, Large, Antialiasing
Rotate Object Around Origin
Sphere (Points, Wireframe, Solid)
Template w/User Interface
Template w/User Interface (DoEvents)
Texture Mapping (different image each face)
Texture Mapping (Minimal)
Texture Mapping (same image, all faces)
Twin Viewports (Label Controls)
Two Spinning Cubes, One Orbiting Other
Two Spinning Cubes, Rotate About Common Center
Use 2nd Dialog As OpenGL Canvas
Use Graphic Control As OpenGL Canvas
Use Graphic Window As OpenGL Canvas ... in work
Use Label Control As OpenGL Canvas
WalkThrough (Arrow Keys)
WalkThrough (AutoWalk)
WalkThrough (Mouse)
Wireframe Cube (Line_Loops)
World ... in work
Hooking
Font Hook (ChooseFont)
Font Hook (Dialog Font)
Hooking Overview
KeyBoard Hook
KeyBoard Hook II
Mouse Hook
Mouse Hook
Internet
.Reference: HTTP Message Structures
.Reference: HTTP Request Headers
.Reference: TCP/UDP Statements/Syntax
.Reference: WinInet API & Structures
Browser in PB App
Connection Exist?
Connection Exist II
Convert IP To String and Back
Create HTML File Programatically
Create URL Shortcut
Download URL w/Progress
Download HTTPS
Email - Send Using Default Client
Email Using Outlook - Quiet Mode
File Exist httprequest-Jose
File Exists TCP
Find in Browser Control
FTP Upload
Get URL Text
HTTP Response - Separate Header From Body
HTTP Response - Separate Header Parts
Open URL - Using Default Browser
TCP - Download Header Only
TCP - Download Large File (HTTP)
Download With TCP
FTP II
TCP - Download Small File (HTTP)
TCP - Get URL File Size / Date
URL Parsing
WinInet - Download Header Only
WinInet - Download Large File, w/status
WinInet - Download Small File
WinInet - Get URL File Size / Date
WinInet - PING
WinInet - Test for Internet Connection
Jose Roca
.Links
.Template
Automate Web Page
Automate Web Page II
Batch InnerText I (MSHTML.inc)
Batch Inner Text II (AfxPumpMessages)
Binary Browser Colors
Capture Entire Web Page
Capture WEb Page 2
Capture Web Page 3
Capture Web Page 4
Context Menu
Custom Context Menu
Detect Document Load
Detect Document Load II
Embed Browser - CWindow (Highlight/Go/Find/GetText)
Find All Links in Document
Find Links - .Links Method of Collection
Find Links - GetElementsByTagName
Find Links - COM Enumerator
Get Size of Image Element
Get Selected Text in Browser
Get Entire Text of Document
Get Selected Text
Go Back/Forward
Handles to Browsers
HighLight Multiple Terms
innerText Example
Kill Web Browser
Parse HTML Files
Print / Print Preview
Scroll To Top/Bottom
Scroll Top Property
Sequential Tag Selection (Ignores Selection)
Sequential Tag Selection (Uses Selection)
Streaming
Toggle Custom Menu
Embedded WebBrowser DOM
Zoom In/Out
Keyboard
OSK
%IDOK + %IDCancel + ESC + Enter
%IDOK + Enter (Exception)
.Introduction - Messages & Functions
.Message Detection (TextBox SubClassing)
Arrow Key Capture
Ctrl-V
Enter
F1 (Help)
F2
Get Key State At Any Time
Get Key State At Time of Event
TAB
Macros
Example01 - Single Line
Math
aTAN2
Convert Big Endian to Little Endian
Convert Binary to Decimal
Convert Decimal to Binary
Convert Decimal to Hex
Convert Hex to Decimal
Embed Values in Integer
Evaluate Equation
Fast MOD
Generate Random Number
Hex String With Peek/Poke
Line Intersects Rectangle
Manipulating bits in variables
Point in Bounds
Round to Specified Decimals
Storing Multiple Values in a DWord Integer
Storing Multiple Values in a Long Integer
TIX Test of MOD Versions
Menus
.Really Simple Menu Example
.Show Underlines in Menu Text
Activate Alt+Accelerator Key
Check Menu Items
Far Right Menu
Flip menu check state
Help - By Menu and F1
Menu - Skeleton, 1-Level
Menu - Skeleton, 2-Level
Menu - Skeleton, Context, TextBox
Set Menu Status
Show Bitmap In Menu Item
Mouse
.Messages of Interest (wParam/lParam definitions)
AutoSefFocus With Tooltips
ClipCursor - Limit Cursort to Rectangular Area
Detect Mouse Anywhere
Detect Mouse Click Anywhere - Layered Window
Detect Mouse Position (All Controls)
Detecting Mouse Wheel Scrolling
Draw on Desktop (Over Cursor)
Draw on Transparent Dialog (Over Cursor)
Flash Cursor
Focus Follows Mouse
Mouse Capture
Mouse Outside - David Roberts
Mouse Outside - Jose
Mouse Outside - Jules
Mouse Sonar
Repeat Action While Mouse Pressed
Repeat Action While Button Pressed (No SubClassing)
Set Cursor For Each Control
SetCapture by Dominic
Test for Mouse Click in Control
Virtual Position of Mouse
Objects
Code
.Introduction
.Introduction (Code)
Simple Example III
Create An Object
Property Get/Set
Simple Example 0 - Get/Set Only
Simple Example I
Simple Example II
Stand-Alone Interface
Syntax
Use of ME
OCR
Extract Text from Image (Tesseract)
Pointers
Pointer to UDT
Printing
Align Decimals
Clipboard to 5x7
Draw text centered on printer page
Landscape
Line To Line Height
Print Dialog (Memory Bitmap)
Print Dialog (StretchBlt to XPrint)
Print Preview
Print Preview Include
Another Print Preview
Print 2D Array, String
Print 2D Array, Numeric
Print Preview (XPrint Preview)
Print Text With Embedded TABs (Multi-Line, Set POS)
Print Text With Embedded TABs (Single Line, Set POS)
Printable Area
Right Justify
Send Page Eject to Printer
Set Printer for 8.5x11 Page
Simple Print Dialog
Vertically Align Text - Printer
WordWrap
Regular Expressions
Find Dollar Amount in String
Find Email Address in String
Find Functions
Find Non-Numeric String
Find Search String in Main String
Search String, Finding Multiple Occurrence
Resources
Load Cursor - From File
Load Cursor - From Resource
Resource Image Size
SDK
SDK #1 - OverView
SDK #2 - Controls
SDK #3 - Button Only
SDK #4 - Task Translations
SDK #5 - Clipboard
.CreateWindow API Syntax
.Summary - DDT vs SDK
.Template for SDK Snippets
.WinMain
SDK App - 1. Define Class
SDK App - 2. Create/Register Class
SDK App - 3. Show Window
SDK App - 4. Message Loop
SDK App - 5. Message Response
SDK App - 6. Hello World Example
SDK App - 7. Save As
SDK App - 8. Save As
SDK - Controls
.Background
Button Class - Example
Button Class - Reference
Edit Class - Example
Edit Class - Reference
Static Class - Example
Static Class - Reference
Searching
Whole Word Search
Whole Word Search - Algorithms
Security
Encrypte/Decrypt a File
Serial Port
.Comm Command Reference
.Tools
Dual Port - Send & Receive
Simple Receive Utility
Simple Send Utility
Sorting
3-Click Sort: Ascending, Descending, No-Sort
Dual Field Sort
Numeric Sort
Sort UDT Array
String Sort
Sound
Change Voices
Generate Sounds
Highlight Text as it is Spoken (TextBox)
Highlight Text as it is Spoken (TextBox with Pause Handling)
Highlight Text as it is Spoken (Graphic Control)
Highlight Text as it is Spoken (Graphic with Pause Handling)
MP3 Tag Reader
Play MP3 (Simple)
Play Sound - MIDI file
Play Sound - WAV file
Play SOund - MP3 files
Capture Sound
Play Sound (Resource File)
PlaySound API
Play Sound (System Sound)
Play Tones (WinBeep)
Read Text - Speed Control - Dispatch
Read Text - Speed Control - Dispath II
Read Text - Speed Control - ISpVoice
Read Text - Speed Control - ISpVoice II
Speak Starting as Specified Location
Speech Synthesizer (Background Thread)
Speech Synthesizer (Read Text)
Volume Control
Volume Control II
Source Code Analysis
Build Procedure List
Code Indenter
Equate Check
Equate Check II
Fast Build Procedure
Remove Quotes
Speech Recognition
Speech Recognition SAPI
Speech Engine
Speech Engine - Open Apps
Speech Engine User
Strings
Convert Case
Convert Mixed CRLF / LF to only CRLF
Convert Numbers to Strings
Convert TABs to Spaces (DrawTextEx)
Convert TABs to Spaces (GetTextExtentPoint32)
Distribution of letters
Extract nth Delimited String (Field)
Fast LEN()
Faster Version of Replace
Find JPG/GIF in Text
Find nth Occurrence of Substring Within a String
Find SubString Within a String
Fit String To Area (Graphic Control)
Get List of Bad Characters
Get Physical Length of String
Indexing Lists
IsTextUnicode
Join Array Elements
Levenshtein Distance
Levenshtein Distance II
Multi-Thread Write To String
Number To Words
Random Text Generator
Remove Leading/Trailing String/Characters
Replace Multiple Delimiters (with One Delimiter)
Replace Substring Within a String
Replace nth SubElement in a String
Remove Quoted Text
Remove Single, But not Multiple, Strings
Sliding String Comparison
Split String Into Array
Text Difference - Markup/Strikeout
Text Differences - Side by Side
Verify String Contains Only Letters/Numbers
Vertically Align Text in Two Labels
Word Similarity
Word Wrap By Character Count
Word Wrap with Graphic Control
Word Wrap with Graphic Control II
Word Wrap - Long Word Handling
System Information
Associate Extension (Dickinson, in work)
Associate Extension (Semen, in work)
Computer Name
Copy/Retrieve BMP
Copy/Retrieve Text
Enumerate Processes
Environment variables
Explorer Context Menu
Get Screen Resolution
Open Recycle Bin
Special Folders
System Metrics II
User Name
Templates (IDE)
.Dialog + Buttons
.Dialog + DoEvents Loop
.Dialog + Selected Messages
.Dialog Only
.Simple: Dialog + Button
.Simple: Dialog + DoEvents Loop
.Simple: Dialog + Selected Messages
.Simple: Dialog Only
Threads
.Command Summary
.Sleep vs Dialog DoEvents
Custom Thread Messages
Interrupt A Thread
Multiple Threads
Sequential Threads
Simple Thread - One Main, One Secondary
Simple Threads - Two Secondary
Stopping a Thread
Time/Timers
Accurate Timer
Compare 2 FileTimes
Convert MM-DD-YYYY to YYYY-MM-DD
Convert Time$ to 12HR Time
Convert seconds to minutes
Day of Week on Given Date (Method #1)
Day of Week on Given Date (Method #2)
Days Between Two Dates
Julian Conversions
Julian To Calendar
Time Between Two Days
Display System Time II
Elapsed Time - GetTickCount
Elapsed Time - QueryPerformance
Elapsed Time - TIMER
Elapsed Time - TIX
Elapsed Time - Various
File Time Manipulation
One FT Day
Set Date_Time I
Set Date_Time II
Synchronization Object
Time - Create a Timer
Time Since 1601
Time Since 1601 II
UTC Time
UTC to Local Time
UTC to Local Time (Smaller Function)
Validate Date - API Method
Validate Date - String Parse Method
WaitForSingleObject
Windows
.Handle Instance Thread Process
Get Process Time
Get hWin from hInstance
Utilities
Re-Order Procedures in Alphabetical Order
Convert gbFind to gbSnippets
Extract Text from HTML
Extract Word List from Code
Find PB/Win
Full Page Capture
gbClipOpen - System Tray Version
gbDesigner
Draw CrossHair - Holbrook - Transparent Dialog
Draw Only - Beene - SetCursor + GetDC
Draw Only - Borje/Beene - %WM_xButton Events
Draw Only - Borjge - %WM_xButton Events
Draw Only - Holbrook/Beene - Transparent Dialog
Draw Only - Jules - SetCursor + GetWindowDC
gbFileMerge - Create GBS File From Samples
gbMagnify
Magnify I - SetCapture Method
Magnify II
Magnify III - Timer-Based
Screen Capture - to Dialog via WM_Paint
Screen Capture - to Graphic Control (works)
2019 Screen Magnifier Variation
gbResourceViewer - Resource Image Viewer / Convert to DATA
gbSearch
Boolean Search
Boolean Search Using RegExpr
SubFolder Search
Loan Calculator
Loan Calculator II
On Screen Ruler
Placement
Placement II
Read gbSnippets File
Run PowerBASIC Compiler
Suduku
Thread/Post Counts
WinSpy
.Control List
.Default Dialog Styles
.Dialog Styles/ExStyles
.Window Style Limitations
.WS_Child Style
Clipboard Spy
Enumerate All Windows (Children Only)
Enumerate All Windows (Parent and Child)
Enumerate Windows
Enumerate Windows to ListView
Property List
Select Window for WinSpy
Style Change During Execution
WinSpy I - Window Highlight
WinSpy II - Window Highlight
Word Cloud
Word List
Video
Video For Windows - WebCam
Change Video Resolution
created by gbSnippets
http://www.garybeene.com/sw/gbsnippets.htm