Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   glOrtho Textposition (https://www.delphipraxis.net/168775-glortho-textposition.html)

EWeiss 10. Jun 2012 14:09

glOrtho Textposition
 
Wie kann ich garantieren das ich meinen Text immer Zentriert
in meinem Fenster anzeige auch wenn die größe des Fensters nicht GL Konform ist.

Delphi-Quellcode:
    glPrintXY(ClientWidth / 2, 19, PAnsiChar(bufferword),
      fListsInfoFontID, TS_ALIGN_LEFT);
Delphi-Quellcode:
    glOrtho(0, ClientWidth, 0, ClientHeight, -100, 100);


Beim VollScreen geht das bei nicht konformer GL Window größe leider nicht.

gruss

EWeiss 14. Jun 2012 21:27

AW: glOrtho Textposition
 
Die lösung war
Delphi-Quellcode:
    glPrintXY(ClientWidth / 2, 19, PAnsiChar(bufferword),
      fListsInfoFontID, TS_ALIGN_CENTER);
Hat sich damit erledigt.

gruss


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:44 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz