Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread Michael Van Canneyt



On Tue, 30 Jun 2015, aradeonas wrote:


It goof to have your agreemnet Michael ;) . if you like night version I
can make it too.


Please do :)


It may be useful for others if any one of team members can upload this
them on freepascal host so I can link it to wiki.


Done.
ftp://ftp.freepascal.org/pub/fpc/contrib/lazarus/Solarized2.xml

Michael.

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


Re: [Lazarus] VCLJS

2015-06-30 Thread Michael Van Canneyt



On Tue, 30 Jun 2015, Bee wrote:


On Tue, Jun 30, 2015 at 1:31 PM, Michael Van Canneyt mich...@freepascal.org 
wrote:
  On Tue, 30 Jun 2015, Bee wrote:
Hi all,

Just found this: http://www.vcljs.com
Is it possible to use it as LCL for the web?


  I would not recommend it. It's typescript, not javascript. Typescript is 
an M$ experiment. You need visual studio for it to work. (conceivably it can
  be used without VS, but it is an additional hurdle).


TypeScript outputs JavaScript, right? Is it possible to use the JS directly?


I have no idea. 
I dropped the idea of Typescript as soon as I saw that you need Visual Studio to be able to handle it halfway decent.

The new features in upcoming releases of Javascript should remove the need for 
Typescript anyway...


 
  There are many javascript widgetsets out there that can be used as VCL for 
the web: React, ExtJS, Angular, Jquery UI etc. Focusing on one is not
  the right approach IMHO. Not to mention that they all evolve at 
breathtaking speed, and what is current today is no longer current next year.


Supporting one of many JS libraries doesn't mean only focusing on one and only 
that. Consider it like desktop widgetset, there are GDI, QT, GTK, Cocoa, etc. I
just found another alternative. Its advantage is similar object model to VCL, 
so perhaps it might attract someone out here to create a new web-widget 
project. :)


All correct. 
But then I'd prefer to start with a widely supported one, and not an obscure one that is designed for VS.

Just a matter of preference.

Michael.--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] VCLJS

2015-06-30 Thread Michael Van Canneyt



On Tue, 30 Jun 2015, Michael Schnell wrote:


On 06/30/2015 08:31 AM, Michael Van Canneyt wrote:
There are many javascript widgetsets out there that can be used as VCL 
for the web: React, ExtJS, Angular, Jquery UI etc.


Any recommendation for one of those to create a server-based application 
featuring  a web-based remote GUI that is supposed to not  very complex, but 
active (i.e. sowing internal states of the server based application by a 
kind of reverse event.


They all operate more or less on the same principle concerning servers. 
I know none that works with websockets.




I only know EXTJS (in the EXTPASCAL incarnation) to have had (at some time 
in the past) an at least exceptionally working link top fpc/Lazarus.


We use ExtJS at work, but are switching to Angular. Neither of them can be used 
using FPC/Lazarus classes to generate Javascript.
(though there is Raudus, but that's not very scalable)

Michael.

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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread Michael Van Canneyt



On Tue, 30 Jun 2015, aradeonas wrote:


Yes Im familiar with it from Delphi times but Im too lazy to download it and I 
wanted to make it my self and make it complete.


I must agree that your theme is very complete, better than the 20+ other 
'solarized' themes I found on that site.

Thank you.

Michael.

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


Re: [Lazarus] VCLJS

2015-06-30 Thread Michael Schnell

On 06/30/2015 08:31 AM, Michael Van Canneyt wrote:
There are many javascript widgetsets out there that can be used as 
VCL for the web: React, ExtJS, Angular, Jquery UI etc.


Any recommendation for one of those to create a server-based application 
featuring  a web-based remote GUI that is supposed to not  very complex, 
but active (i.e. sowing internal states of the server based 
application by a kind of reverse event.


I only know EXTJS (in the EXTPASCAL incarnation) to have had (at some 
time in the past) an at least exceptionally working link top fpc/Lazarus.


-Michael

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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread aradeonas
It goof to have your agreemnet Michael ;) . if you like night version I
can make it too.
It may be useful for others if any one of team members can upload this
them on freepascal host so I can link it to wiki.

Regards,
Ara


-- 
http://www.fastmail.com - The way an email service should be


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


Re: [Lazarus] VCLJS

2015-06-30 Thread Bee
On Tue, Jun 30, 2015 at 1:31 PM, Michael Van Canneyt mich...@freepascal.org
 wrote:

 On Tue, 30 Jun 2015, Bee wrote:

 Hi all,

 Just found this: http://www.vcljs.com
 Is it possible to use it as LCL for the web?


 I would not recommend it. It's typescript, not javascript. Typescript is
 an M$ experiment. You need visual studio for it to work. (conceivably it
 can be used without VS, but it is an additional hurdle).


TypeScript outputs JavaScript, right? Is it possible to use the JS directly?


 There are many javascript widgetsets out there that can be used as VCL
 for the web: React, ExtJS, Angular, Jquery UI etc. Focusing on one is not
 the right approach IMHO. Not to mention that they all evolve at
 breathtaking speed, and what is current today is no longer current next
 year.


Supporting one of many JS libraries doesn't mean only focusing on one and
only that. Consider it like desktop widgetset, there are GDI, QT, GTK,
Cocoa, etc. I just found another alternative. Its advantage is similar
object model to VCL, so perhaps it might attract someone out here to create
a new web-widget project. :)

-- 
-Bee-
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread aradeonas
Michael here you are day and night version in wiki page:
http://wiki.lazarus.freepascal.org/UserSuppliedSchemeSettings#Color_schemes
Please take a look and tell me what you think.

Also you dear Graeme ,please test them ,maybe you like them.

Regards, Ara


-- 
http://www.fastmail.com - A fast, anti-spam email service.

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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread Graeme Geldenhuys
On 2015-06-30 12:26, aradeonas wrote:
 fpGUI also is hard for me to make a beautiful app as they are live in
 new world,standard app or custom app yes its easy but its hard to make
 something like for example web or MacOS apps.

I've learned a hard lesson in my previous job. Don't ask a developer to
design a beautiful application. That is the job of a designer. The
developer then makes that design a reality via code. Once I started
using the talent of our in-house designers, then only did our apps
became beautiful. We used fpGUI Toolkit for our apps.

The exact same thing applies to websites. You let the designer come up
with the design, then hand that over to a web developer to make it a
reality.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

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


[Lazarus] Where to find latest documentation on LazReport

2015-06-30 Thread Graeme Geldenhuys
Hi,

I've found the fr_eng.pdf included with Lazarus, but it is dated 1999
(in the pdf text). I'm hoping LazReport has improved since then wink,
and newer documentation is available somewhere.

Any links would be much appreciated.  Or is that fr_eng.pdf really the
latest documentation?

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread Graeme Geldenhuys
On 2015-06-30 10:51, aradeonas wrote:
 About theme I tried to make it complete and some change that not
 included i main Solorized pallet for better understanding in Lazarus.

Yup, I know what you mean. I studied many of the officially included
Soralized themes from their repository. I always kept to the exact color
values suggested, and tried to find good choices for what colors to use
for what parts of the Object Pascal syntax, and kept referring back to
the solarized spec to confirm. I then kept switching between dark and
light themes to makes sure all is still well and I have a consistent
contrast.

I've always used my own dark theme, but I must admit, the Soralized
theme is well thought out. I have a mobile office, so sometimes I work
in bright rooms, and then being able to switch to the light theme
definitely helps with readability and contrast on the screen. But in
normal office light, I'm always back to the dark theme. :)


 Do you know Lazarus is theme support or not?IDE it self not code editor.

The IDE, like all of LCL adheres to the theme defined by the toolkit (or
desktop environment). You can't specify a different theme for the IDE
only, and not for the rest of your desktop environment. Now if somebody
would only finish the lcl-fpgui widgetset, then that would be possible. ;-)



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread Graeme Geldenhuys
On 2015-06-30 11:18, aradeonas wrote:
 About theme teams like AlphaSkin's team can do a very good work
 here,they have years of experience in this field.

Problem is, LCL doesn't support per-application theming - something that
is done more and more these days. An issue with LCL I mentioned back in
2005/6 already.

As for AlphaSkins, I didn't know about that website. It is VCL only, but
still impressive. Speaking as somebody that has tried to implement a
couple of application themes with fpGUI, it is definitely not as easy as
it looks. You need a good artistic eye and design skills.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

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


Re: [Lazarus] VCLJS

2015-06-30 Thread luiz americo pereira camara
2015-06-30 5:44 GMT-03:00 Michael Van Canneyt mich...@freepascal.org:


 On Tue, 30 Jun 2015, Bee wrote:

 TypeScript outputs JavaScript, right? Is it possible to use the JS
 directly?



Yes. TypeScript outputs JavaScript.
Is it possible to use the JS directly in VCLJS? - I dont know


 I have no idea. I dropped the idea of Typescript as soon as I saw that you
 need Visual Studio to be able to handle it halfway decent.


I dont use TypeScript today and dont have plans to use it, but is gaining
traction in the JS landscape. The next version of Angular (the most popular
JS framework) will be written in TypeScript.

Regarding IDE support WebStorm has native support. Other editors like
Sublime or Atom have plugins for it.


 The new features in upcoming releases of Javascript should remove the need
 for Typescript anyway...


TypeScript is a superset of ECMAScript2015, which as TypeScript also needs
a transpiler like Babel

BTW: not impressed by VCL.JS

Luiz
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] lazreport: how to use global report variables

2015-06-30 Thread Graeme Geldenhuys
Hi,

I have a print dialog, shown before the report is generated. The user
can make some selections. Based on that, I want to set the value of a
global variable, then use that variable to decide if a column of data
must be visible or not.

I've used File - Variable List to define a new variable (just the name).

I then double clicked on a header memo field and enabled the Script
checkbox, and typed in the following code in the Script box:

===
if [ HideKlas] = '0' then
  Visible := True
else
  Visible := False;
===

In my *.pas unit I temporarily tried to set a hard-coded value of the
HideKlas variable to see what happens in the report. I tried both the
values '0' and '1'.

===
If FRPrint.PrepareReport then
begin
  FRPrint.Variables.Values['HideKlas'] := '1';  // for testing only
  FRPrint.Preview := FAfdrukForm.PrintPanel;
  FRPrint.ShowPreparedReport;
end;
===


No matter what I do, the header (memo) field is now _always hidden_.
Changing the hard-coded value of the variable doesn't seem to make any
difference.

Before any of the above script changes the report worked, and the header
text was visible. But I can't seem to make that visibility a dynamic option.

Any tips would be much appreciated.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread aradeonas
Yes I am agree with you but my problem is when designer give me a design
I cant make it with Lazarus or fpGUI or others. I could make it with web
tools but not Lazarus,because I haven't any demo to learn,yes there are
some demos but they are much simpler and take me times to learn them
then maybe or maybe not they can do what designer want.

Regards,
Ara


-- 
http://www.fastmail.com - Send your email first class


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


Re: [Lazarus] lazreport: how to use global report variables

2015-06-30 Thread Graeme Geldenhuys
On 2015-06-30 14:03, Graeme Geldenhuys wrote:
 ===
 If FRPrint.PrepareReport then
 begin
   FRPrint.Variables.Values['HideKlas'] := '1';  // for testing only
   FRPrint.Preview := FAfdrukForm.PrintPanel;
   FRPrint.ShowPreparedReport;
 end;
 ===


I've even tried removing the HideKlas variable completely, then do
something like this in the .pas unit.

  (FRPrint.Pages.Pages[0].FindObject('memo5') as TfrMemoView).Visible :=
False;
  FRPrint.Preview := FAfdrukForm.PrintPanel;
  FRPrint.ShowPreparedReport;

But not even that works. In this case the memo5 is always shown, as if I
didn't have that extra line of code.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread Michael Van Canneyt



On Tue, 30 Jun 2015, aradeonas wrote:


Michael here you are day and night version in wiki page:
http://wiki.lazarus.freepascal.org/UserSuppliedSchemeSettings#Color_schemes
Please take a look and tell me what you think.


Why did you change multiple colors (keywords etc)?
As far as I can read on http://ethanschoonover.com/solarized, only 4 colors 
must be changed ?

If I look at the Java/python/shell Day/Night version on http://ethanschoonover.com/solarized, 
just the background and selection colors change, but keyword etc. does not change.


Michael.

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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread Graeme Geldenhuys
On 2015-06-30 14:05, aradeonas wrote:
 Yes I am agree with you but my problem is when designer give me a design
 I cant make it with Lazarus or fpGUI or others.

I can only comment on fpGUI - I have managed to duplicate all the
designs given to me by the designer. fpGUI is custom-drawn as you
probably know, so you can do pretty much anything with it. And now that
fpGUI uses AggPas as the default rendering backend, the graphic
possibilities are even better.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread aradeonas
 Why did you change multiple colors (keywords etc)?
As far as I can read on http://ethanschoonover.com/solarized, only 4
colors must be changed ?

If I look at the Java/python/shell Day/Night version on
http://ethanschoonover.com/solarized, just the background and selection
colors change, but keyword etc. does not change.

Yes you are right,I changed them because I wanted to use one family of
color to be main color because it seems more comfortable to my eyes like
blue keywords in dark blue background and green-yellow keywords in yellow-
orange background.also I saw this in other editor like Atom and when I
tried them it seems right to me.Because of that I changed the name to
Solorized2 to show the difference and point it out in the wiki.

But if you want or use them I can make a Solorized-standard theme.

Regards, Ara


-- 
http://www.fastmail.com - Send your email first class

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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread Graeme Geldenhuys
On 2015-06-30 09:33, aradeonas wrote:
 It goof to have your agreemnet Michael ;) . if you like night version I
 can make it too.

A couple months back I made yet another Solarized theme - I only found
out about Solarized then. I didn't like the ones included in the Laz
Theme Pack. I started with the Dark Theme and kept to the exact colors
mentioned in the solarized theme. I then proceeded to make the light
theme, and as per the Soralized spec, I simply needed to switch the
background color, and the light theme worked perfectly.

There was so many solarized themes already, I didn't bother sharing
mine, but if anybody is interested, I'll make it available of course.

Screenshots attached of my Dark and Light theme.  Note, I only applied
the theme for the Object Pascal file format, not for XML, TXT etc.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread aradeonas
 Yup, I know what you mean. I studied many of the officially included
 Soralized themes from their repository. I always kept to the exact
 color values suggested, and tried to find good choices for what colors
 to use for what parts of the Object Pascal syntax, and kept referring
 back to the solarized spec to confirm. I then kept switching between
 dark and light themes to makes sure all is still well and I have a
 consistent contrast.

 I've always used my own dark theme, but I must admit, the Soralized
 theme is well thought out. I have a mobile office, so sometimes I work
 in bright rooms, and then being able to switch to the light theme
 definitely helps with readability and contrast on the screen. But in
 normal office light, I'm always back to the dark theme. :)

So when I finished night version I will let you know so you can check it
and tell me what you think.

 The IDE, like all of LCL adheres to the theme defined by the toolkit
 (or desktop environment). You can't specify a different theme for the
 IDE only, and not for the rest of your desktop environment. Now if
 somebody would only finish the lcl-fpgui widgetset, then that would be
 possible. ;-)

About theme teams like AlphaSkin's team can do a very good work
here,they have years of experience in this field.

Regards, Ara


-- 
http://www.fastmail.com - Accessible with your email software
  or over the web

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


Re: [Lazarus] GDB output warnings of internal errors

2015-06-30 Thread Graeme Geldenhuys
Hi Martin,

On 2015-06-29 12:48, Martin Frb wrote:
 And 
 ensure *all* packages (that is all packages that have debug info) have 
 the same stabs or dwarf setting.

That seems to have been the cause of GDB crashing. The lazarus packages
fpspreadsheet had hard-coded Stabs debugging, but the rest of my
project had Automatic which I believe it then results to Dwarf under
Linux.

Thanks for that tip!

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

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


[Lazarus] Joint scrolling of parallel memos ?

2015-06-30 Thread etienne . leblois
Hi,

Let a form be with two same-size same-options no word-wrap Tmemo fields. One 
text is loaded in each memo, say two linguistic versions.

My intention is to make a joint scrolling of the two memos (accepting 
approximations by the end of the texts if they do not have the same number of 
lines)

So, 

- is there a simple way to impose that scrolling in one memo will apply also in 
the other one ? 
- if not, can we detect the extent of the displayed text in one memo (resulting 
from user's input) and apply it in the other memo ?
- if not, can we at least find out what is the first line displayed, helping 
manual re-sync ?

Thank you for suggestions,

Etienne

(Lyon, France, in real life).

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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread Michael Van Canneyt



On Tue, 30 Jun 2015, aradeonas wrote:



Why did you change multiple colors (keywords etc)?
As far as I can read on http://ethanschoonover.com/solarized, only 4 colors 
must be changed ?

If I look at the Java/python/shell Day/Night version on http://ethanschoonover.com/solarized, 
just the background and selection colors change, but keyword etc. does not change.


 
Yes you are right,I changed them because I wanted to use one family of color to 
be main color because it seems more comfortable to my eyes like blue keywords 
in dark blue background and green-yellow
keywords in yellow-orange background.also I saw this in other editor like Atom 
and when I tried them it seems right to me.Because of that I changed the name 
to Solorized2 to show the difference and
point it out in the wiki.
 
But if you want or use them I can make a Solorized-standard theme.


If it is not too much to ask. I don't want to intrude, you're doing a lot as it 
is...
(I myself am horrible with colors and GUI...)

Michael.--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] lazreport: how to use global report variables

2015-06-30 Thread Graeme Geldenhuys
On 2015-06-30 14:03, Graeme Geldenhuys wrote:
 I've used File - Variable List to define a new variable (just the name).


Digging deeper into the LazReport code, I finally found the solution.

Even though you setup a variable, you must not refer to it via the
Scripts.Values[] or Variables.Values[] properties. Go figure!

Instead you use the Values.FindVariables() method.

  FRPrint.Values.FindVariable('HideKlas').Field := '1';


For more details of what I've done, see the Lazarus Forum post.
  http://forum.lazarus.freepascal.org/index.php/topic,28922.0.html


Now this begs the question... What the hell does Scripts.Values[] and
Variables.Values[] actually do?


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread waldo kitty

On 06/30/2015 06:16 AM, Graeme Geldenhuys wrote:

On 2015-06-30 10:21, Graeme Geldenhuys wrote:

Screenshots attached of my Dark and Light theme.  Note, I only applied
the theme for the Object Pascal file format, not for XML, TXT etc.


In case anybody was interested, here is my Dark and Light versions of
the Solarized theme.


stupid question time:

i've looked about trying to figure out how to use themes in the IDE but many 
resources are talking about theming a project in the project options... that's 
not what we're after...


i did finally find something about a userschemes directory that should be in the 
pcp directory so i created it and placed the two xml files in there in their own 
directory like they are in the archive...


~/development/config_lazarus
~/development/config_lazarus/userschemes
~/development/config_lazarus/userschemes/solarized_graemeg
~/development/config_lazarus/userschemes/solarized_graemeg/solarized_dark.xml
~/development/config_lazarus/userschemes/solarized_graemeg/solarized_light.xml

the problem now is where in the IDE settings do i find the option to select one 
of these xml color theme files?? i've looked in 
tools-options-editor-display-colors and not seen anything obvious... i'm 
using v1.5 of lazarus from trunk...


Lazarus 1.5 r49324M FPC 3.1.1 x86_64-linux-gtk 2

--
 NOTE: No off-list assistance is given without prior approval.
   *Please keep mailing list traffic on the list* unless
   private contact is specifically requested and granted.

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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread Michael Van Canneyt



On Tue, 30 Jun 2015, waldo kitty wrote:


On 06/30/2015 06:16 AM, Graeme Geldenhuys wrote:

On 2015-06-30 10:21, Graeme Geldenhuys wrote:

Screenshots attached of my Dark and Light theme.  Note, I only applied
the theme for the Object Pascal file format, not for XML, TXT etc.


In case anybody was interested, here is my Dark and Light versions of
the Solarized theme.


stupid question time:

i've looked about trying to figure out how to use themes in the IDE but many 
resources are talking about theming a project in the project options... 
that's not what we're after...


i did finally find something about a userschemes directory that should be in 
the pcp directory so i created it and placed the two xml files in there in 
their own directory like they are in the archive...


~/development/config_lazarus
~/development/config_lazarus/userschemes
~/development/config_lazarus/userschemes/solarized_graemeg
~/development/config_lazarus/userschemes/solarized_graemeg/solarized_dark.xml
~/development/config_lazarus/userschemes/solarized_graemeg/solarized_light.xml

the problem now is where in the IDE settings do i find the option to select 
one of these xml color theme files?? i've looked in 
tools-options-editor-display-colors and not seen anything obvious... i'm 
using v1.5 of lazarus from trunk...


Top of that dialog, dropdown next to language dropdown.

See attached screenshot.

Michael.--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread waldo kitty

On 06/30/2015 04:00 PM, Michael Van Canneyt wrote:

On Tue, 30 Jun 2015, waldo kitty wrote:

[...]

the problem now is where in the IDE settings do i find the option to select
one of these xml color theme files?? i've looked in
tools-options-editor-display-colors and not seen anything obvious... i'm
using v1.5 of lazarus from trunk...


Top of that dialog, dropdown next to language dropdown.


i did actually look in there...


See attached screenshot.


that helps greatly... something else is that the new theme files have to be in 
place before loading the IDE... closing the configurator and reopening it 
doesn't cause it to rescan for new directories or options like this...


in the end, i do now have a few new themes... thanks!

--
 NOTE: No off-list assistance is given without prior approval.
   *Please keep mailing list traffic on the list* unless
   private contact is specifically requested and granted.

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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread Graeme Geldenhuys
On 2015-06-30 21:11, waldo kitty wrote:
 the new theme files have to be in 
 place before loading the IDE... closing the configurator and reopening it 
 doesn't cause it to rescan for new directories or options like this...

Very true, and I noticed that too. If you have the time, please add it
to Mantis as feature request.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread waldo kitty

On 06/30/2015 02:55 PM, aradeonas wrote:

When you use Trunk version you should put it in patch like this:

~/development/config_lazarus/userschemes

And for a stable version in :

C:\Users\{User}\AppData\Local\lazarus\userschemes

Dont put them in sub folder or something else.


ok... no subfolder... that helps :)

--
 NOTE: No off-list assistance is given without prior approval.
   *Please keep mailing list traffic on the list* unless
   private contact is specifically requested and granted.

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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread aradeonas
 Maybe you can change the day version to make the difference between
 the 2 a bit more clear.

I did,check the wiki.

Problem seems Solarized it self doesn't support three base color
for background,current and selected and most of the editors as I
saw dont have a current line in text,just in gutter and difference
there is small.

 Great work, in each case !

Im happy to see you happy ;)


Regards, Ara


-- 
http://www.fastmail.com - The way an email service should be

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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread aradeonas
 If it is not too much to ask.
Not even near,pleasure is mine to help some one like you a little. Here
you are , check the wiki for standard versions.
wiki.lazarus.freepascal.org/UserSuppliedSchemeSettings#Color_schemes

Regards, Ara


-- 
http://www.fastmail.com - Send your email first class

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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread waldo kitty

On 06/30/2015 02:47 PM, Graeme Geldenhuys wrote:

On 2015-06-30 19:31, waldo kitty wrote:

On 06/30/2015 06:16 AM, Graeme Geldenhuys wrote:

On 2015-06-30 10:21, Graeme Geldenhuys wrote:

Screenshots attached of my Dark and Light theme.  Note, I only applied
the theme for the Object Pascal file format, not for XML, TXT etc.


In case anybody was interested, here is my Dark and Light versions of
the Solarized theme.


stupid question time:

i've looked about trying to figure out how to use themes in the IDE but many
resources are talking about theming a project in the project options... that's
not what we're after...

i did finally find something about a userschemes directory that should be in the


I believe you can place them somewhere under the laz install
directory, but I place them in the ~/.lazarus/ tree as follows:

/home/graemeg/.lazarus/
|-projectsessions/
|-userschemes/
  solarized_dark.xml
  solarized_light.xml


my installation is built from fpcup... it uses a special directory for its fpc 
and lazarus installation... i was able to figure out the pcp though... the real 
clue is that these xml files cannot be inside a subdirectory in userschemes...



the problem now is where in the IDE settings do i find the option to select one
of these xml color theme files?


Tools - Options - Editor - Display - Color

Then take a look at the top middle of that dialog. There should be a
Object Pascal file type dropdown. Next to that on the right is the
color scheme selection, for the currently selected file type. Yours
might say Default. Click that dropdown and select Solarized_Dark or
Solarized_Light.

Hope that helps. I've attached a screenshot in case my instructions were
not clear.


yes, it does help... thanks to the three of you who responded to my plea :)

--
 NOTE: No off-list assistance is given without prior approval.
   *Please keep mailing list traffic on the list* unless
   private contact is specifically requested and granted.

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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread Michael Van Canneyt



On Tue, 30 Jun 2015, aradeonas wrote:



If it is not too much to ask.

Not even near,pleasure is mine to help some one like you a little.
Here you are , check the wiki for standard versions.
wiki.lazarus.freepascal.org/UserSuppliedSchemeSettings#Color_schemes


Great !!

It's slighlty better than the day version. 
I have worked with the day version all day now: 
In the day version the difference between current line and selected text is too small, 
they are difficult to distinguish. But in the night version it is much better.

Maybe you can change the day version to make the difference between the 2 a bit 
more clear.

Great work, in each case !

Michael.

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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread Graeme Geldenhuys
On 2015-06-30 21:21, aradeonas wrote:
 Problem seems Solarized it self doesn't support three base color
 for background,current and selected and most of the editors as I
 saw dont have a current line in text,just in gutter and difference
 there is small.

Yeah, I remember noticing that one too. I did however find other editors
that is similar to Lazarus. Attached is a screenshot of what I done. If
I remember correctly, I simply played with the opacity of the selection
background color, and used that for the current line. I didn't want it
to attract too much attention, but still be visible enough.

ps:
I also modified my synedit to paint the current line number a different
color. Been doing this one for years. :) So the currently line color
inside the code area isn't too important for me.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread aradeonas
When you use Trunk version you should put it in patch like this:

~/development/config_lazarus/userschemes

And for a stable version in :

C:\Users\{User}\AppData\Local\lazarus\userschemes

Dont put them in sub folder or something else.

Regards,
Ara


-- 
http://www.fastmail.com - Access all of your messages and folders
  wherever you are


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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread aradeonas
Thank you for sharing Graeme.I done the same.

Regards,
Ara


-- 
http://www.fastmail.com - Does exactly what it says on the tin


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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread FreeMan

Thank you,
https://theroadtodelphi.wordpress.com/delphi-ide-theme-editor/
look at the Download paragraph, will see nearly 2300 for lazarus IDE 
theme editor.


On 29.06.2015 20:32, aradeonas wrote:

Hi,
I made a new theme for Lazarus code editor and it made on Solarized 
http://ethanschoonover.com/solarized color pallet and thought maybe 
others like it,Its clean and kind with eyes.
When I wanted to write this email find out there is a Solarized theme 
already but I think my version is more complete and better.

I haven't any host to link it to the wiki so I will attach it here.
Test it ;)
Regards,
Ara
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread aradeonas
Yes Im familiar with it from Delphi times but Im too lazy to download it
and I wanted to make it my self and make it complete.

Regards, Ara


-- 
http://www.fastmail.com - Access all of your messages and folders
  wherever you are

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


Re: [Lazarus] VCLJS

2015-06-30 Thread Michael Van Canneyt



On Tue, 30 Jun 2015, Bee wrote:


Hi all,

Just found this: http://www.vcljs.com
Is it possible to use it as LCL for the web?


I would not recommend it. It's typescript, not javascript. 
Typescript is an M$ experiment. You need visual studio for it to work.

(conceivably it can be used without VS, but it is an additional hurdle).

There are many javascript widgetsets out there that can be used as VCL for the 
web: React, ExtJS, Angular, Jquery UI etc.
Focusing on one is not the right approach IMHO. Not to mention that they all evolve at breathtaking speed, 
and what is current today is no longer current next year.


Michael.--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] VCLJS

2015-06-30 Thread aradeonas
Yes Im agree with Michael . VLC is here for years but JS libraries are
young and die young.
But some of theme like React are new but attract enough attention to
work something on.

Regards,
Ara


-- 
http://www.fastmail.com - The professional email service


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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread aradeonas
 Done. ftp://ftp.freepascal.org/pub/fpc/contrib/lazarus/Solarized2.xml

Thank you.

 A couple months back I made yet another Solarized theme - I only found
 out about Solarized then. I didn't like the ones included in the Laz
 Theme Pack. I started with the Dark Theme and kept to the exact colors
 mentioned in the solarized theme. I then proceeded to make the light
 theme, and as per the Soralized spec, I simply needed to switch the
 background color, and the light theme worked perfectly.

 There was so many solarized themes already, I didn't bother sharing
 mine, but if anybody is interested, I'll make it available of course.

 Screenshots attached of my Dark and Light theme.  Note, I only applied
 the theme for the Object Pascal file format, not for XML, TXT etc.

Believe it or not Graeme I guessed you may done this before!I dont know
why but you always do cool things ;) About theme I tried to make it
complete and some change that not included i main Solorized pallet for
better understanding in Lazarus. Do you know Lazarus is theme support or
not?IDE it self not code editor.

Regards, Ara


-- 
http://www.fastmail.com - Accessible with your email software
  or over the web

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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread Graeme Geldenhuys
On 2015-06-30 10:21, Graeme Geldenhuys wrote:
 Screenshots attached of my Dark and Light theme.  Note, I only applied
 the theme for the Object Pascal file format, not for XML, TXT etc.

In case anybody was interested, here is my Dark and Light versions of
the Solarized theme.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/


solarized_graemeg.zip.RemoveMe
Description: Binary data
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] VCLJS

2015-06-30 Thread luiz americo pereira camara
2015-06-30 6:07 GMT-03:00 Michael Van Canneyt mich...@freepascal.org:




 We use ExtJS at work, but are switching to Angular.


If you want to go with Angular in the long run you will need to use
TypeScript.

http://www.itworld.com/article/2894936/googles-angular-2-being-built-with-microsofts-typescript.html

Unless you stay in 1.x and all it's problems

https://javascriptkicks.com/articles/2657/i-wont-be-using-angular-for-my-next-project-and-neither-should-you
https://news.ycombinator.com/item?id=9325501

https://medium.com/@mnemon1ck/why-you-should-not-use-angularjs-1df5ddf6fc99
https://news.ycombinator.com/item?id=8830640

Luiz
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Printing BitMap on OSX crashes

2015-06-30 Thread Martin Grajcar
Hello,

apologies for reposting, but I can't see in the archives (and have received
no answer).

Are attachments forbidden here? I'm given you a link instead:
https://dl.dropboxusercontent.com/u/4971686/bitmap-crash.demo.zip

Regards, Martin.

On Thu, Jun 25, 2015 at 10:57 AM, Martin Grajcar maaarti...@gmail.com
wrote:

 My trivial Lazarus 1.4 application (and also our real application) crash
 whenever it prints a TBitMap on MAC. It happens in
 _platform_memmove$VARIANT$sse4 it tries to execute MOVDQA
 and I thought it was an alignment problem, but it isn't.

 I'm attaching my rather confusing demo. It does nothing but printing and
 seems to work fine on Linux, but crashes on OSX. Commenting out the
 StretchDraw prevents the crash. I have currently no access to the MAC, so I
 apologize for not including a minimal example.

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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread aradeonas
Problem is, LCL doesn't support per-application theming - something that
is done more and more these days. An issue with LCL I mentioned back in
2005/6 already.

Yes I understand you,I have problem with making graphical app or new
look from day 1.

As for AlphaSkins, I didn't know about that website. It is VCL only, but
still impressive. Speaking as somebody that has tried to implement a
couple of application themes with fpGUI, it is definitely not as easy as
it looks. You need a good artistic eye and design skills.

Yes,AlphaSkin and DevExpress have good themeing system.
fpGUI also is hard for me to make a beautiful app as they are live in
new world,standard app or custom app yes its easy but its hard to make
something like for example web or MacOS apps.

Regards,
Ara


-- 
http://www.fastmail.com - Or how I learned to stop worrying and
  love email again


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


Re: [Lazarus] Solarized 2 color schemes for Lazarus

2015-06-30 Thread waldo kitty

On 06/30/2015 04:58 PM, Graeme Geldenhuys wrote:

On 2015-06-30 21:11, waldo kitty wrote:

the new theme files have to be in
place before loading the IDE... closing the configurator and reopening it
doesn't cause it to rescan for new directories or options like this...


Very true, and I noticed that too. If you have the time, please add it
to Mantis as feature request.


done! http://bugs.freepascal.org/view.php?id=28367

--
 NOTE: No off-list assistance is given without prior approval.
   *Please keep mailing list traffic on the list* unless
   private contact is specifically requested and granted.

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