BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Stuck trying to find an edit with FindWindowEx

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General)
View previous topic :: View next topic  
Author Message
Dean
Guest





PostPosted: Wed Nov 26, 2003 11:18 pm    Post subject: Stuck trying to find an edit with FindWindowEx Reply with quote



Hi,

I've got a bit stuck with something. I'm trying to interface with another
application and set a few of it's edit boxes. The problem is this other
application has about 6 edit controls (it has two combo boxes also I need to
interface).

Doing this:-

Edit1 := FindWindowex(W, 0, 'Edit', nil);
Edit2 := FindWindowex(W, 0, 'Edit', nil);

produces spurious results as it doesn't seem to grab the same ones each
time.

If I look at the objects in WinSight, I see there's a location reference,
like this:-

Window rect in screen : (-3926, -31706)-(-31810, -31605)

Window rect in parent : (74,294)-(190,315)

Client rectangle : (0,0)-(116,21)


As I know that these objects are always in the same place in this app. can I
use any of these references to find the particular edit and combo box I'm
after?

If so, what would be the windows API call and parameters?

Many thanks,

Dean



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.