Re: [lazarus] arm-linux

2007-08-08 Thread Tony Maro
On Mon, 2007-08-06 at 09:55 +0100, Henry Vermaak wrote:

> which version of fpc are you using?  my lcl compiles fine for gtk2 and
> arm with 2.3.1.  whether it works or not is another story...


FPC 2.0.4 - the standard "stable packages" for installing posted on the
Lazarus site March 27th along with 0.9.22 of Lazarus



Re: [lazarus] arm-linux

2007-08-03 Thread Tony Maro
On Fri, 2007-08-03 at 17:52 +0200, Luca Olivetti wrote:


> 
> > 
> > On that note, it still won't find libglib.  On the device is only 
> > libglib-2.0.so so I assume ppcarm is trying to link to libglib-1.2 or 
> > some such...
> 
> Try compiling for gtk2 instead of gtk1. Or find gtk1 libraries for the 
> n800 and install them.


GTK2 won't compile in Lazarus... I didn't realize the n800 was GTK2 -
all the docs I've seen mention "GTK Toolkit" and don't specify.

Building the LCL for GTK2 for ARM result sin "Internal error 200408162"
at line 277 of gtkwscomctrls.pp.

The line reads:
gtk_progress_configure(GTK_PROGRESS(Pointer(Pointer(wHandle))),Position,Min,Max);

I tried the good old trick of just hitting "Build" again (took off build
clean) but it still generates the same FPC internal error.



Re: [lazarus] arm-linux

2007-08-03 Thread Tony Maro
On Fri, 2007-08-03 at 10:29 -0400, Tony Maro wrote:

> On Fri, 2007-08-03 at 11:45 +0200, Luca Olivetti wrote: 
> 
> > 
> > If you're cross-compiling, you need the target libraries at hand and 
> > specify the path with -Fl, then add -Xr with the path of the libraries 
> > on the target, e.g.:
> > ppcarm -Fl/directory/with/target/libraries 
> > -Fl/other/directory/with/target/libraries -XParm-linux- -Xd 
> > -Xr/lib:/usr/lib test.pas
> > 
> 
> 
> Aha!  I've copied the /lib directory off the device and onto my
> desktop.
> 
> It still wouldn't find it.  There was no link from libpthread.so to
> libpthread.so.0.  I made that link and it worked.
> 
> If I do this, is the app going to require those .so links to .so.0 on
> the device?  If so that's a problem... is there any way around this?


On that note, it still won't find libglib.  On the device is only
libglib-2.0.so so I assume ppcarm is trying to link to libglib-1.2 or
some such...



Re: [lazarus] arm-linux

2007-08-03 Thread Tony Maro
On Fri, 2007-08-03 at 11:45 +0200, Luca Olivetti wrote:

> 
> If you're cross-compiling, you need the target libraries at hand and 
> specify the path with -Fl, then add -Xr with the path of the libraries 
> on the target, e.g.:
> ppcarm -Fl/directory/with/target/libraries 
> -Fl/other/directory/with/target/libraries -XParm-linux- -Xd 
> -Xr/lib:/usr/lib test.pas
> 


Aha!  I've copied the /lib directory off the device and onto my desktop.

It still wouldn't find it.  There was no link from libpthread.so to
libpthread.so.0.  I made that link and it worked.

If I do this, is the app going to require those .so links to .so.0 on
the device?  If so that's a problem... is there any way around this?

Thanks,
Tony


Re: [lazarus] arm-linux

2007-08-03 Thread Tony Maro
> > Now I'm stuck on:
> > 
> > Compiling project1.lpr
> > Assembling project1
> > Linking project1
> > /usr/local/bin/arm-linux-ld: cannot find -lpthread
> > project1.lpr(19) Error: Error while linking
> 
> AFAIK the linker isn't able to link your program against "libpthread.so"
> because it is not found.
> 
> You could search it ("ldconfig -r|grep pthread" on my OS) and then give
> the full path to ld with something like:
> 
> ppcarm  -k-L
> project1.lpr



I did a search on the device and find /lib/libpthread.so.0 on it.

Should I copy these off the device and onto my development machine for
linking?  Or is it sufficient to link to the one my desktop 386 has
at /lib/ ?

-Tony


Re: [lazarus] arm-linux

2007-08-02 Thread Tony Maro
On Thu, 2007-08-02 at 18:51 -0400, Tony Maro wrote:

> I created a simple console app and ran the following at a command
> line:
> 
> ppcarm -Xd -Sd -XParm-linux- project1.lpr
> 
> Worked like a charm.
> 
> Placing those options in the "additional options" for the compiler
> options in Lazarus also works, though setting processor to "arm" and
> os to "linux" didn't do it for me.  I have no clue what those params
> mean - copied it off a website.
> 
> I'm unclear of how to get the LCL built for ARM... if I try this to
> build any GUI app, it won't link, complaining about an incompatible
> crtbegin.o


Well I got past that with a few #ifdef in the fpc.cfg.

Now I'm stuck on:

Compiling project1.lpr
Assembling project1
Linking project1
/usr/local/bin/arm-linux-ld: cannot find -lpthread
project1.lpr(19) Error: Error while linking



[lazarus] arm-linux

2007-08-02 Thread Tony Maro
I've compiled my first console program for arm-linux and ran it on my
Nokai n800 tablet.

I downloaded arm-linux-fpc-2.0.4.i386-linux.tar from ftp.freepascal.org
and installed it.

I created a simple console app and ran the following at a command line:

ppcarm -Xd -Sd -XParm-linux- project1.lpr

Worked like a charm.

Placing those options in the "additional options" for the compiler
options in Lazarus also works, though setting processor to "arm" and os
to "linux" didn't do it for me.  I have no clue what those params mean -
copied it off a website.

I'm unclear of how to get the LCL built for ARM... if I try this to
build any GUI app, it won't link, complaining about an incompatible
crtbegin.o

Trying to compile the same graphical app at a command line complains it
can't find Interfaces.

Can anyone point me in the next direction?


Re: [lazarus] Nokia N800

2007-07-30 Thread Tony Maro
On Mon, 2007-07-30 at 15:35 +0200, Marc Weustink wrote:

> Tony Maro wrote:
> > Anyone tried building a Laz app for the Nokia N800 yet?  Is this possible?
> > 
> > http://en.wikipedia.org/wiki/Nokia_N800
> > 
> > It uses the OMAP2420 processor.
> > 
> > Apparently it's possible to get FPC running on the predecessor, the 770:
> > http://www.internettablettalk.com/forums/showthread.php?t=1846
> 
> Both are arm based so generating some code might work. If it is the 
> right code, i don't know :)


Well, I decided to go ahead and order one from Amazon - It's only $400
with a 2 GB card, case and screen protectors, so it's cheaper than the
PocketPC I'll be replacing with it.

So I guess I'll be the official tester ;-)

I just couldn't pass up owning a Linux based handheld.

-Tony



Re: [lazarus] Nokia N800

2007-07-30 Thread Tony Maro
Geez, Can I not spel?  Dunno where Nokay came from in the subject
line...


On Mon, 2007-07-30 at 07:40 -0400, Tony Maro wrote:

> Anyone tried building a Laz app for the Nokia N800 yet?  Is this
> possible?
> 
> http://en.wikipedia.org/wiki/Nokia_N800
> 
> It uses the OMAP2420 processor.
> 
> Apparently it's possible to get FPC running on the predecessor, the
> 770:
> http://www.internettablettalk.com/forums/showthread.php?t=1846
> 
> 
> Thanks,
> Tony


[lazarus] Nokay N800

2007-07-30 Thread Tony Maro
Anyone tried building a Laz app for the Nokia N800 yet?  Is this
possible?

http://en.wikipedia.org/wiki/Nokia_N800

It uses the OMAP2420 processor.

Apparently it's possible to get FPC running on the predecessor, the 770:
http://www.internettablettalk.com/forums/showthread.php?t=1846


Thanks,
Tony


Re: [lazarus] What about a Lazarus church to raise money?

2007-07-30 Thread Tony Maro
On Mon, 2007-07-30 at 11:23 +0200, Michael Van Canneyt wrote:

> 
> On Sun, 29 Jul 2007, Tony Maro wrote:
> 
> > I second it.  All in favor?  Aye.  Motion carries.
> > 
> > Now, on the the board of director's elections...
> 
> Congratulations. You are appointed CEO. 
> 
> We expect a website, paypal account and yearly balances.
> Deadline: next week monday.
> 
> ;-)


Darn, it's Monday and I didn't hit the deadline.  Do I get fired? ;-)

Thankfully we already have a website.  Paypal... that takes 6 weeks for
a non-profit, doesn't it?  Yearly balances are easy: "not enough."


Re: [lazarus] What about a Lazarus church to raise money?

2007-07-29 Thread Tony Maro
I second it.  All in favor?  Aye.  Motion carries.

Now, on the the board of director's elections...

On Mon, 2007-07-30 at 10:41 +1000, SteveG wrote:

> fully support this idea
> 
> Giuliano Colla wrote:
> 
> > My company badly needs Lazarus. Therefore it could pay some money in 
> > order to support it, and contribute to keep the Lazarus project alive. 
> > From the postings in this mail list I believe that many others are in 
> > a similar condition.
> >
> 
> _
>  To unsubscribe: mail [EMAIL PROTECTED] with
> "unsubscribe" as the Subject
>archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Wow, Kudos to the GTK2 team whoever you are! (one caveat)

2007-07-24 Thread Tony Maro
On Tue, 2007-07-24 at 12:14 -0400, Tony Maro wrote:

> On Tue, 2007-07-24 at 11:48 -0400, Tony Maro wrote:
> 
> > I did however have one form that if I showed it modal, closed it,
> > and showed it modal again would crash the app.  I changed it to
> > dynamically create the form just prior to showing it to fix the
> > problem.
> 
> 
> Something else, I seem to get left mouse button messages twice for
> every click.
> 
> Using:
> 
>   procedure WMLMButtonUp(var Message: TLMLButtonUp); message
> LM_LButtonUp;  
> 
> It calls this procedure twice for every right mouse release.  GTK+
> only does it once, so I don't think it's my code.


False alarm - already fixed with the latest CVS I see.  I was running
the last "stable" download.


Re: [lazarus] Wow, Kudos to the GTK2 team whoever you are! (one caveat)

2007-07-24 Thread Tony Maro
On Tue, 2007-07-24 at 11:48 -0400, Tony Maro wrote:

> I did however have one form that if I showed it modal, closed it, and
> showed it modal again would crash the app.  I changed it to
> dynamically create the form just prior to showing it to fix the
> problem.


Something else, I seem to get left mouse button messages twice for every
click.

Using:

  procedure WMLMButtonUp(var Message: TLMLButtonUp); message
LM_LButtonUp;  

It calls this procedure twice for every right mouse release.  GTK+ only
does it once, so I don't think it's my code.


[lazarus] Shift+Tab doesn't work as expected?

2007-07-24 Thread Tony Maro
Tab through components on a form works fine.  Shouldn't shift-tab go
backwards through the same list?  Mine jumps around just the buttons on
the form with shift+tab and skips most of the text boxes.

Yes, I've set my taborder correctly.

Tested and got the same results with both GTK+ and GTK 2.  Can't test
Win32 at the moment.

-Tony


[lazarus] Wow, Kudos to the GTK2 team whoever you are!

2007-07-24 Thread Tony Maro
I've finally got "The ORIGINAL Lazarus built application" (TM) (hehe) --
originally started in June of 2002 -- built and running in the latest
stable Lazarus.  It hasn't been compiled on a recent Lazarus in
something like three years.  It's amazing how many changes there have
been to the unit structure, LCL and FPC itself.

And, it compiled and ran just the same in GTK 2, so I'm excited to be
able to release a GTK 2 version of it!  The only interface change I had
to make was making some of the buttons slightly larger to accommodate a
pretty standard GTK 2 theme.  And I must say, the fonts are gorgeous.

I did however have one form that if I showed it modal, closed it, and
showed it modal again would crash the app.  I changed it to dynamically
create the form just prior to showing it to fix the problem.

I still have some cleanup work to do, and rewrite all the sound code so
that it will function again, so it will probably be another week or so
before I actually release an update.  But, I think I'll try balancing my
checkbook with the new version tonight just to see how it does.

-Tony


Re: [lazarus] Shift+Tab doesn't work as expected?

2007-07-24 Thread Tony Maro
On Tue, 2007-07-24 at 11:27 -0400, Tony Maro wrote:

> Tab through components on a form works fine.  Shouldn't shift-tab go
> backwards through the same list?  Mine jumps around just the buttons
> on the form with shift+tab and skips most of the text boxes.
> 
> Yes, I've set my taborder correctly.
> 
> Tested and got the same results with both GTK+ and GTK 2.  Can't test
> Win32 at the moment.


Scratch that - I can't reproduce it on a fresh form.  It's gotta be
related to the form design itself in my app somehow, but if forward
tabbing works I can't see why backwards tabbing wouldn't.

Of course this is CheckBook Tracker, which I started writing back before
the Lazarus form designer was stable ;-)  It's a hodge podge of
workaround through the ages to make things work with a broken Lazarus or
a broken FPC (or my own broken code for that matter!)

-Tony


Re: [lazarus] Odd text file problem

2007-07-24 Thread Tony Maro
On Tue, 2007-07-24 at 17:33 +0200, Michael Van Canneyt wrote:



> Try a strace of your program:
> strace -o log.txt ./myprogram
> 
> After execution, you can open the log.txt file, and you should see somewhere
> a line:
> open("/tmp/cbtrack.ps",SOME OPTIONS) = 
> (grep for the filename) if this line is not present, then the rewrite call 
> was not
> executed. If the line is present, then the return value should give you an
> idea of the error.


Aha!  Much help there, thanks!  Turns out I was using a TProcess to
launch the viewer, and once it's viewed it deletes the temp file.

Problem is, TProcess wasn't waiting for the viewer to close, and it
deleted the temp before gv was even done launching.  I was banging my
head against the wall on that one...

Thanks,
Tony


[lazarus] Odd text file problem

2007-07-24 Thread Tony Maro
I'm updating CBT to compile with the latest Lazarus and I'm having
problems with my file generation routine from inside a component.

It calls:

procedure TChkPrinter.PrintChecks;
var
MyFile: TextFile;
FileName: String;
// extraneous info removed
begin
// more extraneous info removed
Filename := '/tmp/cbtrack.ps';
AssignFile(MyFile, FileName);
rewrite(MyFile);
writeln(MyFile, '%!PS-Adobe-3.0');
writeln(MyFile, '%%Creator: CBT');
writeln(MyFile, '%%Title: Checks');
writeln(MyFile, '%%Pages: (atend)');
writeln(MyFile, '%%PageOrder: Ascend');
writeln(MyFile, '/AvantGarde-Book findfont');  

// more extraneous info removed
closefile(MyFile);
end;

The problem is there is no error, and it does NOT create the file.  I've
tried various paths, I've pasted this code into a new form and it works
fine.

How can I figure out what's (not) going on if there's no error
generated?

-Tony


[lazarus] IDE dialog position question and the IDE

2007-07-23 Thread Tony Maro
I run dual monitors, with a desktop size of 2560x1024

Nearly every "dialog" used by Lazarus is set poDesktopCenter, which
splits right down the middle of my two monitors, leaving half the dialog
on each monitor.

Is there anything that can be done to change this?  Almost every piece
of Linux software I run that pops up a centered dialog centers it to one
monitor or the other automatically...  Windows is another story, I can't
get a darn thing to not bridge the center of the screen in Windows lol.

I've tried every window position known to man with a test form...

poDesktopCenter and poScreenCenter both do the same thing for me in both
GTK1 and GTK2.  They place the form centered vertically and pushed up
against the edge of the screen at the split, but it doesn't split across
both screens.  So, for a window, I am unable to reproduce what's
happening with the IDE.

Dialogs I open such as showmessage() still bridge the center.

-Tony


[lazarus] New component: TMMobileBar

2007-07-21 Thread Tony Maro
So I got a wild hair today and did something I've been wanting to do for
a while.

I was inspired by this screenshot of possible MID's (Mobile Internet
Devices) that run Linux:
http://www.linuxdevices.com/files/misc/intel_redflag_MIDinux_UI.jpg

I liked the nav bar on the middle screenshot, and decided to replicate
the feel of it in a Lazarus component.  I designed the component to work
with touch screens, so you can click and drag to slide around the bar,
but no mouseover events are used.  It's a TPanel descendant that lets
you load graphical buttons onto it.  The buttons can be any width or
height, and don't have to be uniform:

http://tony.maro.net/ossramblings/tmmobile.php

Captions are optional and you can make it any size.  The screenshots
don't really do it justice - you have to drag the bar around to get the
full experience.

Is anyone doing PocketPC devel out there?  This would be a great gadget
for it.  You could use it like I did as a launcher, but it could easily
display thumbnails of images for an image viewer, even for desktop PC's.
The background colors are customizable.

I'm excited, because if any MID's are actually released that run Linux
and have GTK, Lazarus would be an awesome development environment for
new applications!

-Tony


[lazarus] Working on my components again

2007-07-21 Thread Tony Maro
I got a Google Alert that said someone was having trouble finding my
components for Lazarus.  I changed my blog software and never finished
migrating all my old links over.

I've just thrown up the first page that posts my tmpack of components:

http://tony.maro.net/ossramblings/tmpack.php

It's been slightly modified since the old version, mostly to be
compatible with the latest Lazarus.  I have _not_ tested every component
under the latest Lazarus yet, so there may be issues.

I'll be putting up the rest of my stuff soon.  The original files are
all still there, but there's no links on my site for downloading them
yet.

My next step is to fix the CheckBook Tracker components (for CBT version
1) to work in the latest Lazarus, and fix a few user interface issues in
CBT 1 that have annoyed me.  I doubt I'll have time yet to continue work
on CBT 2, but maybe this will be a good holdover.  I'll also plan to
make CBT more cross platform with this next release so it will compile
in Windows (and maybe OSX) without major hassle.

-Tony Maro


[lazarus] Contract Lazarus work - USA based

2007-05-29 Thread Tony Maro
Hey Laz lister's:

Anyone in the USA interested in some contract work on TruckBytes
(truckbytes.com) which is entirely Lazarus developed?

We have a very specific version of FPC + Lazarus that it must be
developed on - as usual someone moved my cheese and the code won't
compile in the latest version without some significant changes.

Experience with Micha's TDbf and the synaptic TCP toolkit a plus.

Send resume's and/or portfolio to:

[EMAIL PROTECTED]

-Tony Maro


Re: [lazarus] Database programming

2006-09-07 Thread Tony Maro




On Thu, 2006-09-07 at 17:16 -0400, Adrian Maier wrote:


For example, joining manually 4 tables with sums and 'group by'  is not fun at
all, compared to executing a simple sql query .  It would have been a huge
pain to generate the reports in my applications without a SQL engine !




Absolutely!  LOL  I'm working on a LAMP app right now that would never run on something without significant SQL support - at least not in any sort of development schedule I'd be willing to live with.



> As a producer of commercial software for non-technical end-users, I'd never
> consider producing a MySQL, Firebird or MsSQL application.

Aren't most of the applications made for non-techincal users (except from
compilers, IDEs and other development tools)   ?  :-)




There's non-technical with IT support, and then there's truck drivers. ;-)



> The end-user level of expertise is too high for my market.  With TDbf I only have
> to let the user pick a directory to store the data in, and provide an easy way to
> do backups.

What extra actions should the end-users perform if the application uses sqllite
or embedded-firebird ?   If would be even cleaner because the database
is a single
file instead of a directory full of dbf and ndx files.



I must state I've never used sqllite or embedded firebird.  My issue with firebird is the additional libraries you must install - which isn't a big deal in Windows, but due to dependency hell I stay away from anything requiring extra's.  Does sqllite require extra libraries?  One of my key enjoyments of TDbf is that there's nothing else, it's all implemented within the Pascal code.  I never have to think about if libraries registered properly or something in the OS overwrote my version with a newer or older version.  This also reduces end-user tech support issues in my experience.  But again, keep in mind I'm talking about a single-user application compiled for both Windows and Linux.

The other DB devel I do is almost all what I would call an "application appliance" - a LAMP rack mounted unit with entirely a web based interface.  On that note I'd LOVE to see a series of Lazarus frameworks for implementing an Ajax application...  That stuff is hard to code!

-Tony




Re: [lazarus] Database programming

2006-09-07 Thread Tony Maro




On Thu, 2006-09-07 at 09:23 +0200, Michael Van Canneyt wrote:



I will invite you to pay some visits to schools where they use a administration 
system, based on DBAse files on a network share. The first rule is: only 1 user 
can edit a given table at a certain time. Failure to comply with this rule results
in corrupted DBase files.

For correctness, I must also say that the applications are not written using Delphi, 
but using FoxPro.



I've written Delphi apps with Paradox for 5 user access over the network.  As I recall there were originally registry hacks you had to apply to Windows to keep the file locking working properly and prevent corruption.  I'm not sure if that's still the case.

-Tony




Re: [lazarus] Database programming

2006-09-07 Thread Tony Maro




On Wed, 2006-09-06 at 23:55 -0700, Adrian Maier wrote:




If you start a new application, I see no reason not to use something
better  -  that supports goodies like transactions and SQL .  For a
new stand-alone application I'd choose embedded-firebird with no
hesitations. If  later it is decided to make the application multi-user, the
change to the client-server version of firebird would be easy.



Its a question of the right tool for the job, not a question of is a screwdriver superior to the hammer.  Each tool fits a different use.

I'd use TDbf for a networked 5 user LAN environment, but if you want something that works under more latency, for instance over the Internet, or if you have more users you'll probably want a client-server transaction based DB model.

If you want a single user application (or a few networked users) that is database enabled and doesn't require the end-user to know how to set up a database server, then products like TDbf are the answer.

This discussion seems reminiscent of old discussions over networked use of Paradox versus going with... what was the C/S database engine Borland supplied?

So if you want to compare TDbf you'd compare it against text-file based database engines, Paradox, dBase components, etc.  Other than the possibility of porting an old open-sourced text-file database engine for Delphi, I think TDbf is probably unique in it's class for Lazarus support.

As a producer of commercial software for non-technical end-users, I'd never consider producing a MySQL, Firebird or MsSQL application.  The end-user level of expertise is too high for my market.  With TDbf I only have to let the user pick a directory to store the data in, and provide an easy way to do backups.

On the topic of embedded firebird, I've never used it in Lazarus (is it even available and stable in Lazarus?) but the comment on their website "The embedded runtime is < 2 MB" is reason enough for me to stick with TDbf.  My total app with TDbf is smaller than that.

-Tony





Re: [lazarus] Database programming

2006-09-05 Thread Tony Maro




On Tue, 2006-09-05 at 22:32 +0200, Micha Nelissen wrote:


Michael Van Canneyt wrote:
> Nevertheless, it would be better to use an engine such as Firebird, because
> it is scalable. Projects using DBase files or so are not scalable.

Not scalable ? In what way ?

TDbf rulezzz ;-)



Says the author... lol.

Actually though, I'm running a TDbf based app with around 300,000 records total (across multiple tables) and performance is excellent.

The real problem in scalability is that it's not a true transaction based system, and if your app or PC crashes it has a tendency to corrupt the database.

But, for an individual application needing to store data it's wonderful!  If you're looking for multi-user with multiple database server backends, it's not the product for you.

-Tony




Re: [lazarus] Trying to make TScrollingWinControl more useful...

2006-09-01 Thread Tony Maro




On Fri, 2006-09-01 at 19:19 +0200, Mattias Gaertner wrote:



> I've done that... inherit from TScrollingWinControl that is.  The
> check register component in CheckBook Tracker used that method.  I
> needed a scrolling win control, but needed the scrollbar to handle
> many thousands of entries, and I wanted to custom draw the entire of
> the window based on the scroll position.  The default component
> always sized the scrollbar wrong, and wouldn't truly scroll from zero
> to the end - it would never go to the edges of the range.

Maybe this because of the 32767 limit?

 


Well, there was that too, but even before that I ran into glitches.  Of course let's remember I wrote that... wow, 3 years ago.  Things may have changed a bit since then.

I ended up doing my own descendant of TCustomScrollingWinControl, copying across much of the original implementation, and screwing with the scrollbars by manually overriding the messages.

-Tony




Re: [lazarus] VersionInfo - How to set "SomethingHasChanged"? (fwd)

2006-09-01 Thread Tony Maro




Yes, you must make sure you send them from the address you signed up with.  Your "From" address was different on the first one from the looks of it.

On Fri, 2006-09-01 at 18:21 +0200, Jouke Rensma wrote:


Somehow I cannot get this mail through. Maybe this one??? 


 -- Forwarded message --
From: [EMAIL PROTECTED]
To: "lazarus@miraclec.com" 
Subject: VersionInfo - How to set
 "SomethingHasChanged"?
Date: Fri, 01 Sep 2006 13:16:44 +0200 


Hi, 

I'm still working on the VersionInfo and I'm getting closer! This thing I 
cannot really find how to do: 

I have some parameters in the ProjectOptions. I want them to be saved in the 
lpi file. I've added the statements for doing that in the WriteProject 
routine. This works fine when you click Save or Save All, but how can I 
force this save on closure (of Lazarus)? 

I've seen something like "SomethingHasChanged", but my guess is that there 
is a better way... 

Thanks!
Jouke 


_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives






Re: [lazarus] Trying to make TScrollingWinControl more useful...

2006-09-01 Thread Tony Maro




On Fri, 2006-09-01 at 12:49 -0300, Flávio Etrusco wrote:




Again, I can't see any use for overriding/inheriting from
TControlScrollbar... One would have to inherit the control from
TScrollingWinControl and use quite some hacks to be able to change the
instance of the scrollbars to new one...



I've done that... inherit from TScrollingWinControl that is.  The check register component in CheckBook Tracker used that method.  I needed a scrolling win control, but needed the scrollbar to handle many thousands of entries, and I wanted to custom draw the entire of the window based on the scroll position.  The default component always sized the scrollbar wrong, and wouldn't truly scroll from zero to the end - it would never go to the edges of the range.

I found the built-in scrollbars for TScrollingWinControl to be totally useless for anything other than scrolling a canvas.

-Tony




[lazarus] Windows 2003 Server

2006-08-30 Thread Tony Maro




I just installed a snapshot of the Windows Lazarus with FPC on a Windows 2003 Server.

Everything installed fine and Lazarus started with a blank project, but when I try to open an existing project it will invariably crash.

It's always "Access violation" and happened to me on both TGroupbox and TNotebook.

I installed the same Lazarus image on an XP Pro box and opened the same projects with no error.

Is this a known issue?

Thanks,
Tony




Re: [lazarus] Apologies

2006-07-05 Thread Tony Maro




On Wed, 2006-07-05 at 17:28 +0300, Ewald Horn wrote:


Ok,

maybe I should just dump Thunderbird and get over it.



I used Thunderbird for probably 2 years until last month when I installed an Exchange server at the office.  Then I switched to Evolution.  The new Evolution is nice, but the trouble you are having is simply configuration issues with T-Bird, not a problem with the app.

My install did not default HTML mail OR receipt requests, so I can't say why yours did.

I loved the spam filters in Thunderbird, and the PGP / GPG support is the best around.

-Tony




Re: [lazarus] Function to parse valid CSV string?

2006-06-05 Thread Tony Maro
Alexandre Leclerc wrote:
> I checked arround to see if there was a function to parse a valid CSV
> string and return the result in a array?
>
> procedure DecodeCSV(s: string; var a: array of string);
>
> So a string like:
> 123, my name, "name, my", "just ""more"" text"
>
> would return in an array:
> [ '123' , 'my name' , 'name, my', 'just "more" text' ]
>
Maybe this will help.  It's probably pretty nasty code so I should be
embarrassed for posting it.  It does work for me however.

Instead of returning an array, I ask for a specific field position,
providing the complete CSV line, and it returns the contents of the
field.  It also is able to detect if a field was too small - something
specific to my project that could be removed (ala ShortFields.)  This
assumes the American / Microsloth method of comma-quote delimited which
I've recently learned is not all that standard.

It also won't handle lines greater than 500 characters by design... so
keep that in mind.

function GetField(AData: String; AField: Integer; var shortfields:
Boolean): String;
var
  TempStr: String;
  Quote1Pos, Quote2Pos, SepPos: Integer;
begin
  // give a field number, return the contents
  ShortFields := False;
  TempStr := AData;
  while AField > 0 do begin
// skip over a field...
if copy(TempStr,1,1) = '"' then begin
  TempStr := copy(TempStr,2,500); // drop the quote
  TempStr := copy(TempStr,pos('"', TempStr)+1,500); // drop to the
next quote
end;
TempStr := copy(TempStr,pos(',',TempStr)+1,500);
AField := AField - 1;
if length(TempStr) < 2 then begin
  shortfields := True;
  result := '';
  exit;
end;
  end;
  // grab the data...
  if copy(TempStr,1,1) = '"' then begin
TempStr := copy(TempStr,2,500); // drop quote
TempStr := copy(TempStr,1,pos('"',TempStr)-1);
  end else begin
TempStr := copy(TempStr,1,pos(',',TempStr)-1);
  end;
  Result := TempStr;
end; 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Not quite sure about if then construction

2006-05-27 Thread Tony Maro
John Meyer wrote:
> if i_Error <> 0 then
> begin
> d_SalesTax := 0;
> end;
>  else  <---line that is giving me the error
>  if d_SalesTax > 0 then
>  begin
> d_SalesTax := d_SalesTax / 100
>  end;
Actually, here's the line giving the error:

if i_Error <> 0 then
begin
d_SalesTax := 0;
end; <---line that is giving me the error
 else 

Remove the semicolon before else.

What you're saying is:

if [something] then {block};
else

What you should be saying is:
if [something] then {block} else {block};

Common mistake.  Keep in mind that the semicolon goes at the end of a
complete statement.  In this example your complete statement INCLUDES
the else keyword, so it's semicolon goes after that.

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Little Startup help under Linux

2006-05-26 Thread Tony Maro
Alexander Peters wrote:
> Thanks a lot Tony,
> i will try it and hope i can solve it. Its weekend so i have many time
> to test it.
One more caution for you.  Ubuntu / Kubuntu doesn't install many devel
libraries by default.  When you go to compile Lazarus the first time you
are likely to get many errors regarding linking to libraries.  Use the
Synaptic package manager (it should be there by default for Kubuntu) to
find the missing packages and install them.  For instance, you will need:

libgdk-pixbuf-dev

But it will complain about "gdk-pixbuf" not linking if you don't have
it.  The above package solves that.  You can generally find what devel
library is missing when you try to compile Lazarus if you look at the
FIRST error in the long list of errors and warnings when you try running
Make.

You'll probably also need to install:

libgtk1.2-dev
libglib1.2-dev
libx11-dev
libxi-dev
libxext-dev
libxau-dev

and any other packages that Synaptic suggests when you choose these.

I know all this from experience... I'm running Ubuntu 5.10 for i386 on
all my devel machines.

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] A little off-topic, but...

2006-05-26 Thread Tony Maro
Arí Ricardo Ody wrote:
> I know that the question below if out of the matter of this list, but
> if one of you would solve this trouble before, maybe, can give me some
> aid.
>
> I do a fresh installation of Mandriva 2006 over Mandrake Community 10.1
>
> After some minutes I receive the message:
>
> Message from [EMAIL PROTECTED] at Wed May 24 22:47:45 2006 ...
> localhost kernel: Disabling IRQ #11
Try  "procinfo"

Whatever package you need that has that, I have no idea.  In Debian the
package is "procinfo".

That shows you what is using what IRQ's and more.

Wasn't IRQ 11 commonly used with sound cards?  Do you have working sound?

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Little Startup help under Linux

2006-05-26 Thread Tony Maro
Alexander Peters wrote:
> Hello Mailinglist!
> I?am a Windows Developer and want to check Linux (Kubuntu) and coding
> under Linux (Lazarus) know i want to download it and find serval RPMs.
> Now i dont know which RPM i need to install. Is it right that i need
> the lazarus-0.9.14-1.i386.rpm and the fpc-2.0.2-0.i586.rpm?
Possibly neither.  Kubuntu is Debian based, so you'll want to either
install binary packages or use .deb files if possible.  I've seen
sporadic reports of alien having trouble with converting the .rpm files
to .deb for use in Ubuntu/Kubuntu and other Debian derivatives.

If you DO use those two packages, you'd first use "alien" to convert
them to .deb files, then install those.

You could also download the FPC binary installer and source for Linux:

http://sourceforge.net/project/showfiles.php?group_id=2174

Extract the tar file using your favorite tool, or at the console with:
tar -xvf fpc-2.0.2.i386-linux.tar
(You'll want it already in a new folder before you start.)

Once extracted, do this:
sudo ./install.sh

That will install the FPC binaries, and I believe will create the
default /etc/fpc.cfg file for you as well, so you will be ready to go
afterwards.

After installing FPC binaries, get the Lazarus source and compile it. 
You'll need the FPC sources to match your compiler for Lazarus to work
properly, just like in Windows.

Others might disagree.  I'm sure it seems like a bit much, especially if
you aren't that familiar with Linux, but you'll learn a lot in the
process too.

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Focus problem -- where is it handled in the lcl?

2006-05-19 Thread Tony Maro
Alexandre Leclerc wrote:
> 2006/5/18, Mattias Gaertner <[EMAIL PROTECTED]>:
>> On Thu, 18 May 2006 14:08:19 -0400
>> "Alexandre Leclerc" <[EMAIL PROTECTED]> wrote:
>>
>> > Ok, can someone point me where the focus events / mouse click events
>> > and all that low level stuff for visual components (including forms)
>> > are handled in the source files?
>>
>> TControl, TWinControl, TCustomForm and the widgetsets.
>
> Just a question like that... what must I understand by widgetsets? The
> buttons, panels, etc?
>
Alexandre, keep in mind that Lazarus is designed to be cross-platform. 
Each operating system handles focus a different way, and in Linux, each
window manager handles focus a different way making it even more
complex.  That's why it's separated from the actual component and in the
"interfaces" portion - to abstract the OS specific code from the typical
developer's code.

With Lazarus designed to compile the same code for Windows, Linux, OSX
and more, it's much more complex.

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Re: Lazarus File bigger then Delphi File?

2006-05-17 Thread Tony Maro
Mattias Gaertner wrote:
> Won't help. For example at the moment the gtk callbacks use case statements
> with all kind of controls. This must be improved.
>
>  
>   
>> LCL adds some things, like being able to load a form from XML. This
>> requires a parser, and parsers are big, so this adds size to software.
>> 
>
> True. But this makes less than 5% of the code.
>
>
>   
>> The final size is a big sum of all the features. A powerful
>> smartlinking would kill all unecessary stuff.
>> 
I know this isn't what everyone is really wanting to hear when they're
discussing this, but I'll add my $.02 USD into the discussion more from
an esoteric corporate view than a lazarus coding view.

I wrote TruckBytes using Lazarus.  It's a full featured graphically
pleasing database application designed to run a trucking company.  The
total download is around 2 MB compressed, including the SSL libraries I
redistribute. 

An equivalent program written using Visual C++ in a Microsoft
environment would never see the light of day for less than 20 MB.  The
database engine alone would probably be 3/4 of the total distributed
program.  If done in VB, the runtimes for VB alone would be large.  Sure
you could force your users to download it separately, but if you want to
reduce customer support issues you distribute everything you need.

Back to TruckBytes.  The EXE is around 3.9 MB all said and done, plus
supporting SSL dll's for the Windows version.  I have 200 GB of hard
disk space.  I have 2 GB of RAM.  I have 3 Mb download speed.  If I was
a nut about trying to reduce EXE size I'd use a macro assembler and a
6502 processor (yes, I've done that before.)

"Bloat" used to be an issue in code when the code was pushing the limits
of what the computers could handle.   Sure you can talk about "bloat"
like it's still a horrible problem, but when it comes down to it the
question is do I want to waste 4 months or more of development to reduce
code size or use some preconfigured "lego blocks" that produce a larger
EXE?  I'll go for the 4 months of man-hours saved.

Of course that's a corporate view and really holds no bearing on the
discussion of how to reduce the LCL size, I just want to point out that
1 MB exe versus 4 MB exe really doesn't make a darn bit of difference
unless your computer was built in the mid 90's.  Or you're simply
writing a console app, in which case you shouldn't use the LCL anyway.

Keep in mind I'm not saying use this to justify NOT optimizing the LCL
or smartlinking.  I'm just saying weigh the time spent coding where it's
best utilized, for instance GTK2, QT, OSX, better compatibility or bug
squishing.

The above statement's obviously don't apply if you're writing for
PocketPC / Windows Mobile.

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] GTK/Linux vs QT/Linux Lazarus Support

2006-05-16 Thread Tony Maro
Alain Michaud wrote:
> - Mandriva works very very well with Lazrus.  On other platforms you get
> the ugly "motif" like theme. 
>
> It seems that the "gnome-control-center" is not connected to the theme
> that lazarus uses. This has to do with GTK-1 GTK-2 difference, I think.
> Those who are skilled, can play with some hidden files and configure the
> theme in GTK-1 and get their Lazarus very clear in Suse for example.
> (see the forum for a list of tricks)
>
> One solution to improve the situation (apart from switching to GKT2)
> would be to have a small utility program that would come with the
> lazarus package in order to set some configuration file. I don't know
> how, but may be that would not be too difficult to write, once someone
> knows which file is wrong. 
If someone will pin down what would need done, I would even throw it in
a non-visual component so that it could be embedded within distributed
applications - you wouldn't want to just do it by default, but give the
user the option in the settings dialog or something.

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Request for PR noise !

2006-05-15 Thread Tony Maro
Michael Van Canneyt wrote:
> On Sun, 14 May 2006, Ido Kanner wrote:
>
>   
>> Nicholas Wirth once said that a language requires good name (I don't recall 
>> the
>> exact quote), without a good name the language will fail.
>> 
>
> In that case he did a poor PR job, obviously.
Obviously the name C++ is why it's so commonly used.  Wait, that doesn't
make sense...

What we have in Lazarus is essentially "Visual Studio Pascal" (not that
I'm suggesting that name because it's mostly taken.)

But, I honestly don't think a name change will affect things much one
way or the other.  Like was already pointed out "Delphi" had nothing to
do with Pascal - probably because Borland was smart enough to realize
that Pascal was already viewed as an obscure dead language and they
wanted to separate themselves from that.  Nobody in the early days
called themselves "Pascal" programmers, they were all "Delphi" programmers.

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Request for PR noise !

2006-05-13 Thread Tony Maro
Michael Van Canneyt wrote:
> Well:
> I don't think that after so many years, Lazarus should change it's name.
>
> People taking offense at this name only make themselves ridiculous.
> I refuse to take that (or them) serious. ( Yes, and I will take the
> risk that I will burn eternally in hell for this ;-) )
>
> If I remember correctly, the FPC irc channel was once mistakenly 
> confused with a channel for people with peculiar sexual tastes. 
Okay now I'm curious... what KIND of sexual tastes?  Never mind.  Sorry
I asked.  And I agree - if you're going to take offense at a project
name, why the heck do you use SATAN for scanning your network? ;-)  Or
is that SAINT... lol

I agree that changing the name needs to be seriously considered.  We
recently went through the same question regarding my company name. 
Finally we came to the conclusion that we got better brand recognition
with the current name even though a new name might fit our service
offerings better.

I mean, how many people really know what 3M stood for?  Originally it
was a VERY poor choice for a name considering what they end up selling
now (i.e. post-it notes.)  But, they have enough brand recognition if
they tried to change it, it would be disastrous.

So the question is, do enough _programmers_ know what Lazarus is to
dissuade a name change?  Or is it still obscure enough that we'd get
more recognition from a more targeted name?

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Request for PR noise !

2006-05-13 Thread Tony Maro
Felipe Monteiro de Carvalho wrote:
> On 5/13/06, johnf <[EMAIL PROTECTED]> wrote:
>> They printed an  article on "Gambas".  In Spanish it means shrimp.
>
> On portuguese, Gambas is a black and white animal that stinks a lot
> when scared =)
>
Skunk in English.  I used to own one.  Darn things bite hard too.  Ours
was de-stinked. ;-)

It was quite a site to see him and the dogs playing with each other in
the yard.

Pretty foul-tempered too.  I'd never own another.

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Weird GTK error - ah found it

2006-05-08 Thread Tony Maro
Marc Santhoff wrote:
> Am Montag, den 08.05.2006, 10:46 +0200 schrieb Graeme Geldenhuys:
>   
>> That one got me as well!!  It is a bug and has already been reported
>> on Mantis.  What makes it worse, is that it only occurs on certain
>> widget sets.  I believe Gtk2 works correctly, but Win32 and Gtk1 adds
>> that extra onclick event with ItemIndex of -1.
>> 
>
> I'm not sure what widget it was, but I had a similar bug causing an
> event to send two times but one long ago using GTK1 and FPC only (no
> lazarus involved).
>
> IIRC it was in the area of key presses or the like.
>
> I can dig my logs after it if it helps finding a solution ...
>   
Well my simple workaround was to watch for a draw event called with
itemindex of -1.  However, I think it does signify something wrong with
the GTK Widget.  Obviously there's no reason to draw an item in the
listbox that has an index of -1.

Mine was GTK1 and the TListBox using custom drawing.

Not that this helps, but it was introduced as a bug in the past 8 months
or so.  Code compiled on FPC / Laz from over 8 months ago didn't
experience this problem.  I just updated FPC+Laz and working code from
before started crashing.

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Interfaces ready for prime-time

2006-05-05 Thread Tony Maro
Giuliano Colla wrote:
> Giuliano Colla ha scritto:
>
>> Tony Maro ha scritto:
>>
>>> In QT it seems to run, but when you X to close the app, a huge empty
>>> window appears on top of everything and the console shows crash
>>> information:
>>>
> With the patch I've just submitted to the mailing list, it doesn't
> crash anymore.
> Cheer up, it's a long way, but we'll make it!
Hehe, I never said I was sad.  When I first started using Lazarus the
instructions included "Do not attempt to use the form designer" because
it was severely unstable - every component had to be created at runtime
in code.  ;-)  Things have come a long way since then.

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Interfaces ready for prime-time

2006-05-05 Thread Tony Maro
Felipe Monteiro de Carvalho wrote:
> On 5/5/06, Tony Maro <[EMAIL PROTECTED]> wrote:
>> I played with the QT interface but it constantly crashed with anything
>> more intense than a label and a button.
>
> Can you send me a project you were trying to work with on Qt interface?
>
> I can try to make the necessary adjustments on the interface so it no
> longer crashes.
Here's a test project for both QT and GTK2.  It includes a Tbutton, a
Tpanel, a TMemo and a TLabel.

NOTE: I may have left it set to build for QT last... check widget set
before compiling.

http://www.maro.net/lazarus/testinterfaces.tgz

Both QT and GTK2 have the z-order / transparency problem.

I've set a label with an 8 point Helvetica font.  If you don't have
Helvetica, you might want to change it to something else.  In GTK2 the
font shows HUGE - like 150 point or something, and regardless of what
font you tell it to be ends up being the same font.  The point size DOES
affect it, but you can't get it lower than an effective 100 point or
so.  It will go much larger.

In GTK2, a default formatted label displays fine - it's just anytime you
try to set the font.  The problem of font size also occurs if you are
manually drawing on a TCanvas using onpaint.

In QT the label doesn't appear at all, even if you just go with the
default font.

In QT it seems to run, but when you X to close the app, a huge empty
window appears on top of everything and the console shows crash information:

Freeing resources
Freeing resources
[FORMS.PP] ExceptionOccurred
  Sender=EAccessViolation
  Exception=Access violation
  Stack trace:
  $
  $08079719
  $080E9F3E  TCUSTOMMEMO__DESTROYHANDLE,  line 126 of
./include/custommemo.inc
  $080C6D37  TWINCONTROL__DESTROYHANDLE,  line 3286 of
./include/wincontrol.inc
  $080C8E35  TWINCONTROL__DESTROY,  line 4438 of ./include/wincontrol.inc
  $08063165  TSCROLLINGWINCONTROL__DESTROY,  line 165 of
./include/scrollingwincontrol.inc
  $08063954  TCUSTOMFORM__DESTROY,  line 122 of ./include/customform.inc
  $08052BC5
  $0806A78E  TAPPLICATION__DOBEFOREFINALIZATION,  line 816 of
./include/application.inc
  $08060B69  BEFOREFINALIZATION,  line 1327 of forms.pp
  $08056E74
TApplication.HandleException Access violation
  Stack trace:
  $
  $08079719
  $080E9F3E  TCUSTOMMEMO__DESTROYHANDLE,  line 126 of
./include/custommemo.inc
  $080C6D37  TWINCONTROL__DESTROYHANDLE,  line 3286 of
./include/wincontrol.inc
  $080C8E35  TWINCONTROL__DESTROY,  line 4438 of ./include/wincontrol.inc
  $08063165  TSCROLLINGWINCONTROL__DESTROY,  line 165 of
./include/scrollingwincontrol.inc
  $08063954  TCUSTOMFORM__DESTROY,  line 122 of ./include/customform.inc
  $08052BC5
  $0806A78E  TAPPLICATION__DOBEFOREFINALIZATION,  line 816 of
./include/application.inc
  $08060B69  BEFOREFINALIZATION,  line 1327 of forms.pp
  $08056E74


Thanks!
Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Interfaces ready for prime-time

2006-05-05 Thread Tony Maro
I just want to confirm my findings and those from the IRC room.

>From the looks of it, the only interfaces that are really working right
now are Win32 and GTK1. 

I played with the QT interface but it constantly crashed with anything
more intense than a label and a button.  The GTK2 interface has serious
drawing issues which makes all components bleed through or draw in the
wrong z-order, and if you ever specify a custom font or try to draw
fonts directly on a canvas they show up in something like a 100 point
font or larger.

I'm mostly interested in seeing GTK2 become usable.  I've looked through
the code and to be honest, it's all greek to me.  I dug through it for
around 4 hours yesterday and left knowing less about the interfaces than
I started with I think ;-)

I understand the GTK2 code is kind of a mess because of the way it was
branched off the GTK1 stuff.  Is there anyone currently working on this
code?

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] GTK2 builds, but wont run

2006-05-03 Thread Tony Maro
Felipe Monteiro de Carvalho wrote:
> If you only needs your programs to be in Gtk2 you can recompile only
> LCL for Gtk2 and keep using the IDE on Gtk1.
I forgot about that - will have to try that. 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] How to debug?

2006-05-03 Thread Tony Maro
Mattias Gaertner wrote:
> On Wed, 03 May 2006 13:01:48 -0400
> Tony Maro <[EMAIL PROTECTED]> wrote:
>
>   
>> I set it in the compiler options to add content for gdb debugging - and
>> I'm not doing the debugging inside the IDE but by running gdb at the
>> command prompt.
>>
>> It's like something in FPC or Laz is detecting the crash and handling it
>> before it hits gdb.
>> 
>
> Did you 'break FPC_RAISEEXCEPTION' in gdb?
>
> Mattias
Nope.  That's a new one for me.  Thanks.

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] How to debug?

2006-05-03 Thread Tony Maro
Marc Weustink wrote:
> Tony Maro wrote:
>> Okay I've never had this problem before.  I just built a new machine and
>> installed yesterday's snapshot of Lazarus and the stable FPC (2.0.2?
>> Linux.)
>>
>> When I run either Lazarus or an app I build with Lazarus under gdb, and
>> there's a crash, gdb does not immediately pause things and let me look
>> at it.  The project throws it's own dialog or completely closes and gdb
>> says it closed normally.  It also says there's no stack.
>>
>> Did I miss a checkbox somewhere?
>
> Ehm... maybe,
> did you set the debugger to gdb in the debugger options (it might
> default to none)?
>
> Marc
I set it in the compiler options to add content for gdb debugging - and
I'm not doing the debugging inside the IDE but by running gdb at the
command prompt.

It's like something in FPC or Laz is detecting the crash and handling it
before it hits gdb.

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] How to debug?

2006-05-03 Thread Tony Maro
Okay I've never had this problem before.  I just built a new machine and
installed yesterday's snapshot of Lazarus and the stable FPC (2.0.2? 
Linux.)

When I run either Lazarus or an app I build with Lazarus under gdb, and
there's a crash, gdb does not immediately pause things and let me look
at it.  The project throws it's own dialog or completely closes and gdb
says it closed normally.  It also says there's no stack.

Did I miss a checkbox somewhere?

Then maybe I could figure out why Lazarus dies when built with GTK 2
complaining of invalid floating point operation...

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Is there a WinCE tutorial for Lazarus?

2006-04-26 Thread Tony Maro
Felipe Monteiro de Carvalho wrote:
> On 4/26/06, Tony Maro <[EMAIL PROTECTED]> wrote:
>   
>> Has anyone done a tutorial yet on how to set up FPC + Laz to do WinCE
>> development?
>> 
>
> Yes. They are on the Wiki:
>
> http://wiki.lazarus.freepascal.org/index.php/Windows_CE_Interface
>
> There are step-by-step tutorials there.
If I wasn't so freaking busy (or is that lazy) I would have thought to
look before asking.

Thanks!

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Is there a WinCE tutorial for Lazarus?

2006-04-26 Thread Tony Maro
Has anyone done a tutorial yet on how to set up FPC + Laz to do WinCE
development?

Thanks,
Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] FPC question

2006-04-20 Thread Tony Maro
Graeme Geldenhuys wrote:
> I was just looking at those pages.  I don't know how to create/start a
> new wiki page, only edit current ones.  Do you need special
> permissions to create new pages, if so could you create a
> blank/template page, and I will fill in the rest. (or I'll start
> reading the wiki help)
Log into the wiki, then directly change the URL to have the pagename you
want to use.  For instance, if your topic is "Test Blank" do:

http://wiki.lazarus.freepascal.org/index.php/TestBlank

You'll get a page saying there's no text yet, then you just edit it.

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Making an installer

2006-03-16 Thread Tony Maro
Felipe Monteiro de Carvalho wrote:
> Hello,
>
> Are you trying to create a quick installer for yourself or a fully
> feature general-purpose installer?
>   
You guys do know I've already put out the framework for an installer
that's mostly compatible with InnoSetup?  I concentrated on the Linux
side of things for it, so there's no registry support yet... but it
wouldn't take too much to add it.

And it's got a nice GUI that beats InnoSetup.  It's what I used to
package the Linux installs for TruckBytes.  It even optionally
compresses files as it adds them into the executable package, and can
launch a readme afterwards or the installed app if you choose.

I stopped once it suited my needs, but with a bit more work it could be
very feature-rich.

-Tony Maro

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Making an installer

2006-03-16 Thread Tony Maro
bobby wrote:
> I want to include an exe, a html file, and two pictures into my
> exe-file done in Lazarus.
> The question is: if I include those 4 files into resources, and link
> them into my exe-file, how can I save them back to HDD from already
> linked executable?
> To make the clear picture, all of you know what NSIS installer or Inno
> setup does, how can I make the same thing?
> I simply want that my exe create/save other files (that are in
> resources, linked into running exe) at the runtime.

Instead, load the extractor into a TMemoryStream, attach streams of the
resources to the end of it, then add pointers to the end of that to the
start location of each resource.   Have the main extractor read itself
into a filestream, get the pointers for each individual resource, and
extract them back out.

Pretty simple actually, and appending to the end of the main file
doesn't break the executable.

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] turboCASH on Lazarus "proof of concept"

2006-03-04 Thread Tony Maro
Mattias Gaertner wrote:
> On Tue, 28 Feb 2006 12:57:32 -0300
> Felipe Monteiro de Carvalho <[EMAIL PROTECTED]> wrote:
>
>   
>> [...]
>> If you Linux guys (Even the Lazarus on Windows guys) - Could do the 
>> following :
>>
>> i) Download the TurboCASH/Delphi project. Steal whatever you need
>> ii) "Open " a set of books simply by connecting to the TurboCASH Fro 
>> bird Database
>> 
>
> Where can I find documentation about this 'set of books' of the 'Fro bird
> Database'?
>   
There may be some language and spelling issues there - did he perhaps
mean "Firebird"?  I'm assuming from the description the books would need
to already exist from an existing TurboCASH Delphi install.

If I'm not mistaken these are the guys who contacted me a year or so ago
about the project - since it's similar in some aspects to CBT - but I've
had no time to help out.

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Updated daemon instructions?

2006-03-03 Thread Tony Maro
I'm trying to implement a deamon using and example I found at:
ftp://ftp.cncware.com/pub/fpc/daemon.pp

I've of course had to make several changes to support a more recent
compiler.

Everything compiles fine, and the process forks and dumps directly to
the console as expected.

However, it's not letting everything go... when I log out of ssh after
running it, the session still hangs.  I can't launch the daemon from a
PHP script (which was the plan) because it causes the apache routine
running it to hang.

Probably more of an FPC question I guess, but I trust you guys.  ;-)

Any ideas?

-Tony


_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Is GTK needed?

2006-02-17 Thread Tony Maro
Danny Milosavljevic wrote:
> Hi,
>
> Am Freitag, den 17.02.2006, 18:52 + schrieb Tony Pelton:
>   
>> mmm ... no.
>> the ones that have Gtk installed have Gtk installed.
>>
>> Gtk is in no way a requirement for a Linux system running x-11 with a
>> non-Gnome window manager/desktop.
>> 
>
> I meant for useful practical purposes... 
> maybe some embedded device or firewall distro or 10 year old thing
> actually doesn't have it, but at least I know of no current desktop
> distribution that doesn't have it... feel free to correct me :)
Actually I get support request e-mails all the time on my software
written with Lazarus from people who don't have GTK+ installed.  I also
get a lot of questions because several GTK+ installs don't install all
the required pixbuf libraries.

-Tony Maro

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Snapshots not working?

2006-02-15 Thread Tony Maro
Vincent Snijders wrote:

> Tony Maro wrote:
>
>> I just downloaded the snapshot from last night - my first attempt at a
>> recent lazarus in months.
>
>
> Last night is 20060214?

I've tried 20060214 and 20060215 and both die with the error.
I just downloaded 20060207 from sourceforge and it works fine.

>
>>
>> On running I get "unhandled exception" "EInvalidOp : Invalid floating
>> point operation"
>>
>> Is it just me?  Is this a known thing?  I haven't been reading all the
>> list lately, so if this is known I apologize.
>
>
> It doesn't ring a bell. What snapshot did you download? I succesfully
> installed and ran the win32 snapshot of 14 Feb.
>
> Vincent.
>
> _
> To unsubscribe: mail [EMAIL PROTECTED] with
>"unsubscribe" as the Subject
>   archives at http://www.lazarus.freepascal.org/mailarchives


_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Snapshots not working?

2006-02-15 Thread Tony Maro
Vincent Snijders wrote:
> Tony Maro wrote:
>> I just downloaded the snapshot from last night - my first attempt at a
>> recent lazarus in months.
>
> Last night is 20060214?
>
Probably... I grabbed it off my own mirror around 9PM GMT-5
>>
>> On running I get "unhandled exception" "EInvalidOp : Invalid floating
>> point operation"
>>
>> Is it just me?  Is this a known thing?  I haven't been reading all the
>> list lately, so if this is known I apologize.
>
> It doesn't ring a bell. What snapshot did you download? I succesfully
> installed and ran the win32 snapshot of 14 Feb.
I'll double-check when I get home - it's at home I'm at work.  But it
was the win32 exe off the lazarus.maro.net site.  I'll get more info and
if it continues tonight I'll run some test to see if I can find out why.

Thanks,

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Snapshots not working?

2006-02-14 Thread Tony Maro
I just downloaded the snapshot from last night - my first attempt at a
recent lazarus in months.

On running I get "unhandled exception" "EInvalidOp : Invalid floating
point operation"

Is it just me?  Is this a known thing?  I haven't been reading all the
list lately, so if this is known I apologize.

-Tony Maro

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] proble with cvs

2006-01-27 Thread Tony Maro
Bruno Chavez wrote:
> Hi to all!!
>
> I have a problem, because some time ago I downloaded
> via cvs the lazarus without any problem, now I can't
> doit... these are the steps I use:  (i'm in a OSX 10.3
> Mac G5)
>
> In the X11 terminal:
>
> 1.- export
> CVSROOT=:pserver:[EMAIL PROTECTED]:/FPC/CVS
> 2.- cvs login
>   
Lazarus was ported to svn some time back.

Try the link on the website for "getting the source":
http://wiki.lazarus.freepascal.org/index.php/Getting_Lazarus

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Changes to file on disk warning annoying

2006-01-24 Thread Tony Maro
L505 wrote:
>
> Ahh, that is the reason my keyboard teacher in grade 6 or so kept telling me 
> to LOOK
> at the screen not the keyboard! But real programmers look at the keyboard, 
> because
> there are so many odd key combinations that you can't possibly hold them all 
> in your
> head.
>   
Actually, I look at neither.  I typically stare off in space or at
handwritten notes until I've typed a line or so, then glance at the screen.

I'm going to try the kernel update and see where that takes me...

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Changes to file on disk warning annoying

2006-01-24 Thread Tony Maro
Micha Nelissen wrote:
> [EMAIL PROTECTED] wrote:
>>> Ok, so how about: when the file was written less than margin+1 seconds
>>> ago, it has to be precisely the same, otherwise there may be a margin.
>>
>>
>> Why play with arbitrary (as far as I can see) margins. There is
>> something
>> like checksums. On a typical sourcefile like we use (25kb for lazarus)
>> this should take a few msecs not much more and is robust and easy to
>> implement. Just do the checksum if fileage suggests that the files
>> are the
>> same.
>
> If timestamps change a lot on network drives, people don't want the
> overhead of retrieving the file all the time. Some error margin of
> about 1 or 2 seconds is then preferred. It can always be an option
> though.
Hehe, right now I'd be happy just having the darn warning disabled with
a check box!  I invariably click in the source, then try to start typing
in the code without looking at the screen and the dialog has popped up. 
3 lines of source later I look over and realize nothing I typed went in
the editor.


-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Changes to file on disk warning annoying

2006-01-24 Thread Tony Maro
Ger Remmers wrote:
> If my understanding is correct you are working on a Linux box
> I had the very same problem upto about 2 weeks ago but it went away with a 
> kernel update
> What is the kernel version you are running?
> Command is -uname -a
>   
Linux tony-lin 2.6.12-10-386 #1 Thu Dec 22 11:37:10 UTC 2005 i686 GNU/Linux


_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Changes to file on disk warning annoying

2006-01-24 Thread Tony Maro
Dale Welch wrote:
> Is the windows client using a fat,fat32,vfat?
> if it is it's time is only stored to the nearest even second.
> so this does cause a problem between the machines
On mine, it's NTFS.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Changes to file on disk warning annoying

2006-01-23 Thread Tony Maro
L505 wrote:
>>> Mattias Gaertner wrote:
>>>   
 The files didn't changed on disk, so an automatic refresh would undo
 your current changes.
 
>
> With samba this is not the case - the files are changed. The line feeds are
> converted.
>
>   
 At the moment the IDE does this:
 On saving/opening a file it retrieves the FileAge of the file.
 At several occassions it compares these file dates with the current file
 dates.
 If it changed it gives the user the choice.

 
>>> It's odd, because both computers sync clocks from the same timeserver -
>>> which is also located on my network.  I've looked and the clocks appear
>>> the same, so I assume it's something about going from Linux to Windows
>>> over NFS that's making it look different.
>>>   
>
> linefeeds in samba
>   
Right, but my point is under SMB it _worked_, but under NFS it
doesn't... your description sounds like it should be the other way around?

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Changes to file on disk warning annoying

2006-01-23 Thread Tony Maro
Micha Nelissen wrote:
> On Mon, 23 Jan 2006 23:11:24 +0100
> Mattias Gaertner <[EMAIL PROTECTED]> wrote:
>
>   
>> We could extend the check to load the file and compare its content.
>> 
>
> Maybe introducing a margin of error would be enough ? 2 seconds or so ? So
> if changed only 2 seconds later, the IDE doesn't notice.
I just double-checked and the clocks on the two machines are in perfect
sync... while watching both clocks they appear to change seconds at
exactly the same moment.  Of course this could mean it's a few
milliseconds off, but that shouldn't trigger it should it?

I never had this problem when using SMB to access the same files, so,
perhaps it's something else triggering this?  It's the same two
machines, but now I'm using NFS instead of SMB.

-Tony


_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Changes to file on disk warning annoying

2006-01-23 Thread Tony Maro
Mattias Gaertner wrote:
> The files didn't changed on disk, so an automatic refresh would undo your
> current changes.
>
> At the moment the IDE does this:
> On saving/opening a file it retrieves the FileAge of the file.
> At several occassions it compares these file dates with the current file
> dates.
> If it changed it gives the user the choice.
>   
It's odd, because both computers sync clocks from the same timeserver -
which is also located on my network.  I've looked and the clocks appear
the same, so I assume it's something about going from Linux to Windows
over NFS that's making it look different.
> When the server and the client are not properly synchronized, the file dates
> differ (but not immediately because of the caches) and for the client it
> seems as if the file changed.
> We could extend the check to load the file and compare its content.
I'd think have it run the DIFF before deciding to pop up the dialog, and
if nothing appears, ignore the change?

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Changes to file on disk warning annoying

2006-01-23 Thread Tony Maro
I just changed from using SMB to get to my source files to using NFS to
a Windows box.

Now Lazarus complains around once a minute that the file has changed on
disk, and offers to reload the changes - looking at the DIFF provided,
there _are_ no changes.  I'm assuming it's an NFS or timeclock related
thing.

Is there a way to disable this check in the Lazarus IDE?  I checked the
options but couldn't find anything.

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Document (virus!!)

2006-01-09 Thread Tony Maro
Adilson Oliveira wrote:

>L505 escreveu:
>
>  
>
>>And I couldn't resist knocking you off your unix high horse. This should have 
>>been
>>posted to pascal-other, both your message and mine. Oh, but there is no 
>>lazarus-other
>>so it had to be said right here and now.
>>
>>
>>
>
>This was just a joke, don't need to be so anal retentive. 
>

Gee, even I knew your original post was a joke... but smiles don't
translate well in text.

Also, nobody should assume Michael is at fault - most virus will grab a
different sender's address and use it - so it's more likely to be
someone else on the list than it is Michael.

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Look and feel of Lazarus

2005-12-30 Thread Tony Maro

Marco van de Voort wrote:


I have prepared some screenshots of a concept look and feel for Lazarus.
Please check it out at:

http://wiki.lazarus.freepascal.org/index.php/GUI_design#Look_and_Feel

Feel free to comment, but please accept that this is just a concept. So It
has no use to discuss the details of the displayd forms themselves unless
it would impact the general look and feel. Ultimately each form in itself
will be subject to discussion to fit the purpose.
   



The guidelines are ok I think, but

Help should be optional tho. Lots of grayed out boxes everywhere are IMHO
evil. Disable them. 


I don't like several aspects of the screenshots
- First, the "positive" button should always be right, IOW cancel should be
   left from the positive one. Note that there is inconsistency in the
screenshots. The "todolist info" screen is ok in this respect,
the lower ones not.
 

Unfortunately, this depends upon your operating system standards.  
Windows tends to place the cancel on the right, Linux on the left.  In 
relation to things like this, I added a comments section to the Wiki 
mentioning that a lot of these changes will make GTK+ unreadable.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] AMD 64

2005-12-01 Thread Tony Maro

Meh... I just installed Ubuntu for AMD 64.

So far, the few small apps I've tried to compile from source have failed 
(C, not Pascal.)


Can I safely make the assumption that trying to develop for I386 
machines is going to be a pain in the butt, at least short-term?


-Tony

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Send commands to shell

2005-11-16 Thread Tony Maro

barko wrote:


I use this on linux and windows:

function Run(fexec,args:string; wait:boolean):boolean;
var ffexec:string;
begin
result:=true;
try
 if fileexists(fexec) then ffexec:=fexec else





Dne sreda 16. novembra 2005 15:37 je Kleiton Luiz napisal(a):
 


Hi, i'm try to send a commad to shell...

example: i need send to shell a command  "ls" and save results in a file 
"lists.txt"


in a shel this command make this job:

$ ls > lists.txt

i need in Lazarus execute this command.

anypeople can help me ? Thanks !

   


Or you can use the lazy man's method.

Include "unix" in the uses clause, then do:

 shell('ls "/my directory/" > "/destination/lists.txt"');

It won't work in Windows though, and isn't as safe as using a TProcess.  
If the shell command doesn't immediately return from executing, it will 
appear to lock up your application.  Also, note the single quotes around 
the total command line, and the double-quotes within the command line to 
handle spaces within the paths.


For Windows, the shortcut is:

include "windows" in the uses clause then do:

shellexecute(0, 'open', pchar('dir "c:\my directory" > 
"c:\destination\lists.txt"'), nil, nil, SW_SHOWNORMAL);


I just give these as examples.  I recommend the TProcess method, because 
it's cross-platform and has more checks and balances built in.  But, I 
admit that when I'm spitting out a quick program just for myself, I'm 
more likely to use "shell()"


-Tony

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] LNet Package ERROR

2005-11-14 Thread Tony Maro

Ales Katona wrote:


Kleiton Luiz wrote:

 Hi, i'm try to install "lnetpackage-0.1.zip" in lazarus for linux, 
but i dont can compile, on press install the lazarus show me this 
message:


/root/Desktop/lnetpackage-0.1/lnet/tomwinsock.pas(1,1) Fatal: Can't 
find unit Windows


My Free Pascal Compiler have version 2.0.0 [2005/05/09] for i386
My Lazarus is 0.9.6 beta

Anypeople can help-me ?


**



Hello. It seems {$ifdef win32} for some reason is true in your linux 
FPC. I don't know why it is so but it certainly isn't standard.
It is possible that your lazarus is too old to use this package. Could 
you please try to update to 0.9.10 and try again?


Or, the package has been site to build for win32 widgets.  Check the 
project and package settings to make sure GTK+ / Linux are selected 
everywhere.


-Tony

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] A new marketing strategy

2005-11-10 Thread Tony Maro

Luis R. Hilario B. wrote:


My (2) Delphisuperhero:
http://luisdigital.com/varios/ xD

But to send Delphi Personal would be better promotion.

2005/9/19, Razvan Adrian Bogdan <[EMAIL PROTECTED]>:
 


If you were wondering what marketing strategies Borland was planning
lately, search no more, Delphiman is here, hope he will beat all those
(C/C++) compilers out there :)

http://www.borland.com/superhero
http://www.delphisuperhero.com/


Oh. My. Gosh.
As a programmer, I'm insulted by Borland's marketing strategy.  I'm not 
a moron.  I'm not 8 years old.  Don't treat me as such.


Luis, that's hilarious, BTW.

-Tony

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Mirror site available if needed

2005-11-10 Thread Tony Maro

Tony Maro wrote:


Here's a possible console utility that will only FTP up changed files:

http://userpages.uni-koblenz.de/~krienke/ftp/noarch/smartupload/



That was supposed to be just for Vincent...

Sorry.

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Mirror site available if needed

2005-11-09 Thread Tony Maro

Here's a possible console utility that will only FTP up changed files:

http://userpages.uni-koblenz.de/~krienke/ftp/noarch/smartupload/

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Mirror site available if needed

2005-11-09 Thread Tony Maro
It's time for me to renew my hosted website account.  For a few extra 
bucks I can upgrade to one that supports 50 GB / Month of bandwidth and 
has plenty of hard drive space.


At one time we discussed needed mirrors for the Win32 builds of 
Lazarus.  Is this (or anything else) still needed?


If so, I'll set up a subdomain on mine just for it called 
"lazarus.maro.net" and give the appropriate parties FTP access for 
posting it.  It will NOT have anonymous FTP or svn, but would allow for 
HTTP downloads of files.


-Tony

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Wanting to hire Lazarus programmer in IL, USA

2005-11-08 Thread Tony Maro

We're looking for the following skills:

   Linux (duh)
   PHP
   MySQL
   Apache
   FreePascal or Delphi
   Good communication skills - company owner is not a computer geek

Willing to relocate to Illinois with possible assistance for 
relocation.  Mostly this will entail maintaining a PHP based website 
application.  Knowledge of Lazarus is a huge plus, for making small 
modifications to a client application written in Lazarus.


Remember the software I wrote, TruckBites?  (www.truckbites.com)  Well, 
two _major_ companies have given verbal go ahead with minimum monthly 
financial commitments that have just skyrocketed it to the top.  There's 
also a substantial investment of venture capital being injected right 
now to get the ball rolling to support the load.  A full time IT guy who 
can work with the system and address any needs as they arise is needed.


If interested, drop me a resume at [EMAIL PROTECTED]

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] CheckBook Tracker for Windows Xp

2005-10-27 Thread Tony Maro

Cristiano Magro wrote:


Hi,

I've post link to binary and source of CheckBook Tracker for windows Xp.

http://tony.maro.net/mod.php?mod=forum&op=threadview&topicid=47&forumid=2


 

Hehe, sorry I've been slow.  Works has me running circles 12+ hours / 
day right now.


Thanks for posting that.

-Tony

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Some questions about TForm.Height

2005-10-19 Thread Tony Maro

Alex Smirnov wrote:


*Dear Friends!*

Ones more I ask you for some help. Help me please to understand how 
can I get real height of any form window created by Lazarus? The 
matter is trhat TForm.Height returns not a total Form height, but Form 
height minus title bar height. Actually, in Lazarus TForm.Height is 
equal to TForm.ClientHeight in Delphi.


So, ones more - I can't find any info about that. This problem is very 
important for me.


*Best regards, Alexey.*


In Linux (and OSX?) the window manager is a separate thing, and 
interchangable, so the only metric we can reliably get is the clientheight.


I'm not sure what happens in Winblows.

-Tony

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Code completion

2005-09-29 Thread Tony Maro

Mattias Gaertner wrote:


On Thu, 29 Sep 2005 14:35:59 -0400
Tony Maro <[EMAIL PROTECTED]> wrote:

 

Wouldn't automatic adapting make overloading harder? 
   



Why?

 

The result as 
happens now is it basically gets created like it's overloaded...
   



Yes.
But in the case, that the class declaration and the methods bodies contains
exactly one method that does not fit, then it's pretty obvious, that these
correspond.
 

Ah, I see what you mean - one declaration, but two method 
implementations.  Yes, that should be easy to detect I'd think, and only 
create it as overloaded with class completion if there are two methods, 
otherwise fix the implementation.


-Tony

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Code completion

2005-09-29 Thread Tony Maro

Mattias Gaertner wrote:


On Wed, 28 Sep 2005 21:10:31 +0200
Matthijs Willemstein <[EMAIL PROTECTED]> wrote:

 


Hi all,

When I have the following code:

type
 TFoo = class
   procedure FooProc;
 end;

After invoking code completion the skeleton of procedure TFoo.FooProc is
created. Then I change the definition to read as follows: 


type
 TFoo = class
   procedure FooProc(AValue: TWhatever);
 end;

Pressing C (thus invoking code completion) a new skeleton
for procedure TFoo.FooProc is made. I think this is not the correct
behaviour. Either it should do nothing at all, or it should adapt the
previously created version.
Any opinions on that?
   



I would prefer automatic adapting too.
But some Delphians would expect something different:
 

Wouldn't automatic adapting make overloading harder?  The result as 
happens now is it basically gets created like it's overloaded...


-Tony

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Using translations in projects

2005-09-16 Thread Tony Maro

Razvan Adrian Bogdan wrote:


I was wondering what is the best way of doing translations in user
projects, wich units do the loading and how do they work,  noticed
Lazarus has an interesting method for working with .po files directly
but it is licensed GPL wich means it can be used with GPL only
projects, should one write it's own unit that does a similar job or
will it be included in LCL ?

Using PO files is GPL only?  That's news to me... can someone else 
confirm this?  I thought it was just a method of replacing strings...


-Tony

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Starting lazarus from explorer does not work

2005-09-16 Thread Tony Maro

Charlie wrote:


Hallo,
 
I have a problem I can't understand: I did an update of Lazarus 
yesterday and recompiled it. Now when I start Lazarus from the command 
prompt, it works fine, but if I start Lazarus from the shortcut I have 
for it, or from Windows Explorer, it is giving problems. It almost 
looks like it has something wrong in the directory it uses.
When I start Lazarus I first get a message that says my free pascal 
source directory is not set up. It is set up and works fine if I start 
from command prompt. So I ignore it.
Then I get an error saying: The current Lazarus directory 
"C:\mysvn\lazarus\lazarus.exe\" does not look correct. Indeed, it is 
not correct! Where does this directory come from? So I ignore that as 
well.
Then I get an error saying that Lazarus is "Unable to create file 
"C:\mysvn\lazarus\lazarus.exe\compilertest.pas". If I choose ok to go 
on anyways lazarus crashes.
 
It appears there is some difference between starting from explorer and 
starting from the command prompt that gives a problem only since the 
last svn update.
 


Sounds like somebody added a writeln and/or disabled -WG?

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Re: Compiling GTK2 application

2005-09-14 Thread Tony Maro

Felipe Monteiro de Carvalho wrote:



I recompiled everything including the IDE and there seam to be many 
alignment problems on the IDE. The fonts do look much better, but all 
buttons are too small, so text and glyphs became only partially visible.


Is this why you recomended not to recompile the IDE on gtk2?


That and more ;-)

I found that I got about 85% widget usability from my app after 
recompiling for GTK2 - not bad when you think about the task required 
for creating the GTK2 interface.  I haven't tested GTK2 in almost two 
months though...




My application works normally on GTK2, including the database. 


Yeah, most of the issues I've seen are with the more extravagent widgets 
displaying wrong or handling messages wrong.  Internal code like 
TDataset are unaffected.  Once it's polished off, I plan to switch to 
GTK2 and Win32 development exclusively.


-Tony

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TXMLConfig from FPC and Lazarus

2005-09-14 Thread Tony Maro

Cristiano Magro wrote:


Hi,

I see that there is two TXMLConfig, from FPC and from Lazarus, but
constructor aren't the same.

My problem is that: compliler link with TXMLConfig from FPC and
parameters for constructor aren't valid.

I use in some package
MyConfig := TXMLConfig.Create('setting.xml');

but constructor from FPC\FCL\xml\xmlcfg.pp are
constructor Create(AOwner: TComponent); override;

How I can force use TXMLConfig.Create('setting.xml')?
Or How I must rewrite my code?


 

To answer the first question, use the unit name in front of the 
component name.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] TZLibReadArchive issue... Attn: Andrew H

2005-09-12 Thread Tony Maro

Follow my steps here and see if I'm on track...


I have a TMemoryStream.
I pass it to TZLibReadArchive.Create()
When TZLibReadArchive is destroyed, it destroys my memorystream, instead 
of a copy of it or leaving it intact.


I'd think if I create a memory stream myself, then pass it to 
TZlibReadArchive, it shouldn't be freeing my object.


Thanks,
Tony

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Application.OnIdle

2005-09-12 Thread Tony Maro

Lord Satan wrote:

I am using Ubuntu myself but I installed GTK1 and never tried to build 
Lazarus with GTK2 support so I cannot help you there.


AHA!  I always knew there was something evil about Ubuntu!  If "Lord 
Satan" uses it, that just confirms my suspicions ;-)



As far as I can see libglib2.0-dev is in the standard Ubuntu repository, you 
should be able to just 'apt-get install' it or you can use synaptic.
 

My understanding is that Ubuntu is basically a prettied-up Debian, so 
you sould be able to find any packages you need.


-Tony

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Re: Menu icons in KDE / Gnome

2005-09-09 Thread Tony Maro

Felipe Monteiro de Carvalho wrote:




On 9/9/05, *dannym* <[EMAIL PROTECTED] > 
wrote:


Hi,

sysconfdir is a automake/autoconf variable that is f.e. set
by ./configure --sysconfdir=/etc

Default is /etc for some packages and ${prefix}/etc for others.

datadir, likewise. Default ${prefix}/share 



Documentation in Linux often assumes that the programs will be 
compiled from source. I usually deploy binaries and almost never use 
automake/autoconf =/


Maybe this is my Windows background, but I find that they should have 
specified in the documentation what datadir and sysconfdir are. I find 
it often better to explain things in documentations as if one does not 
know anything.


Actually the docs say they are listed in /etc/xdg/[something] and if not 
present there's a default path to use.  I don't think the configdir I 
was asking about quite matched his response, but I am like you and don't 
use make for anything I... make. ;-)  so perhaps his response is correct 
as well.


-Tony

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Re: Menu icons in KDE / Gnome

2005-09-08 Thread Tony Maro

Tony Maro wrote:


Tony Pelton wrote:



http://standards.freedesktop.org/menu-spec/latest/apc.html

those specs look like they cover at least the KDE and Gnome case 
fairly well.
 


Oh, I did miss this little documentation tidbit:

If $XDG_CONFIG_DIRS is either not set or empty, a value equal to 
/etc/xdg should be used.


So ignore my last pleading message.


I'm still not finding a way to edit the individual user menu - every 
method I've seen requires being root.


-Tony

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Re: Menu icons in KDE / Gnome

2005-09-08 Thread Tony Maro

Tony Pelton wrote:



http://standards.freedesktop.org/menu-spec/latest/apc.html

those specs look like they cover at least the KDE and Gnome case fairly well.
 


Oh, I did miss this little documentation tidbit:

If $XDG_CONFIG_DIRS is either not set or empty, a value equal to 
/etc/xdg should be used.


So ignore my last pleading message.

Thanks,
-Tony

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Re: Menu icons in KDE / Gnome

2005-09-08 Thread Tony Maro

Tony Pelton wrote:


On 9/8/05, Tony Maro <[EMAIL PROTECTED]> wrote:
 


So I'm still no closer to writing an install utility that will install
menu icons.

-Tony

   



and as per my earlier post ...

you've seen this ?

http://www.freedesktop.org/wiki/Standards_2fdesktop_2dentry_2dspec

 


Yes, already can write desktop entries confidently.


... and this ?

http://standards.freedesktop.org/menu-spec/latest/apc.html

 

Well, it's about as clear as mud - it's only describing placing files in 
locations that you MUST be root do do under legacy systems, but I know 
for a fact that you can affect the user's menu without having to be 
root... which I'd like to do.  Also, where the heck is "datadir" and 
"sysconfdir" or how do I find those?  I have no environment variables 
(not listed by "env" anyway) that describe these. 


GetEnvironmentVariable('XDG_CONFIG_DIRS') returns a blank string...

It's not often something frustrates me like this one is but I'm just 
having a hard time understanding what I'm reading and sync'ing it with 
my expectations I guess.


-Tony

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Re: Menu icons in KDE / Gnome

2005-09-08 Thread Tony Maro

dannym wrote:



I myself dont use desktop icons but I can relate why they might me
nice... (like immediately being visible after logging in, freely
positionable)

if I had a larger screen, they might be actually useful, but as-is, they
are _always_ covered by about >= 5 full screen windows, so I wouldnt see
them either way :)
 

I use just a few, but I run a pager that has 5 desktop's - one of which 
is kept free so I can see my desktop.  Otherwise what's the point of 
wallpaper?  lol


Really though, my real problem is I see all this "create a .desktop 
file" which I can do, but it's followed by these vague instructions of 
either "run a redhat script" or "add it to the XML file" that doesn't 
help me one darn bit about how to add a KDE or Gnome icon to the menu.  
I see references to "vfolders" but nothing on how to locate the proper 
vfolder.


So I'm still no closer to writing an install utility that will install 
menu icons.


-Tony

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Used mac laptop

2005-09-08 Thread Tony Maro

Razvan Adrian Bogdan wrote:


There should be all kinds of adapters out there from USB to PS2, they
might work for you :)
 


I've learned that most KVM's don't like adapters...

I've even got a Linux box that won't work with PS2 mouse on a KVM at 
all.  The mouse goes all over the freakin' screen and there's no fix.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Error example - Execute external program WIKI

2005-09-07 Thread Tony Maro

Adriano Frare wrote:


Daer TONY,

When I compiled and I have received follow ERROR
 IDENTIFIER NOT FOUND "DebugLn"

Sorry, I forgot to mention you will need to include LclProc in your uses 
clause.



Thanks

Adriano

Tony Maro wrote:


Adriano Frare wrote:


Dear Friends


I am testing example program procoutlarge on 
http://wiki.lazarus.freepascal.org/index.php/Executing_External_Programs 




but when execute LINE

  WriteLn('-- executing --');

The program abort. 




Is this a Windows computer?  Run this from a command prompt and it 
won't happen.  There's no console to output your writeln to, so it 
crashes.


I believe the better way to do it is

DebugLn('-- executing --');

This will work (or at least not crash) regardless of an existing 
console.


-Tony Maro



_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives



_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Re: Menu icons in KDE / Gnome

2005-09-06 Thread Tony Maro

Felipe Monteiro de Carvalho wrote:




On 9/6/05, *dannym* <[EMAIL PROTECTED] > 
wrote:



errr?

no. Just for the one user that installed or uses the program, of
course.
Or still better, none. Put it in the application menu.


I usually deploy on RedHat Package Manager (RPM) packages.

The package contains a bash script that is executed as superuser. So I 
have no way of knowing whitch user is actually going to use the 
program, as this will almost certainly not be the "root".


I like desktop icons =)

Unfortunatly it seams that desktop icons do not exist on all window 
managers.


True, but it seems all the recent Gnome and KDE desktop's I've used have 
a "/home/username/Desktop/" folder that works.  Debian, Mandrake and I 
think the other was a Knoppix.


-Tony

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Error example - Execute external program WIKI

2005-09-06 Thread Tony Maro

Adriano Frare wrote:


Dear Friends


I am testing example program procoutlarge on 
http://wiki.lazarus.freepascal.org/index.php/Executing_External_Programs



but when execute LINE

  WriteLn('-- executing --');

The program abort. 


Is this a Windows computer?  Run this from a command prompt and it won't 
happen.  There's no console to output your writeln to, so it crashes.


I believe the better way to do it is

DebugLn('-- executing --');

This will work (or at least not crash) regardless of an existing console.

-Tony Maro

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


  1   2   >