<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Tomas<div><br></div><div>The values are stored in a device-independent form; they are measured in 1/36000 mm.<div><br></div><div>You have to divide them by a scale factor dependent on your device:</div><div><br></div><div>300 dpi printer 3048</div><div>83 ppi screen 10000 </div><div>American points 12652 (TeX)</div><div>Typesetting points 12700 (pdf/postscript)</div><div>Continental Didot 13500</div><div>mm 36000</div><div>inch 914400</div><div><br></div><div>As typical monitors have ~83..93 ppi you normally divide the value by 10’000 to convert to pixels.</div><div><br></div><div>Eg the monitors mostly offered in stores today are 24“ in diagonal with 1920x1080 pixels. This results in 92 ppi. For this screen you could divide the values by 9962 to have an absolutely accurate representation of the Dialog. But round 9962 up to 10‘000 and you‘re fine.</div><div><br></div><div><blockquote type="cite"><div dir="ltr"><font color="#000000"><span style="caret-color: rgb(0, 0, 0); background-color: rgba(255, 255, 255, 0);">b0 17 1a 00 = 171</span></font></div></blockquote><blockquote type="cite"><div dir="ltr"><font color="#000000"><span style="caret-color: rgb(0, 0, 0); background-color: rgba(255, 255, 255, 0);">c0 10 f8 ff = -52</span></font></div></blockquote><blockquote type="cite"><div dir="ltr"><font color="#000000"><span style="caret-color: rgb(0, 0, 0); background-color: rgba(255, 255, 255, 0);">80 1a 06 00 = 40</span></font></div></blockquote><blockquote type="cite"><div dir="ltr"><font color="#000000"><span style="caret-color: rgb(0, 0, 0); background-color: rgba(255, 255, 255, 0);">40 0d 03 00 = 20</span></font></div></blockquote><br></div><div><div dir="ltr"><div>br</div><div>Jörg</div></div><div dir="ltr"><br>Am 01.12.2018 um 22:10 schrieb Tomas Kral <<a href="mailto:thomas.kral@email.cz">thomas.kral@email.cz</a>>:<br><br></div><blockquote type="cite"><div dir="ltr"><span>Hi,</span><br><span></span><br><span>Testing now on `Open.Dlg' dialog, having very few items.</span><br><span></span><br><span>All items get now loaded, as it seems. But I needed to insert two dummy</span><br><span>reads of 2 integers, they appear in file twice, right after x,y,w,h,bool</span><br><span></span><br><span></span><br><span>What are these integers???</span><br><span>1st INT 2nd INT</span><br><span>1a 06 00 40 0d 03 40 00 00</span><br><span></span><br><span>Why x,y,w,h are so high values???</span><br><span></span><br><span>This is loading log report:</span><br><span></span><br><span>DialogButtons</span><br><span>Open</span><br><span>MyEdit.Print</span><br><span>file </span><br><span> 6064 26 4288 65528 128 <= x,y,w,h,bool</span><br><span>Syntax10.Scn.Fnt</span><br><span>DialogStaticTexts</span><br><span>File</span><br><span></span><br><span></span><br><span> 37856 4 24288 65528 128 <= x,y,w,h,bool</span><br><span>DialogTexts</span><br><span>file</span><br><span></span><br><span></span><br><span> 64640 10 14288 65528 96 <= x,y,w,h,bool</span><br><span> ABORT 0003F3E4</span><br><span></span><br><span></span><br><span>Dumping Open.dlg:</span><br><span></span><br><span>$ hd Open.Dlg</span><br><span>00000000 03 00 44 69 61 6c 6f 67 42 75 74 74 6f 6e 73 00 |..DialogButtons.|</span><br><span>00000010 49 74 65 6d 44 65 73 63 00 4f 70 65 6e 00 4d 79 |ItemDesc.Open.My|</span><br><span>00000020 45 64 69 74 2e 50 72 69 6e 74 00 66 69 6c 65 20 |Edit.Print.file |</span><br><span>00000030 00 </span><font color="#000000"><span style="caret-color: rgb(0, 0, 0); background-color: rgba(255, 255, 255, 0);">b0 17 1a 00 c0 10 f8 ff 80 1a 06 00 40 0d 03 |.............@..|</span></font></div></blockquote><blockquote type="cite"><div dir="ltr"><font color="#000000"><span style="caret-color: rgb(0, 0, 0); background-color: rgba(255, 255, 255, 0);">00000040 00 </span></font><span>00 53 79 6e 74 61 78 31 30 2e 53 63 6e 2e 46 |..Syntax10.Scn.F|</span><br><span>00000050 6e 74 00 44 69 61 6c 6f 67 53 74 61 74 69 63 54 |nt.DialogStaticT|</span><br><span>00000060 65 78 74 73 00 49 74 65 6d 44 65 73 63 00 46 69 |exts.ItemDesc.Fi|</span><br><span>00000070 6c 65 00 00 00 e0 93 04 00 e0 5e f8 ff 80 1a 06 |le........^.....|</span><br><span>00000080 00 40 0d 03 00 00 01 01 00 53 79 6e 74 61 78 31 |.@.......Syntax1|</span><br><span>00000090 30 2e 53 63 6e 2e 46 6e 74 00 66 69 6c 65 00 44 |0.Scn.Fnt.file.D|</span><br><span>000000a0 69 61 6c 6f 67 54 65 78 74 73 00 49 74 65 6d 44 |ialogTexts.ItemD|</span><br><span>000000b0 65 73 63 00 66 69 6c 65 00 00 00 80 fc 0a 00 d0 |esc.file........|</span><br><span>000000c0 37 f8 ff 60 ae 0a 00 60 5b 03 00 00 00</span><br><span>|7..`...`[....|</span><br><span></span><br><span>-- </span><br><span>Tomas Kral <<a href="mailto:thomas.kral@email.cz">thomas.kral@email.cz</a>></span><br><span>--</span><br><span><a href="mailto:Oberon@lists.inf.ethz.ch">Oberon@lists.inf.ethz.ch</a> mailing list for ETH Oberon and related systems</span><br><span><a href="https://lists.inf.ethz.ch/mailman/listinfo/oberon">https://lists.inf.ethz.ch/mailman/listinfo/oberon</a></span><br></div></blockquote></div></div></body></html>