Sign in Join

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

Mailing lists / lazarus / 2010-11

TGraphicControl and Wm_WindowPosChanged

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Max Vlasov

Hi,
I successfully ported one of my components and was very impressed with how little I had to do in order for it to work. This was a TGraphicControl descendant and a single change was changing catching Wm_WindowPosChanged to DoOnChangeBounds. Is this I should do always if I use graphic controls? Not really a big deal, but just puzzling since it was the only "deal" :)

Also, I tried to use lazarus on the same win7 machine with wubi-installed ubuntu and using the same folder as for windows machine via host mount point. It worked. The question is can I use it this way or I might lose something for one of/both systems?

Thanks,

Max Vlasov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20101110/9a025be0/attachment-0001.html>

Reply by email

Mattias Gaertner
to Max Vlasov
Show quoted text 5 lines
Hi, I successfully ported one of my components and was very impressed with how little I had to do in order for it to work. This was a TGraphicControl descendant and a single change was changing catching Wm_WindowPosChanged to DoOnChangeBounds. Is this I should do always if I use graphic controls?

Never say always and never say never.
Yes, DoOnChangeBounds is one possibility, although it is called quite often.
DoOnResize is called later, less often and only for size. DoSetBounds is like DoOnChangeBounds, but not called for ClientRect changes.

Show quoted text 6 lines
Not really a big deal, but just puzzling since it was the only "deal" :) Also, I tried to use lazarus on the same win7 machine with wubi-installed ubuntu and using the same folder as for windows machine via host mount point. It worked. The question is can I use it this way or I might lose something for one of/both systems?

Many do that.
You have to be careful about using big letters in file names, as most Linux programs, including the IDE and FPC, work case sensitive under Linux.
If you use a version control system like git you
should use Lazarus 0.9.29 because it keeps the file endings in the lpi and lpk files.

Mattias

Reply by email

Max Vlasov
to Mattias Gaertner

On Fri, Nov 12, 2010 at 6:06 PM, Mattias Gaertner <

Show quoted text 20 lines
wrote: On Wed, 10 Nov 2010 09:41:23 +0300 Max Vlasov wrote: > Hi, > I successfully ported one of my components and was very impressed with how > little I had to do in order for it to work. This was a TGraphicControl > descendant and a single change was changing catching Wm_WindowPosChanged to > DoOnChangeBounds. Is this I should do always if I use graphic controls? Never say always and never say never. Yes, DoOnChangeBounds is one possibility, although it is called quite often. DoOnResize is called later, less often and only for size. DoSetBounds is like DoOnChangeBounds, but not called for ClientRect changes.

Mattias, thanks, I'm thinking about creating a unit that would introduce "proxy" objects between vcl/lcl hierarchy and mine. They should handle such minor differences using conditional defines.
btw, returning to surprises, when I tried to compile something new with the same compiler, or something old with a new compiler, it was usual when I didn't expect the compiler to stop, but it did. With Lazarus it was several times different, when I expected it to stop compiling with an error, it did not :) Great Job!

Show quoted text 13 lines
> Not really a big deal, but just puzzling since it was the only "deal" :) > > Also, I tried to use lazarus on the same win7 machine with wubi-installed > ubuntu and using the same folder as for windows machine via host mount > point. It worked. The question is can I use it this way or I might lose > something for one of/both systems? Many do that. You have to be careful about using big letters in file names, as most Linux programs, including the IDE and FPC, work case sensitive under Linux.

It's interesting, thought about ntfs that don't like case-sensitivity by default, found Windows Services For Unix (
http://en.wikipedia.org/wiki/Windows_Services_for_UNIX). The article mentioned that one can enable case-sensitivity during the install. I suppose it's not a sane action to do this (since many programs on windows expects that the file systems are not case-sensitive), but just wondering whether it could create linux-like experience for the developer inside the windows-side lazarus or win lazarus is developed without this special configuration in mind?

Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20101113/c9cb7feb/attachment.html>

Reply by email