Re: [Lazarus] It is a beautiful day...

2019-07-11 Thread Dennis via lazarus

thank you.

Michael Van Canneyt via lazarus wrote:


Hello,

For those of you that don't follow the SVN logs closely:

The IDE now has proper support for Project groups.
Project groups already existed for some time, but were crippled.

With 2 additions they are now actually very useful:

- You can let Ctrl-F9 compile the current target in a project group, 
and that

  includes for instance a package !
  (you can set this in Tools - Options - Project groups)

- "Find in files" now has the option 'Search in project group'

They now offer all functionality as in Delphi. In difference with the 
latter,

their use is entirely optional...

My heartfelt thanks to Mattias for completing the 'Project group' 
functionality !


Michael.


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


Re: [Lazarus] is there a free Grid component better than the default TStringGrid?

2019-05-27 Thread Dennis via lazarus



John Landmesser via lazarus wrote:

See attached demo that works without installing TSortGrid.



 I opened your zip and Lazarus complained that Laz_SortGrid is missing.
After I used Online Package Manager ot install SortGrid, it complained 
the Sortgrid.pas file is missing


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


[Lazarus] is there a free Grid component better than the default TStringGrid?

2019-05-26 Thread Dennis via lazarus
I am hoping one that supports different column types editing without 
much coding on my side.

thanks in advance.

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


Re: [Lazarus] Lazarus Release 2.0.2

2019-04-16 Thread Dennis via lazarus



Mattias Gaertner via lazarus wrote:

The Lazarus team is glad to announce the release of Lazarus 2.0.2.

This release was built with FPC 3.0.4.
The previous release Lazarus 2.0.0 was built with FPC 3.0.4 as
well.

Here is the list of changes for Lazarus and Free Pascal:
http://wiki.lazarus.freepascal.org/Lazarus_2.0.0_release_notes
http://wiki.lazarus.freepascal.org/User_Changes_3.0.4

Here is the list of fixes for Lazarus 2.0.x:
http://wiki.freepascal.org/Lazarus_2.0_fixes_branch

The release is available for download on SourceForge:
http://sourceforge.net/projects/lazarus/files/

Choose your CPU, OS, distro and then the "Lazarus 2.0.2" directory.

Checksums for the SourceForge files:
http://www.lazarus-ide.org/index.php?page=checksums#2_0_2

Minimum requirements:

Windows:
   2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit.

FreeBSD/Linux:
   gtk 2.8 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit.

Mac OS X:
   10.5 to 10.12; Carbon (32bit), Cocoa (64bit, beta), qt and qt5 (32 or
   64bit).

The svn tag is
http://svn.freepascal.org/svn/lazarus/tags/lazarus_2_0_2

For people who are blocked by SF, the Lazarus releases from SourceForge
are mirrored at: ftp://ftp.freepascal.org/pub/lazarus/releases/
and later at (after some time for synchronization)
http://mirrors.iwi.me/lazarus/

Mattias


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


Re: [Lazarus] Lazarus Release 2.0.2

2019-04-16 Thread Dennis via lazarus



Mattias Gaertner via lazarus wrote:

The Lazarus team is glad to announce the release of Lazarus 2.0.2.

This release was built with FPC 3.0.4.
The previous release Lazarus 2.0.0 was built with FPC 3.0.4 as
well.

Thank you so much for your contribution.

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


Re: [Lazarus] How to increase the font size of the content of Project Inspector

2019-03-09 Thread Dennis via lazarus



Anthony Walter via lazarus wrote:

Try doing this:

https://cache.getlazarus.org/videos/font-size.mp4




It is strange that on my Lazarus 2.0 Win64, the search on "project" does 
not show Project Inspector like your video in Ubuntu



Maybe the App.Explore works differently in win 64 Lazarus. :-(

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


[Lazarus] Lazarus 2.0 for win 64, on update packages->rebuild failed

2019-02-20 Thread Dennis via lazarus

I got the many of following errors.






In the end, I had to restart Lazarus and ran it as Administrator to 
solve it.


Maybe the lazarus installer can be modified to avoid these in the future.

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


Re: [Lazarus] using TFPHTTPClient

2019-02-18 Thread Dennis via lazarus
Maybe first of all, you use the dll "dependancy walker" find out which 
ssl dll your exe is using and then right click at the dll file to find 
out the version number of that dll.


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


Re: [Lazarus] Windows startup infinite loop

2019-02-15 Thread Dennis via lazarus



Henry Vermaak via lazarus wrote:

We're having a strange problem here, an infinite loop happens on a customer's
machine just after the main form is created.  It doesn't happen when the
program is run inside a debugger and it only happens on the customer's
machine(s), so it's probably related to their Windows configuration.

The infinite loop is not in our code (probably happens with HandleNeeded() is
called for the main form).  When I attach gdb manually when the program is run
outside the debugger I can get a stack trace that shows the loop:

Does it happen on all windows versions i.e. windows 10, windows 7 etc?

I myself experience different behaviour in setting a control's parent 
under windows 10 and windows 7.
In Windows 10, it takes 10 seconds to create children controls within a 
TFrame's constructor if its parent is already set.

No problem in windows 7.
Eventually, I only create the children controls before setting the 
TFrame's parent.


If your problem only appear in windows 10, maybe the parent property is 
where you should look at.


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


Re: [Lazarus] How to increase the font size of the content of Project Inspector

2019-01-15 Thread Dennis via lazarus



Anthony Walter via lazarus wrote:

Try doing this:

https://cache.getlazarus.org/videos/font-size.mp4



great! But is "Application Explorer" only available in Lazarus 2.1?
Or is it an package I can install on my current Lazarus 1.9.  Where can 
I get it?


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


Re: [Lazarus] Trying FPDebug

2019-01-09 Thread Dennis via lazarus


Joost van der Sluis via lazarus wrote:

Op 22-11-18 om 11:00 schreef Santiago A. via lazarus:


I would like to fiddle a little with FPdebug, but I'm a little 
confused. I have lazarus 1.8.4 on window 7 32 bits


I have installed the next packages

FpDebug 0.0
lazdebuggerfp


- Once you have installed lazdebuggerfp you have to go to the 
IDE-options. (not the package or project options, but the IDE-options)

- Then select 'Debugger' on the left
- Select 'FpDebug internal Dwarf-debugger (beta)' on the right




I downloaded Lazarus 2.1 with FPC 3.0.4 win 64 bit.

When I tried to debug with fpdebug, it asked me


Which one should I choose?

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


[Lazarus] How to increase the font size of the content of Project Inspector

2019-01-08 Thread Dennis via lazarus

I am getting old and my eyes need to use bigger fonts.
I cannot find the font size option of Project Inspector anywhere in 
Lazarus. Please help.


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


Re: [Lazarus] Trying FPDebug

2019-01-01 Thread Dennis via lazarus



Martin Frb via lazarus wrote:

On 01/01/2019 11:08, Dennis via lazarus wrote:

I am using Lazarus 1.9.0, FPC 3.1.1

You need either 2.1 or fixes 2.0

It works for me.

I do not remember that it did not add it... but I know it did not 
ignore the ones that had been added. revision 59655


Anyway it works in latest trunk.


It is fine if it has been fixed.
By the way, I want to express my gratitude toward fpDebug. It is so much 
faster than GDB and the inline variable inspection seems to work better 
as well.

Good jobs guys.

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


Re: [Lazarus] Trying FPDebug

2019-01-01 Thread Dennis via lazarus

I am using Lazarus 1.9.0, FPC 3.1.1
I am testing fpDebug.

When there an exception is raised during debug, the following dialog 
popped up.

I tried to click the "Ignore this exception type" then then click 'continue'
but the debugger does not add the exception to the Language Exception 
list, so it keeps stopping at this exception type.




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


[Lazarus] In windows 10 (64bit) Assigning TFrame.parent to a TForm took 10 more seconds than Windows 7 (64 bit)

2018-12-18 Thread Dennis via lazarus
I am using FPC 3.1.1  + Lazarus 1.9.0 running on windows 10 (64 bit) to 
generate windows exe of 64 bit.


I logged the timestamps before and after parent assignment in my 
constructor TMyFrame.CreateWith(aForm : TForm);


MyFrame.Parent := aForm (where aForm is the main application window).
..


In windows 10 (64 bit)
18-12-19 00:06:10.154 Before Set parent( old parent = nil )
18-12-19 00:06:23.983 After Set parent

it took 13.9 seconds

In windows 7 (64 bit)

18-12-19 00:07:45.916 Before Set parent( old parent = nil )
18-12-19 00:07:48.939 After Set parent
it only took 3 seconds.

what could possibly be the cause of the extra 10 seconds in windows 10 ?

The hardware is same. In fact, the windows 7 (64 bit) is a virtualbox 
running on the windows 10, so it should be slower.


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


Re: [Lazarus] what can we do to get a better debugger

2018-11-20 Thread Dennis via lazarus



Martok via lazarus wrote:

Am 20.11.2018 um 11:37 schrieb Dennis via lazarus:

FPC and Lazarus are great but the GDB is inadequate.
Many times in my development, GDB failed or crashed, especially when I am
debugging multi thread programs.

Shall we start a fund raising event to raise fund for a new and better debugger
for FPC + Lazarus? (provided there are talents out there who would do implement 
it).

So much this. GDB needs to die in a fire.

(nb: make sure to enable "Reset debugger after every run". That at least works
around the absurd amount of memory leaks, and helps with lost breakpoints.)



I cannot find this

"Reset debugger after every run"

option in the Lazarus options.
Is it set by a command switch?
How to set it?



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


[Lazarus] what can we do to get a better debugger

2018-11-20 Thread Dennis via lazarus

FPC and Lazarus are great but the GDB is inadequate.
Many times in my development, GDB failed or crashed, especially when I 
am debugging multi thread programs.


Shall we start a fund raising event to raise fund for a new and better 
debugger for FPC + Lazarus? (provided there are talents out there who 
would do implement it).


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


Re: [Lazarus] derived forms and frames

2018-09-22 Thread Dennis via Lazarus



Franz Müller via Lazarus wrote:

Hello everybody!

I have been developing programs in Delphi for many years (and even 
before in turbo Pascal).
I would like to switch all my programming from Delphi to Lazarus / 
Free Pascal.


Now I have encountered a serious issue that I don't know how to deal 
with.
I have built a complex framework that I use in my programs. This 
frameworks includes form templates and frame templates from which I 
derive most of the forms of a project. In order to be able to derive a 
new form from a form tempate easily with the means of the lazarus IDE, 
the form template must be part of the project - I don't see another 
way to have a form shown in the menu "file - new".


I might not understand your question correctly. Please ignore me if I am 
mistaken.


When I have customized Frame in the project, next time, I click File-New 
, under the "inherited item", there are a list of 'inherited project 
components' (those marked in yellow in this picture).



Are those what you need?

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


[Lazarus] How do I export Lazarus IDE Options to a file to be used by another Lazarus

2018-08-07 Thread Dennis via Lazarus
I have an old Lazarus with some changed settings in the Lazarus IDE 
options (e.g. keyboard shortcut and editor coloring).
I have installed a new a Lazarus and would like to copy all those 
settings from the old Lazarus.

How can I do that?

Thanks in advance.

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


Re: [Lazarus] when a form is shown modal, it blocked the timer from firing

2018-06-08 Thread Dennis via Lazarus



Mattias Gaertner via Lazarus wrote:

On Tue, 5 Jun 2018 11:37:27 +0800
Dennis via Lazarus  wrote:


I noticed when I aForm.showModal, the timer event seem to stop firing.

Here it fires. What platform?
Can you create a small example?

Mattias


My platform is Windows 7 64 bit.
I will create a sample later.
Thanks.

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


[Lazarus] when a form is shown modal, it blocked the timer from firing

2018-06-04 Thread Dennis via Lazarus

I noticed when I aForm.showModal, the timer event seem to stop firing.
Is there anyway I can keep the timer event firing even when I show modal 
a form?


I noticed that if I Application.MessgeBox, it does not block the timer 
event but that message box behaves just like a showmodal form.

Why is there a difference?

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


[Lazarus] What is the hot key to jump to the unit's implementation uses clause

2018-04-26 Thread Dennis via Lazarus
From time to time, I need to add an unit to the uses clause of the 
implement section of the unit.


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


Re: [Lazarus] Lazarus Release 1.8.2

2018-02-28 Thread Dennis via Lazarus



Mattias Gaertner via Lazarus wrote:

The Lazarus team is glad to announce the release of Lazarus 1.8.2. This is a 
bugfix release.


Thanks so much. I have been waiting for this upgrade.

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


Re: [Lazarus] Redundant assigned(X) and (X is Txxx) in Laz. sources

2018-01-12 Thread Dennis via Lazarus



Mattias Gaertner via Lazarus wrote:

On Fri, 12 Jan 2018 21:44:47 +0200
Juha Manninen via Lazarus  wrote:


On Fri, Jan 12, 2018 at 8:38 PM, Vojtěch Čihák via Lazarus
 wrote:

I wrote a small routine to search Lazarus sources and it found about 60
places similar to this (taborderdlg.pas, line 398):

if Assigned(LookupRoot) and (LookupRoot is TWinControl) then begin

Should I make a patch for all occurences?

Yes, I think the patch would be applied.
IIRC "is" was not allowed with Nil references in old FPC versions but
it was a long time ago.

No, "is" was always checking for nil.
Maybe some people are confused by "as", which does not check for nil.

Mattias


I am now confused, so
in FPC,  it is safe to just use:   if  LookupRoot is TWinControl
  instead of
 if assigned(LookupRoot) and (LookupRoot is TWinControl) then 


is it safe to
   with LookupRoot as TWinControl do begin
   
   end;

or should I always
   if assigned(LookupRoot) then
 with LookupRoot as TWinControl do begin
 
 end;

Dennis

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


[Lazarus] Any tips to speed up Lazarus->GDB debugger?

2018-01-11 Thread Dennis via Lazarus

I am using Lazarus 1.8 Win64 , FPC 3.0.4.
As with older versions, debugger is very slow (compared to Delphi).

Is there any tricks I can use to speed up the debugger e.g. turn off 
debug info of all lazarus units/object files?


I remember in Delphi 5, they had an option of whether to use Debug dcu 
(of the main VCL units/objects files).
Is there a similar switch I can use to disable debugger in all, except 
my own source code so as to speed up the debugger?


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


[Lazarus] Win64 bit "Can not load SQLite client library "sqlite3.dll"

2017-11-12 Thread Dennis via Lazarus

I was upgrading my FPC/Lazarus program from Win32 to Win64 bit.
It complied ok but when run, the debugger raised an exceptoin:
"Can not load SQLite client library "sqlite3.dll"

At first, I though it is because the existing sqlite3.dll is win32 
format so I went to https://sqlite.org/download.html to download 
https://sqlite.org/2017/sqlite-dll-win64-x64-321.zip

and replace the old sqlite3.dll with the win64 bite version.

However, now it does not an exception but just quietly quit without 
doing anything.


I think I might need another file called libmysql.dll but that is not 
available from https://sqlite.org/


I googled for it and found that an unknown site called 
www.dlldownloader.com has it but I am afraid to use it fearing it might 
be a virus infected file.


Does anyone know whether I need a 64bit version of libmysql.dll, if yes, 
where can I get it safely?


Thanks,

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


Re: [Lazarus] Who is using Object Pascal in production?

2017-10-29 Thread Dennis via Lazarus



Marcos Douglas B. Santos via Lazarus wrote:

I would like to propose a discussion about "What is the relevance of
Object Pascal nowadays".
I don't want waste your time. I just want to know if we are growing
and being more relevant or not.


I use FPC/Lazarus to write a program trading software to trade 
futures/options. I chose it because I need it to run on windows and 
(maybe in future) Linux and Mac OS.
Could not use Java,C# because garbage collection and JIT compiler might 
cause the program to freeze in the middle of critical trading, which is 
utterly unacceptable for trading.


FPC is also clean and easy to maintain and can actually do anything. I 
might lack some new syntax to speed up parallel programming or 
functional programming but those could still be achieved with a bit work.
I don't want to invest in a new language just for a few new features but 
risk making some programming errors since I don't fully understand the 
language.
Also, new languages come and gone so fast. I remember Flash's language 
was hot some years ago but now discarded.


Also FPC's compile time is short compared to many other languages.

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


[Lazarus] bluetoothlaz package cannot detect Bluetooth LE (version > 4.0) devices on raspberry pi

2017-06-06 Thread Dennis via Lazarus

I am using Raspberry Pi 3 (with wifi+bluetooth).
When using the command tool, bluetoothctl, it can detect old and new 
bluetooth devices (version > 4.0).


However, using the bluetoothlaz inside my lazarus app, it can only 
detect old bluetooth devices (not the BLE new devices).


I am guessing the bluetoothctl uses the new version and features in 
bluez (ver 5.41) but bluetoothlaz uses the

{$linklib bluetooth}

which probably is the file
/usr/lib/arm-linux-gnueabihf/libbluetooth.so.3
which is a symbolic link to 
/usr/lib/arm-linux-gnueabihf/libbluetooth.so.3.18.13


which might probably be compiled with old versions of bluez (or turn off 
the BLE feature).


Do you think my guess is correct?

If yes, can anyone point me to how to update the libbluetooth.so ?
Should I compile a new .so?  How (I am bad in linux).

Thanks a lot in advance.

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


[Lazarus] GUI multithreaded Win32 program sometimes freeze when quitting

2017-04-18 Thread Dennis via Lazarus

I have an win32 multithreaded program written in lazarus 1.7, FPC 3.1.1

From time to time, when it quits, it will freezes and from the task 
manager, the program will occupies the entire CPU core.


I noticed that it will happen more often if:
1)
constructor TMyComponent.Create(TheOwner : TComponent);
begin

   self.some_component := TSomeComponent.Create(TheOwner);
end;


instead of

constructor TMyComponent.Create(TheOwner : TComponent);
begin

   self.some_component := TSomeComponent.Create(self);
end;


2) if the program executes some methods of a nil object



3) if I don't do a build all when some common units are changed by 
another project.




Since this freezing behaviour does not happen during debugging, I have 
spent months trying to fix it but failed.


Any suggestions are welcome.

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


Re: [Lazarus] ActiveX, TOLEControl

2016-10-19 Thread Dennis via Lazarus



LacaK via Lazarus wrote:






Hi *,

I need help with OCX component (not visual I guess), which I need 
use in Lazarus application (to control another application, which 
supplies this OCX control).
I have imported type library using importtl.exe (new unit was 
created successfully)


Then in program I have created instance:
  v := CreateOleObject('SCAPS.ScSamlightClientCtrl');
or
  intf := CreateComObject(CLASS_ScSamlightClientCtrl) as 
_DSamlight_client_ctrl_ocx;

What is the type of your V or intf  variable?


V: OLEVariant;
intf: _DSamlight_client_ctrl_ocx;

I am wild guessing maybe they are not proper referenced type so the 
object is created and then immediately freed.


There is something strange behind scene. I have tried various methods:
I remember in Delphi, I sometimes have to call CoInitialize and 
CoUninitialize.

Not sure if FPC has to do the same.
Have you tried that?

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


Re: [Lazarus] ActiveX, TOLEControl

2016-10-19 Thread Dennis via Lazarus



LacaK via Lazarus wrote:

Hi *,

I need help with OCX component (not visual I guess), which I need use 
in Lazarus application (to control another application, which supplies 
this OCX control).
I have imported type library using importtl.exe (new unit was created 
successfully)


Then in program I have created instance:
  v := CreateOleObject('SCAPS.ScSamlightClientCtrl');
or
  intf := CreateComObject(CLASS_ScSamlightClientCtrl) as 
_DSamlight_client_ctrl_ocx;

What is the type of your V or intf  variable?
I am wild guessing maybe they are not proper referenced type so the 
object is created and then immediately freed.


I would try
  v : OLEVariant;
or V :  _DSamlight_client_ctrl_ocx;

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


Re: [Lazarus] Windows 10 force any non-white background color to White

2016-10-16 Thread Dennis via Lazarus



Werner Pamler via Lazarus wrote:


Am 15.10.2016 um 12:04 schrieb Dennis via Lazarus:

Attached is a simple test project. Within the zip are 2 screen 
capture of the same program running in win 7 64 bit and Win 10 64 bit.

The project was created with Lazarus 1.7; fpc 3.1.1 SVN 52643.
For me, the frame is white in both Win7 and Win10. Did you deactivate 
themes in Win7? Your screenshot looks like this. This would switch to 
the old Win95 style, and give you back control over the color of many 
controls. In Lazarus, you can turn theme support off by unchecking 
"Use manifest file to enable themes" in the Project Options. This 
works also in Win10 - see attached screenshot:






Yes, I disabled themes in win 7 (and forgot about it).
Thank you so much. It worked after unchecking the "Use manifest file to 
enable themes".


It would be even better if the options can be changed in runtime so that 
users can decide whether to enable themes.

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


[Lazarus] Windows 10 force any non-white background color to White

2016-10-14 Thread Dennis via Lazarus

I have a program written in lazarus running normally in windows 7.
When run in windows 10, the green color of the Frame/Form is changed by 
Windows 10 to white.


Now my customer is complaining the bright white is hurting his eyes.

Can anyone help? I googled and the only articles is about changing the 
title bar color, not the form's color.


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


Re: [Lazarus] Anyone has experience controlling Excel from FPC/delphi via OLE Automation?

2016-10-05 Thread Dennis via Lazarus



Werner Pamler via Lazarus wrote:

I am having problem using the Type Library generated.
Don't know how to use it.

I tried to 'learn' from old Delphi 5 source code (the only version of 
Delphi I have) that worked with Excel 2000 but found that the type 
library are so different from the one generated by FPC.


I try to avoid that OLE stuff as much as possible - too much pain... 
What is the reason why you want to control Excel? Maybe you can 
achieve the same in a different way. If it's only reading or writing 
files you should have a look a fpspreadsheet which covers - I'd say - 
90% of what is needed (this is not what Excel offers - Excel has 
always offered more features than were needed).


I hate to use OLE as well but my customer needs to write his own Excel 
spreadsheet formula and VBA routines etc and feed the results every 5 
minutes into my program and my program will execute some tasks 
accordingly and write back the statuses to the Excel spreadsheet.  I 
tried to persuade him to learn pascal or a formal programming language 
but he refused.


By the way, I want to complain about OLE Automation. It must run in the 
main thread. If I run it in an non-main  thread even with locking 
routine (co ) , it still crashes. I guess some deep down routines in 
OLE just forget to make as thread safe.
If you insist on Automation you should look at the wiki articles 
http://wiki.lazarus.freepascal.org/Office_Automation and 
http://wiki.lazarus.freepascal.org/ExcelAutomation/de - the latter is 
in German, though.



I tried fpspreadsheet but it does not support DDE which my customer 
needs. Also, it does not support writing VBA.


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


[Lazarus] Anyone has experience controlling Excel from FPC/delphi via OLE Automation?

2016-10-05 Thread Dennis via Lazarus

I am having problem using the Type Library generated.
Don't know how to use it.

I tried to 'learn' from old Delphi 5 source code (the only version of 
Delphi I have) that worked with Excel 2000 but found that the type 
library are so different from the one generated by FPC.


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