Luke Myers wrote:

Oguni, Toshi S wrote:

I wanted to hide the window (DrwSel) upon adding the selection lists to mclistbox (AddList).
It seems to execute only the last command. How can I execute two things when the button is pressed?

button $base.but48 \
-command {ListAccepted Listbox2 AddList} \
-command {Window hide $widget(DrwSel)} \
-font {-dt-interface user-medium-r-normal-m*-*-*-*-*-*-*-*-*} \
-text ACCEPT
vTcl:DefineAlias "$base.but48" "Button1" vTcl:WidgetProc "DrwSel" 1

Thanks,
Toshi

   button $base.but48 \
   -command {
       ListAccepted Listbox2 AddList        Window hide $widget(DrwSel)
   } \
   -font {-dt-interface user-medium-r-normal-m*-*-*-*-*-*-*-*-*} \
   -text ACCEPT

That didn't come out like I expected to illustrate my point. Multiple commands should all be within one set of braces.


-- Luke Kale Myers




-------------------------------------------------------
This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user

Reply via email to