From: Sieghard <s_...@ar...> - 2024-05-08 10:13:19
|
Hello Fred, you wrote on Tue, 7 May 2024 13:19:32 +0000: > There is a little problem with MSEClock window what not redrawn correctly > when resized. > If resize the window (and change only the height), the window isn't > redrawn properly. If clicking into the window, then it is redrawn > properly. Yes, that's intended. The window resizing is explicitely made to maintain a constant aperture ratio, i.e. width-to-height ratio. And the decisive parameter for setting the absolute size is its width, meaning you have to change the WIDTH to change the size. If you want, you canchange this, but I found the resulting display mostly not so good looking, prompting me to introduce that little quirk to keep it "pleasant" So no measures from my side here, at least if I understood you correctly. > Also, only with Windows 64 bit, compiling MSEide with msegui-sieghard > branch, there is that error: > > mpqconnection.pas(1264,20) Error: (4004) Variable identifier expected Thank you for reporting. That's indeed interesting, since that same statement compiles without problem under Linux with fpc. Indeed, it does NOT compile with the "ar8ty" cast, but produces the DIFFERENT error message 'Error: Identifier not found "beton8"'. So this most probabely is a Windows specific problem, where the "currency" type seems to be defined slightly differently, and where the endian shuffle function "beton8" possibly is defined differently, with another parameter signature, probabely. It might be neccessary so to introduce a system dependent compilation conditional to provide the correct type coertion expression. (BTW, the FPC "ref.pdf" documentation text says toward this: "The currency type is a fixed-point real data type which is internally used as an 64-bit integer type (automatically scaled with a factor 10000), this minimizes rounding errors.". So this is not exactly defined - and there's no type definition to be found in the FPC sources, even - and seems to be compatible to an int64 on Linux only, but not on Windows.) Perhaps the following might do, at least for FPC: // Added for recent postgresql versions (28. Mar 2024 22:54:58): {$ifdef FPC} {$ifdef WINDOWS} int64 (ar8ty (cur)):= beton8 (pint64 (currbuff)^); {$else} int64 (cur):= beton (pint64 (currbuff)^); // point here {$endif} {$else} int64 (ar8ty (cur)):= beton8 (pint64 (currbuff)^); {$endif} This will not help for a different Pascal compiler, but that's probabely not really been tested already at all... I hope this gives you sufficient, though possibly not satisfying, answers to your requests, Thank you again for your information, and keep up the good work! -- (Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem) ----------------------------------------------------------- Mit freundlichen Grüßen, S. Schicktanz ----------------------------------------------------------- |