* * *

Recent Posts

Pages: [1] 2 3 ... 10
1
Windows / Re: How to link with "winver = 6.0"
« Last post by taazz on Today at 11:10:10 am »
isn't that called a frame/border in older windows?
Yes, but it doesn't look like one. The visible border is 1 pixel but the whole border is 8 pixel.

I am curious how Delphi handles this (Setting window position to 0/0) on Windows 10.
Will there be a visible gap of 7 pixels to left of the window?
Sorry I do not have access to windows 10 and I'll probably never will in the near future but that sounds like a windows bug. If my memory serves me correctly in all windows versions from 95 upwards the mouse check for the borders had an error of 1 or 2 pixels on top of the border width to make it more user friendly but that friendliness was never part of the window it self. Are you sure its not an artifact of your current theme? Are you using the default windows theme?
2
Windows / Re: How to link with "winver = 6.0"
« Last post by Pascal on Today at 11:03:02 am »
isn't that called a frame/border in older windows?
Yes, but it doesn't look like one. The visible border is 1 pixel but the whole border is 8 pixel.

I am curious how Delphi handles this (Setting window position to 0/0) on Windows 10.
Will there be a visible gap of 7 pixels to left of the window?

3
Graphics / Re: BGRABitmap Thread Problem in Android
« Last post by DonAlfredo on Today at 10:57:19 am »
Would you mind also make the libSDL2.a (and libSDL2.so for dynamic linking) available ?

I tried your app (with some SDL2 libs found on the I-net) on my Samsung S3. Did not work. But also did not crash or error out !
4
Windows / Re: How to link with "winver = 6.0"
« Last post by taazz on Today at 10:53:15 am »
I guess the 0,0 for top left through me off then. I have no idea what the "extended resize areas" are.
On Windows 10 you have an extended area to the left, top and bottom where the cursor changes to the resize cursor and
this size is included in the window position and dimensions (equal to TForm.Left, Top, Width and Height).
isn't that called a frame/border in older windows?
5
Windows / Re: How to link with "winver = 6.0"
« Last post by Pascal on Today at 10:51:12 am »
I guess the 0,0 for top left through me off then. I have no idea what the "extended resize areas" are.
On Windows 10 you have an extended area to the left, top and bottom where the cursor changes to the resize cursor and
this size is included in the window position and dimensions (equal to TForm.Left, Top, Width and Height).
6
Hola de nuevo.

Quiero dejar constancia para cerrar este tema por mi parte, que después de mucho más indagar acerca del problema planteado, en Windows no he obtenido solución alguna. Harto al respecto, decidí instalar Linux Ubuntu y Lazarus en un portatil que tengo ya algo antiguo, y después de ingresar el mismo programa que en Windows 8.1, ha funcionado a la primera. Es decir, sin más que compilarlo, los acentos, eñes y demás caracteres del idioma español, se leen perfectamente.

Reitero mi agradecimiento a Edson.

Antonio F.S.
7
Packages and Libraries / Re: TStrings crash in Paint
« Last post by taazz on Today at 10:45:50 am »
Here's a work in progress custom component I was making
https://pastebin.com/DdDUiTRj

If I have FItems anywhere in the Paint method, the thing dies with mysterious errors.

Trying the horrendous method recommended on the Wiki page of opening lazarus.lpi and then starting lazarus and debugging in that way...

It SIGSEGVs at FFFFFFFF. The assembler simply says <error>

With the nil check commented out, at one point it SIGSEGV'd but gave highlighted the line "if FItems.Count > 0 then "

With all references of FItems removed from Paint, there are no crashes. I cannot figure out why. My debugging (and programming as well) skills are not great  :-\

In SetItems, it appears FItems is set correctly (as shown from correct data from the kludgy ShowMessage).

1) if you need to use FItmes in the object inspector then you need to create them on the constructor you can't pass them from outside.
2) if you simple reference outside items then you need to make sure that the outside items are not destroyed/reinitialized while you are processing them.

All in all create and manage the FItems internally in your control, do not rely on external objects that you have no control over.
8
Windows / Re: How to link with "winver = 6.0"
« Last post by taazz on Today at 10:40:39 am »
I would use this one instead https://msdn.microsoft.com/en-us/library/windows/desktop/ms633503(v=vs.85).aspx
No, that are not the positions and dimensions of the window (without extended resize areas). It's the usable inner space of the window.
I guess the 0,0 for top left through me off then. I have no idea what the "extended resize areas" are.
9
Windows / Re: How to link with "winver = 6.0"
« Last post by Pascal on Today at 10:26:16 am »
I would use this one instead https://msdn.microsoft.com/en-us/library/windows/desktop/ms633503(v=vs.85).aspx
No, that are not the positions and dimensions of the window (without extended resize areas). It's the usable inner space of the window.
10
Packages and Libraries / TStrings crash in Paint
« Last post by daz on Today at 10:00:39 am »
Here's a work in progress custom component I was making
https://pastebin.com/DdDUiTRj

If I have FItems anywhere in the Paint method, the thing dies with mysterious errors.

Trying the horrendous method recommended on the Wiki page of opening lazarus.lpi and then starting lazarus and debugging in that way...

It SIGSEGVs at FFFFFFFF. The assembler simply says <error>

With the nil check commented out, at one point it SIGSEGV'd but gave highlighted the line "if FItems.Count > 0 then "

With all references of FItems removed from Paint, there are no crashes. I cannot figure out why. My debugging (and programming as well) skills are not great  :-\

In SetItems, it appears FItems is set correctly (as shown from correct data from the kludgy ShowMessage).

What am I trying to do? Well, I am writing a simple vertical TListView component. I want the user to be able to edit the TStrings in the Lazarus object inspector (and have them save correctly, which it doesn't but I'm not sure if that's related). Then those TStrings will be drawn by the component.

I am using Lazarus 1.6.4 SVN revision 54278 64 bit on Windows 10. Thanks for your time
Pages: [1] 2 3 ... 10

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus