НОВОЕ: OS/2 GURU - Вопросы и ответы

12345

Reviews / articles about OS/2

Operating systems:
ArcaOS, eComStation, IBM OS/2 Warp
eComStation myths 

Latest  
 
 

Unsorted

 

 

AD: ArcaOS 5.1 Russian LIP
Russian ARCAOS exists and it's available since the middle of 2017. All versions are supported: 5.1, 5.1.1.

eCo Software is able to maintain OS/2 LIP packages for any other language (German, Dutch, Brazilian Portuguese, Spanish, Sweden, etc)

What is dpi and how to design dialogs


TITLE: What is dpi and how to design dialogs

DATE: 2009-03-20 22:36:05

AUTHOR: Dmitry A.Steklenev
Please use online translator
go to http://translate.google.com
and request the translation of http://ru.ecomstation./projects/reviews/index.php?id=192
to your language

... ..... dpi . ppi

dpi (............ ... ......) - .......... ... ..... dots per inch .......... ..... .. ........ ..... ........... ... ........ ........... ........... ........ ......... .......... ...... ....., ............ .. ........ .... ............ ........ ........... 600x300 dpi ... ........ ........, ... ... ........... ........... ..... 600 ..... .. ........... . 300 ..... .. ......... .. 1 .....

ppi ..... pixels per inch - .......... ........ .. ........ ..... .., ... .......... ........... ........... ...... ....., .. ..... .... ........ .......... ppi - .......... ........ .. ........ ..... ....... - ............ ...... ....... ............

. .......... ..... .............. ...... dpi.

..... ..... ..... ........... ........... ......

...... ........... ........... ...... ......... ............ ........... .......... ....... ..., ..... .. .... .. ...... ............ .......... ........ ........, ..... .......... ....... .. ........ . .... ...., ..... ....... .. ..... ........ . ........... ............ . 96 dpi ......., ...... ....... ........ ....... .. 96 ......... . ... .... ..... .......... .... .. ....... .. ........, ....... ........... ........... . 600 dpi, ... ....... ...... ........ .. 600 ......

...... 96 dpi . 120 dpi

........... VGA ......... ........ 80-. ..... ..... .......... . ...... .. 70 .. 74 dpi. ...... "..........." .......... ... ...... .... ........ ........... Macintosh ........ Apple, ........... ........... ....... .... ..... 72 dpi. .. .... ......... .... ...... ............. ...... ............. ......, ....... ... ... . ..... 1/72 ......

..... .... ........, ... .......... .. ............. ..... .. ........... ........ . ....... .. 1/3 ......... ........... .......... .. ..... ...... . ........... .. ........ ....... ....... .... ... .... ..... ............ .. ........ ...... .... ... .. .......... ......, ..... .. ..... ..... ..... .. ......, ... ..... ...... .. 1/3 ....... ... ....... .... ........ ... ...... ........ ......, ............ ....... ..... ........... ... ......... . . ........... ............ . ...... 72 dpi ........ . 96 dpi.

....., IBM ........... ....... 8514, ....... ........ ........... ........... . 96 dpi, . .............., . ............ ....... .... ........ ......... ........... ........... . 120 dpi.

.. ...... ......, ........ .... ......... . ................. ........... ......... . ............... ............ .... .. ... ... ....... ......... .. . ............ ............. ....... ......., .. ....... ......, Windows ....... ... ........ ........ ........... ........... . 96 dpi . ......... ....... ....... ... ........ .. 120 dpi, . OS/2, .. ........., ....... ... ........ . ........... ...... 1024x768 ........ - .......... . ........... ............ . 96 dpi, . ... ......... - .......... . ........... ............ . 120 dpi.

..... ..... ............ ........ ........... ........... ........

..... ..... ......... ...., ... ......... ........ dpi ... ...... ........, ... .. ...... .......... ... .......... ....... ......... ..........., . ...... ........ .. ........... ............ .... .... ..... .. ...... . ......... ............ ........... ............ ........ ........., .. ..... ...... ............ ...... ......, . .. dpi .......

.. ..... ...... ......... dpi ... ...... ........, ....... ........ .... .. ...... ...... . ........ .......... ........, ............... .... ......., .. .......... ......... ...... ....... ..... .. ........, ... ... ... ........... ........ .......... .......... ....... ., .............., ..... .......... ........... ........... .. ........... . ..........

..... ...., .... .......... ...... . ........ .. ......... . ..........., . ..... .... ..... ......... ........ . ........ ......, dpi ...... ..... ..... .......... .. ......... .......:

......... ........... ............ ........... ...........

...... ........ - ... .............. ........ ........ .. ...... ...... . ...., ... ......... ... ...... ..... ...... .. ......... ...... . ..... .......... ......... ....... . ........... ......... .. ........, ... ........ ........ .......... ....... ....... ........... ..........., ... ........ ........... ..... ........ ....... ........, ... ......... ............ .. .......... ............. ....... ...... ., . .........., ..... ..... ......... .......... .. ......... . ......... ............ dpi. ..... .. ........ ..... .......... . . .......... .......... ..........

... ...... ........... ........... ......, ............ ........

... ..... . OS/2 ..... ........ ......... .........., ............. ... ........... ........ ...... ........ ... ......... .......:

HPS   hps  = WinGetPS( HWND_DESKTOP );
HDC   hdc  = GpiQueryDevice( hps );
LONG  hres = 0;
LONG  vres = 0;

DevQueryCaps( hdc, CAPS_HORIZONTAL_FONT_RES, 1L, &hres );
DevQueryCaps( hdc, CAPS_VERTICAL_FONT_RES  , 1L, &vres );

....... .......

...... ....... . OS/2 ........... . ............ ........ .... ............ ..... ..... 1/72 ...... ......., ... ............... ........... ...... . ........., .......... ........... ... ...... . ...... ....... ........... ........... ....... .... ............... .........., ........... . .......... ......., .. ........ ... ......... .......:

SIZEF size;

size.cx = ( MAKEFIXED( font_size, 0 ) / 72 ) * hres;
size.cy = ( MAKEFIXED( font_size, 0 ) / 72 ) * vres;

GpiSetCharBox( hps_to_draw, &size );

....... .......

...... . OS/2 ..... ...... . 1/3 ...... ... .... ....... ........... ...... . 1/6 ...... ......., ... ............. ........... ........... . 96 dpi, ...... ...... ..... ...... . 32x32 . 16x16 ......... ... 120 dpi - .... ...... .......... .. 40x40 . 20x20 ........ ............... ...... ....... ......, ............ ........, ..... . ....... ....... WinQuerySysValue:

LONG icon_width  = WinQuerySysValue( HWND_DESKTOP, SV_CXICON );
LONG icon_height = WinQuerySysValue( HWND_DESKTOP, SV_CYICON );

. ........... ........ ........

.......... . ........ ........ ........ . ........... ......... ... ....... .......... .. ....... ....... ....... ......, ............. ........ .. .......... .... ....... .. ........... ..... 1/4 ...... ...... ......., . .... ....... .. ......... ..... 1/8 ...... ........

... ... ....... ...... ....... ..... .......... ... ......... dpi ......, .. ............. ..... ......... ..........., ... ...... ..... ............ . ........... ........ . ....... .......... ........ ... ..... dpi .......

....... ...... ....... ... ...... .. ......... ..... ..... ........ . .........., ............. ... ........... ........ .....:

HPS   hps = WinGetPS( HWND_DESKTOP );
HDC   hdc = GpiQueryDevice( hps );
LONG  char_height = 0;
LONG  char_width  = 0;

DevQueryCaps( hdc, CAPS_GRAPHICS_CHAR_WIDTH,  1L, &char_width  );
DevQueryCaps( hdc, CAPS_GRAPHICS_CHAR_HEIGHT, 1L, &char_height );

OS/2 .......... ....... ...... ....... . 13x13 ........ ... ........... ........... . 96 dpi . 16x16 ... 120 dpi. ......., .... ....... ......... ....... ....... .. ........... ..... ..... 3.25 ....... ... 96 dpi . 4 ....... ... 120 dpi. .. ......... ......... ......... ........ - 6.5 . 8 ........ ...............

..... ......

... ..... .. ........... ......, ... ........ ................. .......... OS/2 ............. .. ... ......... ........... ........... - 96 dpi . 120 dpi. ......... . ........... .............. ........... ...... ............. ........... ........... ...... ..... ...... ................. .. ......... ........, ...... ......... ........ dpi ......, .......... ....... ...... ......, ...... ....... . ...... ......... ..... ....... ...... ........ ............. ........ . ........ . ......... ............. ........, .... ........ .......... .......... .......... . ............ ............ ............

. ........., ... ........ Panorama, ...... ... .......... .......... ........ ............ ....... ...... ......, ....... ...... ....... . ....... ...... ........ ........ .......... ... ........... ........... . 120 dpi. ...... ...... ......, ...... ...... ....... . ...... ...... ........ ........ .......... ... ........... ........... . 96 dpi. ... ......... .......... .......... ........ ......... . .. ...... ............

............ ... .............

  1. ...... .......... ................ ......... ......... . .............. ........ ......... ..... ......... ..... ............ ......... ... ......... ........... ............ .......
  2. .... .. .....-.. ........, ............. ........ ........ ........ ............, ......... .......... ........... ......... .......... . ........ ........ . ............. .. . ....... .......... .......... . ....... ....... WinMapDlgPoints.
  3. ...... ........... . ........ ........... ......... ........ ........... ...... OS/2. .. ........... ......... ..........., ... ... ... .. .............. ... ......... ........... ........... .......
  4. .... ............. .......... ........... . ....... ........ ..........., ........... ... ............ .... . ........, ............... ........... ........... . 96 dpi, . ...... - ... 120 dpi. ............ ...... ........... ... ............. ....... . ........... .. ....... ........... ........... .......
  5. ... ........ ............ ...... OS/2 .......... ... ........... ... ...........: 40x40, 32x32, 20x20 . 16x16 ......... ..... OS/2 ..... ........ .............. ........... .............., . ... . ... .. ...... ...... ...........
  6. ............ .........., ... ........ ......... ... ........... ..........., ........ .. ..., . ....... .. ......... ..........

Test the program:

Can I use social networks from eComStation? Can I manage my bank account from eCS? share your experience..

Comments:

Digi
2009-03-24 02:04:01

.......-.. ... ..... .... . .... ...... ........ ...., ... ....... . .. .....

Sergey Posokhov
2009-03-25 19:19:11

........ . ........ .... ...... (...... .......), .. ....... .. ......... ........

Milena
2009-06-02 09:37:01

.......! ... .... . ..... .........

.....
2009-06-02 21:53:33

C......!

.....
2009-09-14 17:55:30

......... .. ......! ..... . ........

.....
2010-08-19 18:27:59

..... ...... !

.. .............., . ..... ............ ..... ...... ...... .. ....... . .... .......

........ 600x300 dpi.

. ..... ..... .......... . 192 pdi?

.. ....... . .. ......, ..... ... ... ...... ..... ....... . .. ...... .........

.....
2013-01-23 10:51:32

....... .......!

Digi
2016-12-15 09:09:18

...-.. .. ... . ....... ". ........... ........ ........": "....... .. ........... ..... 1/4 ...... ...... ......., . .... ....... .. ......... ..... 1/8 ...... .......", . .....: ".. ......... ......... ......... ........". .. 1/8 ... ..... .. ......... 1/4. .....: "OS/2 .......... ....... ...... ....... ... 16x16 ... 120 dpi". . . .... .. DevQueryCaps() .......... 20.20. . ........., .. .... .......... . .... .. .......... ........ ..... .. ........ ......... ......... . ....... ... .......... ... .......... .. ........

eCo Software is a group of russian developers.
How to support eCo Software? (you can send us some computers. Maybe you don't use the device but it may be useful for the developers). We have the mailboxes in USA, Netherlands, China and Hong Kong.

 


 

 

ArcaOS 5.1.1 - DOS works again

DOS virtual machine works again (it was working on Core 2 Duo, and didn't for i5). Install ArcaOS in UEFI mode to use DOS VM.

eComStation developer

eCo Software was the leading developer of modules for eComStation 2.0

// надо на ENG!!

Warpstock Europe 2017

Warpstock Europe 2017 conference was in Rotterdam (Netherlands). Meeting of OS/2 users and developers. Report (russian text):

 

(C) OS2.GURU 2001 -- 2025