Roger Lovelock wrote:
> Hi,
>    I'm looking for a workaround! 
> I want some of the forms in my application to be modal, but also to have a 
> menubar and a status bar. Modal forms are actually dialogs - so no menubars 
> or status bars. I'm sure someone out there has a simple workaround (most of 
> the options I can dream up feel a bit too complicated). 
>    Any suggestions appreciated.
>              Rodgy
> 

Here is what i do:

In the parent form:
    def callEditForm(self, newrecmode):
        frm = EditForm.EditForm(ParentForm=self, ...)
        self.hide()
        frm.show()

In the child form:
    def save(self, dataSource=None, closeafter=False):
        self.save(dataSource=dataSource)
        parent = self.ParentForm
        if parent != None:
            parent.show()
        self.close()

Now the parent gets hidden while showing the childform.
The child is somhow modal to the parent.

Uwe




_______________________________________________
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