Discuss GUI programming with the MUI Royale plugin here
-
djrikki
- Posts: 682
- Joined: Wed Apr 06, 2011 12:26 am
Post
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
-
airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
-
Contact:
Post
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">
-
djrikki
- Posts: 682
- Joined: Wed Apr 06, 2011 12:26 am
Post
by djrikki »
Well that was very noob of me.
-
djrikki
- Posts: 682
- Joined: Wed Apr 06, 2011 12:26 am
Post
by djrikki »
No, neither \33A or \27A works, there is definitely a problem here.
-
evil
- Posts: 177
- Joined: Mon Jun 14, 2010 1:38 pm
Post
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")))
-
djrikki
- Posts: 682
- Joined: Wed Apr 06, 2011 12:26 am
Post
by djrikki »
Nope, nothing works.