Text and Zoom

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

Text and Zoom

Postby Mirage » January 7th, 2006, 9:09 am

Hello!

I wrote in a node ' Win Your Self'. When I press 2 times zoom + the ' W' of ' Win' disappears and the ' f' of ' Self' disappears.

I want to know that it is the problem and it is possible to correct it.

Normal Node:
Image

Node after zoom:
Image
User avatar
Mirage
Junior Member
Junior Member
 
Posts: 44
Joined: October 26th, 2005, 11:41 am

Postby Kambiz » January 7th, 2006, 2:33 pm

It's SimpleGraph's bug. I'll fix it on the next release.

Thank you!
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2405
Joined: March 7th, 2003, 7:10 pm

Postby elias » January 9th, 2006, 6:24 pm

To Kambiz:
What's the reason you decided not to use a Tlabel but creating your own drawing-text routines?

I was playing with your checkers game :) nice.
elias
Senior Member
Senior Member
 
Posts: 90
Joined: November 8th, 2005, 12:09 pm
Location: Galicia, Spain

Postby Kambiz » January 12th, 2006, 10:50 am

To be independent of Delphi's controls, felexibility, and not using extra resources.

Have fun with playing checkers. :)
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2405
Joined: March 7th, 2003, 7:10 pm

Postby Mirage » January 17th, 2006, 7:16 am

Hello



Please give me a solution!


thank you in advance.
User avatar
Mirage
Junior Member
Junior Member
 
Posts: 44
Joined: October 26th, 2005, 11:41 am

Postby kokkoras » January 24th, 2006, 4:39 pm

So, this old issue

(http://www.delphiarea.com/forum/viewtopic.php?t=519 - #4)

is still here but in a different twist... :D

A working temporary solution is to increase the width of the node, by a small number of pixels, say 1 or 2. Thats what I did in the time of the above old post.

edit: The above statement is obviously wrong :oops: . It's not the node's width. Is must be related to some clipping rectangle.
User avatar
kokkoras
Moderator
Moderator
 
Posts: 317
Joined: March 12th, 2005, 11:19 pm
Location: Thessaloniki, Greece

Postby Kambiz » February 3rd, 2006, 12:06 pm

As a quick fix, please open SimpleGraph.pas and look for:

Code: Select all
procedure TGraphNode.DrawText(Canvas: TCanvas);

inside the implementation of the method, look for:

Code: Select all
    DrawTextFlags := DT_NOPREFIX or DT_EDITCONTROL or
      TextAlignFlags[Alignment] or TextLayoutFlags[Layout];

Then, replace it with:

Code: Select all
    DrawTextFlags := DT_NOPREFIX or DT_EDITCONTROL or DT_NOCLIP or
      TextAlignFlags[Alignment] or TextLayoutFlags[Layout];

Eventually, save the file and compile your code.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2405
Joined: March 7th, 2003, 7:10 pm

Postby kokkoras » February 5th, 2006, 10:55 am

Kambiz wrote:As a quick fix, ......


Why is it a quick fix? Are there any side effects?
User avatar
kokkoras
Moderator
Moderator
 
Posts: 317
Joined: March 12th, 2005, 11:19 pm
Location: Thessaloniki, Greece

Postby Kambiz » February 5th, 2006, 4:44 pm

There's no side effect at all. :cf: :wink:
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2405
Joined: March 7th, 2003, 7:10 pm

Postby Mirage » February 6th, 2006, 8:38 am

Thank you Kambiz!

Thank you very much. You solved a big problem for me.

Thank to my ALLAH god;

Thanks :wink: :)
User avatar
Mirage
Junior Member
Junior Member
 
Posts: 44
Joined: October 26th, 2005, 11:41 am


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 2 guests

cron