How do you add items to a listbox so the most current items come out on top?
Announcement
Collapse
No announcement yet.
LISTBOX scroll backwards automatically
Collapse
X
-
From the SDK, never used it though.
Code:LB_INSERTSTRING Inserts a string at a given index in a list box.
Code:LB_INSERTSTRING wParam = (WPARAM) index; // item index lParam = (LPARAM) (LPCTSTR) lpsz; // address of string to insert
Rod
In some future era, dark matter and dark energy will only be found in Astronomy's Dark Ages.
-
You'll find an example of it in your post #10 in this thread:
http://www.powerbasic.com/support/pb...B_INSERTSTRINGRod
In some future era, dark matter and dark energy will only be found in Astronomy's Dark Ages.
Comment
-
Very cool
Code:SUB LogEvent (hwnd AS LONG, BYVAL Buffer AS STRING) 'Scroll backwards, leaving 2-heading lines at the top STATIC counter AS LONG DIM s AS STRING INCR counter MID$(buffer,94) = FORMAT$(counter) CONTROL SEND hWnd, %IDC_LISTBOX1, %LB_INSERTSTRING, 2, STRPTR(buffer) 'backward CONTROL REDRAW hWnd, %IDC_LISTBOX1 END SUB
The world is full of apathy, but who cares?
Comment
Comment