[Lazarus] Transparent glphys with size constraints

2023-07-14 Thread Alexander Hofmann via lazarus
Dear all, I've been trying to find out why some of my (speed/bit)button's glyphs don't show when I run my application, or after re-loading the project in the IDE. Turns out, all those that don't display are 22x22 pixels in size and 32 bpp (with transparency). I checked a few other image

Re: [Lazarus] TTaskDialog - correct ModalResult for "Close"?

2019-09-11 Thread Alexander Hofmann via lazarus
Hi, so - your patch indeed fixes it for Windows (where the native common controls dialog is used for Win 10). But - there's more logic behind it I think. For Linux (and Probably other platforms, too), independent of the widget set, in LCLTaskDialog.pas there's   TCommonButton = (     cbOK,

Re: [Lazarus] TTaskDialog - correct ModalResult for "Close"?

2019-09-11 Thread Alexander Hofmann via lazarus
Am 11.09.19 um 14:24 schrieb Bart via lazarus: > On Wed, Sep 11, 2019 at 1:53 PM Bart wrote: > > Possible fix: Ok, so it's more like a bug than intended behavior. I'll see if I can test the fix on Win and Lin maybe this afternoon. I didn't check - but are the definitions of IDCLOSE different

[Lazarus] TTaskDialog - correct ModalResult for "Close"?

2019-09-11 Thread Alexander Hofmann via lazarus
Hi all, I am currently wondering how to interpret the ModalResult of TTaskDialog if the Button "Close" was clicked. "Close" returns "mrAll" in windows and "mrAbort" in Linux (GTK2) - is that intended? I somehow expected mrClose. In the code of TTaskDialog, for ButtonIDs < 100, the ModalResult is

Re: [Lazarus] how to show hourglass on windows 10 with touch screen?

2019-01-25 Thread Alexander Hofmann via lazarus
Hi, I've been looking for something like this, too, some time ago, and I decided to go for a self-built solution, to be independent of the underlying widget-set. (I grayed-out all important widgets, which can be done automatically by walking, recursively, through the Controls property, and

Re: [Lazarus] Windows Registry, how do I read data from rdExpandString

2018-02-06 Thread Alexander Hofmann via Lazarus
Hi, as stated in the MSDN article you cited, the REG_EXPAND_SZ type is a hint to the API/API-User, that the string (stored as any other string either 2-byte or 1-byte depending in the Version) might contain environment variables, that need to be expanded before use. Respective M$ PowerShell,

Re: [Lazarus] GTK2/X Appcrash when TPen.Pattern has invalid value

2018-01-07 Thread Alexander Hofmann via Lazarus
Hi, Am 07.01.2018 um 11:39 schrieb Marc Weustink via Lazarus: > Imo the QT implementation should be adapted to behave the same. > Wat does Delphi in this case? Thank's for your reply. I only have an old Delphi 7 version here - they all don't have the Pattern option for TPen. When done manually,

[Lazarus] GTK2/X Appcrash when TPen.Pattern has invalid value

2018-01-06 Thread Alexander Hofmann via Lazarus
Dear all, I spend some time debugging a programming error (read: misinterpretation of available documentation) and though I should share my findings... I wanted to have a TChart series drawn with a dashed line, the pen-style "psDashed" had two short dashes for my eyes, so I used "psPattern" and