Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-27 Thread silvioprog
On Wed, Jan 27, 2016 at 9:30 AM, Fabrício Srdic 
wrote:

> 2016-01-27 0:19 GMT-02:00 silvioprog 
>
>> To summarize my opinion: if I am java programmer, would be better if I
>>> can solve my problem via Java classes than using C library binds. If i am a
>>> Pascal programmer, i prefer to solve my problem via Pascal classes instead
>>> of C binds.  Add an external dependency to the code may be a good option in
>>> short term, however may become a big problem in long term. Perhaps, if the
>>> Lazarus GUI framework was developed using pure pascal ( like fpGUI) instead
>>> of using external libraries and frameworks, we could develop mobile apps
>>> using Lazarus today.
>>>
>> Me too, but Java programmers mostly time use external C libraries when it
>> hasn't already implemented some feature yet, it is a good choice, and you
>> can use that Java classes without knowing that it make calls to an external
>> C library. The Free Pascal and Delphi do it too, for example, when you
>> access a database using SQLdb, it uses an external C library (the database
>> client), that is made in C, and many Pascal programmers uses SQLdb with
>> pure Pascal interfaces (headers) without knowing that the main
>> implementation is in the external C library.
>>
> I undertand this. I know it is virtually impossible to drop all the
> dependency on external C libs on all platforms and programming languages.
> It is not feasible and such goal is all about waste of time and reinventing
> the wheel. I wouldn't do this even in my projects.
>
> Let me explain in another way: nowadays, Lazarus doesn't provide a GUI
> framework for Android. Perharps, there is a C framework that can solve the
> problem now. However, although implementing C binds requires relative
> little time and efforts, join efforts in projects like LCL Custom Draw
> and FpGUI may result in many benefits on long-term so, that may be the
> best choice.
>

I understood. :-)

I love coding with pure Pascal code too, however as Greame said, there is a
lot of users that already made something in C and exported it as a library,
and Pascal programmers can *enjoy it responsibly*. :-)

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


Re: [Lazarus] Package editor in Lazarus 1.6

2016-01-27 Thread Mattias Gaertner
On Wed, 27 Jan 2016 22:12:59 +0200
Juha Manninen  wrote:

> On Wed, Jan 27, 2016 at 7:44 PM, Mattias Gaertner
>  wrote:
> > What bug was fixed with this patch?
> > ...
> > Changes should be documented:
> > http://wiki.lazarus.freepascal.org/Lazarus_1.6.0_release_notes#IDE_Changes
> 
> Ok, I added a "Package editor" section there.
> Reducing two "Add" buttons to one button was the biggest visible change.
> There were many other changes to make it smooth to use. Yes, it uses
> my new ModifySilently concept which conflicts with your earlier
> concept. Some method names should be fixed but otherwise I still feel
> it is an easy and clean way to do it. You should look at it sometime
> later.

And what was the bug?
It does not sound like a bugfix, so I'm a bit worried that it went to
1.6RC2.

 
> > http://wiki.lazarus.freepascal.org/IDE_Window:_Package_Editor
> 
> Uhhh, that needs more updating. The screenshot must be updated for sure.
> I will look at it tomorrow.

Thanks.

Mattias


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


Re: [Lazarus] [OT] Why Mantis doesn't notify the changes?

2016-01-27 Thread silvioprog
On Wed, Jan 27, 2016 at 2:47 PM, Dmitry Boyarintsev <
skalogryz.li...@gmail.com> wrote:

> On Wed, Jan 27, 2016 at 12:43 PM, silvioprog  wrote:
>
>> I can't receive any Mantis notification, even using this configuration:
>>
>
> Maybe Mantis is not configured to notify the Reporter?
> You might want to add yourself to Monitor list.
>

Strange, I receive all notifications in other places where I open issues,
even without monitore it. :/

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


Re: [Lazarus] [OT] Why Mantis doesn't notify the changes?

2016-01-27 Thread silvioprog
On Wed, Jan 27, 2016 at 2:50 PM, Juha Manninen 
wrote:

> On Wed, Jan 27, 2016 at 7:43 PM, silvioprog  wrote:
> > For example, I can't receive any notification related to this issue:
> > http://bugs.freepascal.org/view.php?id=29483
> > And I think that Juha can't receive any notification too. :-/
>
> In fact I did not receive notifications about that issue. I receive
> them about many other issues though. I don't know what is the logic
> here.
>
> Anyway, I have noticed your patches. I am about to apply them. Don't
> worry. :)


Awesome.

I send more patches, thanks a lot for fix them! :-)

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


Re: [Lazarus] [OT] Why Mantis doesn't notify the changes?

2016-01-27 Thread silvioprog
On Wed, Jan 27, 2016 at 4:57 PM, Bart  wrote:

> On 1/27/16, Juha Manninen  wrote:
>
> > In fact I did not receive notifications about that issue. I receive
> > them about many other issues though. I don't know what is the logic
> > here.
>
> I get notifications of issues that are assigned to me.


Hm... I'm just a `Report` user buddy. u.u

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


Re: [Lazarus] Treeview example(s) needed

2016-01-27 Thread Joe Shepherd
Thanks, but that's hardly the way (with standalone buttons) anyone would use a treeview. Surely the TV's own events (onClick, onChange...) are preferable? Apart from some terse words about lack of information on StackExchange, I see nothing on-line about them
 

Perhaps I need a different platform 

Joe
-
joe.sheph...@cyberservices.com
Pert, WA, Australia.

 
 

Sent: Wednesday, January 27, 2016 at 9:49 PM
From: "Vincent Snijders" 
To: "Lazarus mailing list" 
Subject: Re: [Lazarus] Treeview example(s) needed


 
 
2016-01-27 6:01 GMT+01:00 Joe Shepherd :




Hi

 

I'm having trouble with TTreeView - no doubt due to ignorance. Does anyone have simple example(s) of builing and using a treeview?

 






The lazarus source contains a treeview example:
http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/examples/treeview/?root=lazarus
 

Vincent


 

-- ___ 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] Treeview example(s) needed

2016-01-27 Thread Marc Santhoff
On Mi, 2016-01-27 at 06:01 +0100, Joe Shepherd wrote:
>  
> Obvioiusly I'm missing a lot but I cannot find any example to dispel
> the fog. Anyone got one?

Not really. Some information can be found there:

http://wiki.lazarus.freepascal.org/XML_Tutorial#Populating_a_TreeView_with_XML

But I cannot say if that helps you. The main page in the wiki is this
one:

http://wiki.lazarus.freepascal.org/VirtualTreeview

and it shows the way to get a help file:

http://wiki.lazarus.freepascal.org/VirtualTreeview#Help

Have fun,
Marc

-- 
Marc Santhoff 


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


Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-27 Thread Graeme Geldenhuys
On 2016-01-27 13:12, Reimar Grabowski wrote:
> I never got what these 3D DEs would improve when we are interacting with 2D 
> devices like mouse and touchpads.

+1

Especially now that all "modern design" [yeah right] is going back to
wire-frame like designs, like in the days of Windows v1.0 and v2.0.
Everything being mono colors and ugly flat looking. Windows, Linux, OSX
and mobile devices all following this stupid trend. You can't
distinguish a button from a label. No thanks!


Regards,
  - Graeme -


My public PGP key:  http://tinyurl.com/graeme-pgp

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


Re: [Lazarus] Treeview example(s) needed

2016-01-27 Thread Marc Santhoff
On Mi, 2016-01-27 at 11:21 +0100, Mattias Gaertner wrote:
> On Wed, 27 Jan 2016 09:16:12 +0100
> Marc Santhoff  wrote:

> The main page in the wiki is this
> > one:
> > 
> > http://wiki.lazarus.freepascal.org/VirtualTreeview
> 
> VirtualTreeView <> TTreeView

Oops, I see. At least I've learned something today.

Marc

-- 
Marc Santhoff 


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


Re: [Lazarus] lhelp broken for Lazarus 1.7 r1.5 FPC 2.6.4 x86_64-linux-gtk 2

2016-01-27 Thread Juha Manninen
On Wed, Jan 27, 2016 at 7:03 PM, John Landmesser 
wrote:

> tried to compile lhelp with my  r51428 shows me these messages:
>
> Kompiliere Package TurboPowerIPro 1.0: Exit code 1, Fehler: 3, Warnungen: 2
> iphtml.pas(12184,6) Warning: User defined: Setting these font colors and
> name messes up the alignment for some reason
> iphtml.pas(12202,7) Warning: User defined: TODO Set Font size from CSS
> Value
> iphttpbroker.pas(86,11) Error: identifier idents no member "AllowRedirect"
> iphttpbroker.pas(87,11) Error: identifier idents no member "MaxRedirects"
> iphttpbroker.pas(130,15) Error: identifier idents no member "IsRedirect"
>
> So no lhelp available!
>

The members are part of fcl-web's fphttpclient. I guess they are new in FPC
3.0.
Silvio, would it be easy to add IFDEFs to support compilation with FPC
2.6.4. We plan to support it also in Lazarus trunk for some time to come.

John Landmesser, it compiles with the latest FPC release. I can recommend
it unless you have a good reason to stick with FPC 2.6.4.

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


Re: [Lazarus] Package editor in Lazarus 1.6

2016-01-27 Thread Mattias Gaertner
On Mon, 25 Jan 2016 18:41:42 +0200
Juha Manninen  wrote:

> Forgot to write earlier...
> 
> The package editor has been improved in RC2.
> See this + its related issues :
>   http://bugs.freepascal.org/view.php?id=28097

What bug was fixed with this patch?

> The changes were partly inspired by ideas from Michael Van Canneyt and others.
> See this mail thread :
>  
> http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Package-dialog-tt4041400.html#none
> [^]
> 
> Opinions?

Changes should be documented:

http://wiki.lazarus.freepascal.org/Lazarus_1.6.0_release_notes#IDE_Changes

http://wiki.lazarus.freepascal.org/IDE_Window:_Package_Editor


Mattias

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


Re: [Lazarus] [OT] Why Mantis doesn't notify the changes?

2016-01-27 Thread Juha Manninen
On Wed, Jan 27, 2016 at 7:43 PM, silvioprog  wrote:
> For example, I can't receive any notification related to this issue:
> http://bugs.freepascal.org/view.php?id=29483
> And I think that Juha can't receive any notification too. :-/

In fact I did not receive notifications about that issue. I receive
them about many other issues though. I don't know what is the logic
here.

Anyway, I have noticed your patches. I am about to apply them. Don't worry. :)

Juha

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


[Lazarus] lhelp broken for Lazarus 1.7 r1.5 FPC 2.6.4 x86_64-linux-gtk 2

2016-01-27 Thread John Landmesser
got a Mail from Silvio Clecio, but the patch, that should be in Lazarus 
since r51387, r51388 didn't help!


Mail:

Hello @JohnML1  , the |iphttpbroker| unit 
was added recently in the Lazarus components. If you are using a 
stable version of Lazarusm, get and apply all patches sent in this 
issue: http://bugs.freepascal.org/view.php?id=29483.


—
Reply to this email directly or view it on GitHub 
.




tried to compile lhelp with my  r51428 shows me these messages:

Kompiliere Package TurboPowerIPro 1.0: Exit code 1, Fehler: 3, Warnungen: 2
iphtml.pas(12184,6) Warning: User defined: Setting these font colors and 
name messes up the alignment for some reason

iphtml.pas(12202,7) Warning: User defined: TODO Set Font size from CSS Value
iphttpbroker.pas(86,11) Error: identifier idents no member "AllowRedirect"
iphttpbroker.pas(87,11) Error: identifier idents no member "MaxRedirects"
iphttpbroker.pas(130,15) Error: identifier idents no member "IsRedirect"

So no lhelp available!
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] [OT] Why Mantis doesn't notify the changes?

2016-01-27 Thread silvioprog
Hello,

I can't receive any Mantis notification, even using this configuration:

https://img42.com/l8Nog

For example, I can't receive any notification related to this issue:

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

And I think that Juha can't receive any notification too. :-/

So, is Mantis e-mail notification working fine?

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


Re: [Lazarus] [OT] Why Mantis doesn't notify the changes?

2016-01-27 Thread Dmitry Boyarintsev
On Wed, Jan 27, 2016 at 12:43 PM, silvioprog  wrote:

> I can't receive any Mantis notification, even using this configuration:
>

Maybe Mantis is not configured to notify the Reporter?
You might want to add yourself to Monitor list.

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


Re: [Lazarus] [OT] Why Mantis doesn't notify the changes?

2016-01-27 Thread Bart
On 1/27/16, Juha Manninen  wrote:

> In fact I did not receive notifications about that issue. I receive
> them about many other issues though. I don't know what is the logic
> here.

I get notifications of issues that are assigned to me.

Bart

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


Re: [Lazarus] Package editor in Lazarus 1.6

2016-01-27 Thread Juha Manninen
On Wed, Jan 27, 2016 at 7:44 PM, Mattias Gaertner
 wrote:
> What bug was fixed with this patch?
> ...
> Changes should be documented:
> http://wiki.lazarus.freepascal.org/Lazarus_1.6.0_release_notes#IDE_Changes

Ok, I added a "Package editor" section there.
Reducing two "Add" buttons to one button was the biggest visible change.
There were many other changes to make it smooth to use. Yes, it uses
my new ModifySilently concept which conflicts with your earlier
concept. Some method names should be fixed but otherwise I still feel
it is an easy and clean way to do it. You should look at it sometime
later.

> http://wiki.lazarus.freepascal.org/IDE_Window:_Package_Editor

Uhhh, that needs more updating. The screenshot must be updated for sure.
I will look at it tomorrow.

Juha

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


[Lazarus] 3D Window Manager / Desktop environment in Object Pascal

2016-01-27 Thread Graeme Geldenhuys
Hi,

On 2016-01-27 11:16, Chavoux Luyt wrote:
> Personally, I am very interested in developing a 3D Window Manager for
> Linux using Object Pascal. I am still not sure if I would need to work
> at the level of OpenGL (and if there are Object Pascal wrappers for
> all OpenGL functions) or if there are higher-level tools in Lazarus
> that could be used to write a true 3D Window Manager / Desktop
> Environment for Linux? Any ideas?

I suggest you take a look at XPde - a fully working window manager and
desktop environment, with accompanied system tools (task manager,
control panel, file manager, calculator, network monitor etc). XPde was
developed in Object Pascal using Kylix. Here are some info and
screenshots [http://xpde.holobit.net/shots.php]. For years I've been
meaning to port this over to Free Pascal and fpGUI.

Another Window Manager implemented in pure Object Pascal is fpwm
(available on SourceForge). This is Alpha stage though, but I do have
screenshots I made showing the old version (in a subdirectory in the
repository) running on my Linux system.

Neither of these two are 3D though, but it should be a very good start
to get a project going.

Speaking of 3D and OpenGL. I would personally opt to rather use SDL
instead of OpenGL directly. SDL will still give you 3D hardware support
(including a software renderer etc), but the API should be much easier
to use. SDL has also proven very successful in many commercial Linux
games (remember Loki Software), so it should definitely be up to the task.

Another alternative might be to use ORCA 3D (included with the Lazarus
fork, CodeTyphon). Though I'm still under the impression that this is a
rebranded illegal copy of the FireMonkey predecessor (bought and owned
by Embarcadero). [please correct me if I am wrong about ORCA]



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.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-27 Thread Chavoux Luyt
> From: Graeme Geldenhuys 
 I think it is safe to say we would all love such a solution for Object
> Pascal too. But unfortunately C is an overwhelmingly popular language,
> and most core functionality of an OS or library is implemented in it.

> Personally I agree that LCL was implemented the wrong way (not custom
> drawn), but I also need to correct you, or at least point out that even
> though fpGUI Toolkit implements ALL widgets in pure Object Pascal, and
> even has its own Object Pascal 2D graphics library for sub-pixel
> anti-aliased drawing, it too relies on external libraries. How else is
> fpGUI going to talk to X11, Win32, OS/2 etc. At some point it needs to
> talk to the windowing system of the OS (which is most likely implement
> in C, as some library). fpGUI's dependencies are magnitudes smaller than
> LCL, but there are still dependencies - you simply can't avoid that,
> other than implement a whole OS, windowing system, window manager etc in
> Object Pascal too.
Personally, I am very interested in developing a 3D Window Manager for
Linux using Object Pascal. I am still not sure if I would need to work
at the level of OpenGL (and if there are Object Pascal wrappers for
all OpenGL functions) or if there are higher-level tools in Lazarus
that could be used to write a true 3D Window Manager / Desktop
Environment for Linux? Any ideas?

Unfortunately I also do not currently have time to look at this in
more detail, so probably only in 2017. Just saying that I am seriously
interested in using Lazarus/Object Pascal at such a lower level if
possible (and it might even be ported to be cross-platform later,
depending on which underlying API it would use).

And now I am totally off-topic. But if anybody else would be
interested in something like this, please contact me... at least we
can start looking at what options are available. The other option I am
considering instead of Object Pascal is C++, which will probably have
a good interface to OpenGL. Any 3D game programmers that used Object
Pascal looking for a new challenge?

Cheers,
 Chavoux

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


Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-27 Thread Fabrício Srdic
2016-01-27 7:47 GMT-02:00 Graeme Geldenhuys :

> On 2016-01-27 01:51, Fabrício Srdic wrote:
> > To summarize my opinion: if I am java programmer, would be better if I
> can
> > solve my problem via Java classes than using C library binds.
>
> I think it is safe to say we would all love such a solution for Object
> Pascal too. But unfortunately C is an overwhelmingly popular language,
> and most core functionality of an OS or library is implemented in it.
>
> Java is more popular than C (depends which stats you look at obviously),
> and thus it too has a lot of pure Java implementations of many things.
> eg: parsers, database libraries, database engines, graphics engines, etc
>
> Bottom line is, these two language show that you need to have a massive
> market share for something like that to happen [at such a scale].
>
>
> > Lazarus GUI framework was developed using pure pascal ( like fpGUI)
> instead
> > of using external libraries and frameworks,
>
> Personally I agree that LCL was implemented the wrong way (not custom
> drawn), but I also need to correct you, or at least point out that even
> though fpGUI Toolkit implements ALL widgets in pure Object Pascal, and
> even has its own Object Pascal 2D graphics library for sub-pixel
> anti-aliased drawing, it too relies on external libraries. How else is
> fpGUI going to talk to X11, Win32, OS/2 etc. At some point it needs to
> talk to the windowing system of the OS (which is most likely implement
> in C, as some library). fpGUI's dependencies are magnitudes smaller than
> LCL, but there are still dependencies - you simply can't avoid that,
> other than implement a whole OS, windowing system, window manager etc in
> Object Pascal too.
>
>
Guys, i am talking about "levels" of external dependency. Ok, FpGUI
obviously depends on OS's API's exposed through external libs. However,
there is a big difference: if my app uses  FpGUI, my apps depends on OS
API's. By other side, if my app uses GTK, my apps depends on OS's API's AND
GTK. Do you see?


>
> > we could develop mobile apps using Lazarus today.
>
> As far as I know there is work being done to allow Lazarus to develop
> Android applications. I guess this work simply hasn't been made public
> yet, as it likely is still incomplete and under development.
>
>
Yes, and as far as i know they are doing this through LCLCustomDraw, and
not through binds to any C lib GUI framework for Android.

Do you see the drawback of the external dependency? Lazarus users are
limited by the constraints of GTK and etc.

ps: again, i am not against the use of external libs. I use many C libs in
my projects.


> ps:
> I welcome you to implement a Android backend for fpGUI. ;-) Somebody is
> apparently working on this already, though I don't know the status or
> progress.
>
>
This is on my to-do list :-).
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-27 Thread Graeme Geldenhuys
On 2016-01-27 11:28, Fabrício Srdic wrote:
> Do you see the drawback of the external dependency? Lazarus users are
> limited by the constraints of GTK and etc.

You are preaching to the choir. :-)  I fully agree with you.

Regards,
  - Graeme -


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


Re: [Lazarus] Treeview example(s) needed

2016-01-27 Thread Mattias Gaertner
On Wed, 27 Jan 2016 06:01:24 +0100
"Joe Shepherd"  wrote:

>[...]
>newnode := tv.items.addchild(nil, 'A');
>newnode := tv.items.addchild(nil, 'B');
>newnode := tv.items.addchild(newnode, 'B1');
>newnode := tv.items.addchild(newnode, 'B12');
>newnode := tv.items.addchild(newnode, 'B123');  
>[...]
> If the treeview option tvoAutoExpand is True, I get the whole tree and can 
> click about the tree and select nodes. But if tvoAutoExpand is False, the 
> tree is (correctly) drawn collapsed, and  clicking to expand (eg node B), or 
> on a node with no children (eg Node A) both result in a SigSegV in 
> include/treeview.inc at line 1590 which is the indicated line here:

Clicking on nodes should not create AV, unless you have some more code
than just the above 5 lines.
The method GetLevel is not called by the LCL, so I guess you use it
somewhere.
Use the debugger to create a backtrace of the AV to find out what
causes the AV.

Mattias

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


Re: [Lazarus] Treeview example(s) needed

2016-01-27 Thread Vincent Snijders
2016-01-27 6:01 GMT+01:00 Joe Shepherd :

> Hi
>
> I'm having trouble with TTreeView - no doubt due to ignorance. Does anyone
> have simple example(s) of builing and using a treeview?
>
>
>
The lazarus source contains a treeview example:
http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/examples/treeview/?root=lazarus

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


Re: [Lazarus] Treeview example(s) needed

2016-01-27 Thread Mattias Gaertner
On Wed, 27 Jan 2016 09:16:12 +0100
Marc Santhoff  wrote:

> On Mi, 2016-01-27 at 06:01 +0100, Joe Shepherd wrote:
> >  
> > Obvioiusly I'm missing a lot but I cannot find any example to dispel
> > the fog. Anyone got one?
> 
> Not really. Some information can be found there:
> 
> http://wiki.lazarus.freepascal.org/XML_Tutorial#Populating_a_TreeView_with_XML
> 
> But I cannot say if that helps you. The main page in the wiki is this
> one:
> 
> http://wiki.lazarus.freepascal.org/VirtualTreeview

VirtualTreeView <> TTreeView

Mattias

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


Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-27 Thread Graeme Geldenhuys
On 2016-01-27 01:51, Fabrício Srdic wrote:
> To summarize my opinion: if I am java programmer, would be better if I can
> solve my problem via Java classes than using C library binds.

I think it is safe to say we would all love such a solution for Object
Pascal too. But unfortunately C is an overwhelmingly popular language,
and most core functionality of an OS or library is implemented in it.

Java is more popular than C (depends which stats you look at obviously),
and thus it too has a lot of pure Java implementations of many things.
eg: parsers, database libraries, database engines, graphics engines, etc

Bottom line is, these two language show that you need to have a massive
market share for something like that to happen [at such a scale].


> Lazarus GUI framework was developed using pure pascal ( like fpGUI) instead
> of using external libraries and frameworks,

Personally I agree that LCL was implemented the wrong way (not custom
drawn), but I also need to correct you, or at least point out that even
though fpGUI Toolkit implements ALL widgets in pure Object Pascal, and
even has its own Object Pascal 2D graphics library for sub-pixel
anti-aliased drawing, it too relies on external libraries. How else is
fpGUI going to talk to X11, Win32, OS/2 etc. At some point it needs to
talk to the windowing system of the OS (which is most likely implement
in C, as some library). fpGUI's dependencies are magnitudes smaller than
LCL, but there are still dependencies - you simply can't avoid that,
other than implement a whole OS, windowing system, window manager etc in
Object Pascal too.


> we could develop mobile apps using Lazarus today.

As far as I know there is work being done to allow Lazarus to develop
Android applications. I guess this work simply hasn't been made public
yet, as it likely is still incomplete and under development.


ps:
I welcome you to implement a Android backend for fpGUI. ;-) Somebody is
apparently working on this already, though I don't know the status or
progress.

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.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] 3D Window Manager / Desktop environment in Object Pascal

2016-01-27 Thread Zeljko



On 01/27/2016 12:38 PM, Graeme Geldenhuys wrote:

Hi,

On 2016-01-27 11:16, Chavoux Luyt wrote:

Personally, I am very interested in developing a 3D Window Manager for
Linux using Object Pascal. I am still not sure if I would need to work
at the level of OpenGL (and if there are Object Pascal wrappers for
all OpenGL functions) or if there are higher-level tools in Lazarus
that could be used to write a true 3D Window Manager / Desktop
Environment for Linux? Any ideas?


I suggest you take a look at XPde - a fully working window manager and
desktop environment, with accompanied system tools (task manager,
control panel, file manager, calculator, network monitor etc). XPde was
developed in Object Pascal using Kylix. Here are some info and
screenshots [http://xpde.holobit.net/shots.php]. For years I've been
meaning to port this over to Free Pascal and fpGUI.


AFAIR, I've developed x11 part of wm :))) and some other modules like 
system viewer :)  and yes, I have same thoughts about port but no 
free time to start that.


zeljko

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


Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-27 Thread Reimar Grabowski
On Wed, 27 Jan 2016 13:16:14 +0200
Chavoux Luyt  wrote:

> I am still not sure if I would need to work
> at the level of OpenGL (and if there are Object Pascal wrappers for
> all OpenGL functions) or if there are higher-level tools in Lazarus
> that could be used to write a true 3D Window Manager / Desktop
> Environment for Linux? Any ideas?
Yes (you need OpenGL or Vulkan (if its out then ^^) using a full blown (game) 
engine for such a task looks like a bad choice IMHO) and yes (there are headers 
for OpenGL and if they are missing some stuff it's very easy to add).

> The other option I am
> considering instead of Object Pascal is C++, which will probably have
> a good interface to OpenGL.
Having used both languages to do OpenGL projects I can say there isn't much of 
a difference.

> Any 3D game programmers that used Object
> Pascal looking for a new challenge?
No, thanks. I never got what these 3D DEs would improve when we are interacting 
with 2D devices like mouse and touchpads.
But if you would like to take a look at 3D programming in Pascal you may be 
interested in my little graphics engine 
(http://asmoday.sourceforge.net/pmwiki/pmwiki.php).
It's quite old and not under active development but it is usable for simple 
stuff and shows how to use OpenGL in FreePascal.

R:

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


Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-27 Thread Fabrício Srdic
2016-01-27 0:19 GMT-02:00 silvioprog 

> To summarize my opinion: if I am java programmer, would be better if I can
>> solve my problem via Java classes than using C library binds. If i am a
>> Pascal programmer, i prefer to solve my problem via Pascal classes instead
>> of C binds.  Add an external dependency to the code may be a good option in
>> short term, however may become a big problem in long term. Perhaps, if the
>> Lazarus GUI framework was developed using pure pascal ( like fpGUI) instead
>> of using external libraries and frameworks, we could develop mobile apps
>> using Lazarus today.
>>
> Me too, but Java programmers mostly time use external C libraries when it
> hasn't already implemented some feature yet, it is a good choice, and you
> can use that Java classes without knowing that it make calls to an external
> C library. The Free Pascal and Delphi do it too, for example, when you
> access a database using SQLdb, it uses an external C library (the database
> client), that is made in C, and many Pascal programmers uses SQLdb with
> pure Pascal interfaces (headers) without knowing that the main
> implementation is in the external C library.
>
> --
> Silvio Clécio
>
>
I undertand this. I know it is virtually impossible to drop all the
dependency on external C libs on all platforms and programming languages.
It is not feasible and such goal is all about waste of time and reinventing
the wheel. I wouldn't do this even in my projects.

Let me explain in another way: nowadays, Lazarus doesn't provide a GUI
framework for Android. Perharps, there is a C framework that can solve the
problem now. However, although implementing C binds requires relative
little time and efforts, join efforts in projects like LCL Custom Draw and
FpGUI may result in many benefits on long-term so, that may be the best
choice.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-27 Thread Reimar Grabowski
On Wed, 27 Jan 2016 10:30:17 -0200
Fabrício Srdic  wrote:

> Let me explain in another way: nowadays, Lazarus doesn't provide a GUI
> framework for Android. Perharps, there is a C framework that can solve the
> problem now.
You mean like Qt 5?

R.

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


Re: [Lazarus] 3D Window Manager / Desktop environment in Object Pascal

2016-01-27 Thread Graeme Geldenhuys
On 2016-01-27 14:26, Zeljko wrote:
> 
> AFAIR, I've developed x11 part of wm :))) and some other modules like 
> system viewer :)

It's good to know there are still some of the original XPde developers
around. I really liked that project - still do, but unfortunately I
don't run Linux any more (moved to FreeBSD some years ago).

My original idea was to port it and make sure it supports FreeBSD as a
first class citizen, so that OS can get its own desktop environment -
much like what the newish project Lumina Desktop is doing now for
FreeBSD. But with FPC+fpGUI being so good at cross platform support, it
should work equally well on FreeBSD and Linux.


  and yes, I have same thoughts about port but no
> free time to start that.

If either of us do find the time to start it, we should let the other
person know. It is a massive project, and collaboration is vital.


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.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus