Użytkownik Carey Gagnon napisał:
> And that's what I trying to grab. The value of areYouSure. Ed's suggestion
> doen't allow what I need.
>
> The form is being closed when the Dashboard icon is clicked which fires
> confirmChanges (when there are unsaved changes) which in turn fires the
> areYouSure dialog. To this point I have the desired behavior.
>
> What I'm wanting is
>
> If the Yes button is clicked all works as expected with:
> def openDashboard(self,evt):
> self.close()
> dabo.ui.createForm("frmDashboard.cdxml", show=True, parent=None)
>
>
> If the No button is clicked all works as expected with:
> def openDashboard(self,evt):
> self.close()
> dabo.ui.createForm("frmDashboard.cdxml", show=True, parent=None)
>
>
> It's when the Cancel button is clicked that the problem arises. Closing of
> the active form is stopped as it should but the
> dabo.ui.createForm("frmDashboard.cdxml", show=True, parent=None) is still
> firing which I don't want it to.
>
And what about:
def initProperties(self):
self.openDasboardForm = False
def openDashboard(self, evt):
self.openDasboardForm = True
def beforeClose(self, evt):
if self.openDasboardForm:
dabo.ui.callAfter(dabo.ui.createForm, "frmDashboard.cdxml",
show=True, parent=None)
--
Regards
Jacek Kałucki
_______________________________________________
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]