Hehe :-)

This is exactly what I have been working on in the CVS.

You can now create a compound from a "Megawidget" frame.

This frame is capable of redefining the widget proc by adding a "widget"
subcommand. You write the whole "widget" subcommand to suit your needs. You
cannot override the whole widget proc otherwise any syntax error would
crash vTcl when it configures the widget.

So it makes it a bit longer to configure the widget but it is not too bad,
for example:

MyMegawidget1 widget configure -myproperty "hello, world"

There is an example (in the CVS) under demo/tutorial/megawidgets with a
short txt document. Compounds with a megawidget frame behave like black
boxes, you move them as one widget and see them as one widget in the widget
tree.

The thing needs more work but the functionality is there and you can put
the compounds into widgets libraries that can be reused in other projects.

CG



|---------+------------------------------------->
|         |           Constantin Teodorescu     |
|         |           <[EMAIL PROTECTED]>             |
|         |           Sent by:                  |
|         |           [EMAIL PROTECTED]|
|         |           ceforge.net               |
|         |                                     |
|         |                                     |
|         |           12/28/2002 04:34 AM       |
|         |                                     |
|---------+------------------------------------->
  
>------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                          |
  |       To:       [EMAIL PROTECTED]                                    
                                          |
  |       cc:                                                                          
                                          |
  |       Subject:  [vtcl-user] Can I create some sort of TCLBeans?                    
                                          |
  |                                                                                    
                                          |
  
>------------------------------------------------------------------------------------------------------------------------------|




I want to create some piece of Tcl code that contains also some visual
components (widgets) and some code!
This I will call a TCLBean !
The code does some basic stuff such as binding validity check procedures
to widgets, some automation scripts that shows/hide some widgets, etc.

I want to save that TCLBean as a whole in a library file and to be able
to insert it later in different forms, each of them having their private
variables, etc, etc.
I tried to use compounds but there are some limitations there.

What is the best approach to do that?
I saw that Visual Tcl 1.6 says something about widget libraries. How can
I use them?

Constantin Teodorescu
Braila, ROMANIA





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user







-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user

Reply via email to