TeraBIT's GUI sample code has a bug.

BlitzPlus Forums/BlitzPlus Programming/TeraBIT's GUI sample code has a bug.

Glenn Carver(Posted 2014) [#1]
Not that much of a big deal, but still:

TeraBIT's GUI Designer sample code has a bug.
When you press the gadget buton to add it do your design it works incorrectly. It is off by one. (?) That means when I press "Button" button in order to add a "Button" gadgets it adds one to the left (Which is "User Canvas"). That makes first and last buttons not accessible.

I'm trying to fix it but the code is huge and will take some time, and even though as I understand BlitzPlus is no longer being developed I think dev's should consider updating BlitzPlus install package.

Live & Prosper ,V


Glenn Carver(Posted 2014) [#2]
This should fix it.
"Add Tabber" button seems to be doing nothing, or maybe I'll understand what it does later

Select EventData()
Case -1
AddLabel def\hand
Case 0
AddTextField def\hand
Case 1
AddTabber def\hand
Case 2
AddCombo def\hand
Case 3
AddListBox def\hand
Case 4
AddCanvas def\hand
Case 5
AddButton def\hand
Case 6
AddPanel def\hand
Case 7 ; ToolBars
AddToolBar Def\Hand
Case 8 ; CheckBox
AddCheckBox Def\hand
Case 9 ; H-Slide
AddHslide def\hand
Case 10 ; V-Slide
AddVslide def\hand
Case 11 ; Radio
AddRadioButton Def\hand
Case 12 ; Tree
AddTree Def\hand
Case 13 ; Progress Bar
AddPBar Def\hand
Case 14 ; HTML
AddHTML Def\hand
Case 15 ; TextArea
AddTextArea Def\Hand
Case 16
AddMenu Def\Hand
End Select