mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-07 05:19:17 +00:00
Added SetText()
This commit is contained in:
@ -81,6 +81,17 @@ namespace GraphicalUserInterface
|
||||
return (Handle)button;
|
||||
}
|
||||
|
||||
void WidgetCollection::SetText(Handle handle, const char *Text)
|
||||
{
|
||||
HandleMeta *meta = (HandleMeta *)handle;
|
||||
if (meta->Type[0] == 'L' && meta->Type[1] == 'B' && meta->Type[2] == 'L')
|
||||
{
|
||||
LabelObject *label = (LabelObject *)handle;
|
||||
strcpy(label->Text, Text);
|
||||
NeedRedraw = true;
|
||||
}
|
||||
}
|
||||
|
||||
WidgetCollection::WidgetCollection(void *ParentWindow)
|
||||
{
|
||||
if (!ParentWindow)
|
||||
|
Reference in New Issue
Block a user