Draw text areas - multiple columns
Chris Dewhurst (1709) 167 posts |
Think there is an oddity in RISC OS 5.28. Using the D option for more than one column (e.g. D2 in listing below) dragging into Draw, used to double click on a column and then click/drag the handle to resize that column but doesn’t seem to do anything now. Is anyone else seeing this or is there a new way of handling text columns now? \! 1 The quick brown fox jumps over the lazy dog Chris. |
David Pitt (3386) 1248 posts |
A quick test shows that drag resizing works on OS5.26, Draw 1.30. |
David Pitt (3386) 1248 posts |
A bit longer test indicates the fault arrived with Draw 1.39, 1.38 is OK. https://gitlab.riscosopen.org/RiscOS/Sources/Apps/Draw/-/tags |
Jean-Michel BRUCK (3009) 362 posts |
I have version 1.41 and RO 5.29, I hope there will be a fix … On my website I uploaded a 32bits version of MkdrawF, I asked Gareth McGaughan the author. |
David Pitt (3386) 1248 posts |
fault?? or feature?? |
Jean-Michel BRUCK (3009) 362 posts |
@Chris bq. \ Is anyone else seeing this or is there a new way of handling text columns now?Yes, MkDrawf from Gareth McGaughan. There is a manual, we find the possibilities of !Draw and more. MkDrawf uses text scripts with Draw objects, its look like your example:
The full text does not appear so you have to enlarge one or more columns, for example for column 2: |
David Pitt (3386) 1248 posts |
Perhaps this is as simple as reinstating the A test build of a standalone Draw 1.41a app was uploaded here but has been withdrawn, the issue is fixed in Draw 1.42, 28 July 21. --- ADFS::ROOL.$.ROOLgit.Draw.c.DrawTrans141 2021-06-27 12:05:45.0 +0100 +++ ADFS::ROOL.$.ROOLgit.Draw.c.DrawTrans 2021-06-27 12:05:45.0 +0100 @@ -942,2 +942,20 @@ + +static void scale_textcolumn (draw_objptr hdrptr, scale_typ *scale) + +{ draw_objptr parent = draw_text_findParent (hdrptr.textcolp); + + /*Save undo on the parent*/ + full_set_undo (scale->diag, parent); + + scale_check (hdrptr, scale, NULL); + + /*Do the scaling*/ + scale_textC (hdrptr, scale); + + /*Recalculate parent bbox*/ + draw_text_rebound (parent); +} + + static void scale_trfmtext (draw_objptr hdrptr, scale_typ *scale) @@ -1099,3 +1117,3 @@ scale_group, 0 /*tagged*/, 0 /*'8'*/, - scale_textarea, 0 /*textcolumn*/, 0 /*option*/, + scale_textarea, scale_textcolumn, 0 /*option*/, scale_trfmtext, scale_trfmsprite, 0, @@ -1108,3 +1126,3 @@ scale_group, 0 /*tagged*/, 0 /*'8'*/, - scale_textarea, 0 /*textcolumn*/, 0 /*option*/, + scale_textarea, scale_textcolumn, 0 /*option*/, scale_trfmtext, scale_trfmsprite, 0, |
Jean-Michel BRUCK (3009) 362 posts |
@David |
David Pitt (3386) 1248 posts |
Now fixed in Draw 1.42, 28 July 21. Thanks ROOL. |