Re: [Lazarus] Can not run in debug mode for WinCe

2013-04-25 Thread Sven Barth

Am 24.04.2013 00:32, schrieb GREP:

Thanks very much Sven

the eval-command worked, I have no more problems of storage
memory. ( I do  not remenber this in my previous Lazarus installation, but
it is almost 2 years that I did not use it)
However, when I ran the app (frrm Lazarus) I got



This is a bug in (possibly) GDB. A workaround is mentioned here (and 
also linked from the wiki page): 
http://bugs.freepascal.org/view.php?id=21061#c55704


In short: Add "D:\" to the "Other source directory" paths.

Regards,
Sven

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


Re: [Lazarus] How to create a listbox that can be shifted

2013-04-25 Thread Sven Barth

Am 25.04.2013 07:10, schrieb Jürgen Hestermann:


Am 2013-04-24 20:25, schrieb Jesus Reyes:



Still I am wondering why nobody seems to miss a horizontal
shift for TListBox and TStringGrid (especially because a
slider is shown for TStringGrid but does not work). Are
these bugs which nobody discovered since years? I can't
believe it.

Do you know if is there a bug report about it?, if not, please feel 
free to submit one (I'm talking about the TStringGrid).





As others told me these are all limitations of the underlying 
widgetset (in this case Win32 GUI) so it cannot be fixed within Lazarus.


But AFAIK one can enforce a horizontal scroll bar for a list box. This 
can be seen here for example: 
http://www.delphitricks.com/source-code/components/show_a_horizontal_scrollbar_in_a_listbox.html
So one might need to adjust the TListBox implementation to support this 
as well (and I simply assume for now that the other widgetsets also 
support a horizontal scrollbar in a list box...).


Regards,
Sven


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


Re: [Lazarus] How to create a listbox that can be shifted

2013-04-25 Thread zeljko

On 04/25/2013 09:34 AM, Sven Barth wrote:

Am 25.04.2013 07:10, schrieb Jürgen Hestermann:


Am 2013-04-24 20:25, schrieb Jesus Reyes:



Still I am wondering why nobody seems to miss a horizontal
shift for TListBox and TStringGrid (especially because a
slider is shown for TStringGrid but does not work). Are
these bugs which nobody discovered since years? I can't
believe it.


Do you know if is there a bug report about it?, if not, please feel
free to submit one (I'm talking about the TStringGrid).




As others told me these are all limitations of the underlying
widgetset (in this case Win32 GUI) so it cannot be fixed within Lazarus.


But AFAIK one can enforce a horizontal scroll bar for a list box. This
can be seen here for example:
http://www.delphitricks.com/source-code/components/show_a_horizontal_scrollbar_in_a_listbox.html

So one might need to adjust the TListBox implementation to support this
as well (and I simply assume for now that the other widgetsets also
support a horizontal scrollbar in a list box...).


Afair in lazarus TListBox.ScrollWidth := Canvas.textWidth(longeststring) 
works (at least with qt widgetset).


z.


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


Re: [Lazarus] How to create a listbox that can be shifted

2013-04-25 Thread Sven Barth

Am 25.04.2013 09:40, schrieb zeljko:

On 04/25/2013 09:34 AM, Sven Barth wrote:

Am 25.04.2013 07:10, schrieb Jürgen Hestermann:


Am 2013-04-24 20:25, schrieb Jesus Reyes:



Still I am wondering why nobody seems to miss a horizontal
shift for TListBox and TStringGrid (especially because a
slider is shown for TStringGrid but does not work). Are
these bugs which nobody discovered since years? I can't
believe it.


Do you know if is there a bug report about it?, if not, please feel
free to submit one (I'm talking about the TStringGrid).




As others told me these are all limitations of the underlying
widgetset (in this case Win32 GUI) so it cannot be fixed within 
Lazarus.



But AFAIK one can enforce a horizontal scroll bar for a list box. This
can be seen here for example:
http://www.delphitricks.com/source-code/components/show_a_horizontal_scrollbar_in_a_listbox.html 



So one might need to adjust the TListBox implementation to support this
as well (and I simply assume for now that the other widgetsets also
support a horizontal scrollbar in a list box...).


Afair in lazarus TListBox.ScrollWidth := 
Canvas.textWidth(longeststring) works (at least with qt widgetset).
I looked at the code. The Win32 implementation does exactly what is 
mentioned in the link and an GTK2 implementation exists as well. Only 
Carbon does not seem to be implemented.


So for the majority of the widgetsets this seems to be implemented already.

Regards,
Sven

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


Re: [Lazarus] RAD Studio XE4 Released?

2013-04-25 Thread Antonio Fortuny

  
  
Le 25/04/2013 08:25, Hans-Peter
  Diettrich a écrit :
  
IMO we (FPC/Lazarus) should be prepared for providing a new home
for desparate Delphi coders, which will trash RadStudio for too
little and too slow progress, and lack of compatibility, at a
too high price. Failing to encourage this move will force most
current Delphi coders to use better supported development
environments, most likely C#. 
  
  Usually I do not interfere in these philosophical debates and just
  this one won't hurt I believe. I'm a delphinian since TurboPascal
  DOS and Delphi 1 on Windws 3.11: this a long time ago. I used
  almost all versions and stopped to buy new releases with D2007.
  Then I discoreved FPC and Lazaus at my actual job position. And
  because we develop for Windows as well as Linux platforms I'm very
  happy in my job using these pair. I'm not involved in GUI
  applications and that's why I do not really care about visual
  components. A very important thing for me is the reliability and
  the fact that FPC+Lazarus are multi-platform. But, closer to my
  day to day work, the most important feature is obviously the
  stability and continuity of both projects. I don't know if you can
  understand how much I'm happy when I change to a new version and I
  can continue my current job after a few minutes instead of hours
  or even days and most important perhaps, continue using my habits
  which means to become productive within minutes. Of course l take
  afterwards some time to see and learn what's new. You can easily
  understand why I hate Windo$, but this only my opinion.
  
  Maybe one thing could make happier than now: is it out there any
  plans to have Lazarus to manage project groups ? It is the only
  problem which bothers me. 
  
  Anyway, having furthermore a team of guys (no girls ?   ;-) )  like you
  behind the scene lets me very comfortable to go on with my
  projects. Thanks to you all. 
  
  Antonio.
   
IMO it also would look like much more profitable to me, to make
Wirth's Oberon as popular as Delphi was. At a closer look it has
a GUI well suited for handhelds, competing with Win8 or other OS
for portables. And as its memory is fully garbage collected, it
also would fit neatly into any .NET environment. Again I wonder
how Niklaus was ahead of the mainstream (hardware) development
with his ideas :-) 

DoDi 

  
  

  




   Antonio
  Fortuny
Senior Software engineer

220, avenue de la Liberté
L-4602 Niederkorn
Tel.: +352 58 00 93 - 93
www.sitasoftware.lu
  




  

  
  

--
  
  ___
  
  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] FPC 2.6.2 + Thread.Queue?

2013-04-25 Thread Michael Schnell

On 04/24/2013 04:42 PM, Hans-Peter Diettrich wrote:
But AFAIK according inter-process communication is very platform 
specific, dunno what common means the RTL offers for such purposes.


Obviously, the RTL alone can't do it. The dirty details of the 
EventQueue handling needs to be done in the LCL (or at least with the 
LCL in mind), because you need to merge the GUI-events with the internal 
"language" events. ( I understand that with Windows the merging needs to 
take place at the "output" of the EventQueue(s), while with other 
WidgetTypes the merging needs to take place at the "input" of the 
EventQueue(s). )


This is why I claim, that a decent solution needs to introduce 
modifications in the RTL and in all LCL WidgetType implementations (that 
provide GUI-events). (You can take a look at the mse-project that seems 
to have a kind of unified RTL and LCL. here the EventQueues already 
works perfectly on all supported platforms with and without a GUI binding.


I feel that the code for the "Language" event queue needs to be done in 
the RTL (I suppose it already is, because you can use it via 
checksynchronize() ). The LCL WidgetType code thus should not create yet 
another Queue (as it is done right now), but the RTL should enable it to 
merge events GUI form an external Queue (such as existing in Windows) or 
push GUI events in the RTL Queue (supposedly viable for GTK and other 
Widgets)


On top of this decent "full featured" non-GUI WidgetTypes (for 
"embedded" main programs, CGI-programs, Daemons, Windows services, ...), 
and new WidgetTypes (e.g. Browser handled: similar to ExtPascel, ...) 
can much easier be done.


I suppose this is the main problem: for a decent solution a common 
concept for RTL and LCL (i.e. a decent interface-definition based on 
objects) needs to be defined and agreed upon by both core teams, before 
any work can be started. (I fear this never will happen.)


-Michael

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


Re: [Lazarus] FPC 2.6.2 + Thread.Queue?

2013-04-25 Thread Michael Schnell

On 04/24/2013 09:43 PM, Sven Barth wrote:

 I thought that you mean a future implementation of QueueAsyncCall
Sorry for being not clear. I meant that I just don't know whether the 
current implementation of QueueAsyncCall, if called from the main 
thread, will do a call or will push an event to the Queue, and that I 
don't think that is of great signification (in case either does work).


-Michael



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


Re: [Lazarus] RAD Studio XE4 Released?

2013-04-25 Thread Sven Barth

Am 25.04.2013 09:54, schrieb Antonio Fortuny:
Maybe one thing could make happier than now: is it out there any plans 
to have Lazarus to manage project groups ? It is the only problem 
which bothers me.
I requested that already around two years ago: 
http://bugs.freepascal.org/view.php?id=18518 :)


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


Re: [Lazarus] RAD Studio XE4 Released?

2013-04-25 Thread Michael Schnell

On 04/24/2013 09:44 PM, Sven Barth wrote:
Because AFAIK they implemented various features in the IDE through the 
.NET framework. And yes, I don't like that idea either ;)


Regarding the recent (seemingly non existing) discussions on CIL (which 
mostly is miss-named ".NET", as the CIL virtual machine is part of the 
".NET-Framework"), I understand that it is about do die in favor of the 
ever rising use of the java virtual engine.


So it is astonishing (or not astonishing ?!?!?) that Embarcadero still 
sticks to it.


-Michael

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


Re: [Lazarus] RAD Studio XE4 Released?

2013-04-25 Thread Mattias Gaertner


> Sven Barth  hat am 25. April 2013 um 10:10
> geschrieben:
>
>  Am 25.04.2013 09:54, schrieb Antonio Fortuny:
>
>  > >  Maybe one thing could make happier than now: is it out there any
>  > > plans to have Lazarus to manage project groups ? It is the only
>  > > problem which bothers me.
> >
> >  > I requested that already around two years
> >  > ago: :)

There is currently no one working on that.
I try to write all new code with multiple projects in mind.

Mattias


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


Re: [Lazarus] RAD Studio XE4 Released?

2013-04-25 Thread Graeme Geldenhuys
On 2013-04-25 07:25, Hans-Peter Diettrich wrote:
> Well, slow and memory hungry may be, but portability is achieved to 
> every .NET enabled platform.

WinForms is not 100% portable via Mono (last I checked). I wouldn't go
that route either because Microsoft will be on your case when it suits
them - and probably just when your product becomes successful.


> But it isn't true that the new IDE is written in .NET,

I didn't mean the whole IDE. Just parts: help system, editor, form
designer, language tool in editor (like what CodeTools is). But that
sure makes it about 70% of what an IDE is.


> Failing to encourage this move will force most current Delphi coders to 
> use better supported development environments, most likely C#.

Java seems way more lucrative to me... The Java eco-system is massive,
and that also opens the doors to Android (which is also Java and the
biggest mobile platform). But that's just me thinking out loud.


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] How to create a listbox that can be shifted

2013-04-25 Thread José Mejuto

El 25/04/2013 7:10, Jürgen Hestermann escribió:


As others told me these are all limitations of the underlying widgetset
(in this case Win32 GUI) so it cannot be fixed within Lazarus.

TMemo solves my problem for now (thanks again to Howard for the tip).
And another tip was TScrollBox which I did not test yet but will try
together with TStringGrid if I need more than one column of text.



Hello,

Or use a ListView (in report mode) or set the ListBox "ScrollWidth" 
property to the length of largest string, ...


--


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


Re: [Lazarus] RAD Studio XE4 Released?

2013-04-25 Thread Michael Schnell

On 04/24/2013 11:09 PM, Graeme Geldenhuys wrote:
Because they had the brain fart to write the Delphi IDE in .NET, thus 
giving it the special features of being super slow, incredibly memory 
hungry and not portable to other platforms.

In fact .NET code is rather portable (using Mono)

Of course they can't convert to the Lazarus IDE (that is nicely portable 
and rather fast)


So maybe they should use Eclipse (that is free, very versatile and 
nicely slow).


-Michael

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


Re: [Lazarus] RAD Studio XE4 Released?

2013-04-25 Thread Michael Schnell

On 04/25/2013 08:25 AM, Hans-Peter Diettrich wrote:
IMO we (FPC/Lazarus) should be prepared for providing a new home for 
desparate Delphi coders, ...
I think the current state in fact would offer a nice home for them, if 
there would not be the Unicode mess, that only will not take them aback 
when Delphi New Strings are fully supported (on all platforms) (and 
hopefully cleaned from some Delphi quirks and enhanced by some obvious  
features lacking in Delphi such as "RawWorsdStrings", RAWDwordString" 
and "CompletelyDynamic" String type variants ).


 Failing to encourage this move will force most current Delphi coders 
to use better supported development environments, most likely C#.


I don't think that it's viable to think about converting to C#. While it 
(being created by the same person)  in fact is a nice Variant of Delphi, 
I don't believe


And make them happy users of Eclipse ?!?!?!?! (I do use Eclipse for 
embedded projects in ANSI C: It's great, but needs a steep learning curve.)


-Michael

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


Re: [Lazarus] RAD Studio XE4 Released?

2013-04-25 Thread Michael Schnell

On 04/25/2013 08:25 AM, Hans-Peter Diettrich wrote:

IMO we (FPC/Lazarus) should be prepared for providing a new home for
desparate Delphi coders, ...
I think the current state in fact would offer a nice home for them, if 
there would not be the Unicode mess, that only will not take them aback 
when Delphi New Strings are fully supported (on all platforms) (and 
hopefully cleaned from some Delphi quirks and enhanced by some obvious 
features lacking in Delphi such as "RawWorsdStrings", RAWDwordString" 
and "CompletelyDynamic" String type variants ).



 Failing to encourage this move will force most current Delphi coders
to use better supported development environments, most likely C#.


I don't think that it's viable to think about converting to C#. While it 
(being created by the same person)  in fact is a nice Variant of Delphi, 
I don't believe it makes more sense to Java than to C#, and make them 
happy users of Eclipse ?!?!?!?! (I do use Eclipse for embedded projects 
in ANSI C: It's great, but needs a steep learning curve.)


-Michael

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


Re: [Lazarus] RAD Studio XE4 Released?

2013-04-25 Thread Hans-Peter Diettrich

Graeme Geldenhuys schrieb:

On 2013-04-25 07:25, Hans-Peter Diettrich wrote:
Well, slow and memory hungry may be, but portability is achieved to 
every .NET enabled platform.


WinForms is not 100% portable via Mono (last I checked). I wouldn't go
that route either because Microsoft will be on your case when it suits
them - and probably just when your product becomes successful.


Neither Mono nor DotGNU are implementations of whatever MS understands 
as .NET. The closed source .NET library prevents to use non-MS 
implementations for running .NET applications. CIL without .NET is less 
than FPC without Lazarus (or msegui...), a VM without a RTL :-(




But it isn't true that the new IDE is written in .NET,


I didn't mean the whole IDE. Just parts: help system, editor, form
designer, language tool in editor (like what CodeTools is). But that
sure makes it about 70% of what an IDE is.


Failing to encourage this move will force most current Delphi coders to 
use better supported development environments, most likely C#.


Java seems way more lucrative to me... The Java eco-system is massive,
and that also opens the doors to Android (which is also Java and the
biggest mobile platform). But that's just me thinking out loud.


In the Embarcadero groups I only read VS/C# as an alternative, nobody 
claims to move to Java.


DoDi


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


[Lazarus] Lazarus IDE access violation

2013-04-25 Thread Howard Page-Clark
Using the Lazarus IDE recently quite heavily simply as a well-featured 
text editor I get occasional Access Violation errors when invoking the 
Search and Replace dialog (whether via the menu, or via Ctrl-R).


Any hints about how I can run the IDE so that it logs enough information 
about the error that I could figure out how to reproduce it reliably, 
and submit a bug report?


Howard

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


Re: [Lazarus] Lazarus IDE access violation

2013-04-25 Thread Graeme Geldenhuys


On Thursday 25/04/2013 at 12:05, Howard Page-Clark  wrote:


Any hints about how I can run the IDE so that it logs enough 
information

about the error that I could figure out how to reproduce it reliably,


1) Compile the whole IDE with -gl

2) Pick one...
  2.1) Run the ide from the console, and pipe the output to a text 
file.

  2.2) Run the ide via gdb and request a backtrace after the crash


Cheers,
 - Graeme -

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


Re: [Lazarus] RAD Studio XE4 Released?

2013-04-25 Thread Graeme Geldenhuys




On Thursday 25/04/2013 at 10:39, Hans-Peter Diettrich  wrote:


In the Embarcadero groups I only read VS/C# as an alternative, nobody
claims to move to Java.



Then consider me the first. ;-)



Regards,
 - Graeme -

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


Re: [Lazarus] RAD Studio XE4 Released?

2013-04-25 Thread Michael Van Canneyt



On Thu, 25 Apr 2013, Michael Schnell wrote:


On 04/24/2013 11:09 PM, Graeme Geldenhuys wrote:
Because they had the brain fart to write the Delphi IDE in .NET, thus 
giving it the special features of being super slow, incredibly memory 
hungry and not portable to other platforms.

In fact .NET code is rather portable (using Mono)


With Miguel de icaza choosing for Apple, Mono will die slowly anyway :)

It can't happen soon enough as far as I'm concerned, I've never forgiven 
OpenSuSE their use of mono. :)


Michael.

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


Re: [Lazarus] RAD Studio XE4 Released?

2013-04-25 Thread vfclists .
On 24 April 2013 22:19, Graeme Geldenhuys  wrote:

> On 2013-04-24 16:54, leledumbo wrote:
> > The prerequisites
> > suck, REALLY REALLY SUCK (why do the hell they need .NET framework
> there?)
>
>
> I also forgot to mention the biggest laughing stock of them all... A
> full install with help just takes 45-60 minutes. WTF! Yeah, I heard them
> say that on todays XE4 Webinar. They now have an express install feature
> which takes 15 minutes, then you can start the IDE with basic
> functionality - it will then continue installing the remaining features
> in the background for another 30+ minutes. Oh boy!
>
> Long live Free Pascal, Lazarus and MSEide!
>
>
> Regards,
>   - Graeme -
>
>
If it is that slow they should just offer ready made virtual machines that
can be installed for testing, or create some Amazon images for it. The
Amazon part may be easier as the licensing is taken care of, but with local
virtual machines will that be an issue? Who wants to spend 2 hours
installing a piece of software, go though complicated licensing steps just
to discover its bugs?

This is why Linux rules.

-- 
Frank Church

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


Re: [Lazarus] RAD Studio XE4 Released?

2013-04-25 Thread Michael Schnell

On 04/25/2013 02:04 PM, Michael Van Canneyt wrote:


With Miguel de icaza choosing for Apple, Mono will die slowly anyway :)

It can't happen soon enough as far as I'm concerned, I've never 
forgiven OpenSuSE their use of mono. :)


If CIL would have been as successful as one might have assumed in the 
beginning (due to its technical benefits), due to politic (bad, closed 
up,  by Microsoft and good, rather open by Google and friends (tricking 
out Sun by the 16 Bit move), Java definitely did win and here we are. 
Thus Mono is not of much interest any more.


-Michael

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


Re: [Lazarus] RAD Studio XE4 Released?

2013-04-25 Thread Alexsander Rosa
Is Mono alive yet?

2013/4/25 Michael Schnell 

> On 04/25/2013 02:04 PM, Michael Van Canneyt wrote:
>
>  With Miguel de icaza choosing for Apple, Mono will die slowly anyway :)
>>
>> It can't happen soon enough as far as I'm concerned, I've never forgiven
>> OpenSuSE their use of mono. :)
>>
>>  If CIL would have been as successful as one might have assumed in the
> beginning (due to its technical benefits), due to politic (bad, closed up,
>  by Microsoft and good, rather open by Google and friends (tricking out Sun
> by the 16 Bit move), Java definitely did win and here we are. Thus Mono is
> not of much interest any more.
>
> -Michael
>
>

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


Re: [Lazarus] RAD Studio XE4 Released?

2013-04-25 Thread Michael Schnell

On 04/25/2013 03:39 PM, Alexsander Rosa wrote:

Is Mono alive yet?

Looks like:

http://news.mono-project.com/

-Michael

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


Re: [Lazarus] How to create a listbox that can be shifted

2013-04-25 Thread Jürgen Hestermann

Am 2013-04-25 09:40, schrieb zeljko:
> On 04/25/2013 09:34 AM, Sven Barth wrote:
>> So one might need to adjust the TListBox implementation to support this
>> as well (and I simply assume for now that the other widgetsets also
>> support a horizontal scrollbar in a list box...).
> Afair in lazarus TListBox.ScrollWidth := Canvas.textWidth(longeststring) 
works (at least with qt widgetset).

I think I played already with this but nothing changed (I set 
TListBox.ScrollWidth to arbitrary high values).

And even if it works, would I have to scan all string widths after each change 
to find the widest string and then set TListBox.ScrollWidth to it?
That would be very awkward.

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


Re: [Lazarus] Can not run in debug mode for WinCe

2013-04-25 Thread GREP
I ran this same project with Lazrus 0.0... for about a year.
The gdb was the same.
The problem is clearly with some settings/options in Lazarus.
There are *NO BLUE DOTS* in the compiledsource.The break points
show a question mark.
I have the D:\ in Other source. 
That workaround does not work here.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Can-not-run-in-debug-mode-for-WinCe-tp4030869p4031021.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] Can not run in debug mode for WinCe

2013-04-25 Thread Martin

On 25/04/2013 17:39, GREP wrote:

I ran this same project with Lazrus 0.0... for about a year.
The gdb was the same.
The problem is clearly with some settings/options in Lazarus.
There are *NO BLUE DOTS* in the compiledsource.The break points
show a question mark.
I have the D:\ in Other source.
That workaround does not work here.



I don't use  WinCE myself, so I can only be of limited help here. (I do 
know the debugger stuff)


Please generate and provide a log: 
http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Log_info_for_debug_session



In the debugger options is a property grid. One entry is 
InternalStartBreak. Please try, if changing this makes a difference. 
(try entry or main)




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


Re: [Lazarus] Can not run in debug mode for WinCe

2013-04-25 Thread Felipe Monteiro de Carvalho
Are you debugging with the emulator or a real device?

For me I used the emulator and followed the wiki instructions and it
all just worked. So maybe you should try the emulator if possible for
your project.

-- 
Felipe Monteiro de Carvalho

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


Re: [Lazarus] How to create a listbox that can be shifted

2013-04-25 Thread José Mejuto

El 25/04/2013 17:01, Jürgen Hestermann escribió:


I think I played already with this but nothing changed (I set
TListBox.ScrollWidth to arbitrary high values).
And even if it works, would I have to scan all string widths after each
change to find the widest string and then set TListBox.ScrollWidth to it?
That would be very awkward.



Hello,

That's exactly what the operative system do in autosize columns, but 
usually only in additions, so you only store the largest one and the one 
that would add, if the new one is larger, scroll is adjusted, if 
smaller, nothing is done until a full autosize is requested.


--


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


[Lazarus] Error writing to remote device (emulator)

2013-04-25 Thread GREP
Sorry if I doublepost. I had posted this in the forum.lazarus.freepascal, BUT
afterward I noticed
that the last post there (WinCE widgetset) was dated 11-April, and the
previous one dec-2012, so I assume it is kind of in a sleeping mode.

I am trying to run my app on the WM6.1 emulator, but I get this error:
(debugger output)
~"Uploading file to device: \\Storage Card\\app.exe\n"
&"error writing to remote device - 0.\n"
I use -eval-command="set remotedirectory \Storage Card" in
Tools->Options->Debugger.

My app is 22.6 Mb, band runs fine when I copy manually to the sharedforlder
and run directly form WM 6.1 emulator, but the debugger copies always 2.41
MB and then gets the error.
Any idea why?
I am using Lazarus 1.0.8, SVN Rev 40573.
The error came out of the blue ski.
I had just fixed some problems with  building the app correctly, and did run
fine a few times on the WM 6.1.
Then there it comes the error.
I even reset the emulator, re-booted the PC (XP). I ran out of ideas
Any Help?



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Error-writing-to-remote-device-emulator-tp4031025.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] Error writing to remote device (emulator)

2013-04-25 Thread Zaher Dirkey
Not related to your problem, but i use external debug file, it reduce the
size of exe and stay at your PC,

Be sure you can Explore files using ActiveSync


On Thu, Apr 25, 2013 at 10:33 PM, GREP  wrote:

> Sorry if I doublepost. I had posted this in the forum.lazarus.freepascal,
> BUT
> afterward I noticed
> that the last post there (WinCE widgetset) was dated 11-April, and the
> previous one dec-2012, so I assume it is kind of in a sleeping mode.
>
> I am trying to run my app on the WM6.1 emulator, but I get this error:
> (debugger output)
> ~"Uploading file to device: \\Storage Card\\app.exe\n"
> &"error writing to remote device - 0.\n"
> I use -eval-command="set remotedirectory \Storage Card" in
> Tools->Options->Debugger.
>
> My app is 22.6 Mb, band runs fine when I copy manually to the sharedforlder
> and run directly form WM 6.1 emulator, but the debugger copies always 2.41
> MB and then gets the error.
> Any idea why?
> I am using Lazarus 1.0.8, SVN Rev 40573.
> The error came out of the blue ski.
> I had just fixed some problems with  building the app correctly, and did
> run
> fine a few times on the WM 6.1.
> Then there it comes the error.
> I even reset the emulator, re-booted the PC (XP). I ran out of ideas
> Any Help?
>
>
>
> --
> View this message in context:
> http://free-pascal-lazarus.989080.n3.nabble.com/Error-writing-to-remote-device-emulator-tp4031025.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
>



-- 
I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3

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


Re: [Lazarus] Error writing to remote device (emulator)

2013-04-25 Thread GREP
This is a real pain in the neck.
Google-searching for "error writing to remote device" gives only the source
code of the gdb.
And since the complete line is "error writing to remote device - 0", it
seems
that Cegetlasterror() returns 0.
But what may cause the gdb copying to stop as soon as it has copied
2.41 MB? Is it something in  the Device Manager/Emulator, or something
in the Lazarus settings/option? 
As I said it is a real pain





--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Error-writing-to-remote-device-emulator-tp4031025p4031027.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] Something is unstable....

2013-04-25 Thread GREP
I recompiled the lazarus itself with "Clean all" option.
I recompiled my app eliminating the -eval comma "set remote directory..."
I ran it and it crashed (b/c of storage memory shortage)
I re-instated the -eval command, and now I see the blueish dots in the code,
the app.exe 
is indeed copied in its entirety to the storage card, BUT before it is
loaded 
in the WM 6.1 emulator, I start to see these errores:

Project raised exception class RunError 201
in file \wince\wincewinapi.inc at line 3036
Then Range check error same file, same line.
The file is lazarus\lcl\interfaces\wince\wincewinapi.inc, the line is:
 // We get some information before calling SetScrollInfo because it changes
  // the GWL_STYLE under Windows CE
  dwStyle := GetWindowLong(Handle, GWL_STYLE);

The debugger output shows also

&"info line \"D:\\hd\\unit101.pas\":174\n"
&"No source file named D:\\hd\\unit101.pas.\n"
VERY STRANGELY b/c now the breakpoint line shows the ok sign, not the ?.
And all lines of code show the blue dot. and of course the unit101 exists

These are the option/settings: 

 

 

 

 

 



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Something-is-unstable-tp4031028.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