Date: 02-16-2022
Return to Index
created by gbSnippets
'Compilable Example: (Jose Includes)
#Compiler PBWin 9, PBWin 10
#Compile EXE
#Dim All
%Unicode=1
#Include "win32api.inc"
Global hDlg As Dword
Function PBMain() As Long
Local i As Long
Dim MyArray(100) As String
For i = 0 To 100 : MyArray(i) = "EN"+Format$(i,"000"):Next i
Dialog New Pixels, 0, "ListBox Test",300,300,200,200, %WS_OverlappedWindow, 0 To hDlg
Control Add ListBox, hDlg, 100, MyArray(), 10,10,180,180, %LBS_Notify Or %WS_TabStop Or %WS_VScroll Or %LBS_MultiColumn, %WS_Ex_ClientEdge
Control Send hDlg, 100, %LB_SetColumnWidth,99999,0
Dialog Show Modal hDlg Call DlgProc
End Function
CallBack Function DlgProc() As Long
End Function
'gbs_00795
'Date: 03-10-2012
http://www.garybeene.com/sw/gbsnippets.htm