Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-04

GroupBox

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

José Mejuto

Hello Lazarus-List,

Which function is being used to determine the client area of a groupbox ? I thought that it should be "GetClientRect" but this function is never called for my groupbox :-? Nor the WinControl one, nor the WinAPI one.

Best regards, Jos?

Reply by email

Mattias Gaertner
to José Mejuto
Hello Lazarus-List, Which function is being used to determine the client area of a groupbox ?

GetClientRect.

I thought that it should be "GetClientRect" but this function is never called for my groupbox :-? Nor the WinControl one, nor the WinAPI one.

Why do you think so?

Mattias

Reply by email

José Mejuto
to Mattias Gaertner

Hello Lazarus-List,

you wrote
> Which function is being used to determine the client area of a > groupbox ?

MG> GetClientRect.

> I thought that it should be "GetClientRect" but this > function is never called for my groupbox :-? Nor the WinControl one, > nor the WinAPI one.

MG> Why do you think so?

Because I set breakpoints and writelns in both if them. As you confirm that the call is GetClientRect I can look for some bug in my code, maybe 2 function bodies, or some kind of overlooked error. I'll trace the code step by step.

I'm trying to update fpgui widgetset to work with last version and in this task becoming more familiar with LCL. Now it compiles and can create button, checkbox, inputbox, listbox, groups, combobox, radio and label controls. Of course not all events and facilities are available, but I'm progressing quite fast. I hope to get standard controls working more or less completly in the next week. I know that such changes will be a big patch, but fpgui widgetset seems to be not seriously updated since a lot of time.

Best regards, Jos?

Reply by email

José Mejuto
to Mattias Gaertner: On Thu, 1 Apr 2010 19:43:27 +0200 GetClientRect. Why do you think so? Mattias

Hello Lazarus-List,

you wrote
> Which function is being used to determine the client area of a > groupbox ?

MG> GetClientRect.

Solved, thank you. fpgui does not enforce the ClientRect, so the position of any control inside a groupbox at 0,0 is at 0,0 of the control, not the ClientRect and all controls must be manually adjusted to parents ClientRect to reach the right visual position.

Best regards, Jos?

Reply by email