Jump to content
TroisVerites

FindWindow , GetClientDimensions , GetColor - Questions

Recommended Posts

Hi ,

 

I have something I don't understand.

 

When we use 'FindWindow' , GetClientDimensions returns the dimensions of the window or the rectangle client in the window ?

 

Documentation -> "Returns the dimensions of the client window that is currently selected in Width and Height."

 

When I Read the documentation , I thought it was the rectangle client in the window , but when I use 'GetColor' I have the color of the title.

 

In IDE Scar 3.31 , Color Picked: 15062985 at (468, 15)

 

With ACA , I have the rectangle client. And the Point(0,0) is the upper left point in the client rectangle.

 

Perhaps I made something wrong. and generally we want to work in the client rectangle (Microsoft langage ).

 

[sCAR]

program New;

var

Bln:boolean;

w,h:integer;

Color:integer;

begin

 

Bln := FindWindow('Test.txt - Bloc-notes');

if ( Bln ) then

begin

ActivateClient();

 

GetClientDimensions(w, h);

writeln('w:' + inttoStr(w) + ' h=' + inttoStr(h));

 

// Color Picked: 15062985 at (468, 15)

Color := GetColor(468, 15);

writeln('Color:' + inttoStr(Color) );

// Result

// w:1143 h=652

// Color:15062985

 

// >>>>>>>>>>( Active Window Position )<<<<<<<<<<

// left: 664 top: 66 width: 1143 height: 652

 

 

end;

end

[/sCAR]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...