Re: [Lazarus] LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml

2014-02-12 Thread Allan E. Registos
On Wednesday, 12 February, 2014 02:47 PM, leledumbo wrote:
 I have no idea since when, but the latest I've tried is r43866. Lazarus keeps
 asking for FPC source directory and it can't even find its own directory.
If Lazarus is on Linux, one problem is due to file permissions.  Your
.lazarus directory was somehow changed to read only or owner so you
can't save env variables on it, if not, the file must be corrupt?
If on Ubuntu in your home directory, you can try 'sudo chown
yourusername.yourusername -R .lazarus' then launch lazarus, change to
correct settings, exit then run again.

 Even so, after choosing the correct values, upon restarting these are asked
 again. So, I inspect environmentoptions.xml and indeed these values are
 missing. Could anyone confirm before I file a bug report? Or link to the
 bugtracker if it's been reported?



 --
 View this message in context: 
 http://free-pascal-lazarus.989080.n3.nabble.com/LazarusDir-and-FPCSourceDirectory-not-saved-to-environmentoptions-xml-tp4035799.html
 Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.

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



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml

2014-02-12 Thread Mark Morgan Lloyd

leledumbo wrote:

I have no idea since when, but the latest I've tried is r43866. Lazarus keeps
asking for FPC source directory and it can't even find its own directory.
Even so, after choosing the correct values, upon restarting these are asked
again. So, I inspect environmentoptions.xml and indeed these values are
missing. Could anyone confirm before I file a bug report? Or link to the
bugtracker if it's been reported?


I've noticed in the past that if the IDE fails during startup (e.g. an 
obscure bug in Synedit which raises an exception dialogue) the setup 
information isn't saved. So the actual problem can be quite a way from 
the configuration file handling.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

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


Re: [Lazarus] LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml

2014-02-12 Thread leledumbo
 If Lazarus is on Linux, one problem is due to file permissions.  Your 
.lazarus directory was somehow changed to read only or owner so you 
can't save env variables on it, if not, the file must be corrupt? 
If on Ubuntu in your home directory, you can try 'sudo chown 
yourusername.yourusername -R .lazarus' then launch lazarus, change to 
correct settings, exit then run again. 

Yes, I'm on linux. The file is not read only, because I can rename it
normally (no sudo required) and when I start Lazarus with
environmentoptions.xml renamed, after I close the IDE it creates a new
environmentoptions.xml. Still, in the new file, LazarusDirectory and
FPCSourceDirectory don't exist. 



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/LazarusDir-and-FPCSourceDirectory-not-saved-to-environmentoptions-xml-tp4035799p4035802.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.

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


Re: [Lazarus] Getting help for a type if its unit is not in uses

2014-02-12 Thread Michael Schnell

On 02/10/2014 09:19 PM, Graeme Geldenhuys wrote:

Yes, simply use DocView ...


Been there. Loved it.

But I never was able to generate the files for DocView from the current 
revisions of the SVNs.


(Here, multiple files are necessary (language definition,. RTL, LCL, 
Help on Help  you name it. )


- Michael



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


Re: [Lazarus] LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml

2014-02-12 Thread leledumbo
After some experiments, it looks like there's a bug in handling MY
environmentoptions.xml.

Running the IDE from terminal shows up:

[TEnvironmentOptions.Save]  error writing
/home/leledumbo/.lazarus/environmentoptions.xml: EDOMError in
DOMDocument.CreateElement

when I change certain value. but when I rename my .lazarus to .lazarusold,
the IDE creates a new .lazarus folder and when I change the same certain
value, the file can be saved. Moving the new environmentoptions.xml to
.lazarusold and rename it back to .lazarus shows that the IDE can save
modified values. Since the permissions of both files are the same, I simply
copy-paste the contents of my old environmentoptions.xml to the new one.
Guess what? The error message above comes again.

Here I attach the environmentoptions.xml that breaks the saving routine.
Please run lazarus from terminal, try changing a value (e.g. single button
on taskbar) and see the debug log. If it could reveal the same error message
in your installation, I'll file a bug report.
environmentoptions.xml
http://free-pascal-lazarus.989080.n3.nabble.com/file/n4035804/environmentoptions.xml
  



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/LazarusDir-and-FPCSourceDirectory-not-saved-to-environmentoptions-xml-tp4035799p4035804.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.

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


[Lazarus] Problem building for SPARC/Linux, and a couple of minor IDE wishlist items

2014-02-12 Thread Mark Morgan Lloyd
I find that trunk+2.71 won't build as bigide, since PascalScript has no 
sparc.inc and it attempts to build for x86. I've raided this as 
http://mantis.freepascal.org/view.php?id=25709 and suggest that for the 
moment PscalScript is excluded for that processor. It's OK on PPC, I've 
not checked others.


Looking at the IDE, I find the new bar on the right of SynEdit useful 
but I wonder whether the developers would consider putting a digit 
marker rather than a rectangle to mark the position of a bookmark? That 
would allow a quick keyboard jump, and would also give an easy 
indication of what bookmark was on which page when multiple windows were 
open.


Still on the IDE, I remember that editors such as MultiEdit had a 
command to reflow a paragraph to a predefined width. Is anything like 
that available in Lazarus, specifically to reformat comment blocks?


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

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


Re: [Lazarus] Pasdoc - how to force UTF-8?

2014-02-12 Thread Alexsander Rosa
In the end I modified PASDOC:
I've added a br.utf8 option (and changed the old br to br.1252).
How do I submit this patch? Does anyone here knows them?
Their mailing list has no messages since Nov '13.


2014-02-12 14:30 GMT-02:00 Alexsander Rosa alexsander.r...@gmail.com:

 How can I force the encoding of the HTML files to be UTF-8?
 Pasdoc tries to be smart and decides the encoding based on language.
 My code is UTF-8 but no language I can read uses UTF-8 on pasdoc.

 --
 Atenciosamente,
 Alexsander da Rosa




-- 
Atenciosamente,
Alexsander da Rosa
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml

2014-02-12 Thread Mattias Gaertner
On Wed, 12 Feb 2014 08:09:48 -0800 (PST)
leledumbo leledumbo_c...@yahoo.co.id wrote:

 After some experiments, it looks like there's a bug in handling MY
 environmentoptions.xml.
 
 Running the IDE from terminal shows up:
 
 [TEnvironmentOptions.Save]  error writing
 /home/leledumbo/.lazarus/environmentoptions.xml: EDOMError in
 DOMDocument.CreateElement

This probably means that somewhere an invalid xml path is used.

 
 when I change certain value. but when I rename my .lazarus to .lazarusold,
 the IDE creates a new .lazarus folder and when I change the same certain
 value, the file can be saved. Moving the new environmentoptions.xml to
 .lazarusold and rename it back to .lazarus shows that the IDE can save
 modified values. Since the permissions of both files are the same, I simply
 copy-paste the contents of my old environmentoptions.xml to the new one.
 Guess what? The error message above comes again.
 
 Here I attach the environmentoptions.xml that breaks the saving routine.
 Please run lazarus from terminal, try changing a value (e.g. single button
 on taskbar) and see the debug log. If it could reveal the same error message
 in your installation, I'll file a bug report.
 environmentoptions.xml
 http://free-pascal-lazarus.989080.n3.nabble.com/file/n4035804/environmentoptions.xml
   

Please load the IDE in the debugger and set a breakpoint at
FPC_RAISEEXCEPTION.
Then run, reproduce the error and create a backtrace. 
See here
http://wiki.freepascal.org/Creating_a_Backtrace_with_GDB


Mattias

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


Re: [Lazarus] Problem building for SPARC/Linux, and a couple of minor IDE wishlist items

2014-02-12 Thread Martin Frb

On 12/02/2014 16:50, Mark Morgan Lloyd wrote:


Looking at the IDE, I find the new bar on the right of SynEdit 
useful but I wonder whether the developers would consider putting a 
digit marker rather than a rectangle to mark the position of a 
bookmark? That would allow a quick keyboard jump, and would also give 
an easy indication of what bookmark was on which page when multiple 
windows were open.

Nice idea.

The overview gutter is a big piece of unfinished work. All those thinks 
should be configurable. But I hawe not found the time to continue on it 
for a long time now. In is still on my list though.



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


Re: [Lazarus] Problem building for SPARC/Linux, and a couple of minor IDE wishlist items

2014-02-12 Thread Mark Morgan Lloyd

Martin Frb wrote:

On 12/02/2014 16:50, Mark Morgan Lloyd wrote:


Looking at the IDE, I find the new bar on the right of SynEdit 
useful but I wonder whether the developers would consider putting a 
digit marker rather than a rectangle to mark the position of a 
bookmark? That would allow a quick keyboard jump, and would also give 
an easy indication of what bookmark was on which page when multiple 
windows were open.

Nice idea.


The other possible enhancement would be putting bookmark markers on the 
page tags, but I'm assuming that implementation of those is buried deep 
in each widget set. Might be feasible to use some of the special 
circled-digit Unicode characters: not as pretty as the coloured markers, 
but adequately functional.


The overview gutter is a big piece of unfinished work. All those thinks 
should be configurable. But I hawe not found the time to continue on it 
for a long time now. In is still on my list though.


Running Lazarus tunnelled over SSH I'm finding that scrollbar operations 
tend to run away with unintentional repeats on occasion, which means 
that an overview of where bookmarks and recent changes are works out 
quite nicely :-)


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

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


[Lazarus] play video and music from the web

2014-02-12 Thread duilio foschi
sorry for my ignorance.

How is a musical track (say a WAV file) played in a web application ?

The file is to be loaded at the server-side.

Thank you
Duilio

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


Re: [Lazarus] Problem building for SPARC/Linux, and a couple of minor IDE wishlist items

2014-02-12 Thread Martin Frb

On 12/02/2014 20:03, Mark Morgan Lloyd wrote:

Martin Frb wrote:

On 12/02/2014 16:50, Mark Morgan Lloyd wrote:


Looking at the IDE, I find the new bar on the right of SynEdit 
useful but I wonder whether the developers would consider putting a 
digit marker rather than a rectangle to mark the position of a 
bookmark? That would allow a quick keyboard jump, and would also 
give an easy indication of what bookmark was on which page when 
multiple windows were open.

Nice idea.


The other possible enhancement would be putting bookmark markers on 
the page tags, but I'm assuming that implementation of those is buried 
deep in each widget set. Might be feasible to use some of the special 
circled-digit Unicode characters: not as pretty as the coloured 
markers, but adequately functional.



yes.
Eventually this may become  a custom drawn pagecontrol

What I had thought to be useful (just a draft of the idea, details still 
may ripen):
- A window that list s all the bookmarks, also shows the line of code, 
and if available the name of the enclosing function.
- This window could provide room for more than 10 remembered locations 
(10 can have a shortcut, and are bookmarks)



The overview gutter is a big piece of unfinished work. All those 
thinks should be configurable. But I hawe not found the time to 
continue on it for a long time now. In is still on my list though.


Running Lazarus tunnelled over SSH I'm finding that scrollbar 
operations tend to run away with unintentional repeats on occasion, 
which means that an overview of where bookmarks and recent changes are 
works out quite nicely :-)




The part that I like really is to see where the implementation section 
starts. That is often where some important constants or similar are.




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


Re: [Lazarus] play video and music from the web

2014-02-12 Thread duilio foschi
I found the code below and it works.

However, it seems a bit primitive to me.

What if the music is 2h long ?

How can I start, stop then restart the music and control the volume as
(say) youtube does ?

Maybe I can find a commercial library ?

Thank you
Duilio


!DOCTYPE html
html
body

embed height=50 width=100 src=horse.mp3
pIf you cannot hear the sound, your computer or browser doesn't
support the sound format./p
pOr, you have your speakers turned off :)/p

/body
/html

2014-02-12 21:51 GMT+01:00 duilio foschi duiliofos...@euplan.com:
 sorry for my ignorance.

 How is a musical track (say a WAV file) played in a web application ?

 The file is to be loaded at the server-side.

 Thank you
 Duilio

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


Re: [Lazarus] play video and music from the web

2014-02-12 Thread duilio foschi
gotcha!

It is easy !

video width=320 height=240 controls
  source src=movie.mp4 type=video/mp4
  source src=movie.ogg type=video/ogg
Your browser does not support the video tag.
/video
The control attribute adds video controls, like play, pause, and volume.

2014-02-12 22:33 GMT+01:00 duilio foschi duiliofos...@euplan.com:
 I found the code below and it works.

 However, it seems a bit primitive to me.

 What if the music is 2h long ?

 How can I start, stop then restart the music and control the volume as
 (say) youtube does ?

 Maybe I can find a commercial library ?

 Thank you
 Duilio


 !DOCTYPE html
 html
 body

 embed height=50 width=100 src=horse.mp3
 pIf you cannot hear the sound, your computer or browser doesn't
 support the sound format./p
 pOr, you have your speakers turned off :)/p

 /body
 /html

 2014-02-12 21:51 GMT+01:00 duilio foschi duiliofos...@euplan.com:
 sorry for my ignorance.

 How is a musical track (say a WAV file) played in a web application ?

 The file is to be loaded at the server-side.

 Thank you
 Duilio

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


[Lazarus] clicking a dbgrid's column title does not trigger OnEnter event as with Delphi

2014-02-12 Thread Alejandro Gonzalo
It does in Delphi!
I have Laz 1.0.4 for Win7 64 bit.  Has this been fixed in a later version?  Or 
is there some reason this is different from Delphi?

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


Re: [Lazarus] kzdesktop...

2014-02-12 Thread Flávio Etrusco
On Thu, Feb 6, 2014 at 4:40 PM, Junior lazarus.li...@gmail.com wrote:
 Hello to all.


 The kzdesktop project was discontinued?

 thanks

 --

FWIW it's easy to make kzdesktop compilable with Lazarus trunk. Where
the compiler complains of unknown 'Items' identifier, use 'Comps'
instead. To fix the resizing of forms in the designer, replace the
UpdateControlState call (in KZLazDesktop.pas) with AdjustSize.

Regards,
Flávio

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


Re: [Lazarus] clicking a dbgrid's column title does not trigger OnEnter event as with Delphi

2014-02-12 Thread Jesus Reyes
One reason would be that Lazarus DbGrid it's not a Delphi DbGrid clone.

Without more information one can only speculate: OnEnter should be triggered in 
case the grid has not the focus, if it already has the focus, I don't see why 
OnEnter should be triggered on column click.


If you explain what you want to do, probably somebody could give you some 
alternative.

Jesus Reyes A.



El Miércoles, 12 de febrero, 2014 18:07:05, Alejandro Gonzalo 
parkingspac...@yahoo.com escribió:
 
It does in Delphi!
I have Laz 1.0.4 for Win7 64 bit.  Has this been fixed in a later version?  Or 
is there some reason this is different from Delphi?


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


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


Re: [Lazarus] Problem building for SPARC/Linux, and a couple of minor IDE wishlist items

2014-02-12 Thread Mark Morgan Lloyd

Martin Frb wrote:

On 12/02/2014 20:03, Mark Morgan Lloyd wrote:

Martin Frb wrote:

On 12/02/2014 16:50, Mark Morgan Lloyd wrote:


Looking at the IDE, I find the new bar on the right of SynEdit 
useful but I wonder whether the developers would consider putting a 
digit marker rather than a rectangle to mark the position of a 
bookmark? That would allow a quick keyboard jump, and would also 
give an easy indication of what bookmark was on which page when 
multiple windows were open.

Nice idea.


The other possible enhancement would be putting bookmark markers on 
the page tags, but I'm assuming that implementation of those is buried 
deep in each widget set. Might be feasible to use some of the special 
circled-digit Unicode characters: not as pretty as the coloured 
markers, but adequately functional.



yes.
Eventually this may become  a custom drawn pagecontrol

What I had thought to be useful (just a draft of the idea, details still 
may ripen):
- A window that list s all the bookmarks, also shows the line of code, 
and if available the name of the enclosing function.
- This window could provide room for more than 10 remembered locations 
(10 can have a shortcut, and are bookmarks)


On a tablet sitting next to the keyboard :-)

The overview gutter is a big piece of unfinished work. All those 
thinks should be configurable. But I hawe not found the time to 
continue on it for a long time now. In is still on my list though.


Running Lazarus tunnelled over SSH I'm finding that scrollbar 
operations tend to run away with unintentional repeats on occasion, 
which means that an overview of where bookmarks and recent changes are 
works out quite nicely :-)




The part that I like really is to see where the implementation section 
starts. That is often where some important constants or similar are.


I must admit that I only noticed that yesterday: my screens are fairly 
large but elderly so the contrast isn't as good as new ones.


There's still the question of how this sort of thing works best with a 
split window (i.e. two parts of the same file shown on the same form).


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

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