Sign in Join

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

Mailing lists / lazarus / 2002-09

win32 development

5 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

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

Andrew Johnson
Last week Karl Brandt sent some patches for the win32 interface, which fixed the form size in win32. Have the been applied, because the helloform is still to small?

Yes the patch was applied. As was also mentioned.. somwhere in that thread, the reason it apears to small is because in GTK the Width/Height represent the ClientWidth/ClientHeight of the form, so in Win32 it looks wrong. If ClientWidth/Height have been implemented properly in Win32, then in the example code changing where it set the width and height to set the client width/height should make it apear properly. This is an incompatibility between X-Windows and Win32 design, not a problem in the Lazarus code.

Show quoted text 7 lines
I also have been thinking about how to work on the win32 interface. As it is only a go between the LCL and the Windows API, we could try and put some more asserts in the code to warn for missing functionality. Best places would be in the IntSendMessage3 for an unimplemented message en in the winproc. After that we could swat al those asserts by putting in code to handle what is not implemented yet.

IMO there are far too many asserts in the code as is. And they are mostly in the Messaging system. If you were too make sense of the ones that were there, getting rid of redundant ones etc. this should be enough To begin with. then you can start seeing about adding more if it is really needed.

I don't see the need to make new test programs as Gerry Ferdinandus did. At the moment the current test programs (examples) give us enough to do without overwhelming.

agreed.. but I am going to stay out of this discussion since at the moment I won't have much time to commit to the project, so most of my time will be spent working out stuff which is on the GTK end.

I do have some specific questions about the win32 interface. Can I ask them here as well?

Feel free.. but as was also mentioned previously, for simplicity sake, start all message titles with [Win32] so that all those who are working in that area know too look at it, and everyone else can simply ignore it.

Andrew

_________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx

Reply by email

Marc Weustink
to Martyn Ranyard: Anyone got any idea why the [lazarus] tag is not present on these messages, it's messing…

+ From: Martyn Ranyard
+ Sent: woensdag 25 september 2002 11:53
+ To:
+ Subject: Re: Behavior of LCL Client Area (was: win32 development) +
+
+
+ Anyone got any idea why the [lazarus] tag is not present on these
+ messages, it's messing up my filters.

The [Lazarus] tag is only added on the first message. If a subject has a RE: no tag is added.

To work around this I myself added a 2nd filter for messages send to

Marc

Reply by email

Vincent Snijders

Hi,

Last week Karl Brandt sent some patches for the win32 interface, which fixed the form size in win32. Have the been applied, because the helloform is still to small?

I also have been thinking about how to work on the win32 interface. As it is only a go between the LCL and the Windows API, we could try and put some more asserts in the code to warn for missing functionality. Best places would be in the IntSendMessage3 for an unimplemented message en in the winproc. After that we could swat al those asserts by putting in code to handle what is not implemented yet.

I don't see the need to make new test programs as Gerry Ferdinandus did. At the moment the current test programs (examples) give us enough to do without overwhelming.

I do have some specific questions about the win32 interface. Can I ask them here as well?

Regards,
Vincent Snijders.

Reply by email

Karl Brandt
to Andrew Johnson: On Tue, 24 Sep 2002 17:41:13 +0200 Yes the patch was applied. As was also mentioned..…
Andrew Johnson wrote 11 lines
On Tue, 24 Sep 2002 17:41:13 +0200 "Vincent Snijders" wrote: > Last week Karl Brandt sent some patches for the win32 interface, > which fixed > the form size in win32. Have the been applied, because the helloform > is still to small? Yes the patch was applied.

AFAIK it wasn't applied(i updated cvs today)

Show quoted text 6 lines
As was also mentioned.. somwhere in that thread, the reason it apears to small is because in GTK the Width/Height represent the ClientWidth/ClientHeight of the form, so in Win32 it looks wrong. If ClientWidth/Height have been implemented properly in Win32, then in the example code changing where it set the width and height to set the client width/height should make it apear properly.

What i tried to do was the above (it's not complete!), although i disagree this way.
It looks like the WinControl.ClientHeight/Width act as WinControl.Height/Width, so setting one or other will do the same thing. Please correct me if i'm wrong
I think the best behavior is to implement ClientHeight/Width and Height/Width as Delphi does:
If you set the client sizes automatically the correct window sizes are set and vice-versa,
in this manner the lcl user could decide if he wants set the client or the window size and makes ClientHeight/Width really useful.

One way to implement-it:
Setting the ClientHeight would calculate the apropriate (Window)Height via AdjustWindowRectEx (Now it's only a hack-> it would be done by the interface).
Then the Height would be adjusted and the interface called to set the desired size.
The contrary would be true: Height -> ClientHeight

This is an incompatibility between X-Windows and Win32 design, not a problem in the Lazarus code.

Is there a way to set the window size instead of client size in gtk? Is there a equivalent Windows.AdjustWindow(Client)RectEx in gtk?

Reply by email