🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

hm_info executing command output-*creatamarkpanel.

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

Hi,

I wanted to know how I can get some kind of notation in tcl macro so that, it will tell now *createmarkpanel command is going on. This can be use to avoid crashing when user pressess many times on same tk window button.

Find more posts tagged with

Sort by:
1 - 3 of 31
    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    Hi rahulj,

    I don't understand your question: you can display a message with the *createmarkpanel command (last argument 'message'):

    *createmarkpanel(entity type, mark id, message)
    If you turned the user messages off by using

    hm_blockmessages 1
    you can although display messages with:

    hm_usermessage 'I really have something to tell'or hm_errormessage 'Dear user - you really f*#?ed it up ...'
    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    Hi Rahulj,

    Another option would be to disable the tk button as part of the routine executed when it's pressed, and you can reactivate it later in the routine if you want. You can modify the status of buttons as shown:

    $page2.f4.b1 configure  -state disabledor $page2.f4.b1 configure  -state normal
    This might encourage users to look elsewhere instead of still clicking on the button.
    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    Hi Dear,

    Sorry for very late reply.

    Actually what happens if user clicks button(from tk macro window). Hypermesh gives segmentation error and come out. So I wanted to know, how to overcome this. WE can upost the macro dialogue but still some time it is required to be apreared. How to script will know that panel is activated in hm window.

    Thanking you.