You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
Oliver --
Listbox is able to locate elements by rows.
For example, elements 1-10 in column 1, 11-20 in column 2.
Useful, for example, to show a list of files.
In this case - LBS_MULTICOLUMN style, LB_SETCOLUMNWIDTH message.
But I think, that you talk about something like in Excel.
If so, it's necessary to send %LB_SETHORIZONTALEXTENT message.
Code:
#Compile Exe
#Register None
#Dim All
#Include "win32api.inc"
%ID_LISTBOX = 101
Function PbMain
Dim hDlg As Long, i As Long
Dialog New 0, "Test", , , 150, 120, %WS_SYSMENU Or %WS_CAPTION Or %WS_MINIMIZEBOX To hDlg
Control Add ListBox, hDlg, %ID_ListBox, , 10, 10, 130, 100, _
%WS_TABSTOP Or %WS_HSCROLL Or %WS_VSCROLL, %WS_EX_CLIENTEDGE
For i = 1 To 1000
ListBox Add hDlg, %ID_LISTBOX, Format$(i, "0000") + _
" Peite pivo. Ono wkusno i na tswet krasiwo 12567890"
Next
Control Send hdlg, %ID_ListBox, %LB_SETHORIZONTALEXTENT, 350, 0
Dialog Show Modal hDlg
End Function
------------------
[This message has been edited by Semen Matusovski (edited July 05, 2000).]
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment