Re: [Lazarus] Terminal Component Available

2018-04-11 Thread R0b0t1 via Lazarus
On Tue, Apr 10, 2018 at 10:12 PM, Anthony Walter via Lazarus
 wrote:
> I'm am starting a new thread because I've completed my task.
>
> Here is a terminal component for Lazarus that is easy to reuse.
>
> https://cache.getlazarus.org/archives/terminal.7z
>
> To install, make sure you're on Linux with a Gtk2 copy of Lazarus. Open
> package terminaldsgn.lpk, install, and rebuild the IDE. You'll have a
> TTerminal component on your pallet. Drop it on a form, press run, and you
> have your own terminal program.
>
> Here is a longish video walk through of how it works:
>
> https://cache.getlazarus.org/videos/vte-finished.mp4
>
> The source code is completely free, copy left, if anyone wants to reuse it.
>
> Notes, you need to be using Linux and have libvte for gtk2 installed to use
> the component. You can be running other platforms, but you'll just see the
> design time surface it you're not on Linux.
>

I appreciate your work.

Did you ever try to make it cross platform? I only ask as I have not
found a good way to embed either PowerShell or cmd.exe.
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Drag (and show) images

2018-04-11 Thread Werner Pamler via Lazarus

Am 12.04.2018 um 00:02 schrieb Donald Ziesig via Lazarus:
I am trying to write an app that allows me to drag images and show 
them while they are being dragged (like the cards in Solitaire).


I have been able to drag images (showing only the drag cursor) and 
drop them appropriately, but I haven't been able to find any recent 
documentation showing the use of TDragImageList and TDragObject.


The only articles that I have found are for Delphi from 2011 (which 
translates to Lazarus but doesn't work correctly) and some more recent 
that don't show the dragged image while the drag is taking place (I 
have that part working).


I was able to show a dragged image by adding code to the DragOver 
event, but that seems to take more time than it should.


Can anyone point me in the right direction for this?


There is a sample in folder examples/dragimagelist of your Lazarus 
installation - maybe it gets close to what you need?

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


Re: [Lazarus] Drag (and show) images

2018-04-11 Thread Graeme Geldenhuys via Lazarus
On 2018-04-11 23:02, Donald Ziesig via Lazarus wrote:
> Can anyone point me in the right direction for this?

I've never really compared LCL's drag-n-drop implementation with fpGUI's
- but they might be similar in some way. Anyway, fpGUI' visual forms
designer - the fpGUI's UI Designer (/uidesigner/   directory)
does just that. You can drag components from the component palette to
the designer form, and it shows you the drag cursor and a image of the
rendered widget/component while you are dragging. Maybe that might give
you some ideas - or not.

The above is obviously different from dragging already placed widgets on
a form - because that is simply moving the widget.

Regards,
  Graeme

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

My public PGP key:  http://tinyurl.com/graeme-pgp
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Drag (and show) images

2018-04-11 Thread Donald Ziesig via Lazarus

Hi All!

I am trying to write an app that allows me to drag images and show them 
while they are being dragged (like the cards in Solitaire).


I have been able to drag images (showing only the drag cursor) and drop 
them appropriately, but I haven't been able to find any recent 
documentation showing the use of TDragImageList and TDragObject.


The only articles that I have found are for Delphi from 2011 (which 
translates to Lazarus but doesn't work correctly) and some more recent 
that don't show the dragged image while the drag is taking place (I have 
that part working).


I was able to show a dragged image by adding code to the DragOver event, 
but that seems to take more time than it should.


Can anyone point me in the right direction for this?

Thanks,

Don Ziesig


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


Re: [Lazarus] Lazarus translation

2018-04-11 Thread Simon Ameis via Lazarus
Am 10.04.2018 um 19:34 schrieb kapibara via Lazarus:
> There is no swedish translation of Lazarus, how can I make one?
>
You should find a README.txt in the languages directory in your lazarus
installation or just read it online at
https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/languages/README.txt?view=markup=48856=lazarus

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


Re: [Lazarus] Encrypted connection between Lazarus and Firebird

2018-04-11 Thread Tony Whyman via Lazarus

The first question is a Firebird question.

With Firebird 3, you can configure use of the Srp user authentication 
module and "over-the-wire" encryption. This should give you an encrypted 
connection between client and server. The settings for this are in the 
"firebird.conf" config file.


This should work with all Lazarus database components that support the 
use of a Firebird database (e.g. IBX).


As to the second question - I'll let someone else answer that one - but 
the answer is probably similar.


Tony Whyman

MWA


On 11/04/18 11:25, Kamen Ketev via Lazarus wrote:


Can I make an encrypted connection between Lazarus and Firebird? What 
components should I use?


Can I make an encrypted connection between Lazarus and Microsoft SQL 
Server? What components should I use?


Regards,
Kamen





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


Re: [Lazarus] Encrypted connection between Lazarus and Firebird

2018-04-11 Thread Anthony Walter via Lazarus
Use a socket to connect, and make it encrypted. Or ssl ... it can work on
any port, not just 443.

https://technet.microsoft.com/en-us/library/ms189067(v=sql.105).aspx

Or you could use ssh.

http://www.firebirdfaq.org/faq113/
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Dark themed lazarus

2018-04-11 Thread Anthony Walter via Lazarus
Juha, no I mean this, reflecting this, the old way the OI handled changes:

http://cache.getlazarus.org/videos/drag-inspector.mp4

The lag is visceral. Whenever an item index changes, the entire OI is
invalidated. My change repaints 2 items, the previous row, and the new row.
It's must faster.
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Encrypted connection between Lazarus and Firebird

2018-04-11 Thread Kamen Ketev via Lazarus

Can I make an encrypted connection between Lazarus and Firebird?
What components should I use? 
Can I make an encrypted connection between Lazarus and Microsoft SQL Server?
What components should I use? 
Regards,
Kamen
 -- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Terminal Component Available

2018-04-11 Thread Michael Van Canneyt via Lazarus



On Wed, 11 Apr 2018, Maciej Izak via Lazarus wrote:


2018-04-11 9:18 GMT+02:00 Michael Van Canneyt via Lazarus <
lazarus@lists.lazarus-ide.org>:



Huh ? Slight historical misinformation here.

Linux editors had this decennia before Visual Studio came up with it.



Huh? What is wrong with you? Where you have historical misinformation? It
is personal view. It looks similar like in VSC and probably like in many
other editors in positive meaning.


I cannot speak for others, but I read your statement as stating that the idea 
of an embedded terminal comes from VSC. 
If this is not what you meant, I apologize for my reaction.


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


Re: [Lazarus] Terminal Component Available

2018-04-11 Thread Maciej Izak via Lazarus
2018-04-11 9:18 GMT+02:00 Michael Van Canneyt via Lazarus <
lazarus@lists.lazarus-ide.org>:

>
> Huh ? Slight historical misinformation here.
>
> Linux editors had this decennia before Visual Studio came up with it.
>

Huh? What is wrong with you? Where you have historical misinformation? It
is personal view. It looks similar like in VSC and probably like in many
other editors in positive meaning.

Feel free to provide full historical context. Insane.

-- 
Best regards,
Maciej Izak
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Terminal Component Available

2018-04-11 Thread Anthony Walter via Lazarus
By the way, there is a small bug with the IDE I discovered while making
this. If you dock a window, then right click and close it, or undock it,
window cannot be docked again. You have to restart the IDE to be able to
dock that window type. Here is a screen capture of the issue:

https://cache.getlazarus.org/videos/dock-bug.mp4
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Terminal Component Available

2018-04-11 Thread Michael Van Canneyt via Lazarus



On Wed, 11 Apr 2018, Maciej Izak via Lazarus wrote:


Very good initiative (Visual Studio Code inspired) . I wish to had this for
Windows too :)


Huh ? Slight historical misinformation here.

Linux editors had this decennia before Visual Studio came up with it.

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


Re: [Lazarus] Terminal Component Available

2018-04-11 Thread Maciej Izak via Lazarus
Very good initiative (Visual Studio Code inspired) . I wish to had this for
Windows too :)

2018-04-11 8:43 GMT+02:00 Anthony Walter via Lazarus <
lazarus@lists.lazarus-ide.org>:

> I updated my archive to include support for a dockable window inside the
> Lazarus IDE.
>
> https://cache.getlazarus.org/videos/vte-embedded.mp4
>
>
>
>
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
>
>


-- 
Best regards,
Maciej Izak
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Dark themed lazarus

2018-04-11 Thread Maciej Izak via Lazarus
2018-04-05 12:33 GMT+02:00 Anthony Walter :

> As a side enhancement, it would display information about the top, left,
> width, and height of the changes inside the overlay as you dragged. Also it
> might display the name and class of the control centered within the
> overlay. Does that sound reasonable?
>

Sure! Sorry for late reply, but somehow I overlooked your message. Good
idea, this was also in my TODO but with low priority, so feel free to do
this :).

-- 
Best regards,
Maciej Izak
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Terminal Component Available

2018-04-11 Thread Anthony Walter via Lazarus
I updated my archive to include support for a dockable window inside the
Lazarus IDE.

https://cache.getlazarus.org/videos/vte-embedded.mp4
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus