Ed Leafe wrote:
> On May 4, 2007, at 2:05 PM, Carl Karsten wrote:
> 
>>> you can just bind the Hit event of the
>>> button to a more generic reference, such as the app object.
>> I could never figure out how to do that.
>>
>> Telling people they can do something isn't nearly as helpful as  
>> pointing them to
>> some code in the demos.
> 
>       Carl, you're perfectly free to offer your own advice instead of just  
> pointing out everyone else's perceived shortcomings.

I try to help in whatever way I can :)

> 
>       I asked him for more specifics about what it is he is trying to  
> accomplish. Merely saying "I would rather..." doesn't narrow down his  
> issue(s) very much. It's very difficult to point someone to code that  
> illustrates a solution when you aren't sure what the problem is.

It isn't difficult at all.

"look at 
http://svn.dabodev.com/trac/dabodemo/browser/trunk/DaboDemo/DaboDemo.cdxml#L311
where it says
  designerClass="controlMix"
which you can set in the CD by click click click type type type."

And maybe some disclaimer about how that may not be what they need.

Of course you have to have such an example to refer to, which will be more work 
at first as the examples get created.  In this case, I think the work will be 
reused quit a bit.

> 
>> If it doesn't exist in the demos, it might be worth adding.  This  
>> one sure seems
>> worth adding.  It will also confirm that what you are saying can be  
>> done can
>> actually be done as easy it sounds.
> 
>       How do you do a demo around the expression 'self.Application'?

Take what I posted here:

http://leafe.com/archives/showMsg/349197

Remove the need for cdxml2objDemo1-code.py  by adding what is needed to the 
button:

<dButton sizerInfo="{'BorderSides': ['All'], 'Proportion': 0, 'HAlign':
'Center', 'VAlign': 'Middle', 'Border': 0, 'Expand': False}"
code-ID="dButton-dForm" designerClass="controlMix" Caption="Swap" />

so that it calls frm.myObj1.swap()

If there is a better way to setup myObj1, you are perfectly free to code it 
better.

Even if this isn't wasn't what the OP's had in mind, it sure seems like it 
would 
be useful, and it may be a better solution than what they hand in mind.

 > Don't
 > you think that that's about as deep and as mysterious to understand
 > as 'self.Form'?

They are both deep and as mysterious. and I don't see how that alone helps::

> I would rather include it within my program
> rather than as part of the cdxml file. Where and how is all i need to know.

Speaking of self.Form, I remember you saying there were a set of shortcuts 
which 
ended with "etc"- I have no clue what the full set is, what exactly they are 
shortcuts to, or where the code is that implements them - seeing the code would 
be a good start for understanding what they do and creating some docs.

Carl K



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to