On Aug 11, 2008, at 4:25 PM, Mike Mabey wrote:

> I'm trying to open a dialog onHit of a button.  I've put the following
> code in the button's onHit() method, but the dialog isn't opening:
>
> frm = self.Form
> frm.addObject(absolutePath)
>
> absoultePath is a string with the absolute path to a cdxml file that I
> created with the ClassDesigner.  I used to get an error until I
> figured out that the working directory wasn't where I thought it was,
> so I started using the absolute path to the file.  Am I missing a
> command?  Is there something else I need to do to create a dialog or
> other child window?

        Ah! Good catch - I never use addObject(), so I never saw thought of  
updating this. Yes, in the current form, you will need to use the  
absolute path, but I can post an update soon that will fix this. As  
long as the file is in the current directory or one of the "standard"  
project directories, it will find it.


-- Ed Leafe





_______________________________________________
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/%(messageid)s

Reply via email to