>  Replying to [comment:1 paul]:
>  > I modified your sample a bit so that I could actually run it, which will
>  help during the conversion for comparison purposes.
> 
>  Yes, sorry!
>  I thought loading this into CD would be enough.

I'm using this as a project to understand the cdxml format, and have 
noted some questions/possible defects in my mind so far because of the 
exercise:

+ Grid columns apparently put all property values into the cdxml, 
whether or not they were changed from the default.

+ The sizerInfo attribute stuffed into each and every object added 
appears to mostly have default values, such as BorderSides=["All"] and 
Border=0. The default stuff should not be part of cdxml.

+ Seems that Width, Height, Left, and Top are always saved, whether or 
not they are relevant for the given object. For example, your dPages 
have these properties, which really makes no sense because a given page 
will be positioned inside the pageframe and take up all the space it is 
given in that context. This could be bad elsewhere too, such as with 
grids and textboxes, because by explicitly setting Width and Height, you 
are also implicitly setting the minimum size which could have 
aggravating results with sizers at runtime (the design will only resize 
down to everyone's aggregated minimum size, bringing in the 
scrollpanel's scrollbars prematurely). To be clear, Width and Height are 
relevant because of this but it seems to me you have them set pretty 
high - whether you set them explicitly high or whether they just got 
saved that way because that's how big the sizer made them in the 
designer, I don't know. If the latter, I think it is a defect.

+ I notice several layout panels in the design, and sizers in the 
hierarchy that aren't really necessary to get the desired layout. 
Probably a necessary evil (benefits of having sizer slots as a visual 
element during the design outweigh the possible excessive number of 
sizers/layout panels). I removed a couple obviously-unnecessary layout 
panels.

+ There are some properties of the form that don't exist in raw Dabo, 
and perhaps they should: CxnFile, and CxnName. I don't really understand 
how these come into play at runtime, though.

In general, though, the cdxml format is easy to follow, and the 
hierarchy is obvious, compared to the equivalent Python code.

I'm still working on the conversion. I hope it is beneficial in some way.

-- 
pkm ~ http://paulmcnett.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]

Reply via email to