[Lazarus] Lazarus on Raspberry Pi

2020-08-22 Thread John via lazarus
Hi All,

I haven't been active on this list for a long time, but I have been
still been using FPC/Lazarus - many thanks to all who who have been
making all the improvements.

I recently dipped my toe into Raspberry Pi, and successfully built
FPC (3.0.4) / Laz (2.0.8) using the instructions here:

https://wiki.lazarus.freepascal.org/Build_current_FPC_and_Lazarus_for_Raspbian

I have just upgraded my installation using the previously built FPC
(3.0.4) to build FPC 3.2.0 / Laz 2.0.10 (rather than go through the
process of getting the bootstrap compiler again as per the instructions)
I presume this is legitimate - it certainly worked - and if so, would it
be worth my writing this up on the wiki ?  I was all set to do so, but
I noticed a note at the end of the process suggesting one should repeat
the entire process each time.

cheers,
John Sunderland
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] what do i see left of the Scrollbar?

2017-05-11 Thread Landmesser John via Lazarus

just curious:

what do i see left of the Editor windows Scrollbar ... these little 
colored bars?


Lazarus 1.9.0 rUnknown FPC 3.0.0 i386-win32-win32/win64


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] GlobalMemoryStatus is Windows only, how to get installed RAM on Linux ?

2017-08-16 Thread Landmesser John via Lazarus

googled in vain ...

... and "TsmBios" ( -> Win/Linux https://github.com/RRUZ/tsmbios ) won't 
compile :-(



So how to get Information about installed RAM on Linux for example?

Ok, i could grep "hwinfo" or such in a terminal but thats not what i'm 
looking for.


Tipps are welcome

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Howto disable Lazarus IDE using a XFCE dark theme

2017-11-06 Thread Landmesser John via Lazarus

New Linux Distro Manjaro-XFCE and i use a dark theme.

But that dark theme is bad for Lazarus IDE.

Can i change that as an option for compiling the IDE?

With Debian KDE there was in KDE Settings an option to prevent gtk-Apps 
using color-settings.


Perhaps an option in XFCE-Settings?

I'll keep on googling ...

Tipps are welcome!

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Howto disable Lazarus IDE using a XFCE dark theme

2017-11-07 Thread Landmesser John via Lazarus

Thanks for your answers!

I reverted XFCE color scheme dark to normal ... no trouble any more :-)

Example:

TStringGrid.AlternateColor := clMoneygreen -> unreadable with a dark 
color scheme -> white font on white background,




Am 07.11.2017 um 00:58 schrieb R0b0t1 via Lazarus:

Hello, thanks for your input.

On Monday, November 6, 2017, Graeme Geldenhuys via Lazarus 
mailto:lazarus@lists.lazarus-ide.org>> 
wrote:

> On 2017-11-06 18:13, R0b0t1 via Lazarus wrote:
>>
>> Theming support for Lazarus might be a tall order but I think it 
would be

>> worth it. See Visual Studio's dark theme, for example.
>
> Unfortunately the Lazarus developers will disagree with you. They 
want "native look and feel" at all costs. So individual application 
theming is not on their priority list. I've asked for this since 2006.

>
> Regards,
>   Graeme
>

The issue here is that the native theming clashes with some built in 
Lazarus settings. E.g. if you look at the link I posted that showcases 
SynEdit color schemes you will notice there is an image asset that 
does not blend in well with dark backgrounds.


These issues are typical, but they mean Lazarus does not currently 
support a native look and feel.


I don't doubt you are relaying the developer's statements accurately, 
but this probably needs to be looked at again.


Integrated theming is a good idea because unless all assets are 
obtained from the windowing toolkit then there is no way to know they 
will mesh well with a given color scheme. The theming support could be 
very minimal, and might amount to a few sets of bitmap assets and a 
review of existing UI code to ensure there are no hardcoded settings.



OP, if you could supply screenshots it would be appreciated.

Respectfully,
    R0b0t1




-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Lazarus trunk: AV on rightClick on Component-pallette: ShowAll

2018-02-08 Thread Landmesser John via Lazarus

do i have to write a bug report?


Lazarus 1.9.0 "today" FPC 3.0.4 i386-win32-win32/win64

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Strange screen flickering Lazarus revision > 57000

2018-02-20 Thread Landmesser John via Lazarus
i have lazarus trunk revision 57333 and observe strange screen 
flickering with a DBGrid and Oracle Database connection.


See Revision 57000 without flickering

https://drive.google.com/file/d/1671s-JuIM5z7KkwRU8pbX6Nqt53sDACI/view?usp=sharing

( hope that link is ok )

compare with Revision 57333,  heavy screen flickering

https://drive.google.com/file/d/1yZHltOBPt47i6S2jeovGu9W3ScUX8-Zg/view?usp=sharing


Info:

Lazarus 1.9.0 57333 FPC 3.0.4 i386-win32-win32/win64

Windows XP SP3


No flickering with same app and Windows 2003 !!

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Strange screen flickering Lazarus revision > 57000

2018-02-20 Thread Landmesser John via Lazarus

patch applied to my local copy of lcl --> issue is gone !!




Am 20.02.2018 um 14:56 schrieb John Landmesser via Lazarus:

the delivered patch in https://bugs.freepascal.org/view.php?id=33198 is:

Index: grids.pas
===
--- grids.pas    (revision 57332)
+++ grids.pas    (working copy)
@@ -9414,6 +9414,8 @@
 procedure TCustomGrid.Loaded;
 begin
   inherited Loaded;
+  if not (csDesigning in ComponentState) then
+    DoubleBuffered := DoubleBuffered or 
(GetSystemMetrics(SM_REMOTESESSION)=0); // force DoubleBuffered if not 
used in remote session

   VisualChange;
 end;


but in Grid.pas Revision 57333

procedure TCustomGrid.Loaded;
begin
  inherited Loaded;
  VisualChange;
end;


so the patch was never applied??


Am 20.02.2018 um 14:24 schrieb Juha Manninen via Lazarus:

This report is about the same issue:
  https://bugs.freepascal.org/view.php?id=33198

On Tue, Feb 20, 2018 at 10:44 AM, Landmesser John via Lazarus
 wrote:

Lazarus 1.9.0 57333 FPC 3.0.4 i386-win32-win32/win64
Windows XP SP3
No flickering with same app and Windows 2003 !!

Maybe the solution should be specific to LCL-Win32 and Windows version.

Juha




--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Howto use Tooltip for function pos( for example?

2018-03-15 Thread Landmesser John via Lazarus

sorry, couldn't google it  ...

if i type for example function  pos(   in Lazarus-Editor.

Tooltip windows appears and at the right end of the tooltip window there 
are buttons ... what for?


Thanks!

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Howto use Tooltip for function pos( for example?

2018-03-15 Thread Landmesser John via Lazarus

got it: insert parameters!!

Didn't work correctly with first try:


snip:

  pos(
  Application.Minimize, v2);


v2 ist put to wrong position, if the line

Application.Minimize;

follows!



Am 15.03.2018 um 10:59 schrieb Landmesser John via Lazarus:

sorry, couldn't google it  ...

if i type for example function  pos(   in Lazarus-Editor.

Tooltip windows appears and at the right end of the tooltip window 
there are buttons ... what for?


Thanks!



--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Howto use Tooltip for function pos( for example?

2018-03-15 Thread Landmesser John via Lazarus

Don't know if that feature ever worked!

Info:

Lazarus 1.9.0 trunk FPC 3.0.4 i386-win32-win32/win64

Should i write bug-report?


Am 15.03.2018 um 12:48 schrieb Mattias Gaertner via Lazarus:

On Thu, 15 Mar 2018 13:15:43 +0200
Juha Manninen via Lazarus  wrote:


On Thu, Mar 15, 2018 at 12:44 PM, Mattias Gaertner via Lazarus
 wrote:

It does not check, if the parameter is compatible.
It sees
pos( something.something;

It changes:
   sl := TStringList.Create;
into:
   pos(
   sl := TStringList.Create, v2);

which can never be right.

True. Feel free to improve the heuristic.


I think a newline should break searching for existing parameters in this case.

Maybe better: "when the closing bracket is missing, a newline should
break".


When a user wants to insert template parameters, he typically has no
existing parameters at that point.
If he has existing parameters, then he uses Ctrl-Space and
Ctrl-Shift-Space to modify / verify them.

You can't use Ctrl-Space to add v2.

Mattias


--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Application crash when scrolling DB Grid

2018-03-20 Thread Landmesser John via Lazarus
no probs in this situation with DBGrid and Oracle Database by ZQuery on 
Windows XP


Try to use dbnavigator -> Button-last ?!


Am 20.03.2018 um 10:44 schrieb Petr Hložek via Lazarus:

Hi,

my application uses DB grid and when user hit and hold pgdown/pgup, or
hit CTRL+Home/End, applicaiton always crashes. Gdb gets this
information:

0x0091bd68 in
BUFDATASET$_$TDOUBLELINKEDBUFINDEX_$__$$_COMPAREBOOKMARKS$PBUFBOOKMARK$PBUFBOOKMARK$$LONGINT
()
(gdb) bt
#0  0x0091bd68 in
BUFDATASET$_$TDOUBLELINKEDBUFINDEX_$__$$_COMPAREBOOKMARKS$PBUFBOOKMARK$PBUFBOOKMARK$$LONGINT
()
#1  0x0092053c in
BUFDATASET$_$TCUSTOMBUFDATASET_$__$$_COMPAREBOOKMARKS$TBYTES$TBYTES$$LONGINT
()
#2  0x03736588 in  ()
#3  0x03410718 in  ()
#4  0x7fffc9d8 in  ()
#5  0x7fffcb20 in  ()
#6  0x0001 in  ()
#7  0x01a9ac98 in  ()
#8  0x7fffca50 in  ()
#9  0x000f in  ()
#10 0x0106f1b0 in .Ld263 ()
#11 0x01ad6778 in  ()
#12 0x0066cef0 in WSREGISTERCLASS (self=0x7fffca90) at
include/customcontrol.inc:99
#13 0x008ad882 in FIND (this=0x1add2d8, ITEM=0x3736588,
AINDEX=0) at dbgrids.pas:4619
#14 0x008adb65 in INDEXOF (this=0x1add2d8, ITEM=0x3736588) at
dbgrids.pas:4627
#15 0x008ace9d in GETCURRENTROWSELECTED (this=0x1add2d8) at
dbgrids.pas:4388
#16 0x008a8a8a in DRAWROW (this=0x1ad6778, AROW=1) at dbgrids.pas:3084
#17 0x00845cc0 in DRAWALLROWS (this=0x1ad6778) at grids.pas:4174
#18 0x008a88d3 in DRAWALLROWS (this=0x1ad6778) at dbgrids.pas:3054
#19 0x00844465 in PAINT (this=0x1ad6778) at grids.pas:3742
#20 0x0066d006 in PAINTWINDOW (this=0x1ad6778, DC=26725384) at
include/customcontrol.inc:132
#21 0x00653c88 in PAINTHANDLER (this=0x1ad6778,
THEMESSAGE=...) at include/wincontrol.inc:4819
#22 0x006581c9 in WMPAINT (this=0x1ad6778, MSG=...) at
include/wincontrol.inc:6772
#23 0x0066cf3c in WMPAINT (this=0x1ad6778, MESSAGE=...) at
include/customcontrol.inc:112
#24 0x00431def in SYSTEM$_$TOBJECT_$__$$_DISPATCH$formal ()
#25 0x0106f1a8 in .Ld263 ()
#26 0x0106e8c0 in VMT_$CONTROLS_$$_TCUSTOMCONTROL ()
#27 0x0001 in  ()
#28 0x000f in  ()
#29 0x7fffd278 in  ()
#30 0x01ad6778 in  ()
#31 0x76c8fb10 in  () at /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#32 0x031d4660 in  ()
#33 0x7fffd550 in  ()
#34 0x7fffd4f0 in  ()
#35 0x00738500 in
GTK2PROC_$$_GTKEXPOSEEVENT$PGTKWIDGET$PGDKEVENTEXPOSE$POINTER$$BOOLEAN32
()
#36 0x00662a17 in WNDPROC (this=0x1ad6778, THEMESSAGE=...) at
include/control.inc:2234
#37 0x0065525d in WNDPROC (this=0x1ad6778, MESSAGE=...) at
include/wincontrol.inc:5396
#38 0x0084779a in WNDPROC (this=0x1ad6778, THEMESSAGE=...) at
grids.pas:4701
#39 0x008a3a7d in WNDPROC (this=0x1ad6778, THEMESSAGE=...) at
dbgrids.pas:1444
#40 0x00828792 in DELIVERMESSAGE (TARGET=0x1ad6778,
AMESSAGE=0) at lclmessageglue.pas:112
---Type  to continue, or q  to quit---q
Quit
(gdb) bt
#0  0x0091bd68 in
BUFDATASET$_$TDOUBLELINKEDBUFINDEX_$__$$_COMPAREBOOKMARKS$PBUFBOOKMARK$PBUFBOOKMARK$$LONGINT
()
#1  0x0092053c in
BUFDATASET$_$TCUSTOMBUFDATASET_$__$$_COMPAREBOOKMARKS$TBYTES$TBYTES$$LONGINT
()
#2  0x03736588 in  ()
#3  0x03410718 in  ()
#4  0x7fffc9d8 in  ()
#5  0x7fffcb20 in  ()
#6  0x0001 in  ()
#7  0x01a9ac98 in  ()
#8  0x7fffca50 in  ()
#9  0x000f in  ()
#10 0x0106f1b0 in .Ld263 ()
#11 0x01ad6778 in  ()
#12 0x0066cef0 in WSREGISTERCLASS (self=0x7fffca90) at
include/customcontrol.inc:99
#13 0x008ad882 in FIND (this=0x1add2d8, ITEM=0x3736588,
AINDEX=0) at dbgrids.pas:4619
#14 0x008adb65 in INDEXOF (this=0x1add2d8, ITEM=0x3736588) at
dbgrids.pas:4627
#15 0x008ace9d in GETCURRENTROWSELECTED (this=0x1add2d8) at
dbgrids.pas:4388
#16 0x008a8a8a in DRAWROW (this=0x1ad6778, AROW=1) at dbgrids.pas:3084
#17 0x00845cc0 in DRAWALLROWS (this=0x1ad6778) at grids.pas:4174
#18 0x008a88d3 in DRAWALLROWS (this=0x1ad6778) at dbgrids.pas:3054
#19 0x00844465 in PAINT (this=0x1ad6778) at grids.pas:3742
#20 0x0066d006 in PAINTWINDOW (this=0x1ad6778, DC=26725384) at
include/customcontrol.inc:132
#21 0x00653c88 in PAINTHANDLER (this=0x1ad6778,
THEMESSAGE=...) at include/wincontrol.inc:4819
#22 0x006581c9 in WMPAINT (this=0x1ad6778, MSG=...) at
include/wincontrol.inc:6772
#23 0x0066cf3c in WMPAINT (this=0x1ad6778, MESSAGE=...) at
include/customcontrol.inc:112
#24 0x00431def in SYSTEM$_$TOBJECT_$__$$_DISPATCH$formal ()
#25 0x0106f1a8 in .Ld263 ()
#26 0x0106e8c0 in VMT_$CONTROLS_$$_TCUSTOMCONTROL ()
#27 0x0001 in  ()
#28 0x000f in  ()
#29 0x7fffd278 in  ()
#30 0x01ad6778 in  ()
#31 0x76

Re: [Lazarus] Test this please

2018-03-26 Thread Landmesser John via Lazarus

works for Win XP SP2 and Google-Chrome!


Am 26.03.2018 um 06:22 schrieb Anthony Walter via Lazarus:
Hey guys. I wrote this web tool a while ago which emulates a desktop 
application in a few ways and wanted some feedback.


http://storage.codebot.org

login: tester
password: funkytown

The tool is a private cloud file server application. People will be 
able to get the source and configure it on their web server so that 
they can backup/share/transfer files to themselves or among friend. 
The admin account can manage users, their rights, and storage limits.


What I've tried to do with this app is emulate a desktop application a 
bit, which might be similar to a desktop app written with Lazarus.


Features:

You can drag and drop files or click to browse for uploads. Large 
uploads can be resumed if you close the page before the upload 
completes. Uploads can be paused and resumed.


The selection in file list can be navigated with up down and page up 
down arrow keys. Shift multi selects both with the mouse and keyboard. 
Control can toggle select on individual items.


Some files including video and audio can be viewed. It has code for 
http stream allowing seeking to positions in large video files without 
the need to download. Multi select can be used to create play lists. 
If you select a group of songs, then open the song and play it will 
continue playing the next song when the current song is done.


Enter selects items/ Function keys F2 renames inline, F3 search 
filters, F4 gives the option to turn sharing on/off (works with 
multiselect). File columns can be sorted.


The front end code was written using my own typescript library.

Any feedback would be appreciated.




-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Beep?

2018-03-26 Thread Landmesser John via Lazarus

perhaps:

* A simple visual component to play WAVe files in Windows or Linux
* For more information, see: http://wiki.freepascal.org/TPlaySound


Am 26.03.2018 um 04:02 schrieb Donald Ziesig via Lazarus:


Hi Everyone!

I am using Lazarus 1.8 on Linux Mint.  I would like to use the 
Windows.Beep( Freq, Duration) function, or (if not available) 
SysUtils.Beep subprograms.


Simplest problem.  SysUtils.Beep compiles and links but is silent.

Slightly more difficult (according to StackOverflow)

I should be able to insert (manually) Windows in the uses clause, then 
call the windows.beep( f, d) function, but fcp can't find Windows even 
though there are several windows.pp files in the fpcscr directories.


Failing that, the article says:

|functionBeep(dwFreq,dwDuration:DWORD):BOOL;stdcall;external'kernel32.dll';|

should work, but it causes a linker error after compilation.  I don't 
have lernel32.dll on my Linux system.


A long time ago, I used the Windows.Beep (on windows) to produce Morse 
Code error messages while debugging visual components.  I would like 
to do that now if possible, but on Linux.


Any suggestions would be appreciated.

Thanks,

Don Ziesig







-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Boolean component Properties saved in *.lfm

2018-05-03 Thread Landmesser John via Lazarus

i think thats not correct:

set these AutoEncodeStrings settings


save and restart Lazarus, reopen the project:


AutoEncodeStrings is now false, despite the settings in 
ZConnection1.Properties to the right.



... and Strings like "Büdingen" are displayed wrong!


Should i write an extra bug-report?

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Boolean component Properties saved in *.lfm

2018-05-03 Thread Landmesser John via Lazarus

see bug-report:

0033682


Am 03.05.2018 um 10:10 schrieb Landmesser John via Lazarus:


i think thats not correct:

set these AutoEncodeStrings settings


save and restart Lazarus, reopen the project:


AutoEncodeStrings is now false, despite the settings in 
ZConnection1.Properties to the right.



... and Strings like "Büdingen" are displayed wrong!



-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Boolean component Properties saved in *.lfm

2018-05-03 Thread Landmesser John via Lazarus

Hi Ondrej,

compiled with

Lazarus 1.9.0 r57768M FPC 3.1.1 i386-win32-win32/win64

issue still exists, so i put a message to ZeosLib-Forum.

Issue is fixed if you open ZConnection.Properties once, so must be 
simple to fix?!


Wait and see :-)

btw:

What tells us the M in r57768M ??



Am 03.05.2018 um 10:35 schrieb Ondrej Pokorny via Lazarus:

On 03.05.2018 10:10, Landmesser John via Lazarus wrote:


i think thats not correct:

set these AutoEncodeStrings settings

save and restart Lazarus, reopen the project:AutoEncodeStrings is now 
false, despite the settings in ZConnection1.Properties to the right.


... and Strings like "Büdingen" are displayed wrong!

Should i write an extra bug-report?



TZConnection is not a part of Lazarus/LCL. So you should first 
investigate if the problem is in ZEOS.


If you don't think the bug is in ZEOS, the bug will be in FPC because 
component streaming is part of FPC. In this case, download trunk FPC 
(over SVN), build Lazarus with it and test  - if the bug still 
persists, create a simple test case program without any dependencies 
and create a bug report for FPC project in mantis.


Ondrej


--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Component Icons are gone with rev 57870

2018-05-09 Thread Landmesser John via Lazarus

no component  icons anymore with

Lazarus 1.9.0 r57870 FPC 3.0.4 i386-win32-win32/win64

Example ZeosLib, fpspreadsheet ...

reverted to 57860 and all icons are back

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Component Icons are gone with rev 57870

2018-05-09 Thread Landmesser John via Lazarus

yes, fixed :-)


... you are right: some(!!) icons were missing!


Am 09.05.2018 um 13:45 schrieb Ondrej Pokorny via Lazarus:

On 09.05.2018 12:44, Landmesser John via Lazarus wrote:

no component  icons anymore with

Lazarus 1.9.0 r57870 FPC 3.0.4 i386-win32-win32/win64

Example ZeosLib, fpspreadsheet ...

reverted to 57860 and all icons are back

Fixed in r57871, if you mean "some component icons are not showing" 
and not "no components icons are showing". If you mean the latter, I 
cannot reproduce.


Ondrej



--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] TStringGrid sort symbol in TitleButton

2018-05-14 Thread Landmesser John via Lazarus
In a StringGrid without(!) defined columns you never see that up and 
down arrow in the TitleButton if you click to sort this column.


It's ok if you define at least one column, but i think that shouldn't be 
this way.


Attached patch comments out

//FImageIndex := -1;

My first patch :-)

Lazarus 1.9.0 r57932M FPC 3.0.4 i386-win32-win32/win64

Index: lcl/grids.pas
===
--- lcl/grids.pas   (Revision 57932)
+++ lcl/grids.pas   (Arbeitskopie)
@@ -11858,7 +11858,7 @@
   FFont := TFont.Create;
   FillTitleDefaultFont;
   FFont.OnChange := @FontChanged;
-  FImageIndex := -1;
+  //FImageIndex := -1;
   FImageLayout := blGlyphRight;
   FIsDefaultCaption := true;
 end;
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TStringGrid sort symbol in TitleButton

2018-05-14 Thread Landmesser John via Lazarus

forget the patch, it doesn't solve the problem!


Am 14.05.2018 um 13:43 schrieb Landmesser John via Lazarus:
In a StringGrid without(!) defined columns you never see that up and 
down arrow in the TitleButton if you click to sort this column.


It's ok if you define at least one column, but i think that shouldn't 
be this way.


Attached patch comments out

//FImageIndex := -1;

My first patch :-)

Lazarus 1.9.0 r57932M FPC 3.0.4 i386-win32-win32/win64





-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TMysql57Connection won't connect to localhost

2018-05-29 Thread Landmesser John via Lazarus

try Zeoslib,  i use it for an Oracle Connection, but they have allso MySQL

https://sourceforge.net/projects/zeoslib/

they even handle german Umlauts correct :-)

Am 29.05.2018 um 05:36 schrieb Larry Dalton via Lazarus:

I am running lazarus 1.8.2 on linux mnt 17.2.
I am trying to access a mysql database that was installed with Bitnami.

  * Server: Localhost via UNIX socket
  * Server type: MySQL
  * Server connection:SSL is not being usedDocumentation

  * Server version: 5.7.22 - MySQL Community Server (GPL)
  * Server: Server: localhost:3307

  * Protocol version: 10
  * User: root@localhost
  * Server charset:UTF-8 Unicode (utf8)

  * Apache
  * Database client version: libmysql - mysqlnd 5.0.12-dev - 20150407
- $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $
  * PHP extension: mysqliDocumentation

curlDocumentation

mbstringDocumentation


  * PHP version: 7.1.17

  * Phpmyadmin Version information:4.8.0.1, latest stable version:
4.8.1 
  * Web Address http://127.0.0.1:8080/phpmyadmin/


       I am using localhost as hostname on Tmysql57Connection.
       I cannot connect the Tmysql57Connection to localhost.
Help?









-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] How to get the FileName of an url like https://drive.google.com/open?id=1OUfrbeMBYeL0q9DCGBx9rkESSw8SgCPT

2018-06-05 Thread Landmesser John via Lazarus

do i need google api for that and how is the unit called in lazarus?

thanks for tipps!

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] How to get the FileName of an url like https://drive.google.com/open?id=1OUfrbeMBYeL0q9DCGBx9rkESSw8SgCPT

2018-06-05 Thread Landmesser John via Lazarus

found lazgoogleapi package, must be in there?!!


Am 05.06.2018 um 10:10 schrieb Landmesser John via Lazarus:

do i need google api for that and how is the unit called in lazarus?

thanks for tipps!



--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Windows and german Umlauts: why do i have to PWideChar(UTF8Decode(String)) and not UTF8ToAnsi(String)

2016-10-18 Thread Landmesser John via Lazarus

I know how to deal with german Umlauts but I would like to understand.

Think of a  *.csv file that contains strings like "Grünberg" and that 
has to be opened in Excel ( Office 2003 ).


It works if i use PWideChar(UTF8Decode(String)). Got this tipp here in 
the mailinglist!


But  UTF8ToAnsi(String) fails.

Why is UTF8ToAnsi(String) not enough?

LHelp tells me about  UTF8ToAnsi():
"Utf8ToAnsi converts an utf8-encode unicode string to an ansistring. It 
converts the string to a widestring and then converts the widestring to 
an ansistring."


That is NOT  the same as  PWideChar(UTF8Decode(String))?

Tipps are welcome.

Thank you!!
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Windows and german Umlauts: why do i have to PWideChar(UTF8Decode(String)) and not UTF8ToAnsi(String)

2016-10-18 Thread Landmesser John via Lazarus



Am 18.10.2016 um 09:36 schrieb Mattias Gaertner via Lazarus:

That is NOT the same as PWideChar(UTF8Decode(String))?
Obviously, because one produces an 8-bit string and the other a 16-bit
string. How do you compare the result?


I compare the results by open the *.csv file in Excel 2003 and see no 
correct "Grünberg"
Note: my Editor "TextPad" shows  "PC UTF8" as file encoding if i use 
UTF8ToAnsi.



What compiler version?


Sorry,  forgot  that:

Lazarus 1.7 latest trunk FPC 3.0.0 i386-win32-win32/win64

Windows XP


Are you using LazUTF8?


Where to look for that?
"Alle Dateien haben bereits die richtige Kodierung" -> UTF8


  What is your DefaultSystemCodePage?

Mattias


in Systemsettings language its: "Automatisch ( oder Englisch)"


So the answer seems to be:
"one produces an 8-bit string and the other a 16-bit "


--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Windows and german Umlauts: why do i have to PWideChar(UTF8Decode(String)) and not UTF8ToAnsi(String)

2016-10-18 Thread Landmesser John via Lazarus
Thanks guys for your effort ... i stay with 
PWideChar(UTF8Decode(String)) that works for me :-))


At the moment there is no need to know the details of character encoding 
history in computer science.



--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] When will the lazarus archive been gzip'd again?

2017-02-15 Thread Landmesser John via Lazarus

Hi,

the gzip'd archive stops at May 2016. When will the Lazarus archives 
afterwards be gzip'd ?


I use the very useful "Lazarus Mailinglist Reader" and that needs these 
gzip'd archives.


Isn't that done automatic? Does the gzip'd stops due to an error?

Quote:
To see the collection of prior postings to the list, visit theLazarus 
Archives 
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] When will the lazarus archive been gzip'd again?

2017-02-15 Thread Landmesser John via Lazarus

I'll mail that at lazarus-ow...@lists.lazarus-ide.org


Am 16.02.2017 um 08:26 schrieb Landmesser John via Lazarus:

Hi,

the gzip'd archive stops at May 2016. When will the Lazarus archives 
afterwards be gzip'd ?


I use the very useful "Lazarus Mailinglist Reader" and that needs 
these gzip'd archives.


Isn't that done automatic? Does the gzip'd stops due to an error?

Quote:
To see the collection of prior postings to the list, visit theLazarus 
Archives <http://lists.lazarus-ide.org/pipermail/lazarus/>





-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] When will the lazarus archive been gzip'd again?

2017-02-16 Thread Landmesser John via Lazarus

thanks Werner, that solved the Problem!


Am 16.02.2017 um 09:19 schrieb Werner Pamler via Lazarus:


Please get yourself the latest revision of Lazarus Mailinglist Reader. 
I realized that issue a couple of weeks ago and modified the reader to 
download also unzipped txt files.




--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] IDE and gtk2 themes for Windows XP

2017-03-02 Thread Landmesser John via Lazarus

Hi,

does Lazarus use gtk2 widgets on Windows XP?

Are there gtk2 themes available for Windows XP?

Lazarus IDE look:



I think that looks ugly?!

Googled a bit, found this:

http://wiki.lazarus.freepascal.org/GTK2_Interface#Themes

.. looks better, but howto use it for the Lazarus IDE itself?

Info:
Lazarus 1.7 svn FPC 3.0.0 i386-win32-win32/win64

Also searched the Lazarus Mailing List archive, never discussed?

Compile options Lazarus:



Tipps are welcome :-)
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus