| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | ListBox |
To play w/ GPI and listbox programming I created a client window and
placed a graphical area in the majority of the window and in the
remaining small area I placed a small listbox.
The graphics area is just sin/cos/tan functions in different colors, and
the listbox just contains the degrees 0 - 360. I select 1 to 'n' items
in the listbox and double click; that range is highlighted in white
on each of the functions curves. No real use, just an exercise.
However, when I minimize the window, and then re-display it, the listbox
is not shown. If I put the cursor where the scroll bar button s/b and
drag it through to the bottom, each entry appears, as does that portion
of the scroll bar.
I have tried WinShowWindow (hwndList, TRUE) and a couple of other things
w/out success. I create it:
// Create the list-box window
hwndList = WinCreateWindow (hwndFrame, // Parent window
WC_LISTBOX, // Class name
NULL, // Window text
WS_VISIBLE |
LS_MULTIPLESEL |
LS_EXTENDEDSEL |
MLS_READONLY |
MLS_VSCROLL, // Window style
listPosX, // Position: x
listPosY, // y
listWidth, // Size: width
listHeight, // height
hwndClient, // Owner window
HWND_TOP, // Sibling window
ID_LISTBOX, // Window id
NULL, // Control data
NULL) ; // Presentation parms
___
X OLX 1.53 X C:\DOS\RUN C:\WINDOWS\CRAWL C:\OS2\FLY
--- Maximus/2 3.01
* Origin: Pebble BBS (1:202/1207)SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934 SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1 @PATH: 202/1207 270/101 712/515 711/808 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.