Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pull-down menu in a toolbar tbr file.

Status
Not open for further replies.

VW181

Mechanical
Joined
Jan 23, 2013
Messages
122
Location
NL
Hello,

I try to make a pull down menu in a toolbar that i made as a tbr-file.
First i made a toolbar without a pull down menu and that works fine.
In this macro the pull down menu works, but all the buttons in it are the same and perform the same action.
The button and action is always the same as the latest in the tbr-file.

I made some macro's that put "(2x)" to "(9x)" behind a dimension, and I also made 8 associated bitmaps images.
When i load the toolbar all the buttons show "(9x)" and also place "(9x)" behind the dimension.
If i only go till "(5x)" in the tbr file, the toolbar shows only "(5x)" buttons and also place "(5x)" behind the dimension.
And if a place a "(7x)" outside the pull down menu at the bottom of the tbr-file also all the buttons in the pull down menu shows "(7x)"

The two macro's outside the pull down menu works fine.

In this example i've placed also the "(7x)" at the bottom of the tbr-file.

The "label" of all the buttons is always good.

Code:
!
!  Unigraphics Blank startup
!
! 
!

TITLE Test2
VERSION 170

DOCK TOP


BEGIN_DROPDOWN Aantal_keer_achter_maat
LABEL Aantal
AS_POPUP_MENU

BUTTON  UG_MODELING_Macro_mfs
LABEL   Zet (2x) achter de maat
BITMAP T:\NX\Custom\Macro\2x.bmp
ACTION T:\NX\Custom\Macro\2x.macro

BUTTON  UG_MODELING_Macro_mfs
LABEL   Zet (3x) achter de maat
BITMAP T:\NX\Custom\Macro\3x.bmp
ACTION T:\NX\Custom\Macro\3x.macro

BUTTON  UG_MODELING_Macro_mfs
LABEL   Zet (4x) achter de maat
BITMAP T:\NX\Custom\Macro\4x.bmp
ACTION T:\NX\Custom\Macro\4x.macro

BUTTON  UG_MODELING_Macro_mfs
LABEL   Zet (5x) achter de maat
BITMAP T:\NX\Custom\Macro\5x.bmp
ACTION T:\NX\Custom\Macro\5x.macro

BUTTON  UG_MODELING_Macro_mfs
LABEL   Zet (6x) achter de maat
BITMAP T:\NX\Custom\Macro\6x.bmp
ACTION T:\NX\Custom\Macro\6x.macro

BUTTON  UG_MODELING_Macro_mfs
LABEL   Zet (7x) achter de maat
BITMAP T:\NX\Custom\Macro\7x.bmp
ACTION T:\NX\Custom\Macro\7x.macro

BUTTON  UG_MODELING_Macro_mfs
LABEL   Zet (8x) achter de maat
BITMAP T:\NX\Custom\Macro\8x.bmp
ACTION T:\NX\Custom\Macro\8x.macro

BUTTON  UG_MODELING_Macro_mfs
LABEL   Zet (9x) achter de maat
BITMAP T:\NX\Custom\Macro\9x.bmp
ACTION T:\NX\Custom\Macro\9x.macro


END_DROPDOWN


BUTTON  UG_MODELING_Macro_mfs1
LABEL   Zet de maat tussen haakjes
BITMAP T:\NX\Custom\Macro\maat_tussen_haakjes.bmp
ACTION T:\NX\Custom\Macro\maat_tussen_haakjes.macro

BUTTON  UG_MODELING_Macro_mfs3
LABEL   Load all defaults
BITMAP T:\NX\Custom\Macro\load_all_defaults.bmp
ACTION T:\NX\Custom\Macro\load_all_defaults.macro

BUTTON  UG_MODELING_Macro_mfs
LABEL   Zet (7x) achter de maat
BITMAP T:\NX\Custom\Macro\7x.bmp
ACTION T:\NX\Custom\Macro\7x.macro

Do i something wrong?

Already thanks for the answers.

Using NX 8.0 on Windows 7 (64)
 
I just found out that when i load the working toolbar, with only 3 macro's and one of which is the "(2x)", all buttons in the test toolbar with the pull down menu become also the "(2x)".

Using NX 8.0 on Windows 7 (64)
 
Yes, thank you!!! That was the solution.
Totally forgotten to look at that BUTTON thing.

Using NX 8.0 on Windows 7 (64)
 
as you already has found the answer... The BUTTON name is/should/must be a unique identifier of the button, - that's the purpose of it.

Regards,
Tomas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top