kornalius
09-07-2006, 07:54 PM
As many of you know, we are trying to make PPL a very*easy to use programming language. We've spent a lot of time applying this mentality to the language syntax and compiler/interpreter. However we neglected the windows api programming for GUI applications a bit.</p>
This is no more true with the Simplified Windows API library that we have just created. We took some of the functions that were there already and grouped them all into a nice simple library. This library will grow with time and will just get better.</p>
Here is an overview of what to expect in this library:</p><pre>proc ComboBox_Clear(combobox$)
func ComboBox_Count(combobox$)
func ComboBox_Add(combobox$, text$)
func ComboBox_Insert(combobox$, index$, text$)
func ComboBox_GetSel(combobox$)
proc ComboBox_SetSel(combobox$, index$)
func ComboBox_Del(combobox$, index$)
func ComboBox_Get(combobox$, index$)
proc ComboBox_Set(combobox$, index$, text$)
proc ComboBox_LoadFromList(combobox$, slist$)
proc ComboBox_SaveToList(combobox$, slist$)
proc ComboBox_LoadFromFile(combobox$, Filename$)
proc ComboBox_SaveToFile(combobox$, Filename$)</pre><pre>proc ListBox_Clear(listbox$)
func ListBox_Count(listbox$)
func ListBox_Add(listbox$, text$)
func ListBox_Insert(listbox$, index$, text$)
func ListBox_Del(listbox$, index$)
func ListBox_GetSel(listbox$)
func ListBox_GetSelCount(listbox$)
proc ListBox_SetSel(listbox$, index$)
func ListBox_Get(listbox$, index$)
proc ListBox_Set(listbox$, index$, text$)
proc ListBox_SelectAll(listbox$)
proc Listbox_LoadFromList(listbox$, slist$)
proc ListBox_SaveToList(listbox$, slist$)
proc ListBox_LoadFromFile(listbox$, filename$)
proc ListBox_SaveToFile(listbox$, filename$)</pre><pre>nfunc ListView_SetColumnOrder
func ListView_Count(ListView$)
func ListView_Clear(ListView$)
func ListView_GetSelCount(ListView$)
func ListView_GetColumnCount(ListView$)
func ListView_GetSel(ListView$)
proc ListView_SetSel(ListView$, index$)
func ListView_IsSelected(ListView$, index$)
proc ListView_Select(ListView$, index$)
func ListView_Get(ListView$, index$, item$)
func ListView_Set(ListView$, index$, item$, str$)
func ListView_AddColumn(ListView$, index$, str$, width$, fmt$)
func ListView_DelColumn(ListView$, index$)
proc ListView_Add(ListView$, text$)
proc ListView_Insert(ListView$, index$, text$)
func ListView_Del(ListView$, index$)
proc ListView_SelectAll(ListView$)
proc ListView_LoadFromList(ListView$, list$)
proc ListView_SaveToList(ListView$, list$)
proc ListView_LoadFromFile(ListView$, Filename$)
proc ListView_SaveToFile(ListView$, filename$)</pre><pre>func ProgressBar_SetRange(progressbar$, min$, max$)
func ProgressBar_GetRange(progressbar$, min$, max$)
func Progressbar_Get(progressbar$)
proc Progressbar_Set(progressbar$, index$)
proc Progressbar_SetStep(progressbar$, stepsize$)
func Progressbar_StepIt(progressbar$)
func Progressbar_StepDown(progressbar$, stepsize$)</pre><pre>proc Trackbar_Clear(trackbar$)
proc Trackbar_SetRange(trackbar$, min$, max$)
proc Trackbar_GetRange(trackbar$, min$, max$)
proc Trackbar_SetTickFreq(trackbar$, tickfreq$)
proc Trackbar_SetSelStart(trackbar$, selstart$)
proc Trackbar_SetSelEnd(trackbar$, selend$)
func Trackbar_GetSelStart(trackbar$)
func Trackbar_GetSelEnd(trackbar$)
func Trackbar_Get(trackbar$)
proc Trackbar_Set(trackbar$, index$)
proc Trackbar_StepUp(trackbar$, step$)
proc Trackbar_StepDown(trackbar$, step$)</pre><pre>func UpDown_GetBuddy(updown$)
proc UpDown_SetBuddy(updown$, buddy$)
func UpDown_Get(updown$, position$)
proc UpDown_Set(updown$, position$)
proc UpDown_GetRange(updown$, HiLimit$, LoLimit$)
proc UpDown_SetRange(updown$, HiLimit$, LoLimit$)</pre><pre>func TreeView_Count(TreeView$)
func TreeView_Clear(TreeView$)
func TreeView_GetSel(TreeView$)
proc TreeView_SetSel(TreeView$, handle$)
func TreeView_IsSelected(TreeView$, handle$)
proc TreeView_Select(TreeView$, handle$)
func TreeView_Get(TreeView$, handle$)
func TreeView_Set(TreeView$, handle$, str$)
func TreeView_Add(TreeView$, parenthandle$, text$)
proc TreeView_Insert(TreeView$, parenthandle$, text$)
func TreeView_Del(TreeView$, handle$)
proc TreeView_SelectAll(TreeView$, parent$)
proc TreeView_LoadFromList(TreeView$, list$)
proc TreeView_SaveToList(TreeView$, list$)
proc TreeView_LoadFromFile(TreeView$, Filename$)
proc TreeView_SaveToFile(TreeView$, filename$)</pre>
This is no more true with the Simplified Windows API library that we have just created. We took some of the functions that were there already and grouped them all into a nice simple library. This library will grow with time and will just get better.</p>
Here is an overview of what to expect in this library:</p><pre>proc ComboBox_Clear(combobox$)
func ComboBox_Count(combobox$)
func ComboBox_Add(combobox$, text$)
func ComboBox_Insert(combobox$, index$, text$)
func ComboBox_GetSel(combobox$)
proc ComboBox_SetSel(combobox$, index$)
func ComboBox_Del(combobox$, index$)
func ComboBox_Get(combobox$, index$)
proc ComboBox_Set(combobox$, index$, text$)
proc ComboBox_LoadFromList(combobox$, slist$)
proc ComboBox_SaveToList(combobox$, slist$)
proc ComboBox_LoadFromFile(combobox$, Filename$)
proc ComboBox_SaveToFile(combobox$, Filename$)</pre><pre>proc ListBox_Clear(listbox$)
func ListBox_Count(listbox$)
func ListBox_Add(listbox$, text$)
func ListBox_Insert(listbox$, index$, text$)
func ListBox_Del(listbox$, index$)
func ListBox_GetSel(listbox$)
func ListBox_GetSelCount(listbox$)
proc ListBox_SetSel(listbox$, index$)
func ListBox_Get(listbox$, index$)
proc ListBox_Set(listbox$, index$, text$)
proc ListBox_SelectAll(listbox$)
proc Listbox_LoadFromList(listbox$, slist$)
proc ListBox_SaveToList(listbox$, slist$)
proc ListBox_LoadFromFile(listbox$, filename$)
proc ListBox_SaveToFile(listbox$, filename$)</pre><pre>nfunc ListView_SetColumnOrder
func ListView_Count(ListView$)
func ListView_Clear(ListView$)
func ListView_GetSelCount(ListView$)
func ListView_GetColumnCount(ListView$)
func ListView_GetSel(ListView$)
proc ListView_SetSel(ListView$, index$)
func ListView_IsSelected(ListView$, index$)
proc ListView_Select(ListView$, index$)
func ListView_Get(ListView$, index$, item$)
func ListView_Set(ListView$, index$, item$, str$)
func ListView_AddColumn(ListView$, index$, str$, width$, fmt$)
func ListView_DelColumn(ListView$, index$)
proc ListView_Add(ListView$, text$)
proc ListView_Insert(ListView$, index$, text$)
func ListView_Del(ListView$, index$)
proc ListView_SelectAll(ListView$)
proc ListView_LoadFromList(ListView$, list$)
proc ListView_SaveToList(ListView$, list$)
proc ListView_LoadFromFile(ListView$, Filename$)
proc ListView_SaveToFile(ListView$, filename$)</pre><pre>func ProgressBar_SetRange(progressbar$, min$, max$)
func ProgressBar_GetRange(progressbar$, min$, max$)
func Progressbar_Get(progressbar$)
proc Progressbar_Set(progressbar$, index$)
proc Progressbar_SetStep(progressbar$, stepsize$)
func Progressbar_StepIt(progressbar$)
func Progressbar_StepDown(progressbar$, stepsize$)</pre><pre>proc Trackbar_Clear(trackbar$)
proc Trackbar_SetRange(trackbar$, min$, max$)
proc Trackbar_GetRange(trackbar$, min$, max$)
proc Trackbar_SetTickFreq(trackbar$, tickfreq$)
proc Trackbar_SetSelStart(trackbar$, selstart$)
proc Trackbar_SetSelEnd(trackbar$, selend$)
func Trackbar_GetSelStart(trackbar$)
func Trackbar_GetSelEnd(trackbar$)
func Trackbar_Get(trackbar$)
proc Trackbar_Set(trackbar$, index$)
proc Trackbar_StepUp(trackbar$, step$)
proc Trackbar_StepDown(trackbar$, step$)</pre><pre>func UpDown_GetBuddy(updown$)
proc UpDown_SetBuddy(updown$, buddy$)
func UpDown_Get(updown$, position$)
proc UpDown_Set(updown$, position$)
proc UpDown_GetRange(updown$, HiLimit$, LoLimit$)
proc UpDown_SetRange(updown$, HiLimit$, LoLimit$)</pre><pre>func TreeView_Count(TreeView$)
func TreeView_Clear(TreeView$)
func TreeView_GetSel(TreeView$)
proc TreeView_SetSel(TreeView$, handle$)
func TreeView_IsSelected(TreeView$, handle$)
proc TreeView_Select(TreeView$, handle$)
func TreeView_Get(TreeView$, handle$)
func TreeView_Set(TreeView$, handle$, str$)
func TreeView_Add(TreeView$, parenthandle$, text$)
proc TreeView_Insert(TreeView$, parenthandle$, text$)
func TreeView_Del(TreeView$, handle$)
proc TreeView_SelectAll(TreeView$, parent$)
proc TreeView_LoadFromList(TreeView$, list$)
proc TreeView_SaveToList(TreeView$, list$)
proc TreeView_LoadFromFile(TreeView$, Filename$)
proc TreeView_SaveToFile(TreeView$, filename$)</pre>