| |
|
|
Michael Wodrich | Messages for Listboxes Listbox-Messages
These messages are for Listboxes To use.
scheduler:
worth | Constant | Description | $0180 | lb_AddString | - Fügt a String to list of/ one Listbox hinzu. The String standing in the Memory-Variables.
P:L4 - area = hinzuzufügender String Return Value: <0 = Error
example: s$ = "Das is a Test!" String V#,0 = s$ @SendMessage(W&,$0180,0,V#)
Hierbei is W& the lever the Listbox. ------- | $0181 | lb_InsertString | - | $0182 | lb_DeleteString | - deletes a String from list of/ one Listbox.
P:L3 - index the To löschenden String (first String = 0) Return Value: <0 = Error ----- | $0184 | lb_ResetContent | - deletes The list the Listbox. ----- | $0185 | lb_SetSel | - | $0186 | lb_SetCurSel | - dial a entry from the list from and roll it into visible area.
P:L3 - index the desired Eintrages (-1: no entry becomes select) ----- | $0187 | lb_GetSel | - | $0188 | lb_GetCurSel | - index the currently selected Eintrages the list.
Return Value: index the Eintrages (first entry = 0) ----- | $0189 | lb_GetText | - copies a String from the list into Memory-Variable.
deference: the abschliessende byte with the worth 0 (zero) is because of the Rückgabewertes self To settle!
<b>Hinweis:</b> The Memory-Variable must enough dimensioniert his!
P:L3 - index the desired Eintrages P:L4 - area, the whom String take in should Return Value: length the Strings ----- | $018A | lb_GetTextLen | - determined The length one String from the list.
P:L3 - index the desired Eintrages Return Value: length the Strings ----- | $018B | lb_GetCount | - Number of Entries in the list.
Return Value: index the last Eintrages (first entry = 0) ----- | $018C | lb_SelectString | - it'll the entry determined, the with the Suchstring begins. The entry becomes markiert and whom visible area the list wheeled.
P:L3 - index the Eintrages to the The Search beginnt; should tappt im dunkeln at the beginning begin, must it -1 his. P:L4 - area = Suchstring Return Value: <0 = Error (not found) >=0 = index the sought Eintrages (first entry = 0) ----- | $018D | lb_Dir | - Fügt a list the Files from the actually directory to list hinzu. with the selection becomes the Dateiattribut (see under @LINK:[GetFAttr]) berücksichtigt. circa additional The drives aufzulisten, is $4000 the Attribut hinzuzufügen. The Memory-Variable contains The Suchmaske.
P:L3 - Dateiattribut P:L4 - area = File-Suchmaske (z.B. "*.*") Return Value: <0 = Error (z.B. To little Space in the list) >=0 = index the last Eintrages (first entry = 0)
example: s$ = "*.*" String V#,0 = s$ @SendMessage(W&,$018D,$4037,V#)
Hierbei is W& the lever the Listbox. circa only a Laufwerksliste To produce, is as Attribut in P:L3 the worth $4000 einzusetzen. ----- | $018E | lb_GetTopIndex | - | $018F | lb_FindString | - it'll the entry determined, the with the Suchstring begins.
P:L3 - index the Eintrages to the The Search beginnt; should tappt im dunkeln at the beginning begin, must it -1 his. P:L4 - area = Suchstring Return Value: <0 = Error (not found) >=0 = index the sought Eintrages (first entry = 0) ----- | $0190 | lb_GetSelCount | - | $0191 | lb_GetSelItems | - | $0192 | lb_SetTabStops | - | $0193 | lb_GetHorizontalExtent | - | $0194 | lb_SetHorizontalExtent | - usually corresponds to The tatsächliche wide of/ one Listbox the wide, The on screen To see is: there's none horizontalen Scollbalken. These Message setting The wide the Listboxliste in Pixel. is The wide greater as the indicated area, sustain The list a horizontalen Scroll bar.
P:L3 - wide the list in Pixel ----- | $0195 | lb_SetColumnWidth | - | $0197 | lb_SetTopIndex | - | $0198 | lb_GetItemRect | - | $0199 | lb_GetItemData | - | $019A | lb_SetItemData | - | $019B | lb_SelItemRange | - | $019E | lb_SetCaretIndex | - | $019F | lb_GetCaretIndex | - | $01A0 | lb_SetItemHeight | - | $01A1 | lb_GetItemHeight | - | $01A2 | lb_FindStringExact | -
| deference: These Messages Please not others Windowsobjekten bring into action, there there The equal Botschaftsnummern another weight having!
|
|
|
| Programmieren, das spannendste Detektivspiel der Welt. | 06/28/05 ▲ |
|
|
|