English
Forum

Ugly Margins in DrawText....?

 
Hello iF

your statement, at Text with text überschreiben would hässliche Borders come into being can I on my system not understand.
enclosed one code, in the different Show correct deleted (überschrieben) and be the too yet to mehrmaligem appeal.
CompileMarkSeparation
DECLARE zeigen%,loeschen%,ende%,EE%
EE%=0

PROC ZEIGEN

    USEFONT "ARIAL",16,6,0,0,0
    TEXTCOLOR RGB(200,0,0),-1
    DrawText 100,100,Date$(2)
    USEFONT "COURIER NEW",24,0,1,0,0
    TEXTCOLOR RGB(0,0,150),-1
    DrawText 100,150,"Profan-Version "+$ProfVer
    USEPEN 0,1,RGB(0,0,0)
    USEBRUSH 1,RGB(0,200,0)
    RECTANGLE 100,200-200,250

ENDPROC

PROC LOESCHEN

    USEFONT "ARIAL",16,6,0,0,0
    TEXTCOLOR RGB(255,255,240),RGB(255,255,240)
    DrawText 100,100,Date$(2)
    USEFONT "COURIER NEW",24,0,1,0,0
    DrawText 100,150,"Profan-Version "+$ProfVer
    USEPEN 0,1,RGB(255,255,240)
    USEBRUSH 1,RGB(255,255,240)
    RECTANGLE 100,200-200,250

ENDPROC

--------------------------------
CLS RGB(255,255,240)
zeigen%=CREATE("BUTTON",%HWnd,"Anzeigen...",1,1,150,25)
loeschen%=CREATE("BUTTON",%HWnd,"Löschen...",151,1,150,25)
ende%=CREATE("BUTTON",%HWnd,"Ende",530,1,100,25)
ZEIGEN
enableWindow zeigen%,0

WhileNot EE%

    WAITINPUT

    IF GetFocus(zeigen%)

        enableWindow zeigen%,0
        enableWindow loeschen%,1
        ZEIGEN

    ENDIF

    IF GetFocus(loeschen%)

        enableWindow zeigen%,1
        enableWindow loeschen%,0
        LOESCHEN

    ENDIF

    Case GetFocus(ende%):END

WEND

 href='./../../Function-References/XProfan/end/'>end

probably is the thing for you not further important therefore have I the Topic too into Trashcan set
 
07/09/06  
 




Frank
Abbing
you have right, Horst. I have any Modi ausprobiert and a such effect is me not noticed. The Texts go restlos deleted.
iF has but insofern right, that other Windowsinstallationen there sensibler react could. I yourself lösche such regions rather as rectangle, of what the process since too faster is. objectively use I DrawText today only yet very seldom. Staticcontrols verrichten mostly ihren service rather, and the Textfarbe is there through Subclassing too adjustable. even if I the systemkonforme Black vorziehe.
 
07/09/06  
 



[quote:eeb9e96a6d]
you have right, Horst.[/quote:eeb9e96a6d]
two Erfolgserlebnisse inside the last 24 hours - our Jungens win whom 3. Space with the WM and of/ one the Grossen - Frank - gives me right

...Yes is because already christmas ???
 
07/09/06  
 




Rolf
Koch
Perhaps had Frank too with against italy play should - then wären we today dran with the WM *lol*
 
07/09/06  
 



toggles ClearType on - as standardmäßig too the case is - and you become understand can...

I lass me the still not from Fun on the joy to occur - I have it objectively just self experienced.

The negative-effect exit circa so stronger on so larger the Font is.

here the TestSource:
CompileMarkSeparation
windowstyle 80
window 0,0 - 640,480
cls 0
showmax
textcolor $00FFFFFF,-1
usefont "Arial",50,0,0,0,0
drawtext 10,10,"ClearType"
textcolor 0,-1
drawtext 10,10,"ClearType"
waitkey
2.png  
2 kB
Hochgeladen:07/09/06
Downloadcounter222
Download
1.png  
46 kB
Hochgeladen:07/09/06
Downloadcounter69
Download
 
07/09/06  
 



Have my Posting over again revised - now too with Bülda!

who times the [...]  with IE7 opens sees quick I my - too without eingeschaltetem Cleartype.
 
07/09/06  
 




Frank
Abbing
[quote:ecdda3ea3c]toggles ClearType on - as standardmäßig too the case is - and you become understand can...[/quote:ecdda3ea3c]
Have I naturally done. The effect exit by me but not.

[quote:ecdda3ea3c]some GrKarten having even yet extra Features around the Fonts To soften - then siehts yet worse from - too with whom small Fonts! Scheine ne manufacturers-Macke To his, once NEN TFT connected is believe The GrKartenentwickler something glätten To must.[/quote:ecdda3ea3c]
I have with TFT tested. and Cleartype. No Borders.

The effect shining means only systembedingt aufzutreten. but I said already, rather the whole rectangle delete. is in each drop safer.
 
07/09/06  
 



[quote:7f20d45283]only systembedingt[/quote:7f20d45283]


i want again hereon allude the it not therefore goes to find out with whom the effect appears - and with whom not.

I mentioned solely the it a code idea be Text so abzulöschen because of o.g. effect.

the the an or others whom effect not understand can game still hierbei no role, The computer are nunmal different - I wished solely on of my experience teilhaben let.

what with the right or not right zutun has - no idea.

The question hässliche Margins in DrawText must unfortunately with Yes answers go because one can't of it go out the with o.g. Ablöschverfahren no Borders enstehen. and because means möglicherweise on other Computern Borders enstehen is it a code idea. so simply - tab To - monkey dead.
 
07/09/06  
 



[quote:247c882404]so simply - tab To - monkey dead. [/quote:247c882404]
so simply geb I not beaten ! - If you with -1 as Farbangabe überschreibst, have You The hässlichen Borders - If you my Text very ansiehst, become You see, I on place of -1 The colour the Hintergrundes angebe and then are The Borders No - Gelle
CompileMarkSeparation
07/09/06  
 




Frank
Abbing
[quote:cf7e0939a8]If you my Text very ansiehst, become You see, I on place of -1 The colour the Hintergrundes angebe and then are The Borders No[/quote:cf7e0939a8]

iF, there it circa Horsts method goes, its Texts To delete, should You too Horsts Source to that testing use... my testify here basieren anyway on seinem code.
 
07/09/06  
 



 
07/09/06  
 



then is the question but not whether the Text perfect with the Text ablöschen can, separate with a Rectangle.

Horst his example fit means not only task, accordingly can his example from not maßgeblich his.

@Frank: it hießt not Horst-method, separate Text with text Delete-method.

If your Text means not Text deletes, separate with versteckten Rectangles, then can The eigendliche question still not your serious his or?
 
07/09/06  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

4.604 Views

Themeninformationen



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!


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