Retrieving TPanel Caption
Application in test currently uses a TPanel as a tooltip message area. The caption of this area is updated by mouseover events on buttons in the toolbar.. The default text of this area is "Ready" so when i indentify the area is comes up as "~N~MESSENGR.EXE~TPanel~Ready".. Thats ok..
When i move to the mouse to the toolbar button, the tooltip is updated to "Click for Print Layout" and I then search for the attach name but it is never found. Is the "~N~MESSENGR.EXE~TPanel~Ready" taking into account the current display text? I've tried by handle and ID but they change between application runs.
It is impossible to both have the mouse over the button and also identify the updated tooltip area at the same time...
I wish to extract this text out of the caption area and compare it to a predefined list.
Thanks in advance...
Re: Retrieving TPanel Caption
I think the easiest way to do such a thing is to use a capturebox.
Insert > CaptureBox
Then just identify your TPanel and capture the area where your String will appear.
The CaptureBox will return the String and you can compare it as you wanted...
good luck [img]images/icons/wink.gif[/img]