Search found 9 matches

by HGG_User
Thu Feb 25, 2016 1:29 pm
Forum: VCL
Topic: shapes in my TDBTree have incorrect coordinates
Replies: 17
Views: 119641

Re: shapes in my TDBTree have incorrect coordinates

Hi,
I have tried to assign the parents run time as you proposed but the problem persists.
I'm afraid I can't explain yet why expanding the shapes on level 1 without expanding level 0 causes this strange behaviour.
Is there any progress on this issue? When can we expect a solution?
by HGG_User
Tue Jan 12, 2016 10:34 am
Forum: VCL
Topic: shapes in my TDBTree have incorrect coordinates
Replies: 17
Views: 119641

Re: shapes in my TDBTree have incorrect coordinates

using

Code: Select all

NewShape.Expanded := (NewShape.Level=3) or (NewShape.Level=1) or (NewShape.Level=0);
also seems to work on my end
by HGG_User
Fri Jan 08, 2016 11:14 am
Forum: VCL
Topic: shapes in my TDBTree have incorrect coordinates
Replies: 17
Views: 119641

Re: shapes in my TDBTree have incorrect coordinates

I'm glad you are able to reproduce our problem. As you can see, the richedit mirrors the node properties of the last clicked node. When that changes it is because the Sender node of the onClick-events varies depending on where you click, despite the fact that, according to the GUI, we are clicking t...
by HGG_User
Tue Jan 05, 2016 1:01 pm
Forum: VCL
Topic: shapes in my TDBTree have incorrect coordinates
Replies: 17
Views: 119641

Re: shapes in my TDBTree have incorrect coordinates

Ok, lets try again.. This time we're loading from xml, saving some space and working around database connectivity.
by HGG_User
Tue Dec 22, 2015 9:18 am
Forum: VCL
Topic: shapes in my TDBTree have incorrect coordinates
Replies: 17
Views: 119641

Re: shapes in my TDBTree have incorrect coordinates

The project uses DB and DBTables. I'm trying it with RAD XE (that comes with BDE) and the project builds fine. However I get the mentioned error at runtime, when the Query tried to connect. Do you have access to a second machine to check if that test project runs on it? ugh, this is turning into a ...
by HGG_User
Tue Dec 15, 2015 2:54 pm
Forum: VCL
Topic: shapes in my TDBTree have incorrect coordinates
Replies: 17
Views: 119641

Re: shapes in my TDBTree have incorrect coordinates

Since the problem is related to a DBTree component, a database engine to establish a connection to the database is needed. What database engine are you using? The project assumes BDE is installed. It is available for free at http://cc.embarcadero.com/item/27573 The maximum file size allowed in these...
by HGG_User
Mon Dec 14, 2015 2:41 pm
Forum: VCL
Topic: shapes in my TDBTree have incorrect coordinates
Replies: 17
Views: 119641

Re: shapes in my TDBTree have incorrect coordinates

I couldn't upload the file here, first it said maximum size 4MB exceeded. After fitting the project to this requirement it says maximum allowed size 512KB.. (You might want to have a look at that) I've posted the files to your upload page by name bjarke moeholt, hopefully you can find them there. In...
by HGG_User
Mon Dec 07, 2015 2:05 pm
Forum: VCL
Topic: shapes in my TDBTree have incorrect coordinates
Replies: 17
Views: 119641

Re: shapes in my TDBTree have incorrect coordinates

Hey there. I have succeeded in isolating the problem to a small example project.

It appears to happen if the Expanded property is set True on a child of an unexpanded note
How can I send you the sample project?
by HGG_User
Thu Nov 05, 2015 10:04 am
Forum: VCL
Topic: shapes in my TDBTree have incorrect coordinates
Replies: 17
Views: 119641

shapes in my TDBTree have incorrect coordinates

I have a problem in my DBTree concerning node placement on the canvas when the tree loads. Some of the leaf nodes exhibit a strange behaviour where their canvas coordinates are set to the top of the tree. The nodes are always leaf nodes, and consistently the same nodes on each startup. They only exh...