TSimpleGraph Issues (and wish list)

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

Re: TSimpleGraph Issues (and wish list)

Postby balsoft » 22/01/15 12:54

hi
how can i use this component XE7 please help
balsoft
Member
Member
 
Posts: 4
Joined: 27/07/12 20:49

Re: TSimpleGraph Issues (and wish list)

Postby IV13 » 23/08/17 18:20

Hello,

I'm having some troubles with creating a link in the code.

I want to creat a single line crossing the form (horizontal), but i want to create it on the code, and set a position that cannot be change.

I would appreciatte some help.
IV13
Member
Member
 
Posts: 1
Joined: 16/03/17 16:47

Re: TSimpleGraph Issues (and wish list)

Postby HPW » 12/07/18 19:58

Hello Kambiz,

I ahve a problem with loading backgroundimages in nodes with png:

In SimpleGraph1ObjectInitInstance I do:
Code: Select all
            PNG    := TPNGObject.Create;
            TRY
              PNG.LoadFromFile(pnodebackgroundfile);
              TGraphNode(GraphObject).Background.BitMap.Assign(PNG);    //Convert data into bitmap
            FINALLY
              PNG.Free;
            End;

Backgroung show up and all looks fine with background-transparent.
When I save the sgp I get a quite huge filesize.

When reloading the sgp the transparence dissappear and background looks solid white.
When I use the nodeproperty dialog derived from the demo and reapply the background image, I get transparence again.
And when saving the file gets much more smaller than before. And it loads again with transparency.

In TNodeProperties.ApplyChanges the background is load with this:
Code: Select all
        if Backgnd = 1 then
          Background.LoadFromFile(OpenPictureDialog.FileName)


But when I try this:
TGraphNode(GraphObject).Background.LoadFromFile(pnodebackgroundfile);
It does not load/show.

Note sure where my mystake is.

Regards
Hans-Peter
Hans-Peter
HPW
Moderator
Moderator
 
Posts: 236
Joined: 25/02/06 10:19
Location: Germany

Re: TSimpleGraph Issues (and wish list)

Postby Kambiz » 15/07/18 08:49

Hi,

I am not sure but I guess because you assign the PNG image to the background as a bitmap, later the background saves the image as a bitmap too.
Did you try to assign the image directly to the background?
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2420
Joined: 07/03/03 19:10

Re: TSimpleGraph Issues (and wish list)

Postby HPW » 18/07/18 19:29

Hello,

Yes, I tried it to assign it directly but then it did not Show.
Mabe I made different mistake somehow.

Regards
Hans-Peter
HPW
Moderator
Moderator
 
Posts: 236
Joined: 25/02/06 10:19
Location: Germany

Previous

Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 0 guests