I am struggling with the new 4D Write Pro paradigm. 

One thing our Write Classic app has is a method which collects all the 
“Document Properties” into an array which we can use to manage the whole range 
of property/attributes for any given document or document editor.

Given the fundamental changes between Write Classic and Write Pro, the process 
of mapping these properties has proven to be a daunting task. I’ve been digging 
my way through it, piece by piece, discovering bits here and there in various 
parts of the documentation, blogs, sample DBs etc. 

There are many more, but here’s a few in the “Margins” theme which I’m stuck 
on. Margins are totally different. Write Pro uses the HTML Box Model consisting 
of Margin, Border and Padding boxes around each Element (Content) box. (view in 
a monospaced font for the table to display properly):

+-------------------------+----------------------+-----------------------------------+
|     4D Write Classic    |     4D Write Pro     |                              
     |
|  WR Get doc property()  |  WP GET ATTRIBUTES() |                              
     |
+-------------------------+----------------------+-----------------------------------+
| wr text inside margin   | wk inside            |                              
     |
+-------------------------+----------------------+-----------------------------------+
| wr text outside margin  | wk outside           |                              
     |
+-------------------------+----------------------+-----------------------------------+
| wr text left margin     | wk page margin left  |                              
     |
+-------------------------+----------------------+-----------------------------------+
| wr text right margin    | wk page margin right |                              
     |
+-------------------------+----------------------+-----------------------------------+
| wr text top margin      | wk margin top        |                              
     |
+-------------------------+----------------------+-----------------------------------+
| wr text bottom margin   | wk margin bottom     |                              
     |
+-------------------------+----------------------+-----------------------------------+
| wr header top margin    | wk margin top        | specify header in range 
parameter |
+-------------------------+----------------------+-----------------------------------+
| wr header bottom margin | wk margin bottom     | specify header in range 
parameter |
+-------------------------+----------------------+-----------------------------------+
| wr footer top margin    | wk margin top        | specify footer in range 
parameter |
+-------------------------+----------------------+-----------------------------------+
| wr footer bottom margin | wk margin bottom     | specify footer in range 
parameter |
+-------------------------+----------------------+-----------------------------------+
| wr paper width          | wk page width        |                              
     |
+-------------------------+----------------------+-----------------------------------+
| wr paper height         | wk page height       |                              
     |
+-------------------------+----------------------+-----------------------------------+
| wr dead left margin     |                      |                              
     |
+-------------------------+----------------------+-----------------------------------+
| wr dead top margin      |                      |                              
     |
+-------------------------+----------------------+-----------------------------------+
| wr left margin          |                      |                              
     |
+-------------------------+----------------------+-----------------------------------+
| wr right margin         |                      |                              
     |
+-------------------------+----------------------+-----------------------------------+
| wr printable width      |                      |                              
     |
+-------------------------+----------------------+-----------------------------------+
| wr printable height     |                      |                              
     |
+-------------------------+----------------------+-----------------------------------+
| wr first indent         |                      |                              
     |
+-------------------------+----------------------+-----------------------------------+

Has anyone else already done this exercise and would like to help me fill in 
the blanks?

Thanks,

Tom Benedict
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to