English
Includes

xWin.inc - Centered & Created Window

 

Michael
Dell
Centered & Created Window
CompileMarkSeparation
xWin - Zentriert & Erzeugt Fenster (auch abweichend von Zentrum)
Grundlage war hier die Caption.inc von Martin Pohl
Autor: Michael Dell - http://www.cplace.de
Def GSM(1)    External(USER32,GetSystemMetrics,&(1))
Def GrX(1)    (%(1) + (GSM(7) * 2))
Def GrY(1)    (%(1) + (GrX(0) + GSM(4)))
Def ZentrX(1) ((%MaxX / 2) - (GrX(%(1)) / 2))
Def ZentrY(1) ((%MaxY / 2) - (GrY(%(1)) / 2))

Proc Title

    Parameters T_Title$
    CaseNot (Trim$(T_Title$) = ): WindowTitle T_Title$

EndProc

Proc xWinO

    Parameters xWO_XX&,xWO_YY&,xWO_Title$
    Title(xWO_Title$)
    Window (%maxX + 10),0-GrX(xWO_XX&),GrY(xWO_YY&)

EndProc

Proc xWinZ

    Parameters xWZ_XX&,xWZ_YY&,xWZ_Title$
    Title(xWZ_Title$)
    Window ZentrX(xWZ_XX&),ZentrY(xWZ_YY&)-GrX(xWZ_XX&),GrY(xWZ_YY&)

EndProc

Proc xWinZA

    Parameters xWZA_XX&,xWZA_YY&,xWZA_AX&,xWZA_AY&,xWZA_Title$
    Title(xWZA_Title$)
    Window (ZentrX(xWZA_XX&) + xWZA_AX&),(ZentrY(xWZA_YY&) + xWZA_AY&)-GrX(xWZA_XX&),GrY(xWZA_YY&)

EndProc

Beispiel: xWinO(640,480,Title$)            Fenster 640*480 erscheint ausserhalb des sichtbaren Bereichs
xWinZ(640,480,Title$)            Fenster 640*480 erscheint Zentriert
xWinZA(640,480,x%,y%,Title$)     Fenster 640*480 x%=0 und y%=0 ist abweichend vonm Zentrum +s=s2>/-
 
Salu Michael...

Hab zwar krumme Fieß awer dofir e' ecklich Gsicht! 
02/16/06  
 



@Michael: where You strain here are - should I the Thread gänzlich Remove or have You one Update to?

Nachtrag: Ah, one Update.
 
07/16/08  
 




Michael
Dell
strain first gesehn, known none that I the deleted Have.

Habs new laid down!
 
Salu Michael...

Hab zwar krumme Fieß awer dofir e' ecklich Gsicht! 
07/16/08  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

6.495 Views

Untitledvor 0 min.
Gast.081509/12/24
Member 640534301/17/22
iF10/31/20
Tommy03/26/19
More...

Themeninformationen

this Topic has 2 subscriber:

Michael Dell (2x)
iF (1x)


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