Got rid of UtilText and UtilSetText.
This commit is contained in:
parent
b49091b897
commit
b514ba7cb0
|
@ -56,12 +56,12 @@ static void defaultOnClicked(uiButton *b, void *data)
|
|||
|
||||
char *uiButtonText(uiButton *b)
|
||||
{
|
||||
return uiWindowsUtilText(b->hwnd);
|
||||
return uiWindowsWindowText(b->hwnd);
|
||||
}
|
||||
|
||||
void uiButtonSetText(uiButton *b, const char *text)
|
||||
{
|
||||
uiWindowsUtilSetText(b->hwnd, text);
|
||||
uiWindowsSetWindowText(b->hwnd, text);
|
||||
// changing the text might necessitate a change in the button's size
|
||||
uiWindowsControlQueueRelayout(uiWindowsControl(b));
|
||||
}
|
||||
|
|
|
@ -53,12 +53,12 @@ static void defaultOnToggled(uiCheckbox *c, void *data)
|
|||
|
||||
char *uiCheckboxText(uiCheckbox *c)
|
||||
{
|
||||
return uiWindowsUtilText(c->hwnd);
|
||||
return uiWindowsWindowText(c->hwnd);
|
||||
}
|
||||
|
||||
void uiCheckboxSetText(uiCheckbox *c, const char *text)
|
||||
{
|
||||
uiWindowsUtilSetText(c->hwnd, text);
|
||||
uiWindowsSetWindowText(c->hwnd, text);
|
||||
// changing the text might necessitate a change in the checkbox's size
|
||||
uiWindowsControlQueueRelayout(uiWindowsControl(c));
|
||||
}
|
||||
|
|
|
@ -45,14 +45,14 @@ static void defaultOnChanged(uiEntry *e, void *data)
|
|||
|
||||
char *uiEntryText(uiEntry *e)
|
||||
{
|
||||
return uiWindowsUtilText(e->hwnd);
|
||||
return uiWindowsWindowText(e->hwnd);
|
||||
}
|
||||
|
||||
void uiEntrySetText(uiEntry *e, const char *text)
|
||||
{
|
||||
// doing this raises an EN_CHANGED
|
||||
e->inhibitChanged = TRUE;
|
||||
uiWindowsUtilSetText(e->hwnd, text);
|
||||
uiWindowsSetWindowText(e->hwnd, text);
|
||||
e->inhibitChanged = FALSE;
|
||||
// don't queue the control for resize; entry sizes are independent of their contents
|
||||
}
|
||||
|
|
|
@ -97,12 +97,12 @@ static void groupArrangeChildrenControlIDsZOrder(uiWindowsControl *c)
|
|||
|
||||
char *uiGroupTitle(uiGroup *g)
|
||||
{
|
||||
return uiWindowsUtilText(g->hwnd);
|
||||
return uiWindowsWindowText(g->hwnd);
|
||||
}
|
||||
|
||||
void uiGroupSetTitle(uiGroup *g, const char *text)
|
||||
{
|
||||
uiWindowsUtilSetText(g->hwnd, text);
|
||||
uiWindowsSetWindowText(g->hwnd, text);
|
||||
// changing the text might necessitate a change in the groupbox's size
|
||||
uiWindowsControlQueueRelayout(uiWindowsControl(g));
|
||||
}
|
||||
|
|
|
@ -49,14 +49,14 @@ static void defaultOnChanged(uiMultilineEntry *e, void *data)
|
|||
|
||||
char *uiMultilineEntryText(uiMultilineEntry *e)
|
||||
{
|
||||
return uiWindowsUtilText(e->hwnd);
|
||||
return uiWindowsWindowText(e->hwnd);
|
||||
}
|
||||
|
||||
void uiMultilineEntrySetText(uiMultilineEntry *e, const char *text)
|
||||
{
|
||||
// doing this raises an EN_CHANGED
|
||||
e->inhibitChanged = TRUE;
|
||||
uiWindowsUtilSetText(e->hwnd, text);
|
||||
uiWindowsSetWindowText(e->hwnd, text);
|
||||
e->inhibitChanged = FALSE;
|
||||
// don't queue the control for resize; entry sizes are independent of their contents
|
||||
}
|
||||
|
|
|
@ -195,12 +195,12 @@ static void windowArrangeChildrenControlIDsZOrder(uiWindowsControl *c)
|
|||
|
||||
char *uiWindowTitle(uiWindow *w)
|
||||
{
|
||||
return uiWindowsUtilText(w->hwnd);
|
||||
return uiWindowsWindowText(w->hwnd);
|
||||
}
|
||||
|
||||
void uiWindowSetTitle(uiWindow *w, const char *title)
|
||||
{
|
||||
uiWindowsUtilSetText(w->hwnd, title);
|
||||
uiWindowsSetWindowText(w->hwnd, title);
|
||||
// don't queue resize; the caption isn't part of what affects layout and sizing of the client area (it'll be ellipsized if too long)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue