+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Forum Deity Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draftsman
    Discipline
    Mechanical
    Using
    AutoCAD 2014
    Join Date
    Oct 2009
    Location
    Lives in Abu Dhabi
    Posts
    2,616

    Default edit_box and Toogle

    Registered forum members do not see this ad.

    Hello everyone .

    Is it possible to set_tile to 1 when a user type any char or number in the edit_box in the same DCL file ?

    Thanks in advance .
    - When aim is being settled in my mind , I have to reach it and get it in hand whatever it costs and wherever it is and will never give up . Tharwat said

  2. #2
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,708

    Default

    See this post
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  3. #3
    Forum Deity Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draftsman
    Discipline
    Mechanical
    Using
    AutoCAD 2014
    Join Date
    Oct 2009
    Location
    Lives in Abu Dhabi
    Posts
    2,616

    Default

    Either I did not get it or my first post wasn't clear enough .

    I am looking forward to check the toggle (Each) on when a user start typing in the edit box
    .
    Untitled-1.jpg

    Thanks
    - When aim is being settled in my mind , I have to reach it and get it in hand whatever it costs and wherever it is and will never give up . Tharwat said

  4. #4
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,708

    Default

    Quote Originally Posted by Tharwat View Post
    Either I did not get it or my first post wasn't clear enough .

    I am looking forward to check the toggle (Each) on when a user start typing in the edit box
    I understood - my post details the callback $reasons applicable to a DCL edit_box and provides an example program to help you understand the events that trigger the various callback $reason values.
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  5. #5
    Forum Deity Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draftsman
    Discipline
    Mechanical
    Using
    AutoCAD 2014
    Join Date
    Oct 2009
    Location
    Lives in Abu Dhabi
    Posts
    2,616

    Default

    The $reason value is always return 2 in all cases that I have tried it at least , and I couldn't find it in Help Document to read more about it or to know what is your essential goal in that post as well .
    - When aim is being settled in my mind , I have to reach it and get it in hand whatever it costs and wherever it is and will never give up . Tharwat said

  6. #6
    Senior Member kruuger's Avatar
    Computer Details
    kruuger's Computer Details
    Operating System:
    Xp 64bit
    Using
    AutoCAD 2010
    Join Date
    Dec 2007
    Location
    Poland
    Posts
    179

    Default

    Quote Originally Posted by Tharwat View Post
    Either I did not get it or my first post wasn't clear enough .

    I am looking forward to check the toggle (Each) on when a user start typing in the edit box
    .
    Attachment 38220

    Thanks
    to check toggle you need to tap TAB or ENTER first when leaving edit_box. there is no way to "dynamically" check what is entered in edit_box.
    http://exchange.autodesk.com/autocad...7a53f-7aa3.htm
    kruuger

  7. #7
    Forum Deity Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draftsman
    Discipline
    Mechanical
    Using
    AutoCAD 2014
    Join Date
    Oct 2009
    Location
    Lives in Abu Dhabi
    Posts
    2,616

    Default

    Thank you kruuger .

    It is very clear now .
    - When aim is being settled in my mind , I have to reach it and get it in hand whatever it costs and wherever it is and will never give up . Tharwat said

  8. #8
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,708

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by Tharwat View Post
    The $reason value is always return 2 in all cases that I have tried it at least , and I couldn't find it in Help Document to read more about it or to know what is your essential goal in that post as well .
    The $reason variable will hold a value of 1 if the user 'submits' the contents of the edit_box tile (i.e. by pressing Enter whilst the edit_box has focus), and will have a value of 2 if the edit_box loses focus without the user submitting the contents (i.e. if another tile takes focus). This behaviour was demonstrated by my example program in the post to which I linked, accompanied by a brief explanation of the callback $reason values.
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

Similar Threads

  1. How to Center text in Lisp :edit_box
    By dtsfan1976 in forum AutoLISP, Visual LISP & DCL
    Replies: 4
    Last Post: 27th Jul 2012, 04:04 am
  2. about dcl edit_box
    By blueshake in forum AutoLISP, Visual LISP & DCL
    Replies: 7
    Last Post: 18th Sep 2010, 03:26 pm
  3. Syntax for reading .TXT into an edit_box (DCL)
    By ajs in forum AutoLISP, Visual LISP & DCL
    Replies: 3
    Last Post: 27th May 2008, 05:52 pm
  4. Syntax for reading .TXT into an edit_box (DCL)
    By ajs in forum AutoLISP, Visual LISP & DCL
    Replies: 0
    Last Post: 25th May 2008, 12:22 am

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts