On Monday 12 February 2007 09:30, Paul McNett wrote:
> johnf wrote:
> > You may be right - I'm asking to much of dDialog. I was thinking about
> > what I was attempting to get (a single value) from the user. It was
> > almost a yes/no question. I didn't really think about what I had to
> > display to get that answer from the user. Don't get me wrong my dialog
> > is working - so in one sense I succeeded. It just doesn't look right.
> > But lots of the what I need is already there. Esc works, return val,
> > etc.. Those things would have to be added to dForm.
> >
> > So in your opinion it would be best if I just inherited from dForm rather
> > than from dDialog. Right?
>
> FWIW, I think you are on the right track using dDialog.
I figured out a way to get the width of the Grid. Below works for sizing the
dialog. Now working on the height of the grid in the dialog to stop cutting
off half a row. IOW cause the grid to display only complete rows. I realize
that when the user resizes the dialog my setting will change. But at least I
might be able to set it up correctly at first. I might also look at the
resize event.
self.lkgrid.refresh()
mysize = 0
for i in range(self.lkgrid.ColumnCount):
mysize = mysize + self.lkgrid.Columns[i-1]._getWidth()
mysize = 30 + mysize
self.Size = (mysize,self.callForm.Size[1] *.8)
--
John Fabiani
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev