// the following defines can be used for the SetEntryFlags() // and GetEntryFlags() methods
// !! Do not use these flags for user data as they are reserved !! // !! to change the internal behaviour of the ListBox implementation !! // !! for specific entries. !!
enumclass ListBoxEntryFlags
{
NONE = 0x0000, /** this flag disables a selection of an entry completely. It is not possibletoselectsuchentrieseitherfromtheuserinterface norfromtheListBoxmethods.Cursortravelingishandledcorrectly. ThisflagcanbeusedtoaddtitlestoaListBox.
*/
DisableSelection = 0x0001,
/** this flag can be used to make an entry multiline capable Anormalentryissinglelineandwillthereforebeclipped attherightlistboxborder.Settingthisflagenables wordbreaksfortheentrytext.
*/
MultiLine = 0x0002,
/** this flags lets the item be drawn disabled (e.g. in grey text) usageonlyguaranteedwithListBoxEntryFlags::DisableSelection
*/
DrawDisabled = 0x0004,
}; namespace o3tl
{ template<> struct typed_flags<ListBoxEntryFlags> : is_typed_flags<ListBoxEntryFlags, 0x0007> {};
}
class Image; class ImplListBox; class ImplListBoxFloatingWindow; class ImplBtn; class ImplWin; class ImplListBoxWindow;
/// A widget used to choose from a list of items and which has no entry. class VCL_DLLPUBLIC ListBox : public Control
{ private:
VclPtr<ImplListBox> mpImplLB;
VclPtr<ImplListBoxFloatingWindow> mpFloatWin;
VclPtr<ImplWin> mpImplWin;
VclPtr<ImplBtn> mpBtn;
sal_uInt16 mnDDHeight;
sal_Int32 m_nMaxWidthChars;
Link<ListBox&,void> maSelectHdl;
sal_uInt16 mnLineCount;
/** this methods stores a combination of flags from the ListBoxEntryFlags::*definesatthegivenentry. SeedescriptionofthepossibleListBoxEntryFlags::*flags fordetails. Donotusetheseflagsforuserdataastheyarereserved tochangetheinternalbehaviouroftheListBoximplementation forspecificentries.
*/
SAL_DLLPRIVATE void SetEntryFlags( sal_Int32 nPos, ListBoxEntryFlags nFlags );
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.10Bemerkung:
(Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.