Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Protoolkit question - help please

I have never used pro toolkit, but looking at the logic of the code, on one line you have "PRO_B_TRUE, PRO_B_TRUE". Does this mean to show the second button twice? If it does, then maYbe that line should read "PRO_B_FALSE, PRO_B_TRUE".
 
I c_Dan,


I might be late... Check your text file.. that's where it grabs the real text shown for the button... I guess you did copy paste whitout changing the text.


Marc-ANtoine
 
Try a different cmd_id variable for each call. Decalare a 2nd one called cmd_id1 and use it in your 2nd call. See example. Also, be sure the text in the menu file is correct for button2.





status=ProMenubarmenuPushbuttonAdd ("UserMenu", "Button2", <?:NAMESPACE PREFIX = O /><O:p></O:p>
"USER -Button2", "USER New Button help1.", "Button1", PRO_B_TRUE, <O:p></O:p>
smiley2.gif
cmd_id1
smiley2.gif
, UserMsg);<O:p></O:p>
 

Sponsor

Articles From 3DCAD World

Back
Top