I made a pacth to vtcl 1.10 which incoperated the hook to fix the 
     stated problems.  I have only set the hook for itcl widets but it 
     would be easy to set them for the tix widgets.  The basic idea in 
     setting the hooks is to tell vtcl which widgets you can select and 
     which you can not (all relative to the parent)
     
     
     Jim K.
     


______________________________ Reply Separator _________________________________
Subject: Re: Tix with Visual TCL - help!
Author:  "Kenneth H. Cox" <[EMAIL PROTECTED]> at maillink
Date:    7/15/97 8:33 AM


On Mon, 14 Jul 1997, Bill Tapley wrote (to [EMAIL PROTECTED]): 
> I tried to use Tix with Stewart Allen's Visual Tcl
> ...Then I noticed a problem with doing this, the Tix widgets are in
> individual parts in the widget tree, and I can't do much with them in 
> vtcl. Has anyone incorporated Tix widgets into visual tcl? 
     
Yes, I did this work.  The tix support is, shall we say, limited at the 
moment.  However, if you know the limitations, you can still get work 
done with it.
     
Here are the tricks:
     
0. You have to invoke VTCL using 'tixwish'.
     
1. All Tix widgets are "mega" widgets, composed of a hierarchy of plain 
Tk widgets.  After you insert one using vTcl, you will be able to select 
with the pointer all of the subwidgets. However, options (attributes) 
you change on the subwidgets are not persistent; only options on the tix 
widget itself are persistent.  That is, don't set the '-label' option on 
the label, set it on the tixLabelFrame. Keep the "Widget Info" window 
open, and use the right mouse button menu item "Select Parent" until you 
have the tix widget selected.  The "Widget Tree" window is also useful 
for selecting the right subwidget.  
     
2. When using Tix manager widgets, you have to select the proper 
subwidget before inserting any children.  For tixLabelFrame, this means 
that after you insert it, you should click on the frame inside the 
groove, then insert widgets inside of that.  For tixNoteBook, it is 
harder; you must put VTCL into test mode, select the page, put VTCL back 
into edit mode, then click on the frame inside the page.
     
3. Occasionally, you may have to edit the project file.  Do not panic. 
Editing the project file is the only way to:
    * add another page to the tixNoteBook
    * change the '-options' flag (to control tix subwidgets)
     
4. Cut + Paste do not work well for tix widgets, in fact, they may not 
work at all.
     
5. Tix widgets appear slightly differently in VTCL than they do outside 
VTCL.  This is unfortunate.  See also #6.
     
6. If you are a good Tk hacker, and would like to fix any of the 
problems above, or would like to add support for additional Tix widgets, 
then talk to me; I can hopefully explain why I did it the way I did.
     
--
Kenneth H. Cox
Software Guy
Sente, Inc.
     
     
     
     
     
     

Reply via email to