Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20990

BUG: Delphi label objects showing incorrectly in object heirarchy?

$
0
0

I'm currently working on a Delphi application.

 

Today, I've just run into some strange behaviour as to how TestComplete is finding label items. I've mapped all other controls (panels, tab containers, tabs, grids, textboxes, tree views, DB grids ... etc etc) and everything slotted into the object heirarchy exactly as I would expect.

 

However, I wanted to include a few static text fields. The application uses "TLabel" objects for these and they are correctly recognised as such and all properties etc are reported correctly. However, they are in completely the wrong place in the structure of the application in the object browser?!?!? I have no idea why. I have checked with the devs and looked at the panel designs in their IDE and they appear where I would expect them to. But they don't in TestComplete.

 

Example:

 

I have a module (a standalone exe). The modules main menu lets you launch various panels. Some of those panels contain tabs. The tabs then contain the controls and data I'm interested in.

 

So, what I would expect is:

 

Module

>Panel

>>Tab Container

>>>Tab 1

>>>Tab 2

>>>Tab 3

>>>>Container Panel

>>>>>TextBox Label 1

>>>>>TextBox 1

>>>>>Label 1 (display text only - no associated control)

>>>>>TextBox Label 2

>>>>>TextBox 2

>>>>Tab 4

>>>>>TextBox Label 3

>>>>>TextBox 3

>>>>>Label 2 (display text only - no associated control)

>>>>Tab 5

>>>>Tab 6

 

etc etc (This is how it looks on screen and also in the devs IDE)

 

Except, what is reported is:

 

Module

>Panel

>>TextBox Label 1

>>Label 1 (display text only - no associated control)

>>TextBox Label 2

>>TextBox Label 3

>>Label 2 (display text only - no associated control)

>>Tab Container

>>>Tab 1

>>>Tab 2

>>>Tab 3

>>>>Container Panel

>>>>>TextBox 1

>>>>>TextBox 2

>>>>Tab 4

>>>>>TextBox 3

>>>>Tab 5

>>>>Tab 6

 

Which is completely wrong!

 

All the labels (like every single one in the entire module) have been taken out of the tab containers and dumped outside the overall tabs container object as children of the top level panel. The controls they live alongside (but are not directly linked to in any way other than visually to the user) are all fine. This only seems to affect label objects?

 

Any ideas?

 

Is this a known probelm? Cos it seems like a dirty great bug in mapping Delphi applications to me ....

 

(Using TC 10.6. Application is written in Borland Delphi 6. Everything else is fine, it's just the labels)


Viewing all articles
Browse latest Browse all 20990

Trending Articles