ID #1274

Custom Nav Bars - Can I remove the Measure button from my nav bar?

Yes, you can.

There is a section in the manual that describes editing or creating your own navigation bars. See Chapter 5, "Creating Custom Navigation Bars".

If you're starting with an existing bar you should simply be able to remove the instructions on placing the Measure button and label.

In the ToolLabel section:

ToolLabel<<
.Reset.label={l10n("reset")}
.Reset.x=249
.Measure.label={l10n("measure")}
.Measure.x=196
.Measure.available={!panLocked}
.Move.label={l10n("move")}
.Move.x=52
.Turn.label={l10n("turn")}
.Turn.x=0
.Turn.available={!panLocked}
.Zoom.label={l10n("zoom")}
.Zoom.x=116
.Zoom.width=69
>>

Remove all .Measure instances.

You can also remove this "area" tag later on in the template text file:

Area.Measure.state={Scene.3d.mode==_MEASURE?(Area.Measure.hover?"selon":"on"):Area.Measure.hover?"seloff":"off"}

You can remove all the functioning elements of the Measure button from minimalist.jar without any adverse effects. Obviously, you will need to remove that part of the buttonbar graphic and build the rest of the bar normally to remove the button entirely.

Tags: -

Related entries:

You cannot comment on this entry