Ed,
As I noted, issuing self.update() from a ctrl+d does nothing to hide/show
the grid.

Larry 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Ed Leafe
Sent: Wednesday, November 12, 2008 11:10 PM
To: Dabo Users list
Subject: Re: [dabo-users] DynamicVisble on dGrid not firing.

Dynamic* properties are updated when update() fires.

-- Ed

Sent from my iPhone, so please excuse any top-posting.

On Nov 12, 2008, at 10:37 PM, <[EMAIL PROTECTED]> wrote:

> If I issue any of ...
> self.refresh()
> self.update()
> self.layout()
>
> nothing happens, but if I resize the form or minimize and restore then 
> the DynamicVisible does fire and  grid shows or is hidden.
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 12, 2008 10:31 PM
> To: 'Dabo Users list'
> Subject: RE: [dabo-users] DynamicVisble on dGrid not firing.
>
> "this" was just some logical evaluation.
>
> I modified the dgrid.TestForm as shown below to test and same occurs
>
> class TestForm(dabo.ui.dForm)
>    def setdynvis(self):
>        return(self.sampleGrid.Editable)
>
>    def afterInit(self)
>        self.BackColor="khaki"
>        g = self.grid =...
>        g.DynamicVisible=self.setdynvis
>        ...
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> ] On
> Behalf Of johnf
> Sent: Wednesday, November 12, 2008 5:58 PM
> To: Dabo Users list
> Subject: Re: [dabo-users] DynamicVisble on dGrid not firing.
>
> On Wednesday 12 November 2008 12:34:46 pm [EMAIL PROTECTED] wrote:
>> Except when initializing, the DynamicVisible method never fires.  I 
>> am using code like...
>>
>> Mygrid=dabo.ui.dGrid(self,DynamicVisible=self.Form.showmyGrid)
>>
>> Also tried
>>
>> Mygrid=dabo.ui.dGrid(self)
>> Mygrid.DynamicVisible=self.Form.showmyGrid
>>
>> def showmyGrid(self):
>>    ok2show=True
>>    if this:
>>        ok2show=False
>>    return ok2show
>>
>> Any suggestions?
>>
>> Thanks,
>> Larry Long
>
> Any chance you are mixing python and VFP  -> 'if this'
>
> Unless you have defined 'this' the python script might fail without 
> you seeing it - are you debugging from wing?  Are you sure showmyGrid 
> is returning True?
>
>
>
> --
> John Fabiani
>
>
[excessive quoting removed by server]

_______________________________________________
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