Page 1 of 1
CreateObject()
Posted: Sun Jul 06, 2014 9:16 pm
by djrikki
Code: Select all
Local groupdef$ = [[
<vgroup title="\33\A[0] unnamed%COUNT" id="page%COUNT">
<texteditor contextmenu="editor" id="textarea%COUNT" scrollbar="true" cyclechain="1" notify="haschanged;cursorx;cursory;areamarked;undoavailable;redoavailable;appmessage"/>
</vgroup>
]]
mui.CreateObject(ReplaceStr(groupdef$, "%COUNT", mui.Get("openfiles-tabs","pages")))
Neither \33A or \27A is working for me... unknown escape code reported by the mui.CreateObject() call
Re: CreateObject()
Posted: Sun Jul 06, 2014 11:21 pm
by airsoftsoftwair
This:
Code: Select all
<vgroup title="\33\A[0] unnamed%COUNT" id="page%COUNT">
should be:
Code: Select all
<vgroup title="\33A[0] unnamed%COUNT" id="page%COUNT">
Re: CreateObject()
Posted: Mon Jul 07, 2014 11:36 pm
by djrikki
Well that was very noob of me.
Re: CreateObject()
Posted: Tue Jul 08, 2014 8:39 pm
by djrikki
No, neither \33A or \27A works, there is definitely a problem here.
Re: CreateObject()
Posted: Wed Jul 09, 2014 7:42 pm
by evil
As you put your xml-code into a variable, you have to escape some strings IMHO:
Code: Select all
Local groupdef$ = [[
<vgroup title="\\33A[0] unnamed%COUNT" id=\"page%COUNT\">
<texteditor contextmenu=\"editor\" id=\"textarea%COUNT\" scrollbar=\"true\" cyclechain=\"1\" notify=\"haschanged;cursorx;cursory;areamarked;undoavailable;redoavailable;appmessage\"/>
</vgroup>
]]
mui.CreateObject(ReplaceStr(groupdef$, "%COUNT", mui.Get("openfiles-tabs","pages")))
Re: CreateObject()
Posted: Sun Jul 20, 2014 12:12 pm
by djrikki
Nope, nothing works.
Re: CreateObject()
Posted: Tue Jul 22, 2014 3:51 pm
by airsoftsoftwair
Ok, there is a problem here. Text formatting codes are currently not working with Group.Title and
mui.CreateObject(). I'll fix this.