Specifies the size of the window in pixels

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Specifies the size of the window in pixels

#1 Post 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]

Leon Berger
Posts: 36
Joined: Thu Jan 28, 2010 2:30 pm

Re: Specifies the size of the window in pixels

#2 Post by Leon Berger »

Code: Select all

 @ 2,1 DCSTATIC TYPE XBPSTATIC_TYPE_RECESSEDBOX SIZE 800, 600 PIXEL
Best regards
Leon

User avatar
Tom
Posts: 1172
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Specifies the size of the window in pixels

#3 Post 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().
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Specifies the size of the window in pixels

#4 Post by Eugene Lutsenko »

Thank you very much!
Very comfortable and works great

Post Reply