|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Wed Aug 06, 2008 1:18 pm
[2.35] Button layouts lost in XML output. |
When you use exported XML that contains buttons then the layout may not be the same as it was in the exported session.
1. Create a new session.
2. Create two buttons, the first one with a caption 'Left', the second 'Right'
3. Notice the left is on the left, the right on the right, as it should be.
4. Go to the session XML, copy it.
5. Create a new session, go to new session XML, paste in the previously copied text.
6. Notice the left button is on the right and the right is on the left.
I know that it's possible to lay things out by specifying XY coords for everything but I'd think that any copy/pasted XML should look identical across sessions? |
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Thu Aug 07, 2008 2:47 am |
Buttons that use Auto Position are created in order of their Priority property. So check to make sure that property is in the XML export. You could also post the XML within CODE tags here for us to look at and try.
|
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Thu Aug 07, 2008 7:22 pm |
No priorities mentioned when exporting
Code: |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<window name="test" width="1920" height="1032" usesession="false">
<uid>{6647960A-8AC9-41EB-89AD-EDEF79FC4C8E}</uid>
<packages>Clickable URLs|test</packages>
<button>
<caption>left</caption>
</button>
<button>
<caption>right</caption>
</button>
</window>
</cmud> |
|
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Aug 11, 2008 5:13 pm |
That would explain it. I'll add that to the bug list so that the priority values are added to the xml export.
|
|
|
|
|
|