** Admin note: This program is located in http://laughton.com/basic/programs/tools/GraphicControls/
Just uploaded a new version - see below for details of changes.
As a few icons have been been added I put all te files in a Folder called GraphicsInclude. Just download the folder contents and place the 3 .bas files in the Basic Source Folder and the 7 .png files in the Basic Data Folder.
The include requires the latest version (v1.33) of Basic! to run.
Please report any bugs or suggestions.
!*** v0.9 Changes
!*** # ModCtrlCap & ModCtrlData no longer update stored Caption$ or Data$ values
!*** for a control, they just use the text parameter to update displayed value.
!*** # Old entries not being cleared when ResetListBox function called.
!*** # Added two new functions HourGlass_Show(pStyle,pDisable) and HourGlass_Hide(pEnable)
!*** usefull for indicating an action is taking sometime.
!*** * The "pStyle" paramter determines which HourGlass icon will be shown (1=Starting,
!*** 2=Midway (default) or 3=Finished).
!*** * Setting the parameter "pDisable" to 1 will disbale ALL controls when HourGlass displayed.
!*** * Setting the parameter "pEnable" to 1 will reset ALL controls back to the state they were
!** in when the HourGlass was first dislayed.
!** * This disable/enable action can be used to prevent any user interaction taking place
!*** until processing is completed.
!*** * Touch Option Button "Show Wait" to demo display/hide Hourgalass functions
!*** separated by a 2 second pause.
!*** # Added Clip function to ListBox to truncate long listbox entries.
!*** # Added new styles for ListBox control - bcCHECKBOX$ and bcFILEDIALOG$.
!*** * If bcCHECKBOX$ style assigned then a CheckBox icon will added to the start of each entry.
!*** - The program will automatically prefix all ListBox entries with either "[_]" or "[X]" to
!*** indicate the entries checked status. Use function GetCtrlCap$ to retrieve updated entry
!*** list followed by Split function to access individal entries.
!*** - Touching the Checkbox Icon will toggle the CheckBox setting on and off.
!*** - Touch the "CheckBox" Option button on the Test Bed display to toggle between
!*** entries with and without CheckBoxes.
!*** * If bcFILEDIALOG$ style assigned then ListBox entries will be formatted as follows:
!*** - An Entry beginning with ".." with be displayed as is.
!*** - Entries ending with "(d)" will be displayed with a prefixed Folder style Icon
!*** and the trailing "(d)" text removed.
!*** - All other Entries will be displayed with a prefixed File style Icon.
!*** - Touch the "FileDialog" Option button on the Test Bed display to toggle between
!*** a "Normal" and "FileDialog" formatted ListBox.
!*** # Implemented minimum Height for Thumb Slider on ListBox vertical scroll bar.
!*** # Added new style to allow horizontal positioning of controls:
!*** * bcCTRLLEFT$ Draws Control offset left of screen centre by specified Left value.
!*** * bcCTRLCENTRE$ Draws Control at Centre of screen.
!*** * bcCTRLRIGHT$ Draws Control offset right of screen centre by specified Left value.
!*** # MsgBox$ can now display an icon alongside the message text, if required. Four icons
!*** are avaiable - Information, Question, Exclamation and Critical. See sample code and
!*** comments for details.
!*** # Added new style bc3DBorder$ - draws 3D style border around a control.
!*** Style applied to ListBox in Test Bed program.