English
Forum

Kleinstmögliche Fenstergröße

 

E.T.
becomes you kleinsmögliche Window-Size through windows certainly or fit there what in XProfan not .

beget Window 800*600 and let me by %cyCaption  the level the Headline Show (with of my dissolution 22 px.):
CompileMarkSeparation
now Ändere I The Fenstergröße by
CompileMarkSeparation
SetWindowPos %HWnd = 10,10 - 100,%cyCaption;-1
>

and sustain by @Height(%HWnd,1)  38 ,
even if I instead of %cyCaption  25 angebe, Better get going not small as The (ominösen?) 38...
...somewhere must these number still since come

background: i want of my Window in a corner (or elsewhere) one Mini-Window having, which for D&D susceptible is, but should not too much disturbing
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
12/26/14  
 



E.T. (26.12.14)
becomes you kleinsmögliche Window-Size through windows certainly or fit there what in XProfan not .


The becomes first of all in the wproc certainly  [...]  The against comes first of all of XProfan or one sound a Own one.

The 38 is faith I ever a sysprop adjustable with display->Schema->Erweitert (or so similar).

with Windows with Headline can y vlt. not small as The Headline his,
one Windowstyle 80 Window against can imho too 0x0 his.
 
12/26/14  
 




Georg
Teles
means Windows To windows & of Style To Style (Window The of these windows Styles / Unterstilen tributary are) go The Borders the Window Yes yet berücksichtigt

Something like is me Schonmal noticed, that with XP zB to with Create begot Objects the window "früher abschneidet" as with 8

with XP given / there these .msstyles Files, everybody can with ResHacker zb. Edit can, under the Ressourcennamen TEXTFILE or however of Author benannt, any INIs the individual Unterstile to find, where colours sizes bspw. definiert are --- with 7 & 8 have I no idea

d.h. if one window 0,0-800,600 created, are The Außenmaße 800 * 600, The Fensterfläche is means less The Borders or. less The Titelleiste supra

How one now whom edge the current Stils read can, have I no idea
( I bet for there inquire in windows with its Help one any Metrics read can )
 
TC-Programming [...] 
XProfan 8.0 - 10.0 - X2 - X3 - X4

12/30/14  
 




HofK
Georg Teles (30.12.14)
( I bet for there inquire in windows with its Help one any Metrics read can )


... the should GetSystemMetrics( index ) his

moreover there two pages with the Indizes
The index SM_CYCAPTION ought to the level the normalen Titelleiste his.

in the own system kan one with regedit look. so ist' s by me in Win 8.1 (equipment)

with XProfan kan one quick look as accurate looks:
__________________________________
$H windows.ph

' from the windows.ph in XProfan/be copies:
'-----------------------------------
' SM_CXSCREEN = 0;
' SM_CYSCREEN = 1;
' SM_CXVSCROLL = 2;
' SM_CYHSCROLL = 3;
' SM_CYCAPTION = 4;
' SM_CXBORDER = 5;
' SM_CYBORDER = 6;
' SM_CXDLGFRAME = 7;
' SM_CYDLGFRAME = 8;
' SM_CYVTHUMB = 9;
' SM_CXHTHUMB = 10;
' SM_CXICON = 11;
' SM_CYICON = 12;
' SM_CXCURSOR = 13;
' SM_CYCURSOR = 14;
' SM_CYMENU = 15;
' SM_CXFULLSCREEN = 16; (by me standing there identical $10)
' SM_CYFULLSCREEN = 17;
' SM_CYKANJIWINDOW = 18;
' SM_MOUSEPRESENT = 19;
' SM_CYVSCROLL = 20;
' SM_CXHSCROLL = 21;
' an so on ...
'----------------------------------

windowtitle "Sysmetric"
windowstyle 24
window 25,25 - 500,800

whileloop 0,21
drawtext 10,20*&loop, ~GetSystemMetrics( &loop )
endwhile

waitinput
____________________________________________

165 kB
Hochgeladen:12/30/14
Downloadcounter94
Download
 
12/30/14  
 




Georg
Teles
OK means
CompileMarkSeparation
 $H Windows.ph
WindowStyle 4+8+512
Window 800,600
ausgabe()

While 1

    WaitInput

    If %Key = 2

        Break

    EndIf

    ausgabe()

EndWhile

Proc ausgabe

    Declare w_aussen&, h_aussen&
    CLS
    locate 0,0
    ' Rand Links & Rechts
    '  32 = SM_CXFRAME - This value is the same as SM_CXSIZEFRAME.
    ' Rand Oben & Unten
    '  4  = SM_CYCAPTION - The height of a caption area, in pixels.
    '  33 = SM_CYFRAME - This value is the same as SM_CYSIZEFRAME.
    w_aussen& = Width(%HWnd)+(~GetSystemMetrics(32)*2)
    h_aussen& = Height(%HWnd)+(~GetSystemMetrics(4))+(~GetSystemMetrics(33))+(~GetSystemMetrics(33))
    print "Äußere Fensterbreite: ";w_aussen&
    print "Innere Fensterbreite: ";width(%HWnd)
    print
    print "Äußere Fensterhöhe:   ";h_aussen&
    print "Innere Fensterhöhe:   ";height(%HWnd)

ENDPROC


To SM_CYCAPTION (Win8: 23 Px) must the normal vertikale edge SM_CYFRAME (8 Px) moreover add go, so The right Höhe the Titelleiste rauskommt (31 Px), can the someone yet confirm?

EDIT:
Kleinstmögliche wide gives SM_CXMIN on (28) - The minimum width of a window, in pixels.
 
TC-Programming [...] 
XProfan 8.0 - 10.0 - X2 - X3 - X4

01/07/15  
 




E.T.
Hm, by me is a Window 800x600 too outside very so big:
CompileMarkSeparation
 $H Windows.ph
WindowStyle 4+8+512
Window 800,600
print "Minimale Breite lt. System:",~GetSystemMetrics(28)
print "Minimale Höhe lt. System:",~GetSystemMetrics(29)
print "*************************************************************************"
print "--------------XProfan-Werte:"
print "Fenster-Größe AUSSEN lt. XProfan:",Width(%HWnd,1),"x",height(%HWnd,1)
print "Fenster-Größe INNEN lt. XProfan:",Width(%HWnd,0),"x",height(%HWnd,0)
print "Höhe Titelzeile lt. XProfan:",%cyCaption
print "Höhe Menü lt. XProfan:",%cyMenu
print "Rahmen oben und unten lt. XProfan:", "???"
print "Rahmen links und rechst lt. XProfan:", "???"
print "--------------System-Werte:"
print "Rahmen unten und oben lt. System:",~GetSystemMetrics(33)
print "Rahmen links und rechts lt. System:",~GetSystemMetrics(32)
print "Höhe Titelzeile lt. System:",~GetSystemMetrics(4)
print "Höhe Menü lt. System:",~GetSystemMetrics(15)
print "--------------Gerechnet:"
print "  (Rahmen oben + Titel + Menü + innere Höhe(XProfan) + Rahmen)"
print "Fenster-Höhe lt. System + XProfan:",~GetSystemMetrics(33)+~GetSystemMetrics(4)+~GetSystemMetrics(15)+height(%HWnd,0)+~GetSystemMetrics(33)
Waitinput
end

means is my ominöse "38"  of system as smallest Window-Höhe pretended, naja, must I hold life so or me what other dreamup...

Georg Teles (07.01.15)
To SM_CYCAPTION (Win8: 23 Px) must the normal vertikale edge SM_CYFRAME (8 Px) moreover add go, so The right Höhe the Titelleiste rauskommt (31 Px), can the someone yet confirm?


can I so not confirm. i think, whom vertikalen  edge moreover To add, around the Höhe  To get, can't integrally fit.
be but strain To rotten to that think to that closing-time
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
01/07/15  
 




HofK
small consolation:  my smallest Window-Höhe with Win8.1 is 47

have but too with the Programming of my CPU Simulation vigorously in the Registry rumgespielt and at testing notice, that The statement the Fensters, the Controls between Windows XP, 7, 8.1 not konsistent is.

particularly The GridBOX was heavy abweichend what about me have letztendlich on 7, 8.1 optimiert.

my Registry Settings are not any more the Urzustand, habs but not note.
 
01/07/15  
 



therefore indeed something like here:  [...] 

or one created one Window with Style 80 { | 512 }

there has one then The filled control above what showing should
and can also Headline etc. self draw.
 
01/07/15  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.789 Views

Untitledvor 0 min.
Sven Bader08/06/23
Normann Strübli02/03/23
Nico Madysa03/28/16
E.T.01/02/16
More...

Themeninformationen

this Topic has 4 subscriber:

HofK (2x)
Georg Teles (2x)
iF (2x)
E.T. (2x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie