On Sunday 16 December 2007 4:27 pm, Ed Leafe wrote:
> On Dec 16, 2007, at 6:57 PM, Adrian Klaver wrote:
> > You are correct that the ClassDesigner starts with a LayoutPanel.
>
>       This is the initial empty "slot" in the main sizer. We discussed the
> notion of automatically adding an actual panel to a form design, but
> this was rejected because it was felt that we would be "doing too
> much" for the developer.
>
> > Unfortunately that type of Panel does not seem to have consistent tab
> > properties. In order to get tabbing you have to explicitly add
> > Panel from
> > Display controls.
>
>       Again, a 'LayoutPanel' is an empty slot; when you add controls to
> your design, that empty slot is replaced with the control, not added
> to it. 'Slots' are not actual things; they are simply a shortcut for
> help people new to sizers envision what the layout will look like
> when it is run.

Yea, I did not fully appreciate the difference. I saw Panel and figured I was 
covered.

>
> > This adds a dPanel which does allow tabbing. I figured this
> > out by running your bizobj tutorial. That app allowed tabbing
> > between text
> > boxes. The confusing part was that in the 'empty'  ClassDesigner
> > form tabbing
> > worked and in the 'live' form it did not. Also tabbing worked in
> > the 'live'
> > grid control even though it was not on a dPanel.
>
>       Maybe if Paul is reading this we might reopen the question of
> automatically adding a panel to forms in either Dabo itself, or just
> in the Class Designer. Thoughts?

My vote is to add the panel, on the principal of least surprise. I think most 
folks assume a form will allow tabbing between fields by default.

>
> -- Ed Leafe

Is there a way to slide a Panel in under the existing controls by modifying 
the *.cdxml file?

Another question.
While investigating Panel behavior I ran across something I have yet to figure 
out. I used Johns bizobj app to do some testing. In order to make it work on 
my machine I changed the *.cnxml file. I found if I ran the app from the same 
directory (~/some_dir/python app.py) as the cnxml file the directory path was 
added to the the database name and the connection failed. If I did cd .. and 
then ran the app (~/higher_dir/python some_dir/app.py) everything worked. 
Suggestions are welcome.

Thanks,
-- 
Adrian Klaver
[EMAIL PROTECTED]


_______________________________________________
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/dabo-users/[EMAIL PROTECTED]

Reply via email to