I take it you are using Unix.

On Unix, there is a problem with the _raise_ command (I am
writing _raise_ the same way they do on the Tcl Core mailing list).

Anyway, _raise_ on Unix takes from 1 to 2 sec to do its job freezing
the app in the meantime. Clicking on the widget tree probably
causes the click to be executed right after the _raise_ but before
the toplevel and the attributes editor are refreshed...

I should probably not call _raise_ if vTcl is running Linux but
then the toplevel wouldn't come to the foreground. This may be a
problem if you have too many visible toplevel windows.

Does anyone know a work around for _raise_ ?

Also, a big problem in see in Tk is how to implement modal dialog
boxes. Even if you set a grab you can still click on other windows
and they will obscure the modal one (though other windows are
inactive). You also have to _raise_ the modal dialog to make sure
it appears in the foreground, which causes an annoying delay.

What about the BLT _busy_ command ?

CG



|--------+------------------------------------->
|        |          Stef Pillaert              |
|        |          <[EMAIL PROTECTED]>  |
|        |          Sent by:                   |
|        |          [EMAIL PROTECTED]|
|        |          eforge.net                 |
|        |                                     |
|        |                                     |
|        |          03/08/2001 11:55 PM        |
|        |          Please respond to vtcl-user|
|        |                                     |
|--------+------------------------------------->
  
>-----------------------------------------------------------------------------------------------------------|
  |                                                                                    
                       |
  |       To:     [EMAIL PROTECTED]                                      
                       |
  |       cc:                                                                          
                       |
  |       Fax to:                                                                      
                       |
  |       Subject:     [vtcl-user] error in widget-tree, when klicking too fast...     
                       |
  |                                                                                    
                       |
  
>-----------------------------------------------------------------------------------------------------------|




(Sorry for not using the bug-report on sourceforge, but I can't stay online
long enough to fill it in... Is this a problem? Or should I send messages
like
this to the maintainers list?)

I have a toplevel with a few buttons in it.
I have a small problem with the widget tree: suppose one of the buttons is
the
active one, then , in the widget tree, I click on the toplevel-button (to
make
the toplevel active), it takes a while before the toplevel is actually the
active window. If I'm a bit too unpatient by clicking on a button-button
again
(still in the widget tree) , before the toplevel is actually active, I get
this

invalid command name ".vTcl.ae.c.f2.f._Toplevel.t-activebackground.f"
    while executing
"$top.t${i}.f configure -bg $vTcl(w,opt,$i)"
    (procedure "vTcl:prop:update_attr" line 33)
    invoked from within
"vTcl:prop:update_attr"
    (procedure "vTcl:select_widget" line 24)
    invoked from within
"vTcl:select_widget $target"
    (procedure "vTcl:show_top" line 18)
    invoked from within
"$cmd $i"
    (procedure "vTcl:left_click_tree" line 7)
    invoked from within
"vTcl:left_click_tree vTcl:show_top .top54 .vTcl.tree.cpd21.03 _top54"
    (code segment 1)
    invoked from within
".vTcl.tree.cpd21.03._top54 invoke"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list $w invoke]"
    (procedure "tkButtonUp" line 7)
    invoked from within
"tkButtonUp .vTcl.tree.cpd21.03._top54
"
    (command bound to event)

Thanks,

Stef.

_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/vtcl-user




_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/vtcl-user

Reply via email to