English
Forum

DrawText in XProfan X2a

 

Stephan
Sonneborn
Hi,

somehow understand I either The Help not correctly. or The automatic Texthöhenermittlung is something buggy...
ought to not a suitable Texthöhe determined go, so the Text into rectangle fit and ought to not The ursprüngliche Formatierung (right, center or left) not receive stay?
CompileMarkSeparation
CLS
USEFONT  "Arial", 36, 0, 0, 0, 0
TEXTCOLOR RGB(000,000,000), RGB(255,255,000)
DRAWTEXT 10, 10,150, 30,"Test", 0
DRAWTEXT 10, 30,150, 50,"Test", 1
DRAWTEXT 10, 50,150, 70,"Test", 2
DRAWTEXT 10, 70,150, 90,"Test"+STR$(%TEXTHEIGHT), (0 + 1024)
USEFONT  "Arial", %TEXTHEIGHT, 0, 0, 0, 0
DRAWTEXT 10, 90,150,110,"Test"+STR$(%TEXTHEIGHT), (1 + 1024)
DRAWTEXT 10,110,150,130,"Test"+STR$(%TEXTHEIGHT), (2 + 1024)
WAI
 
Schöne Grüße aus Wittgenstein
von Stephan

Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz
06/19/11  
 




RGH
Hi,
there understand You objectively something wrong. DT_CALCRECT (1024) bewirkt not, that The Fonthöhe automatically so chosen becomes, that the Text in that rectangle fit, separate very inverse (as well as the name the ? Happen? suppose can), that the rectangle so chosen becomes, that the Text in gewählter Fondgröße hineinpasst. The DY-worth becomes means ignoring and automatically accounts. this is particularly meaningfully, if one z.B. more crowds Fließtext with Line break spend would like. The Systemvariable %TEXTHEIGHT gives then on, How big DY objectively errechnet watts. this is Yes important, in order to know, on which place one whom next distribution positioniert.

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
06/19/11  
 




Stephan
Sonneborn
Hello Roland,

I see! now Have too ichs understood

and What is with the Flag +1024?
 
Schöne Grüße aus Wittgenstein
von Stephan

Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz
06/19/11  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.521 Views

Untitledvor 0 min.
E.T.02/19/18
Sebald Grandjean02/16/18
Wilfried05/22/16
Ernst05/04/16
More...

Themeninformationen

this Topic has 2 subscriber:

Stephan Sonneborn (2x)
RGH (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