Embedding a GuiButtonCtrl in a GuiTextEditCtrl?
by Terence Tan · in Torque Game Engine · 07/24/2006 (10:49 am) · 1 replies
Hi,
I'm trying to have a text edit control with a button you can click to pop up a dialog.
I tried this:
Can this be done? Do I need another GuiCtrl or GuiFrameCtrl?
Terence
I'm trying to have a text edit control with a button you can click to pop up a dialog.
I tried this:
new GuiTextEditCtrl(TalkEditorInspectField1) {
Profile = "GuiInspectorBackgroundProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "60 0";
Extent = "304 20";
MinExtent = "8 2";
Visible = "1";
AltCommand = "TalkEditorInspectApply();";
maxLength = "255";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
password = "0";
passwordMask = "*";
autoSizeWidth = "0";
autoSizeHeight = "1";
textOffset = "0 2";
new GuiButtonCtrl() {
Profile = "GuiInspectorTypeFileNameProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "0 3";
Extent = "10 20";
MinExtent = "8 2";
Visible = "1";
Command = "TalkEditorInspectApply();";
text = "...";
groupNum = "-1";
buttonType = "PushButton";
border = "5";
};
};Can this be done? Do I need another GuiCtrl or GuiFrameCtrl?
Terence
About the author
Associate Orion Elenzil
Real Life Plus