if( child->Flags & ELEFLAG_ABSOLUTEPOS ) continue ;
// --- Width ---
- if( child->Flags & ELEFLAG_NOEXPAND )
+ if( child->Flags & (bVertical ? ELEFLAG_NOEXPAND : ELEFLAG_NOSTRETCH) )
w = child->MinW;
else if( bVertical )
w = child->FixedCross ? child->FixedCross : fullCross;
w = child->FixedWith ? child->FixedWith : dynWith;
// --- Height ---
- if( child->Flags & ELEFLAG_NOSTRETCH )
+ if( child->Flags & (bVertical ? ELEFLAG_NOSTRETCH : ELEFLAG_NOEXPAND) )
h = child->MinH;
else if( bVertical )
h = child->FixedWith ? child->FixedWith : dynWith;
return -1;
if( strnlen(Msg->DebugName, max_debugname_len) == max_debugname_len )
return -1;
+
+ _SysDebug("Widget_NewWidgetSubwin(%i %i Type %i Flags 0x%x Subwin %i)",
+ Msg->Parent, Msg->NewID, Msg->Type, Msg->Flags, Msg->WindowHandle);
parent = Widget_GetElementById(Info, Msg->Parent);
if(!parent) return 1;
tElement *ele;
const tWidgetIPC_SetFocus *msg = Data;
if(Len < sizeof(*msg)) return -1;
+
+ _SysDebug("Widget_SetFocus(%i)", msg->WidgetID);
ele = Widget_GetElementById(info, msg->WidgetID);
Widget_SetFocus(info, ele);
if( Len < sizeof(*Msg) )
return -1;
+
+ _SysDebug("Widget_SetSize(%i, %i)", Msg->WidgetID, Msg->Value);
ele = Widget_GetElementById(Info, Msg->WidgetID);
if(!ele) return 1;
if( Msg->Text[Len - sizeof(*Msg) - 1] != '\0' )
return -1;
+ _SysDebug("Widget_SetText(%i, '%.30s')", Msg->WidgetID, Msg->Text);
ele = Widget_GetElementById(Info, Msg->WidgetID);
if(!ele) return 1;
{
tWidgetMsg_Fire msg;
msg.WidgetID = Element->ID;
+ _SysDebug("Widget_Fire: Fire on %p %i", Element->Window, Element->ID);
WM_SendMessage(Element->Window, Element->Window, MSG_WIDGET_FIRE, sizeof(msg), &msg);
}