Nguyen Truong Luyen wrote:
I'm a newbie I read about TCL, but when I use VTCL, i don't know how to Use . Could U tell me the way to Use TCL's Functions in VTCL . It's possible if U can give me an example
Thanks
Hi,
While everyone has different approaches, what I usually do is build my interface w/ vtcl, and then bind (assign) tcl procedures,/commands
to the various widgets. The most direct way is to use the attribute editor's "command" facility.
e.g
1. Create a toplevel using the "Widget toolbar"
2. add a button to the toplevel, again using the Widget toolbar
3. in the Attribute editor, change the "text" to "Open File"
4. again in the attribute editor, click on the "command" button and type in
"set f [tk_getOpenFile]"
5. Click the "check mark" to save the command
6. In the main menu bar, click the edit/test toggle button
7. Clicking on your "Open File" button now should popup the file selector dialogue (a tcl/tk command)
etc.. I hope this helps...
regards, nikos
------------------------------------------------------- This SF.net email is sponsored by Demarc: A global provider of Threat Management Solutions. Download our HomeAdmin security software for free today! http://www.demarc.com/Info/Sentarus/hamr30 _______________________________________________ vtcl-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/vtcl-user
