On 1/1/13 4:03 PM, Carey Gagnon wrote:
> I have an issue with the DynamicVisible property on a dButton
> If I set it to return False when there is no biz count and True if there is
> a biz count the button never become visible on update. If I do the
> opposite, it works, the button is initially visible and then not visible on
> update when there is a biz row count.
> 
> This works:
> 
> def setDynVisibleStatusButton(self):
>     biz = self.getBizobj("dbo.Companies")
>     ds = biz.getDataSet()
>     if not biz.RowCount:
>         return True
>     else:
>         return False
> 
> This doesn't work
> 
> def setDynVisibleStatusButton(self):
>     biz = self.getBizobj("dbo.Companies")
>     ds = biz.getDataSet()
>     if not biz.RowCount:
>         return False
>     else:
>         return True
> 
> Am I understanding the DynamicVisible property incorrectly?

I think the Dabo framework could be missing a needed parentSizer.layout() call. 
If
you resize the form does the button finally appear?

Paul

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.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