Page 1 of 1

Specifies the size of the window in pixels

Posted: Mon Jul 14, 2014 1:07 am
by Eugene Lutsenko
I would like to be able to specify the size of the window in pixels:


Code: Select all

   @ 2,1 DCSTATIC TYPE XBPSTATIC_TYPE_RECESSEDBOX SIZE 183, 50 ;           // Размер окна для отображения графика
         OBJECT oStatic;
         EVAL {|| _PresSpace4222(oStatic, aKodCls, aNameCls, aSxodCls) }

   DCREAD GUI ;
      TITLE '4.2.2.2. Результаты кластерно-конструктивного анализа.  (C) Универсальная когнитивная аналитическая система "Эйдос-Х++"' ;  // Надпись на окне графика
      FIT;
      MODAL
[/size]

Re: Specifies the size of the window in pixels

Posted: Mon Jul 14, 2014 2:04 am
by Leon Berger

Code: Select all

 @ 2,1 DCSTATIC TYPE XBPSTATIC_TYPE_RECESSEDBOX SIZE 800, 600 PIXEL

Re: Specifies the size of the window in pixels

Posted: Mon Jul 14, 2014 2:54 am
by Tom

Code: Select all

DCGET OPTIONS WINDOW HEIGHT nHeight WINDOW WIDTH nWidth
Don't use DCREAD ... FIT in this situation. This will always set the window size to the size needed for the objects.

If you want to find out the useable desktop size, take a look at DC_GetWorkArea().

Re: Specifies the size of the window in pixels

Posted: Mon Jul 14, 2014 7:49 pm
by Eugene Lutsenko
Thank you very much!
Very comfortable and works great