listbox improvement

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@769 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-21 19:36:33 +00:00
parent ae4ae842d5
commit 39cd88e547
4 changed files with 63 additions and 10 deletions

View File

@@ -130,6 +130,7 @@ struct _MwListBox {
unsigned long click_time;
int pressed;
int* width;
int* alignment;
int changed;
};

View File

@@ -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