how do I create a button text ?
how do I create a button text ?
Am 17.02.2014 19:13, schrieb Barry Bickerton:
how do I create a button text ?
Just write it down when creating the button:
dlgPushButton("This is the button text");
A complete working (but useless) ULP:
dlgDialog(filename(argv[0])) {
dlgPushButton("This is the button text");
};
--
To view any images and attachments in this post, visit:
http://www.element14.com/community/message/104053
OK So how do you create a toolbar button (I have seen some people referring to these buttons as button texts) hence the incorrect question
On 02/18/2014 10:37 AM, Barry Bickerton wrote:
OK So how do you create a toolbar button (I have seen some people
referring to these buttons as button texts) hence the incorrect question
--
To view any images and attachments in this post, visit:
http://www.element14.com/community/message/104141
The MENU command will accomplish this. Make sure you have 'Command Texts' enabled in the User Interface options. From inside eagle, type 'HELP MENU' for a detailed description.
Here's the schematic section of my eagle.scr file that uses command texts and context menus.
Hope it helps.
#+################################## SCHEMATIC ################################
SCH:
Grid mil 100 alt mil 12.5;
Grid Lines;
Grid OFF;
USE -* /home/estevens/repos/library/Eagle6/LBR;
USE /home/estevens/repos/library/Eagle6/LBR/ruler;
USE /home/estevens/repos/library/Eagle6/LBR/adc_dac;
USE /home/estevens/repos/library/Eagle6/LBR/connectors;
USE /home/estevens/repos/library/Eagle6/LBR/crystals;
USE /home/estevens/repos/library/Eagle6/LBR/diodes;
USE /home/estevens/repos/library/Eagle6/LBR/transistors;
SET PALETTE BLACK;
SET COLOR_GRID 8;
SET XREF_LABEL_FORMAT '%F%N (p%S)';
Assign C+F 'run xfind.ulp;'
Assign C+M 'script smash_all.scr;'
SET MIN_TEXT_SIZE 0;
SET Warning.PartHasNoUserDefinableValue 0;
SET CONTEXT text;
SET CONTEXT text 'Change text' 'change text';
SET CONTEXT instance
SET CONTEXT instance 'Fix Text' 'run eas-fix_name_value_pos';
SET CONTEXT instance 'Mark Symbol' 'run eas-mark_here';
SET CONTEXT instance 'Add Tolerance' 'run eas-add_attribute tolerance';
SET CONTEXT instance 'Add Voltage' 'run eas-add_attribute voltage';
SET CONTEXT instance 'Add Wattage' 'run eas-add_attribute wattage';
SET CONTEXT instance 'Add Attribute' 'run eas-add_attribute';
Set Used_Layers 91 92 93 94 95 96 97 98;
Display All -93 -98;
Change Width 6;
Change Font proportional;
change Size 56;
Change Ratio 8;
#+ Command Menu Setup
MENU
'100/12.5 : Grid mil 100 alt mil 12.5'\
'Notes : Change Size 56; Change Ratio 2; Change layer Info; Change linedistance 80; Change align top left; Text'\
'Last : Grid last;'\
'On : Grid On;'\
'Off : Grid Off;'\
'---'\
'Smash All : script smash_all.scr'\
'BOM : run bom_gdi.ulp'\
'Change Group Value : run gdi-change-value-group'\
'Clean Up Text : run eas-fix_name_value_pos'\
;
#-