Werner_Bayern hat geschrieben:Warum nicht linksbündig? Warum markiert?
Klar, align gilt nur fürs Editieren, aber was ist mit der Anzeige vor dem Editieren?
Markiert sind sie nur deshalb, weil der Platz nicht ausreicht.
ich habe es mal mit dem native Control ausprobiert und das selbe Verhalten.
Code: Alles auswählen
INLINE METHOD CB_SetSelect(nIndex)
/**************************
An application sends a CB_SETCURSEL message to select a string in the list
of a combo box. If necessary, the list scrolls the string into view.
The text in the edit control of the combo box changes to reflect the
new selection, and any previous selection in the list is removed.
wParam
Specifies the zero-based index of the string to select.
If this parameter is -1, any current selection in the list is removed and the edit control is cleared.
lParam
This parameter is not used.
Return Value
If the message is successful, the return value is the index of the item selected.
If wParam is greater than the number of items in the list or if wParam is -1,
the return value is CB_ERR and the selection is cleared.
**************************/
RETURN @User32:SendMessageA(::hCBox,CB_SETCURSEL,nIndex,0)
es scheint also "automatisch" bei Bewegung in der Listbox zu passieren.
am besten sieht man es wenn man die Listbox aufklappt (F4) wie es in das SLE übertragen wird.
theoretisch gibt es noch o:XbpListbox:ItemMarked wo man eine Aktion auf das o:XbpSLE machen könnte.
Code: Alles auswählen
bAction := {|mp1, mp2, obj| obj:XbpSLE:setMarked({1,1}) }
leider funktioniert es scheinbar nur mit o:XbpListbox:ItemSelected.
Werner_Bayern hat geschrieben:Wie kann man das aber abstellen und linksbündig darstellen?
Ownerdraw