CreateObject()

Discuss GUI programming with the MUI Royale plugin here
Post Reply
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

CreateObject()

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
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: CreateObject()

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

Re: CreateObject()

Post by djrikki »

Well that was very noob of me.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: CreateObject()

Post by djrikki »

No, neither \33A or \27A works, there is definitely a problem here.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
evil
Posts: 177
Joined: Mon Jun 14, 2010 1:38 pm

Re: CreateObject()

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

Re: CreateObject()

Post by djrikki »

Nope, nothing works.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: CreateObject()

Post 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.
Post Reply