![]() |
|
|
|
|
|
||||||||||
|
| User list | Rules | You are not logged in.
Hello everyone,
Does anyone know how to change the alignment of the navigation bar?
It defaults to bottom centre, but does anyone have some coding for the xml file to make it bottom right?
Many thanks in advance for your help. Nigel
Offline
Hi Nigel...
Navigatino bar??... Are you using krpano?... That can create a bar at the bottom.. All the menu buttons have thier xml code in the main xml file. Your can change the bottom centre to bottom left or bottom right or use the Y value to edit the left/right locations.. You can also change the up/down using the X value -/+.. If you have any issues I will do it for you..
..
Destiny..
Offline
in ptp 1.8 you can set the margin from bottom: project properties -> Appearance -> Margin this value will be shown in the control bar template as variable $MARGIN (this is the y coordinate ... y pixels from center bottom)
but the x coordinate and the alignment itself can only be edited in the xml. this can be done in final xml or in the templates: in ptp: edit->open template directory... the navbar / controlbar xml files are in menu subdirectory...
<!-- menu buttons -->
<plugin name="openfs"
url="$(STYLEDIR)/btn_openfs.png"
width="40"
height="prop"
...
align="bottom"
x="0"
y="$(MARGIN)"
onclick="set(fullscreen,true);"
...
/>x="0" means center...
x="100" means 100 pixel right to the center... so that does not what you want.
so according to krpano docu you can add/change align statements in your plugins (each button is defined as plugin):
<!-- menu buttons -->
<plugin name="openfs"
url="$(STYLEDIR)/btn_openfs.png"
width="40"
height="prop"
...
align="bottomright"
x="20"
y="$(MARGIN)"
onclick="set(fullscreen,true);"
...
/>above will place the button 20 pixels from bottomright...
Georg
Last edited by gkaefer (2012-12-07 01:37:33)
Offline
Thank you both very much. I've learnt something new and solved my problem.
Kindest regards, Nigel
Offline
Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
|
CHOOSING KOLOR Why choose Kolor? Which solution to choose? Download a trial Where can I buy? Education |
SOFTWARE Autopano Pro Autopano Giga Panotour Panotour Pro XnView |
ACCESSORIES Training DVD Panobook PROJECTS Paris 26 Gigapixels Yosemite 17 Gigapixels |
COMMUNITY Forums YouTube channel Google+ |
COMPANY Blog About Kolor Resellers Contact Visit us |
PRESS Press center Press review TOOLS My account |
