In the advanced dialog box, click on the green checkmark in the top right
corner.

Actually, in 1.6.0a2 version, the checkmark has been replaced by an "Add"
button located at the bottom of the window.

For <<Show>> you have to type it in the text box at the bottom of the
dialog, then click on the checkmark. Future versions will have easier
access to these virtual events.

This event has the syntax of a virtual event, but it is in fact a trick to
store custom events into a widget's bindings. Behind the scenes, I fire the
event not using event generate (which does not seem to go through all the
bindings tags in order), but using vTcl:FireEvent.

vTcl:FireEvent could also be used as a general message passing mechanism;
it allows to perform % substitutions by specifying a list.

Other widgets have virtual events too, for example the listbox fires the
<<ListboxSelect>> event when the selection changes.

CG



|---------+------------------------------------->
|         |           Robert Lugg               |
|         |           <[EMAIL PROTECTED]|
|         |           m>                        |
|         |           Sent by:                  |
|         |           [EMAIL PROTECTED]|
|         |           ceforge.net               |
|         |                                     |
|         |                                     |
|         |           03/14/2002 12:07 PM       |
|         |                                     |
|---------+------------------------------------->
  
>------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                          |
  |        To:                                                                         
                                          |
  |        cc:      [EMAIL PROTECTED]                                    
                                          |
  |        Fax to:                                                                     
                                          |
  |        Subject: [vtcl-user] Problem with binding advanced stuff                    
                                          |
  |                                                                                    
                                          |
  
>------------------------------------------------------------------------------------------------------------------------------|




I would like to setup a binding for a widget (a top level).  I can do the
"basic" ones, but I cannot do the
advanced ones.

Here is what I do
Go into "Widget Bindings" dialog
click on .top26 for example
click INSERT...advanced...
Now, I see "activate".  I click on it and it appears in the small text box.

How do a add this to my list of bindings in the Widget Bindings dialog?

Also, in the quick popup help, it talks about virtual bindings like
<<Show>>.  How do I bind some code to Show?

Thank you,

Robert

(See attached file: robert_lugg.vcf)

Attachment: robert_lugg.vcf
Description: Binary data

Reply via email to