mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-31 14:40:49 +00:00
listbox improvement
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@769 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -130,6 +130,7 @@ struct _MwListBox {
|
||||
unsigned long click_time;
|
||||
int pressed;
|
||||
int* width;
|
||||
int* alignment;
|
||||
int changed;
|
||||
};
|
||||
|
||||
|
||||
@@ -97,6 +97,16 @@ MwInline void MwListBoxSetWidth(MwWidget handle, int index, int width) {
|
||||
MwVaWidgetExecute(handle, "mwListBoxSetWidth", NULL, index, width);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Sets an item alignment of the listbox
|
||||
* @param handle Widget
|
||||
* @param index Column index
|
||||
* @param alignment Alignment
|
||||
*/
|
||||
MwInline void MwListBoxSetAlignment(MwWidget handle, int index, int alignment) {
|
||||
MwVaWidgetExecute(handle, "mwListBoxSetAlignment", NULL, index, alignment);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Resets the listbox
|
||||
* @param handle Widget
|
||||
|
||||
Reference in New Issue
Block a user