Welcome! Log In Create A New Profile

Advanced

[WD12] Inside width

Posted by Louis Verbraak 
Louis Verbraak
[WD12] Inside width
October 17, 2008 12:54PM
Hello,

Is there a way to find out the Inside width of a control. I can set it in the modifier toolbar, but I don't see a property for that.

Thanks in advance.
BLS
Re: [WD12] Inside width
October 18, 2008 09:11PM
Hi Louis,
Too frustrated to offer proofed WD source .. (WEBDEV)
Try this :


RECT is structure 
     left is int 
     top is int 
     right is int 
     bottom is int 
END

hwnd is int = Handle(YOUR_WINDEV_CONTROL) 

lpRect is RECT

r is boolean = API("USER32", "GetClientRect", hWnd,  &lpRect)

// bla, bla, bla
// lpRect contains the data (right/left) you need to calculate the width

all I can do atm.Bjoern
Louis Verbraak
Re: [WD12] Inside width - THANKS
October 20, 2008 08:57AM
Hello Bjoern,

Thanks for your code. I don't know why the difference between the rightvalue and the width of the whole control allways is 17, but I can use this code.
BLS
Re: [WD12] Inside width - THANKS
October 20, 2008 12:04PM
Hi Louis,
x,y positions are always 0. (relative positions...)

More info :
[msdn.microsoft.com]

Bjoern
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: