element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Achievement Levels
    • Benefits of Membership
    • Feedback and Support
    • Members Area
    • Personal Blogs
    • What's New on element14
  • Learn
    Learn
    • eBooks
    • Learning Center
    • Learning Groups
    • STEM Academy
    • Webinars, Training and Events
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Arduino Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Project Groups
    • Raspberry Pi Projects
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Or choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Autodesk EAGLE
  • Products
  • More
Autodesk EAGLE
EAGLE User Support (English) how do I create a button text ?
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Autodesk EAGLE requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 3 replies
  • Subscribers 146 subscribers
  • Views 286 views
  • Users 0 members are here
Related

how do I create a button text ?

Former Member
Former Member over 9 years ago

how do I create a button text ?

  • Sign in to reply
  • Cancel
  • autodeskguest
    0 autodeskguest over 9 years ago

    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

     

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago in reply to autodeskguest

    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

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • autodeskguest
    0 autodeskguest over 9 years ago in reply to Former Member

    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'\

      ;

    #-

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube