[Lazarus] List of available defines

2016-01-04 Thread Vojtěch Čihák

 
Hi,
 
is there some wiki or other place with list of available defines (for trunk)?
 
Currently, I have:
 
Debug
Verbose
WithSynMarkupIfDef
EnableCodeCompleteTemplates
EnableComponentPaletteOptions
WithSynMultiCaret
 
UseOIThemedCheckbox
 
but I guess some are obsolete and maybe there are some new, which I should try.
 
Thanks.

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


[Lazarus] How to close THintWindow after click on other form / application?

2016-01-04 Thread Krzysztof
Hi,

I need component which popup TTrackBar when click on button (something like
volume slider in multimedia players). Main form should not lose its focus
so I'm using THintWindow with TTrackBar aligned as alClient. This popup
should immediately close when user click on something else than internal
"volume slider", this include my app forms / controls but also when
activating form of another application. Problem is that events
THintWindow.OnDeactivate / OnExit are never fired. Currently I'm testing it
on Qt widgetset (Kubuntu 14.04 64 bit, Lazarus from SVN) but also need for
Gtk and Winapi widgetsets. Is it a bug?

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


Re: [Lazarus] Lazarus compile project via ssh?

2016-01-04 Thread Anthony Walter
Don,

Regarding a script to setup FPC 3.0.0 and Lazarus on a virgin Pi, you might
want to try my Pi installer script at this location:

http://www.getlazarus.org/setup/?download#raspberry_pi

The script doesn't require super user rights, it asks where you want to put
FPC 3.0.0 and Lazarus (recent trunk revision) below you home folder (e.g.
/home/pi/Development/FreePascal). It will guide you through installing the
pre-requisites for FPC and Lazarus on Raspbian (make, gdb, gtk pixbuf) and
is reduced  in install size speifically for the Pi.

About keeping sharing files on your PC <-> Pi, I use sshfs to share folders
between the Pi and my Linux development PC. The share can go either
direction, but can be configured it go either way. Maybe this maybe will
help ...

On the Pi:

sudo rasp-config

Go to advanced and turn on ssh server.

On your Linux desktop install sshfs.

sudo apt-get install sshfs

Then you can mount the Pi file system

mkdir $HOME/pi
sshfs mount p...@192.168.xx.xx:/home/pi $HOME/pi

Where 192.168.XX.XX is the local IP address of your Pi. You can then access
you Pi folder through $HOME/pi on your desktop PC.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus compile project via ssh?

2016-01-04 Thread Mark Morgan Lloyd

Bo Berglund wrote:


The workaround I found is to open an Non-Lazarus edit window on the Pi
and after copying text in Lazarus switch to that edit window and paste
it (this will work).
Now go to the place in Windows where the text needs to go and paste
it. This also works! It seems like the Lazarus clipboard is incomplete
inasmuch as it only targets the internal Pi clipboard but as soon as
one pastes inside another editor application on the pi it rectifies
itself and the text is now available also in Windows via VNC.

I have reported this here before but got no real solution to it.


You didn't mention that particular combination which is... interesting. 
Does it depend on the widget set being used for Lazarus (incomplete C) 
and the other programs (which work)?



If I use any other Raspbian application to copy text it is immediately
available via VNC in Windows, it is just the Lazarus code editor that
is broken. Even copying properties from the component property editor
in Lazarus works fine, just not the thing one REALLY wants to work
i.e. the copy from the code editor does not work through VNC.


As previously discussed, VNC is broken in many areas and it's unclear 
how much this is fixable since newer versions aren't open source: 
there's been no significant work done on it for something like ten 
years. If you want to run Lazarus remotely then tunnel it over SSH.


--
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] Lazarus compile project via ssh?

2016-01-04 Thread Bo Berglund
On Sun, 20 Dec 2015 17:46:36 -0500, Donald Ziesig 
wrote:

>The nice thing is that I only need one keyboard, display and mouse.  The 
>only bad thing is that I haven't figured out how to share the 
>clipboard.  (VNC says it can sync clipboards but it doesn't work for me.)
>

I ran into the problem of shared clipboards on my RPi2 with Raspbian
Jessie too. After some investigation it turned out that the culprit
was the Lazarus IDE itself!
What happened was that when I coipy text inside Lazarus it does not
reach through VNC to the PC. But the other way is OK!

The workaround I found is to open an Non-Lazarus edit window on the Pi
and after copying text in Lazarus switch to that edit window and paste
it (this will work).
Now go to the place in Windows where the text needs to go and paste
it. This also works! It seems like the Lazarus clipboard is incomplete
inasmuch as it only targets the internal Pi clipboard but as soon as
one pastes inside another editor application on the pi it rectifies
itself and the text is now available also in Windows via VNC.

I have reported this here before but got no real solution to it.

If I use any other Raspbian application to copy text it is immediately
available via VNC in Windows, it is just the Lazarus code editor that
is broken. Even copying properties from the component property editor
in Lazarus works fine, just not the thing one REALLY wants to work
i.e. the copy from the code editor does not work through VNC.


-- 
Bo Berglund
Developer in Sweden


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


Re: [Lazarus] List of available defines

2016-01-04 Thread Juha Manninen
On Mon, Jan 4, 2016 at 11:09 PM, Vojtěch Čihák  wrote:
> is there some wiki or other place with list of available defines (for
> trunk)?

No. I have a plan to make a feature to search all such defines in
project sources, maybe added to Project options, Custom options page,
Defines ... window. I have other plans, too, and this one has only low
priority. Anybody can steal my idea of course. (_Hint_)

> Currently, I have:
> Debug
> Verbose

I don't think those are used anywhere. There were provided as examples
in earlier Lazarus versions for the build defines GUI.

> WithSynMarkupIfDef
> EnableCodeCompleteTemplates
> EnableComponentPaletteOptions
> WithSynMultiCaret
> UseOIThemedCheckbox

Your list is a little outdated. The last one was replaced with
"UseOINormalCheckBox".

> but I guess some are obsolete and maybe there are some new, which I should 
> try.

Uhhh, there are plenty!
I would like to mention one : "DisableWrapperFunctions". I recommend
using it because the string function wrappers will be removed some
time later.

For other defines, if you Find in Files from Lazarus sources for
"{$ifdef verbose" you get 3415 matches. That is only for defines
starting with "verbose"!
Searching for a regular expression "\{\$ifn?def" gives almost 15000
matches. Browse them and you get all the defines in use.

Juha

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


Re: [Lazarus] Lazarus database desktop improvements...

2016-01-04 Thread Bob B.
Which DBF versions are supported by the desktop?    dBase 3?
    dBase 4?
    clipper?
    foxPro?
    visual foxPro?

thanks.
Bob B. 

On Saturday, January 2, 2016 5:08 AM, Michael Van Canneyt 
 wrote:
 

 
Hello,

Following some recent criticism on the Lazarus database desktop:

I have, in revision 51118, added a new interface to the database desktop, 
which is hopefully more in line with what current trends are, and which is 
considered more intuitive. 
(being 45, I realize I am old school, so please bear with me)

The connections/dictionaries are shown at the left in a tree, which is
always visible.
I have added some icons in various places.
(probably horrible looking, but then so am I after the recent festivities ;) )

There is also a button to start a new connection.

It is not yet finished.
Some ideas that still must be done; I'll probably work on some of them today.
- treeview should be read-only, but when I activated that, the tree just
- disappeared ?
  Needs investigating.
- Add a context menu to new tree view. Should be easily done.
- Add a 'Test connection' button to the new connection dialog.

The old legacy interface can still be activated using a new menu setting in
the 'View' menu.

All this just to show that it really isn't that hard to do, we're open for 
criticism,
and we'd really like people to use and like the tools we provide with Lazarus.
If they like the start, maybe they will be more likely to send patches and 
improve
the tools even more.

I invite people to test and to give comments, patches, suggestions.

Michael.

--
___
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] New menu designer

2016-01-04 Thread Bart
On 12/22/15, Juha Manninen  wrote:
> Hello
>
> I committed a new Menu Designer by Howard Page-Clark in r50992.
> See:
>   http://bugs.freepascal.org/view.php?id=29205

Can we implement it so that adding a sumnenu to a Separator (a
menuItem with '-' as caption) will either be disallowed, or a warning
will be shown because several widgetsets crash on that.
(Same for setting Caption to '-' of an existing item with a submenu.)

See http://bugs.freepascal.org/view.php?id=24476

Bart

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


Re: [Lazarus] Lazarus compile project via ssh?

2016-01-04 Thread Bo Berglund
On Mon, 04 Jan 2016 09:41:37 +, Mark Morgan Lloyd
 wrote:

>> I have reported this here before but got no real solution to it.
>
>You didn't mention that particular combination which is... interesting. 
>Does it depend on the widget set being used for Lazarus (incomplete C) 
>and the other programs (which work)?

Now I don't follow..
What do you mean by "widget set being used for Lazarus"?
I have just installed Lazarus and then used startlazarus to get it
running (via an entry in the main menu).
What is a "widget set" and how does one specify it?


-- 
Bo Berglund
Developer in Sweden


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


Re: [Lazarus] Lazarus compile project via ssh?

2016-01-04 Thread Bart
On 1/4/16, Bo Berglund  wrote:

> What do you mean by "widget set being used for Lazarus"?

The WidgetSet draws all the widgets.
This mostly depeds on your platform, not all WidgetSets are supported
on all platforms.

azarus supports the following WidgetSets:
Win32, Win64, WinCE, QT, GTK2, GTK3 (experimental), Cocoa, Carbon,
fpGUI, Cutomdrawn, noGUI.

If you change nothing Lazarus/LCL uses the default widgetset for your
system (e.g. win32 on Windows, GTK2 on Linux).

You can build for a different widgetset using
ProjectOptions->CompilerOptions->Config and target->"Select another
LCL widgetset (macro LCLWidgetType)".

Note: you need the libraries for the WS installed on your system, e.g.
you can build for GTK2 on Windows, but it requires you to install; GTK
for Windows.

Bart

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


Re: [Lazarus] Lazarus compile project via ssh?

2016-01-04 Thread Bo Berglund
On Mon, 04 Jan 2016 09:41:37 +, Mark Morgan Lloyd
 wrote:

>As previously discussed, VNC is broken in many areas and it's unclear 
>how much this is fixable since newer versions aren't open source: 
>there's been no significant work done on it for something like ten 
>years. If you want to run Lazarus remotely then tunnel it over SSH.

Hi Mark,
yes I have seen several times such suggestions and yet I have no idea
how to accomplish such a tunneling
How could the Lazarus GUI appear in my Windows machine over SSH when
Lazarus is running on a Raspberry Pi2? There must be some software
running on the Windows box to accomplish that, right?

I have tried to find various solutions such as an X client on Windows
(or is it a server?) to display the desktop of RPi, but it seems like
these are extremely difficult to install and are also not opensource.
In any case after I installed one of the available X thingies on my
Win7 PC I was totally unable to understand how to make it connect to
the RPi, so I gave up and uninstalled it.

TightVNC OTOH worked right out of the box so that is what I continue
to use now, with the limitations.

But then again X is probably not SSH either. The only SSH client I use
(but I use it a lot) is PuTTY, through which I do all of my install
chores on the Pi devices. But that is not a desktop GUI, only a
terminal connection.

My clipboard problems have mainly focused on copying lines of code
from Lazarus into my newsreader on Windows so I could ask questions
regarding coding. So the need varies with programming activity (now is
a low activity time what with the holidays and a trip to Gran Canaria
etc).


-- 
Bo Berglund
Developer in Sweden


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


Re: [Lazarus] Lazarus compile project via ssh?

2016-01-04 Thread Mark Morgan Lloyd

Bo Berglund wrote:

On Mon, 04 Jan 2016 09:41:37 +, Mark Morgan Lloyd
 wrote:

As previously discussed, VNC is broken in many areas and it's unclear 
how much this is fixable since newer versions aren't open source: 
there's been no significant work done on it for something like ten 
years. If you want to run Lazarus remotely then tunnel it over SSH.


Hi Mark,
yes I have seen several times such suggestions and yet I have no idea
how to accomplish such a tunneling
How could the Lazarus GUI appear in my Windows machine over SSH when
Lazarus is running on a Raspberry Pi2? There must be some software
running on the Windows box to accomplish that, right?


I believe there's a combination of XMing and Putty that will do this

http://www.straightrunning.com/xmingnotes/

However if you simply run XMing it will probably just give you a window 
representing your entire Raspbian (etc.) desktop, which won't help C 
Also I don't know whether the Display Manager supplied with Raspbian 
supports remote sessions, and I'd not suggest fiddling with it.



I have tried to find various solutions such as an X client on Windows
(or is it a server?)


Strictly, server since it provides graphical services to the actual 
program. This is non-intuitive and most people will look uncomfortable 
if you ask them to justify it :-)



to display the desktop of RPi, but it seems like
these are extremely difficult to install and are also not opensource.
In any case after I installed one of the available X thingies on my
Win7 PC I was totally unable to understand how to make it connect to
the RPi, so I gave up and uninstalled it.


Well stop fscking around with Windows and use your Ubuntu machine as the 
controlling desktop. As I've said, to the extent that my patience is 
exhausted, the standard OpenSSH supplied with both Debian/Ubuntu and 
Raspbian allows you to tunnel X, you'll probably need to change one 
setting on your desktop system (in /etc/ssh/ssh_config):


Host *
#   ForwardAgent no
   ForwardX11 yes
#   ForwardX11Trusted yes

after which the SSH client (i.e. your desktop system) will tell the SSH 
server (Raspbian) that it's prepared to tunnel X traffic, so if you use 
a shell over SSH to start lazarus the GUI will appear on your desktop 
system.


There's advantages and disadvantages to this that I've described more 
than once, so I'm afraid that I'm not going to do so again.


Now for heavens sake man, if there's something about this that you don't 
understand then /ask/ rather than just ignoring it.


--
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] Lazarus database desktop improvements...

2016-01-04 Thread Michael Van Canneyt



On Tue, 5 Jan 2016, Bob B. wrote:


Which DBF versions are supported by the desktop?    dBase 3?
    dBase 4?
    clipper?
    foxPro?
    visual foxPro?


All versions supported by the TDBF component.


From the TDBF webpage:


Allow the use of all dBASE native type (character, numeric, logical, date, and 
memo).
Memo files are supported, you can use fields with no size limit.
File format 100% compatible with dBASE III+, dBase IV and dBase 2k.
Support for Clipper and Visual FoxPro specific fields.
Index support available for fast sorting of big tables and search (NDX and
MDX files). No support for Clipper and FoxPro indexes yet.

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


Re: [Lazarus] New menu designer

2016-01-04 Thread Howard Page-Clark

On 04/01/2016 14:24, Bart wrote:

On 12/22/15, Juha Manninen  wrote:

Hello

I committed a new Menu Designer by Howard Page-Clark in r50992.
See:
   http://bugs.freepascal.org/view.php?id=29205


Can we implement it so that adding a sumnenu to a Separator (a
menuItem with '-' as caption) will either be disallowed, or a warning
will be shown because several widgetsets crash on that.
(Same for setting Caption to '-' of an existing item with a submenu.)


In the new menu editor adding a submenu to a separator is already 
disallowed (popup menu option/toolbutton is disabled if a separator is 
highlighted). Do you not find this?

However, the rename Caption function presently ignores this loophole.
I will close this loophole in the patch I am working on (and hope to 
submit later this week).


Howard


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


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


Re: [Lazarus] New menu designer

2016-01-04 Thread Bart
On 1/4/16, Bart  wrote:

>> In the new menu editor adding a submenu to a separator is already
>> disallowed (popup menu option/toolbutton is disabled if a separator is
>> highlighted). Do you not find this?
>
> Shamefully admits: I did not check that.

Checked it. Fine.

Can I make a suggestion about the "colored space" right and below menu-items.
I found out (by chance) that clicking on it would create a submenu.
That is awesome!
A text inside the space saying so, would be a nice feature IMO.

Another suggestion: the button that deletes an item: the icon could be
changed to a trashcan (we have at least one icon of a trashcan about
somewhere). I suggest this because the minus-sign to me also suggests
adding a separator (since that means setting caption to '-').

About the "renaming caption to '-' loophole": maybe this should be
forbidden for all cases. If user tries to, then show a message saying:
"use insert separator instead", or something alike.



Overall first impression: very nice improvement (I dons'use docking).

Bart

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


Re: [Lazarus] New menu designer

2016-01-04 Thread Bart
On 1/4/16, Howard Page-Clark  wrote:


> In the new menu editor adding a submenu to a separator is already
> disallowed (popup menu option/toolbutton is disabled if a separator is
> highlighted). Do you not find this?

Shamefully admits: I did not check that.

> However, the rename Caption function presently ignores this loophole.
> I will close this loophole in the patch I am working on (and hope to
> submit later this week).

Nice.

Thanks,

Bart

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