[Oberon] FPGA - OberonV4 Dialogs

Jörg Straube joerg.straube at iaeth.ch
Sun Dec 2 07:50:15 CET 2018


Tomas

The values are stored in a device-independent form; they are measured in 1/36000 mm.

You have to divide them by a scale factor dependent on your device:

300 dpi printer           3048
83 ppi screen            10000 
American points       12652 (TeX)
Typesetting points  12700 (pdf/postscript)
Continental Didot    13500
mm                              36000
inch                           914400

As typical monitors have ~83..93 ppi you normally divide the value by 10’000 to convert to pixels.

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.

> b0 17 1a 00      = 171
> c0 10 f8  ff       = -52
> 80 1a 06 00     =  40
> 40 0d 03 00    =  20

br
Jörg

> Am 01.12.2018 um 22:10 schrieb Tomas Kral <thomas.kral at email.cz>:
> 
> Hi,
> 
> Testing now on `Open.Dlg' dialog, having very few items.
> 
> All items get now loaded, as it seems. But I needed to insert two dummy
> reads of 2 integers, they appear in file twice, right after x,y,w,h,bool
> 
> 
> What are these integers???
> 1st INT       2nd INT
> 1a 06 00 40   0d 03 40 00 00
> 
> Why x,y,w,h are so high values???
> 
> This is loading log report:
> 
> DialogButtons
> Open
> MyEdit.Print
> file 
>  6064    26  4288 65528   128 <= x,y,w,h,bool
> Syntax10.Scn.Fnt
> DialogStaticTexts
> File
> 
> 
> 37856     4 24288 65528   128 <= x,y,w,h,bool
> DialogTexts
> file
> 
> 
> 64640    10 14288 65528    96 <= x,y,w,h,bool
>  ABORT   0003F3E4
> 
> 
> Dumping Open.dlg:
> 
> $ hd Open.Dlg
> 00000000  03 00 44 69 61 6c 6f 67  42 75 74 74 6f 6e 73 00  |..DialogButtons.|
> 00000010  49 74 65 6d 44 65 73 63  00 4f 70 65 6e 00 4d 79  |ItemDesc.Open.My|
> 00000020  45 64 69 74 2e 50 72 69  6e 74 00 66 69 6c 65 20  |Edit.Print.file |
> 00000030  00 b0 17 1a 00 c0 10 f8  ff 80 1a 06 00 40 0d 03  |............. at ..|
> 00000040  00 00 53 79 6e 74 61 78  31 30 2e 53 63 6e 2e 46  |..Syntax10.Scn.F|
> 00000050  6e 74 00 44 69 61 6c 6f  67 53 74 61 74 69 63 54  |nt.DialogStaticT|
> 00000060  65 78 74 73 00 49 74 65  6d 44 65 73 63 00 46 69  |exts.ItemDesc.Fi|
> 00000070  6c 65 00 00 00 e0 93 04  00 e0 5e f8 ff 80 1a 06  |le........^.....|
> 00000080  00 40 0d 03 00 00 01 01  00 53 79 6e 74 61 78 31  |. at .......Syntax1|
> 00000090  30 2e 53 63 6e 2e 46 6e  74 00 66 69 6c 65 00 44  |0.Scn.Fnt.file.D|
> 000000a0  69 61 6c 6f 67 54 65 78  74 73 00 49 74 65 6d 44  |ialogTexts.ItemD|
> 000000b0  65 73 63 00 66 69 6c 65  00 00 00 80 fc 0a 00 d0  |esc.file........|
> 000000c0  37 f8 ff 60 ae 0a 00 60  5b 03 00 00 00
> |7..`...`[....|
> 
> -- 
> Tomas Kral <thomas.kral at email.cz>
> --
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20181202/6f4113f1/attachment.html>


More information about the Oberon mailing list