Proportionality of picture in insert node

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

Proportionality of picture in insert node

Postby Mirage » March 22nd, 2006, 3:49 pm

Hello !

I have insert a picture in a node with precise dimension.
I would like when me reseize the node, the picture keeps its original dimension.

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

Postby Mirage » March 24th, 2006, 8:14 am

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

Postby kokkoras » March 24th, 2006, 1:45 pm

Mirage wrote:!!!!!!!!!!!!!!!!!


Just a hint: you should understand and then alter this code:

procedure TGraphNode.DrawBackground(Canvas: TCanvas);
Fotis
User avatar
kokkoras
Moderator
Moderator
 
Posts: 317
Joined: March 12th, 2005, 11:19 pm
Location: Thessaloniki, Greece

Postby Mirage » March 24th, 2006, 3:39 pm

Thank you kokkoras
I changed this code :
Bitmap.Width: = BoundsRect.Right - BoundsRect.Left;
Bitmap.Height: = BoundsRect.Bottom - BoundsRect.Bottom;
by this :
Bitmap.Width: = 88;
Bitmap.Height: =56;
but nothing happens;

Thank you in advance
Last edited by Mirage on March 25th, 2006, 7:01 am, edited 1 time in total.
User avatar
Mirage
Junior Member
Junior Member
 
Posts: 44
Joined: October 26th, 2005, 11:41 am

Postby kokkoras » March 24th, 2006, 9:30 pm

Well, it seems it's more complicated :? . Sorry but my Delphi is still in TSimpleGraph 1.67. My project needs major revision and don't have time this period to update. So I can not try ideas and help more.
Fotis
User avatar
kokkoras
Moderator
Moderator
 
Posts: 317
Joined: March 12th, 2005, 11:19 pm
Location: Thessaloniki, Greece

Postby Mirage » March 25th, 2006, 7:06 am

Excuse me for the question that is not complete

also my Delphi is again i in TSimpleGraph 1.67

Thank you in any case :wink:
User avatar
Mirage
Junior Member
Junior Member
 
Posts: 44
Joined: October 26th, 2005, 11:41 am


Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 2 guests

cron