Results 1 to 4 of 4

Thread: functions for radio buttons

  1. #1
    chuck Guest

    functions for radio buttons

    I have a dcl with a radio button having a "key" darv.
    When I select this button and "ok" I would like to run a lisp routine
    (c:darv) what would my autolisp code look like for this?

  2. #2
    bestafor Guest
    HiHO;
    (Action_Tile "darv" "(c:darv)")
    Now this isn't all the code you will have to write,
    but this is the piece that will run your lisp routine.




    "chuck" <chuck@nospam.wo> wrote in message
    news:9XEhd.1638$14.1352@read1.cgocable.net...
    I have a dcl with a radio button having a "key" darv.
    When I select this button and "ok" I would like to run a lisp routine
    (c:darv) what would my autolisp code look like for this?

  3. #3
    Jürgen Palme Guest
    "chuck" <chuck@nospam.wo> schrieb im Newsbeitrag
    news:9XEhd.1638$14.1352@read1.cgocable.net...
    I have a dcl with a radio button having a "key" darv.
    When I select this button and "ok" I would like to run a lisp routine
    (c:darv) what would my autolisp code look like for this?
    A first hint: It makes no sense to have only ONE radio button. You need a
    radio_column or a radio_row with at least two radio_buttons.

    A snip of a dcl fragment (example):

    : radio_column {
    key = "k1";
    : radio_button {
    key = "kk1";
    }
    : radio_button {
    key = "kk2";
    }
    ...
    }

    In your LISP code you need this lines (fragment):

    (action_tile "k1" "(do_something $value)")
    ....
    (defun do_something (wert)
    (cond
    ((= wert "kk1") (do_this))
    ((= wert "kk2") (do_that))
    ...
    )
    )

    do_this or do_that can be a call of your (c:darv)


    HTH
    Juergen

  4. #4
    chuck Guest
    I have about twelve radio buttons and an ok_cancel_help row. All the radio
    buttons are calls to a function. The help button calls to a custom help
    "chuck.hlp" dialog. I've got the radio buttons working pretty well by
    assigning a text string to each and then calling to the correct function
    when the corresponding radio button is selected. I'm having a little trouble
    with the help button though. I would like to bring up the custom hlp file
    when selected and have the dialog box remain when the help file is closed.


    "Jürgen Palme" <juergenDEL.palmeALL@kabelleipzigCAPS.de> wrote in message
    news:2upl7bF2cjgd0U1@uni-berlin.de...
    "chuck" <chuck@nospam.wo> schrieb im Newsbeitrag
    news:9XEhd.1638$14.1352@read1.cgocable.net...
    I have a dcl with a radio button having a "key" darv.
    When I select this button and "ok" I would like to run a lisp routine
    (c:darv) what would my autolisp code look like for this?



    A first hint: It makes no sense to have only ONE radio button. You need a
    radio_column or a radio_row with at least two radio_buttons.

    A snip of a dcl fragment (example):

    : radio_column {
    key = "k1";
    : radio_button {
    key = "kk1";
    }
    : radio_button {
    key = "kk2";
    }
    ...
    }

    In your LISP code you need this lines (fragment):

    (action_tile "k1" "(do_something $value)")
    ...
    (defun do_something (wert)
    (cond
    ((= wert "kk1") (do_this))
    ((= wert "kk2") (do_that))
    ...
    )
    )

    do_this or do_that can be a call of your (c:darv)


    HTH
    Juergen

Similar Threads

  1. Coding for Radio buttons???
    By avcad in forum Customization
    Replies: 1
    Last Post: 05-23-2007, 01:19 AM
  2. radio button
    By Roland.Fontaine@gmail.com in forum Cadence
    Replies: 3
    Last Post: 11-10-2005, 01:10 AM
  3. Wards Airline radio
    By Wayne Tiffany in forum SolidWorks
    Replies: 4
    Last Post: 10-25-2005, 05:10 PM
  4. Stupid, but...SW2005 "buttons"...
    By Mike Tripoli in forum SolidWorks
    Replies: 1
    Last Post: 04-28-2005, 09:10 AM
  5. Assigning Digitizer Buttons
    By amasutti in forum Customization
    Replies: 3
    Last Post: 01-31-2005, 06:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other forums: Access Forum - Microsoft Office Forum - Exchange Server Forum