Carey Gagnon wrote:
> The cdxml files is as follows:

Thanks. You have <img src="resources/icons/proman_about.png"> which 
should work fine. Dabo will try to resolve that into a proper url, which 
is probably failing, maybe because app.HomeDirectory or os.getcwd() 
isn't at the root of your application for whatever reason.

Let's see if the image url function is finding the image (I expect it 
isn't). Put this code into one of your form methods, such as afterInit:

{{{
## *!* ## Dabo Code ID: dForm-top
def afterInit(self):
     self.MenuBar = None
     self.Icon = "resources/icons/proman22x22.ico"
     import os
     import dabo.ui
     print "app.HomeDirectory, os.getcwd():"
     print self.Application.HomeDirectory, os.getcwd()
     print "test getImagePath:", 
dabo.ui.getImagePath("resources/icons/proman_about.png")
     print "test getImageURL:", 
dabo.ui.getImagePath("resources/icons/proman_about.png", url=True)
}}}

I assume the form's Icon is getting displayed properly?

Paul


_______________________________________________
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/[email protected]

Reply via email to