On Oct 4, 2009, at 2:05 AM, Emanuele Gesuato wrote:

> Right now if i start it i have two windows created (i'm using ubuntu
> 9.04): one has as caption "Dabo" and it has menu bar but nothing in
> the body of the panel, the other has nothing as caption and it has
> menu bar and in the panel it has the correct components i want to
> display.
> I would like to have only this second one to be displayed. I've taken
> the code from the one generated by AppWizard and try to hack it to my
> desires but it seems there is something wrong.

        Just set the app's MainFormClass property to the class of the form  
you want to open; by default, it's dFormMain, which explains why that  
blank form displays.

        The easiest way to do this is when you instantiate the app:

app = dabo.dApp(MainFormClass= ui.ListinoArticoli)

        BTW, you can delete the "SourceURL=remotehost" parameter (unless you  
are actually running the app as a web application).

        To get a caption on your form, you need to set its Caption property.  
It can either be set in the class itself, or after the app starts, you  
can run: app.MainForm.Caption = "something".


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

Reply via email to