[lazarus] Delphi wiki

2007-03-25 Thread George Birbilis
http://delphi.wikia.com/wiki/Main_Page

maybe add some link to Lazarus wiki there and some comments on Delphi
alternative/compatible efforts (like FreePascal/Lazarus & Chrome)

wikia.com seems to have some potential (heard they're launching a search
engine too to compete with Google and Yahoo etc.)

----
George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2007
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com


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


RE: [lazarus] import ActiveX under lazarus

2007-03-14 Thread George Birbilis
> You're 100% correct.  It loads the plugin library and fakes the
> Browser functions needed for the plugin to work.
> 
> As I mentioned before, the Windows support is pretty good. Got Flash
> and Acrobat Reader to work. I was busy with the Linux support, when
> our project changed direction.  I would still like to finish it some
> day and maybe even include it in Lazarus.
> 
> I'll try and make some time, to right a Lazarus wiki page on it and
> how exactly it works.

The thing, is what do you do with the plugin after it loads/shows the
content you told it to? Can you talk to it somehow from your code?

BTW, many vendors had been implementing dual Netscape Plugin + ActiveX
control DLLs for Windows. That is one single DLL that provides the export
procs for Netscape plugins and for ActiveX controls (DllRegisterServer,
DllUnregisterServer [think there is an extra method to get a class factory,
but not sure since after registration you can get the component factory from
the registry or most usually using COM facilities - maybe they do have such
for cases when you don't want to register the component])

Speaking of the registry, I recently found an MSDN magazine article (online)
by Dino Esposito that showed how to add shortcut items to the left sidebar
of the windows xp fileopen dialog. It showed a thing called private registry
/ registry override or something, where an app can remap a part of the
registry to a private portion of the registry. That way two apps running at
the same time can have different shortcuts at their fileopen dialog,
although they both update the same registry keys to set the shortcuts.
Useful maybe to register ActiveX controls into a temporary registry and see
the controls only themselves and then when app finishes that registration
goes away. Especially useful for projects running from CD that don't want or
can't put stuff on the user's system


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2007
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com



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


RE: [lazarus] import ActiveX under lazarus

2007-03-14 Thread George Birbilis
> Theoretically no if it's the one based on Netscape plugins interface
> wich is similar to ActiveX this is quite a CrossBrowser solution and
> CrossPlatform, it's as simple to load as a dll/so you just need to
> know where it is in your system :)

Problem with this approach (in browsers' context I mean, not in other projects) 
is you have no late-binding support (for scripting), no location transparency, 
no versioning (can't load the same DLL many times) etc.


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2007
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com



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


RE: [lazarus] Search at Properties/Events pane

2007-03-02 Thread George Birbilis
> A good place for this is here:
> 
> http://wiki.lazarus.freepascal.org/Feature_Ideas

Thanks for pointing to this, just edited the wiki there

----
George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2007
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com

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


RE: [lazarus] Search at Properties/Events pane

2007-03-02 Thread George Birbilis
> If the reason for the search is because the component has such a lot
> of properties and it is hard to find, then Lazarus already has a
> solution. It's the Object Inspector's Favorites tab.  For any
> component type, you can add the most used properties to the Favorites
> tab for easy access the next time it is needed.

I have also suggested in the past adding a "Recent" tab there apart from the
"Favorites" one, it would be more useful since it's automatic

However the Search is useful when you inspect some code or GUI, debug, or
want to change some text (usually) value and want to search for stuff fast.
BTW, in VS.net most properties apart from a property editor have an editable
textual description (in the form 10; 20 for a Point for example), which is
useful in searching

 
> On 2/26/07, George Birbilis <[EMAIL PROTECTED]> wrote:
> > I'm going to suggest to MS to add to VS.net a "search" text box at
> the top
> > or bottom of Properties/Events pane to be able to search for a name
> or value
> > (maybe with right click menu checkable options on whether Name or
> Value or
> > both are searched) in the properties/events list
> >
> > Maybe you find this useful for Lazarus too
> >
> > 
> > George Birbilis ([EMAIL PROTECTED])
> > Computer & Informatics Engineer
> > Microsoft MVP J# for 2004-2007
> > Borland "Spirit of Delphi"
> > 3D, QuickTime, QTVR, Java, Delphi,
> > ActiveX, .NET components, Robotics
> > http://www.kagi.com/birbilis
> > http://birbilis.spaces.live.com
> >
> > _
> >  To unsubscribe: mail [EMAIL PROTECTED] with
> > "unsubscribe" as the Subject
> >archives at http://www.lazarus.freepascal.org/mailarchives
> >
> 
> 
> --
> Graeme Geldenhuys
> 
> There's no place like S34° 03.168'  E018° 49.342'
> 
> _
>  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


[lazarus] Search at Properties/Events pane

2007-02-26 Thread George Birbilis
I'm going to suggest to MS to add to VS.net a "search" text box at the top
or bottom of Properties/Events pane to be able to search for a name or value
(maybe with right click menu checkable options on whether Name or Value or
both are searched) in the properties/events list

Maybe you find this useful for Lazarus too

--------
George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2007
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com

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


RE: [lazarus] Delphi for PHP

2007-02-23 Thread George Birbilis
> > It does not seem to be in sourceforge anymore, zero files. 
> And I have 
> > seen a price of $499, did they change their minds about it being 
> > free/open source?
> >
> I think that isnt just published yet.

Anyway, the tool will be commercial, the core library/widgets used (VCL for
PHP, AJAX-style I think) will be / is opensource (haven't checked the sf
site if the stuff is online yet)

I consider it a very nice move to have the lib opensourced


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2007
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com

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


[lazarus] Suse linux with mono tools vmware image

2007-02-22 Thread George Birbilis
At mono website they have for download a Suse linux with mono tools vmware
image and a link to the free VMWare player. Is there a similar thing for
Lazarus?


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2007
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com

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


RE: [lazarus] import ActiveX under lazarus

2007-02-21 Thread George Birbilis
> >I remember that someone developed a component that can load Firefox
> > plugins. Then you could load the flash firefox plugin and 
> show that on
> > a form. I don't remember it's name, or where one can download it.
> > Perhaps others do remember?
> > 
> > And the solution will be much better then ActiveX, because 
> it will be
> > cross-platform.
> > -- 
> > Felipe Monteiro de Carvalho
> > 
> 
> THANKS i've found it  on svn://opensoft.homeip.net
> I try it!
> Mr Tack.

Does it need one to have FF installed though?


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2007
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com

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


[lazarus] Delphi for PHP

2007-02-21 Thread George Birbilis
???

 

see

http://www.codegear.com/AboutUs/News/DelphiForPHP/tabid/239/Default.aspx

and follow the link to the opensource VCL for PHP library (at sourceforge)
that is near the end of the text

 

may interest you

 

-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-

George Birbilis ([EMAIL PROTECTED])

Microsoft MVP J# 2004-2007

Borland "Spiriti of Delphi"

QuickTime QTVR ActiveX .NET Delphi

http://www.kagi.com/birbilis

http://birbilis.spaces.live.com

-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-

 



RE: [lazarus] lazarus saves every time I compile

2007-02-06 Thread George Birbilis
> > I close the 
> > project without saving it and saying to lazarus, when it 
> asks me, that I 
> > don't want to save.
> > The project is saved anyway with the modifications.
> 
> What modifications?

Maybe they mean the project itself, not the source files themselves. That is
add/remove files from the project etc. Maybe lazarus always saves those
modifications?


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2007
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com

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


[lazarus] my .net, 3D, Robotics and pascal bookmarks/favorites

2007-02-06 Thread George Birbilis
http://www.zinkmo.com/Public.aspx?uid=931320D41B7E0794

Have been looking for long time now for a good bookmark sync (between
browsers and machines) and publish (+remote collaboration on editing/adding
bookmarks) service and I think I have found it at Zinkmo! Published (for
now) my .NET, 3D, Robotics and Pascal bookmarks


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2007
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com

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


[lazarus] Delphi / C++Builder / FreePascal versions of Microsoft DirectX 9.0 SDK October 2006 Update

2007-01-22 Thread George Birbilis
http://www.clootie.ru/


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2007
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0703-0, 13/01/2007
Tested on: 22/1/2007 5:44:34 ??
avast! - copyright (c) 1988-2007 ALWIL Software.



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


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

2007-01-17 Thread George Birbilis
>   let me ask you a few questions:
>   are you still using 1.44 floppies?
>   are you sending compiled execs 20 times a day via 56k
> modem connection?
>   no? then why 1 or 2 mb bigger is so bad for you?
>   btw, delphi is NOT multiplatform. whant smaller exec
> linux+windows?
>   buy delphi, buy kylix, have a hard time porting
> everything and tuning
>   everything to work similar.
>   size is a cost of multiplatform and RAD+functionality power.
>   enough arguments? or should i add more?
>
> 
> I can't say anything.
>
> 

I know this is an old thread, but regarding Delphi silly .exe bloating, for
command-line apps, if you removed some units like forms or sysutils and uses
windows unit (and respective API - even for just one call to MessageBox
instead of ShowMessage) the .EXE would become say 50kb instead of 500kb.
Pretty crazy, maybe fixed at versions after Delphi7 (had told Borland guys
about it). Either the compiler didn't remove unused classes/code (in favor
of RTTI and dynamic stuff or something?) or it was some resources linked in.

In some case I had found that moving such units from interface to
implementation section at my units that the project was using it made the
size much smaller for the .exe


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2007
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0703-0, 13/01/2007
Tested on: 17/1/2007 5:15:23 ??
avast! - copyright (c) 1988-2007 ALWIL Software.



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


RE: [lazarus] Lazarus for Python (L4P)

2007-01-17 Thread George Birbilis
 > IMHO a OOo interface should use OLE/COM on windows, and any other
> > means (for example python) on other platforms. Although I
> think that
> > if python can call openoffice, FPC should be able to do the same.

I'd expect OO to use XPCOM like Moz, but not sure what they used

----
George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2007
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0703-0, 13/01/2007
Tested on: 17/1/2007 5:10:03 ??
avast! - copyright (c) 1988-2007 ALWIL Software.



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


RE: [lazarus] Lazarus for Python (L4P)

2007-01-17 Thread George Birbilis
> OLE and COM are supported in FPC, but only on Windows. So in
> theory you can automate OOo directly on Windows.

Btw, are ActiveX controls supported (more or less)? E.g. could one place an
AX on a form? Is there any helper functionality about importing an AX (not
necesserily the types, just the reference for starters) and adding it on a
form? (you can talk to it via late binding [scripting say via PascalScript
or Python or whatever] if you don't have autoimported types from the IDE or
write the code for early binding yourself then)

--------
George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2007
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0703-0, 13/01/2007
Tested on: 17/1/2007 5:08:35 ??
avast! - copyright (c) 1988-2007 ALWIL Software.



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


RE: [lazarus] Lazarus for Python (L4P)

2007-01-17 Thread George Birbilis
> But when it comes to speed, you can't use Python. It's a script-
> interpreter! Just like Matlab...

Matlab has compiler (into C)
Python has compilers (see Microsoft's IronPython for .NET for example)

> Further one small remarks:
> - Python isn't a programming language. Your introduction about Python
> says: 'written in Python programming language. It is an interesting
> interpreter'. Which is offcourse a contradiction in terminis. I guess
> that you would never write something that stupid about structural
> analysis in the book. (like: The structure is statically
> determinate, so
> it can't be solved by equations of statics)

Who says interpretted languages aren't programming languages? But anyway,
there are compilers for Python (as I said in previous e-mail I've made
compiler for Logo [generates Pascal from it] and you can do similarly for
pretty any language combined with some small or bigger runtime [for
reflection or name/value dictionaries etc.] for the dynamic stuff)

> About using Lazarus as a IDE for Python: some ppl here can react very
> hostile to that idea. And that's for a reason. From time to time ppl
> come here to tell us that Lazarus is great, but it's only a pity that
> it's written/used for Pascal.

Which filetypes does the Laz IDE now highlight? For example can it highlight
.XML or .XSL files? Since unihighlighter supports a ton of languages (have
contributed highlighter for Logo myself for example some time ago) I don't
see why the IDE shouldn't support all those and allow people to use it as a
universal programming editor if they wish so apart from using it for Pascal
projects (why use yet another text editor along with the nice Laz text
editor?). Delphi has been doing that too and VS.net does the same too, can
open and highlight many different filetypes and even provide intellisense
for many of them


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2007
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0703-0, 13/01/2007
Tested on: 17/1/2007 5:06:04 ??
avast! - copyright (c) 1988-2007 ALWIL Software.



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


RE: [lazarus] Lazarus for Python (L4P)

2007-01-17 Thread George Birbilis
> Anyway, porting Python4Delphi to Lazarus is practically
> impossible, it needs COM. So even if one wish to waste his
> time porting to lazarus P4D on windows, it could never work
> on linux or other platforms.

Mozilla XPCOM is basically COM compatible (defined same strucure for
IUnknown interface etc.). However I wonder if the port to Kylix for
Python4Delphi uses COM at all. What is Python4Delphi, is it a python
interpretter or just an API port/wrapper for some Python
compiler/interpretter/engine? I don't think there's one Python engine, but
many that implement the language "spec", so the wrapper can choose another
engine for Unix or a very portable one for both Win and Unix. Anyway,
there's other COM implementations for Unix apart from XPCOM and one can
easily implement basic parts of COM anyway

> I just pointed out time ago that a better idea is to embed
> python with Free Pascal. I already made this and it works, on
> windows and on Linux.

You mean implement Python over ROPS or vice-versa? I think the 1st to be too
hard or impossible. I've made Logo over ROPS, but Logo isn't that complex
compared to Python I think (for example ROPS is not really OOP, since you
can't define class types, just consume them from the Delphi host)


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2007
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com





  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0703-0, 13/01/2007
Tested on: 17/1/2007 4:59:46 ??
avast! - copyright (c) 1988-2007 ALWIL Software.



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


RE: [lazarus] IDE\revision.inc conflicting state?

2007-01-15 Thread George Birbilis
> > BTW: If you are on Windows then maybe you have old
> svn2revisioninc.exe
> > ?
> > I have revision displayed as Unknown in Lazarus about but after
> > rebuild svn2revisioninc.exe it returns to proper SVN
> revision number.
>
> I didn't rebuild. Just got the last source update and then at
> next update it conflicted

Now that I think of it again, I might have rebuilt first, then updated and
saw the conflict

Shouldn't I be getting the svn2revision.exe from Laz svn? Or is it in
Tortoise SVN? I don't have latest version of it cause I can't uninstall
existing version (bad MSI of tt, had renamed/deleted the installer of it and
now I can't uninstall cause it searches the installer at its original
location - have to kill it using the registry)


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2007
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0703-0, 13/01/2007
Tested on: 15/1/2007 1:23:19 ??
avast! - copyright (c) 1988-2007 ALWIL Software.



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


RE: Lazarus for Python (L4P)

2007-01-15 Thread George Birbilis
> > Take a lead - I just stated what L4P is - see above.  Python is a
> > mature language with enormous number of modules for every
> task under
> > the son and it is capable of better speed of development -
> I know, I
> > used to program Delphi until I discovered Python!  Well, If
> we could
> > port PythonForDelphi to Lazarus, Lazarus would really rock
> - it could
> > become a great front end for Python!

Btw, I'm just reviewing an article for IADIS2007 conference that speaks of
PyGPU, an embedded language (Python with some extensions running into
Python) for image processing, where you select functions to run on the GPU
processor of the graphics card(s). Very cool stuff for image analysis and
computer vision...


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2007
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0703-0, 13/01/2007
Tested on: 15/1/2007 1:26:30 ??
avast! - copyright (c) 1988-2007 ALWIL Software.



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


RE: [lazarus] IDE\revision.inc conflicting state?

2007-01-15 Thread George Birbilis
> BTW: If you are on Windows then maybe you have old
> svn2revisioninc.exe ?
> I have revision displayed as Unknown in Lazarus about but
> after rebuild svn2revisioninc.exe it returns to proper SVN
> revision number.

I didn't rebuild. Just got the last source update and then at next update it
conflicted

----
George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2007
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0703-0, 13/01/2007
Tested on: 15/1/2007 1:20:25 ??
avast! - copyright (c) 1988-2007 ALWIL Software.



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


[lazarus] IDE\revision.inc conflicting state?

2007-01-15 Thread George Birbilis
Have asked before why this one shows conflicts etc. from the SVN, but not
sure what is the reason. I have to delect all IDE\revision*.* files
everytime and update again to fix the issue


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2007
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0701-6, 08/01/2007
Tested on: 15/1/2007 12:02:11 ??
avast! - copyright (c) 1988-2007 ALWIL Software.



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


RE: [lazarus] Ide\Svnrevision.inc

2006-12-29 Thread George Birbilis
> I presume you are talking about revision.inc instead of
> svnrevision.inc?

Yes. Seems ok now, the file shows the green checkmark (started showing it
suddenly whithout me doing a new update I think [had tried several before
but kept on showing red exclamation mark])

> between other work. (the same applies to "makefile" btw as it
> can be recreated using fpcmake -r)

>From where does it generate it? From a project group file or something?
(thought lazarus didn't have project groups like in Delphi)

----
George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0662-1, 24/12/2006
Tested on: 29/12/2006 9:42:42 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


[lazarus] Ide\Svnrevision.inc

2006-12-27 Thread George Birbilis
What's the file svnrevision.inc in ide folder (of source svn distro)?
It always shows a question mark after SVN update with tortoiseSVN


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0662-1, 24/12/2006
Tested on: 28/12/2006 12:50:12 p?
avast! - copyright (c) 1988-2006 ALWIL Software.



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


[lazarus] Interesting links

2006-12-27 Thread George Birbilis
SVN frontend
http://trac.edgewall.org/
See example at LeoCAD project,
http://trac.gerf.org/leocad/browser/trunk/win, click on any file to see it
(not sure if their highlighter supports only C++ though)

--

>From there I also found
http://www.clearsilver.net/
at
http://www.clearsilver.net/downloads/
It says

ClearSilver is distributed in source form. Our primary development platform
is Linux/RedHat, however, it should compile mostly out of the box on any
UNIX.
The current source kit includes:

Libraries
. ClearSilver Utility Functions
. ClearSilver Template Library
. ClearSilver CGI Kit Library

Language Modules
. Python
. Perl XS
. Ruby
. Java JNI
. mono/C#

Examples
. Apache module
. Python Examples
. imd image browser CGI Example


Since TRAC uses ClearSilver and TRAC comes for Windows too, I suppose
ClearSilver can compile on windows too (maybe for Apache only)

Clearsilver libs might be interesting to port (if not too big) or to add to
them freepascal support (write templates in freepascal or design templated
pages with Lazarus)

----
George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0662-1, 24/12/2006
Tested on: 28/12/2006 12:17:14 p?
avast! - copyright (c) 1988-2006 ALWIL Software.



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


[lazarus] FPC bug: not showing cursor in windowed mode (at WinXP 32-bit)

2006-12-21 Thread George Birbilis
FPC bug: not showing cursor in windowed mode (at WinXP 32-bit). When in
fullscreen showing the cursor ok, maybe a bit too fast bliking (makes one
dizzy)

Sorry for posting here, have problem with FPC list manager (doesn't send me
my password)

If anyone can reproduce this, please report a bug to FPC bugtracker or FPC
dev list

TIA,
George


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0659-1, 16/12/2006
Tested on: 21/12/2006 5:41:33 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Project WiX opensource - make MSI from XML

2006-12-19 Thread George Birbilis
> > http://sourceforge.net/projects/wix/
> >
> > Useful opensource project (think some MS people are behind it, but
> > don't remember for sure) to make MSI (Windows Installer) files from
> > XML descriptions.
> >
> > Sending in case anyone wants to integrate installer
> creation utility
> > to Windows version of Lazarus
>
> What's the advantage of a .msi over a normal setup program?

Although I'm using InnoSetup mostly nowadays and I didn't keep up with the
evolution in the installation engines area (was using InstallShield etc. in
the past and custom-written Delphi installers or xcopy-style /
self-installing apps at their first run), I think the biggest benefit is the
possibility of making (and merging) patches for apps. See Windows/Microsoft
Update sites and Office Update site for example. With Office Update
especially the default is to download "diffs", not full files (and you need
either the installation media available or at install time you should have
selected to copy the needed installation info to disk), unless you do the
following:

---
Go to Office Update.
Click Check for Updates. Office Update will check your computer for updates
you need.
After Office Update checks your computer, click Options in the upper right
(just below the Go button).
On the Options for using Office Update page, select Use larger update files
that should not require access to my product CD or network installation
location.
Click Save. Office Update will check your computer again for updates you
need.
After Office Update checks your computer, click the Agree and Install button
to install the updates.
---

See
http://birbilis.spaces.live.com/blog/cns!2335BBEF59B92C54!143.entry
For some links about MSI and a link to an interesting MS blog article
explaining how they came to add their own SQL engine (relational database)
for the installer and what the guy thinks about that decision now looking
back. See a link I also have there to some example on querying an .MSI file
via SQL commands, interesting but maybe too much?


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0659-1, 16/12/2006
Tested on: 19/12/2006 5:19:41 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: Re[2]: [lazarus] Project WiX opensource - make MSI from XML

2006-12-19 Thread George Birbilis
> > And, like the case of .NET, there are rumors about that no install
> > technologies except .msi will be supported on Windows in
> some future.
>
> http://en.wikipedia.org/wiki/Fear%2C_uncertainty_and_doubt

This is impossible to force I think, unless you mean for installers not
running from admin / power user accounts. In fact I'd be voting for such
thing cause the various installers arround currently do system hell

BTW, in Vista there's no Windows help by default installed, but only HTML
help, so for older apps' help to work correctly, one has to download an
additional module (luckily it autoinstalls via the OS help system which
explains the issue - the question is how much size would it take to install
it by default? Maybe they want to eventually avoid maintaining it
security-wise when it practically disappears and to minimize the attack
surface of the default OS installations [which are the most percent arround
I suppose]). Tried it with Vista beta2 though, maybe in final version of the
OS they put it in by default


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0659-1, 16/12/2006
Tested on: 19/12/2006 5:11:29 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Component to force one instance by application

2006-12-16 Thread George Birbilis
> I created a component to force one instance per application.
>
> More info here: http://wiki.lazarus.freepascal.org/UniqueInstance

Was wandering if lock files could be used instead as more cross-platform
way. First instance could make the lock file, the other instances could find
the lock file and just return. User could delete the lock file manually if
app fails to delete it. Problem is though:
1) need to notify running app somehow to come to front (maybe if it polls
the lock file for something being written into it or if there's some
notification for such action [I don't think there is])
2) the possibility of app remaining locked after a crash and user having to
delete a lock file manually is bad in usability terms (although I remember
[years ago] various Unix apps used to do that thing).

On Windows btw, there are better ways than TCP/IP to do this stuff, for
example custom window messages or unique window names (using a GUID/UUID
maybe to guarantee uniqueness)

----
George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0657-0, 12/12/2006
Tested on: 16/12/2006 10:12:49 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


[lazarus] Project WiX opensource - make MSI from XML

2006-12-16 Thread George Birbilis
http://sourceforge.net/projects/wix/

Useful opensource project (think some MS people are behind it, but don't
remember for sure) to make MSI (Windows Installer) files from XML
descriptions.

Sending in case anyone wants to integrate installer creation utility to
Windows version of Lazarus


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0657-0, 12/12/2006
Tested on: 16/12/2006 12:06:33 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Font names shown in the respective font

2006-12-14 Thread George Birbilis
> > >> 1) get list of available font names (this seems to
> already be done
> > >> by the TFont property editor used at the Object Inspector)
> > >
> > >Yes. This can be quite slow.
> >
> > I'll try to do it once at creation, instead of at each
> update (I hope
> > the Object Inspector doesn't recreate the property editors at each
> > refresh, does it?),
>
> Not at every update, but frequently.

Shouldn't the OI keep a live pool of property editors then? (since they're
created given a property classname [or was it class], not a certain
instance). That way the font property editor wouldn't have to be recreated
since the OI would grab the same instance from the pool.

The pool would be only for the OI to use (are other tools in the IDE that
might want to use property editors? Then that pool should be more generally
accessible by the IDE code)

Btw, do I guess wrong that only one OI can be visible? is there a
requirement for many simultaneous views of the OI in the future? [say like
how split window works in Word by dragging that small knob over the top
arrow of the scrollbar - imagine being able to split the OI in two or more
separately scrollable views]

The pool could contain more than one prop editor of the same type if there's
such need and used ones would be removed from the pool by the using code,
then returned back to the pool when done (that's better than locking used
itmes cause the pool size remains small for easier search - search only the
free ones to use - plus if using code forgets to unlock would keep the pool
big - instead if it forgets to return to pool not much harm done to the
pool). Initially the pool would start up empty. When asked for items it
would work like a class factory, allocate the prop editors asked for and
return them. When using code is done using them, will (most probably)
return'em back to the pool. The pool (a hashtable) would have a max buckets
(how many types of prop editors it can keep) setting maybe and maybe also a
max bucket size (how many live instances of the same prop editor it can
keep)

Or does it do already like above?

The pool logic could be made generic (via some interface and/or ancestor
class) to reuse at other places (say for reusing component editors [although
that's a bit more risky since not-well written comp editors might need to
destroy and recreate after setting another component instance to them to
edit] etc.). Is some hashtable class available at Laz now?

Cheers,
George


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0657-0, 12/12/2006
Tested on: 14/12/2006 12:57:27 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Font names shown in the respective font

2006-12-14 Thread George Birbilis
>> > Fonts seem to be a tricky thing to handle.  I haven't looked yet,
>> > but anybody know how Qt handles this on multiple platforms?
>>
>> What I need to do is
>> 1) get list of available font names (this seems to already be done by
>> the TFont property editor used at the Object Inspector)
>
>Yes. This can be quite slow.

I'll try to do it once at creation, instead of at each update (I hope the
Object Inspector doesn't recreate the property editors at each refresh, does
it?), a thing is though if I could hook into the system to get notification
for new fonts added (maybe even Windows doesn't provide such [unless
possibly one asks for a shell filesystem change notification for the windows
fonts folder - assuming one can ask the system where that "folder" is, if
it's not just some virtual folder view in explorer as afaik I think it is])

> > > > I'm not an font expert, so I don't know, what properties
> > > are needed by
> > > > TFont to make it cross platform (if this is possible).
> > >
> > > I have to agree, that it is quite difficult to handle fonts on
> > > multiple platforms. fpGUI handles this in a very rudimentary way
> > > doing some basic mapping.
> > >
> > > TGfxFontClass = (fcSerif, fcSansSerif, fcTypewriter, fcDingbats);
>
> Only enums?
> How can a user define a font not in the enums?

Maybe one can just say what font family they want there? A bit limited
indeed

> > 3) when dropdown list / combobox calls me back to draw an item (it
> > should do that not for all its items, but only for the
> visible ones if
> > it's good dd list implementation), I'll do:
>
> AFAIK this is the case the gtk and the win32 interface.

I guess I can return immediately for items that our out of view (the
dropdown list should have a property saying how many items the drop-down
list shows I suppose) myself (will have to add a test check to see if they
callme back to draw each item [they might be calling me back the first time
to measure each item to make the dropdown list have enough width to fit all
items in case the user scrolls in it, but I might heuristically decide to
return the length of the biggest fontname times some fixed value - since the
biggest length is the one when you type something in monospace style])

> > 3.1) given that item text (which is a font name), and a
> font size (say
> > 8 [whatever size the rest of the OI text uses at that time - maybe
> > this is an IDE option?]),
>
> Nah. The IDE uses the current theme. The text size on a
> button can be different than the title or the size in a TMemo
> or TLabel.

I'd expect the IDE options to also allow setting (or overriding the system
defaults) the font size for the IDE

> > 3.2) draw the item (will result in cropping it if at 3.1 no
> resize of
> > list was done)
> >
> > For 3.1 & 3.2 I could use an autosizing TLabel (is it
> > cross-platform?) I suppose if TFont class doesn't have
> measure method
>
> No. Just use the Canvas methods to measure and paint the font name.

Depends on how complex it will be, could instead copy the canvas of that
label into the ownerdrawn item if I see it's easier (if one reuses the same
Tlabel instance it should be quick and clean in resources)
 
> P.S.: Can you tell your virus scanner to write less spam?

Unfortunately I've forgotten its pwd, will try to uninstall/reinstall it :o(


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0657-0, 12/12/2006
Tested on: 14/12/2006 10:28:01 p?
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] repository

2006-12-13 Thread George Birbilis
Thanks,

I'll make a .bat to set the FPC_PATH and FPC_BIN_PATH env vars and several
.bat for each of that stuff that "call" the first .bat that sets the FPC
path - so that you edit the paths only in one place (although I'd like it
better if FPC installer was setting these env vars globally - a related
thing is that VS.net puts at start menu a "Visual Studio 2005 command
prompt" option where it starts the command prompt with all needed paths etc.
set up for you, nice thing to have)

Will send new versions of the .bat when done placed at subfolder (can I send
.zip files to the list?)

> There are more options, like building an IDE with packages:
> make idepkg
> Or building an IDE with a lot of standard packages:
> make bigide

How do these two differ? Which packages does the 1st use? Does the 2nd use
all the packages in the source distro?





  _  

avast! Antivirus  : Outbound message clean. 


Virus Database (VPS): 0657-0, 12/12/2006
Tested on: 13/12/2006 12:12:29 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Font names shown in the respective font

2006-12-13 Thread George Birbilis
> > I'm not an font expert, so I don't know, what properties
> are needed by
> > TFont to make it cross platform (if this is possible).
>
> I have to agree, that it is quite difficult to handle fonts
> on multiple platforms. fpGUI handles this in a very
> rudimentary way doing some basic mapping.
>
> TGfxFontClass = (fcSerif, fcSansSerif, fcTypewriter, fcDingbats);
>
> Querying the font based in any of these 4 font classes, will
> work fine cross-platform.  Specifying a specific font will
> not be 100% cross-platform.
>
> ... Each platform will implement how the font class maps to a font.
> Here is the X11 code ...
>
> class function TX11Font.GetDefaultFontName(const AFontClass:
> TGfxFontClass): String;
> const
>   FontNames: array[TGfxFontClass] of String = (
> 'times', 'bitstream vera sans', 'courier', 'symbol'); begin
>   Result := FontNames[AFontClass];
> end;
>
>
> Fonts seem to be a tricky thing to handle.  I haven't looked
> yet, but anybody know how Qt handles this on multiple platforms?

What I need to do is
1) get list of available font names (this seems to already be done by the
TFont property editor used at the Object Inspector)
2) create onwer drawn drop-down list (instead of the standard one used now
at Tfont property editor)
3) when dropdown list / combobox calls me back to draw an item (it should do
that not for all its items, but only for the visible ones if it's good dd
list implementation), I'll do:
3.1) given that item text (which is a font name), and a font size (say 8
[whatever size the rest of the OI text uses at that time - maybe this is an
IDE option?]), measure the text with that font and size the item or the
whole list (if dd list supports changing its dropdown size to fit the
biggest item or in generally be wider than the edit box / label that is
placed above the dropdown [recent dd lists in Windows GUI seem to do that,
but not sure if they're the classic combobox windows control or other new
impl by MS])
3.2) draw the item (will result in cropping it if at 3.1 no resize of list
was done)

For 3.1 & 3.2 I could use an autosizing TLabel (is it cross-platform?) I
suppose if TFont class doesn't have measure method

Will also need to look the Tcolor property editor to do how it does the
owner-drawn dropdown list


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0657-0, 12/12/2006
Tested on: 13/12/2006 12:23:33 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] repository

2006-12-13 Thread George Birbilis
> IMO it is a good idea to provide a simple way/batch file to
> build lazarus. But IMHO it is a bad idea to put several
> batches/scripts for each platform into the main directory.
> It would be better to add a INSTALL.txt, describing the most
> common build commands for every platform and pointing to the
> wiki for the rest.
> At the moment these things are in the README.txt.

That's why I suggested putting them in a buildscripts or scripts subfolder
with subfolders in it for each platform. That helps people quickstart to
play with Lazarus code and for Windows (and OS-X eventually) people it's a
must I believe

----
George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0657-0, 12/12/2006
Tested on: 13/12/2006 12:07:52 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Font names shown in the respective font

2006-12-13 Thread George Birbilis
> The LCL provides a Delphi compatible TFont.
> The widgetsets searches the nearest font.
> The gtk interface also understands XLD font names, where the
> font name is a 15 attribute filter.
> So, basically you can select every available font under
> windows and under gtk/X. But they are not cross platform.
>
> The OI combobox is custom drawn, so it would be possible to
> draw every font. But afaik this would be quite slow and needs
> a lot of resources.
>
> I'm not an font expert, so I don't know, what properties are
> needed by TFont to make it cross platform (if this is possible).

The thing is that you have to "measure" the string to calculate its
dimensions given the font family, text size, font style etc. which I don't
remember if TFont class provides itself in Delphi or if one had to use
Windows calls for it (maybe it does provide). I was also thinking that I
could reuse in the background an autosizing TLabel (there was such I think
in Delphi) and set the text to it (=the font name itself) and the font name
and keep some same font size, then tell it to size itself (without adding it
to a parent - hope it doesn't play it clever in that case and do nothing),
then ask it it's dimensions (so that I avoid messing with the font measuring
calls if they're complex)

I wonder why it should be a resource hog if fonts are implemented ok in Laz
and in the OS or window manager. I've done it in JFC/Swing many years ago
and it played very nice (JFC/Swing wasn't the most optimized lib back then
[it still itsn't]). Also, old Macs were doing that (back in 1997) and didn't
have problems. Anyway it will be a property to turn on/off. Think it's
interesting exercise for me to get more comfortable with Laz object
inspector code, so I'll try to give it a try

Another thing I'd like to add is wiring option on the form designer, maybe
similar to IBM's VisualAge or even simpler

Cheers,
George


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0657-0, 12/12/2006
Tested on: 13/12/2006 12:05:43 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Gambas

2006-12-12 Thread George Birbilis
> Wow you government wants to keep a good hold on things.
> What about people that still use paper ? (we still have theme here).

Has to be double or triple-print paper, that you take to the tax authorities
office, you stamp each page ([EMAIL PROTECTED]@[EMAIL PROTECTED]) with your 
details (or buy special
paper with the details preprinted) and then they punch through a special
code at the whole block of pages, sometimes making it hard to fill-in the
text cause the paper has lots of holes at some tight space fields. Other
times, your details haven't been stamped clearly at some pages and you have
to invalidate those page pairs/triplets and make sure you don't lose one
cause they'll consider it cheating etc.

Here, they treat you as a crook and you pay heavy fines (with lots of
interest per year) for each error you do in keeping your books, but when
they owe you money due to their mistake they don't give you any interest for
the time passed (I think this recently changed, but I might be wrong)

----
George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0657-0, 12/12/2006
Tested on: 12/12/2006 10:56:58 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Gambas

2006-12-12 Thread George Birbilis
> Do you make finnacial software for your market?
> osFinancials has a verry good basis for accounting. Im sure
> most of the reports are just a mater of the right SQL and
> some transformation.

Not yet (you never know), but I'll keep osFinancials in mind

Have done mostly low level integration work for a risk analysis application
integration module with Greek stock exchange online system and some
consulting to them on distributed systems (DCOM, XML/SOAP etc.). It was for
Systemic Risk Management company in Greece (http://www.systemic-rm.com).
Looking at their website now they claim to be market leader in their field
in the mediterranean and middle east region (they already did work with
major players back then [it was arround 2000-2001 if I remember well])

cheers,
George

----
George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0657-0, 12/12/2006
Tested on: 12/12/2006 10:52:25 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] How to integrate an Application into the Lazarus-IDE (forlocalization Lazarus Applications)

2006-12-12 Thread George Birbilis
> But therefore need access to all Forms in the current opened
> Laz-Project inside the IDE. How can i solve this Problem.

Delphi had OpenTools API. Maybe Lazarus IDE has similar?

> Has someone any tips i could do that ?
> Are some Prople interested in having such a translation tool
> inside Lazarus ?

Problem is how you would catch up with newer versions of Lazarus. Your tool
would need to be in source form maybe and people would reinstall the package
with every new version of the IDE (or it could come with the IDE as built-in
if it's good enough)

> I could generate the file by runtime too, if the
> translation-file isnt existend, but i would like to have it
> as a seperate tool inside the IDE of Lazarus.

I'd like that too. Calling it from inside the IDE as an external tool might
also do the job, if the tools actions have an option to save project before
calling the external tool and have special vars like in Delphi to pass to
the command-line of the called external tool

> Or is it better to make a component with a component editor to do it ?

The loader of the translations could be a component so that one could do MUI
(multi-user interface) like GUIs and switch language at runtime on the fly
(localization used in FPC/Laz doesn't usually work that way I think, but you
statically compile the language so you have many executables/libs, not a
single one with resource dlls, but I might be wrong on it)

> There i have the next problem. I know how to create
> Components but i don't know how to create a component-editor...

Are they like in Delphi? If so, can sent you examples of mine

> What is the best format to store the Translation File. I
> don't know if i should use XML. Maybe it's senseful to make
> it transform to a po file to make it possible to edit by
> poEdit or similar applications.

Indeed an XSL transform would be nice to make .po etc. Could produce borland
translation files maybe too someday

> Should i use one file per Language or is it better to have
> one big file for all languages.

Per language is better I feel

See below for some more stuff on localization:

--- reply on this list:

> Is there any document/help on how to localize (or even better
> internationalize [have it dynamically load the correct localized
> resources])
> the Lazarus IDE and Lazarus apps in general?
>
> In Delphi you use resourcestring (I see Lazarus/FPC also accepts
it),
> but not sure how to use that without the Delphi ITE (the
translation
> editor & related wizards) and if Lazarus works exactly the same
way

George,
   
You can see how it's implemented in
./lazarus/ideidetranslations.pas. The FPC documentation is an excelent
reference :
 
http://community.freepascal.org:1/docs-html/prog/progch9.html#x204-20800
09
   
HTH Darius
   
   
--- following is from FPC or Laz online docs I think:

Quick Start for translators:

For example finnish translation:
Search for all *.fi.po files. They are simple text files, with an easy
format.
Edit them with programs like kbabel.
Run 'sh localize.sh' to update translations.

Send the updated xxx.fi.po files to [EMAIL PROTECTED]
Do not send diffs for .po files.


Now the background:

The /languages directory contains all the stuff for
internationalization of the lazarus IDE.

There are a few other directories for the codetools and the lcl. They work
all the same. All language files can easily be updated with the
/localize.sh or \localize.bat script.


All text and messages used in the IDE (except the special designer units)
should be placed into the unit lazarusidestrconsts.pas. This unit uses a
resourcestring section, so that the compiler will create the
/lazarusidestrconsts.rst file.
Since this is a fpc-only format it must be converted with the rstconv
program:

cd /languages
rstconv -i ../lazarusidestrconsts.rst -o lazaruside.po

Hint: this is done by /localize.sh or \localize.bat.

This will create the file lazaruside.po, which should be translated in all
required languages to a lazaruside.xx.po file. For the xx see the gettext
unit in the procedure TranslateResourceStrings.

german:   lazaruside.de.po
russian (KOI8-R): lazaruside.ru.po
spanish:      lazaruside.es.po
french:   lazaruside.fr.po
italian:  lazaruside.it.po



George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0657-0, 12/12/2006
Tested on: 12/12/2006 8:04:01 ??

[lazarus] Borland project file to makefile?

2006-12-12 Thread George Birbilis
Is there some utility to convert borland project files to makefiles?

Haven't checked btw if Laz project files are makefiles or not, if not is
there at least a tool that converts those to makefiles? (since there is
convertion from borland project files to laz ones already)

Else does the command-line compiler accept some kind of project group (or
file with sequential list of projects) to build? (I suppose for that one I
can also use my FOREACH filter [some other stuff planning to opensource is a
collection of dos filters written in Turbo Pascal])


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0657-0, 12/12/2006
Tested on: 12/12/2006 11:38:58 p?
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] repository

2006-12-12 Thread George Birbilis
> Once a file exists, SVN only get the difference on each
> update, to minimize network traffic.  Only the first checkout
> is a complete copy of each file.

I suppose it downloads the "real" file, then copies to the .svn folder, not
get it twice





  _  

avast! Antivirus  : Outbound message clean. 


Virus Database (VPS): 0657-0, 12/12/2006
Tested on: 12/12/2006 11:23:56 p?
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] repository

2006-12-12 Thread George Birbilis
> > > Nonsense. The .svn folders contain a whole copy of the files.
> >
> > ??? Strange, I'd expect them to contain signatures (MD5 or
> something)
> > and get the whole copy from the server when needed to diff
> (after all
> > the files [each one separately] aren't huge)
>
> SVN does keep a copy in the .svn folder. This is how it
> manages to create a diff without communicating with the
> server. SVN tries to communicate as little as possible with
> the server, which I think is excellent.  It is also great for
> people with slow internet connections.

It could else split the files internally in parts of a max number of lines
or something and keep signature for each part (calc sig after stripping
white space), then compare the parts with server sigs and get the needed
parts of each file etc. However having all those copies at each client is
extra safety I suppose in case of disaster...

Btw, I guess SVN doesn't download the files at the .svn folder, but creates
such file after it downloads a new version of a real file, so same could be
done with the snapshot. One could download a snapshot and run a script that
checks file sigs from the server and gets only the changed files (since the
snapshot release) and puts at the .svn folder and at the main folder and
then copies the rest from the main folder to the .svn folder (maybe one can
tweek to see tortoiseSVN code to behave like that and make it an option
[unless it can do that already?] or a fork)


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 12/12/2006 10:01:39 p?
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] repository

2006-12-11 Thread George Birbilis
> There is no singleton IDE option. Why would you want to have this ?
> How will you debug lazarus with itself, in such a case ?

It is cause I use Windows Explorer (many people use that for organizing
project files) to open files in the IDE and with Lazarus I get a new IDE
running each time

The debuggee and debugger instances of the IDE would be treated as two
singletons in that case (with different id, say lazarus and lazarusdebug).
If wanting to run many lazarus versions side-by-side, then at the id one
would also add the full build version, although I don't see such a
requirement.

BTW, what happens now when you run lazarus and open lazarus to debug it and
in that 2nd lazarus you open lazarus again to debug it? (and so on?). Does
it fail?

--------
George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 12/12/2006 1:00:30 p?
avast! - copyright (c) 1988-2006 ALWIL Software.



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


[lazarus] Interesting: Mylar

2006-12-11 Thread George Birbilis
>From "SD times":


Mylar for Eclipse Calms Chaotic Project Views  
   
By Alex Handy  
   
A free Eclipse plug-in available today, Mylar 1.0, seeks to bring calm
to chaotic and colossal development projects. Mylar swaps out traditional
project views in favor of dynamically created task-based groupings of files
and ephemera, giving developers a way to cluster the files they need.

Mylar is designed to observe a developer's actions. When a bug report is
checked, for example, a developer can click on each file referenced in the
related stack trace. Mylar will remember these files and associate them with
the bug report. The tool also will catalog all the other files touched
during the ensuing bug fixing. This information is then stored in either the
bug tracking system, or in the source code repository.

Later, if this bug is revisited, the developer working on the fix can bring
up a project view of only the files related to the task. The project view
offered through Mylar is a hierarchical tree based on tasks, rather than
simply on alphabetical order. Each task is dynamically modified as the user
works on it, adding necessary files and reports to the hierarchy. Therefore,
developers can quickly switch between tasks, bug fixes and refactoring
duties without having to search for the files they need to modify.

The tool can be downloaded at
www.eclipse.org/mylar

----
George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 12/12/2006 12:55:23 p?
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] repository

2006-12-11 Thread George Birbilis
> 1) Can you please add the following batch file to the Laz
> source distro?

Also, what is lazarus.exe and what startlazarus.exe? (big size difference).
Why are there two?
If it's for making a singleton process and starting the small one first,
then closing if large one is running it's not needed, since if large one is
running, running it once more shouldn't cost much if the singleton check is
done early

does Laz IDE have singleton IDE option btw? Else, I'd like to add one if you
suggest a cross-platform method [Lock file? Sockets? Pipes?] (that is if
there's not some easy to use lib [and efficient, that runs early before all
resources load] for Laz already to make singleton apps that the IDE app
itself could use)

----
George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 12/12/2006 12:46:20 p?
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] repository

2006-12-11 Thread George Birbilis
In fact it should be

Set path=%fpcmakepath%;%path%

So that the %fpcmakepath% takes precedence (the leftmost ones are checked
first), in case other MAKE are in the path from MS or Borland or other tools

1) Can you please add the following batch file to the Laz source distro?
Please name it either MakeAll.bat or better RebuildAll.bat since I think
"make clean all" in fact does a "Rebuild all" action instead of compiling
only the "changed" stuff (files with "archive" attribute on?). Please add
the file as is, without edits, esp. don't add a space between o and : at
"echo:" cause it's a trick to echo an empty line and has to stay as is. The
:: are comments, can also use REM but it's ugly and hard to read then

2) Also, is there some make command (haven't used it for ages) to do
"Compile all" and "Build all" actions (first will make object files or
whatever changed but with no linking [not much needed though] and second
will do linking too but only changed stuff compared to the "Rebuild all"
which builds all stuff again and takes long time). Such actions are a bit
classic in Delphi-world, esp. the "Build all" so an extra .bat called
BuildAll.bat with the make command modified to not rebuild all stuff, would
be useful to include too in the distro.

In fact the "set FPC_PATH" and "set FPC_BIN_PATH" and each ones preceding
comment lines could exist in separate .BAT called FPC_paths.bat and both the
BuildAll.bat and RebuildAll.bat could call that doing

call FPC_paths.bat

at their start (after the @echo off command [the @ is there to not echo the
command "echo off" itself to the console]) instead of the set FPC_PATH and
set FPC_BIN_PATH. Don't forget to prepend "call" in that case cause else the
environment vars set at the other .bat file will be ignored (in fact I think
execution flow would then continue at that .bat file and never return to the
caller)

Also modify readme.txt and online wiki to inform windows users that they can
do this (in fact Unix users should also have such ready-made scripts for the
various command shells of *nix [.sh etc.] to automate the builds and check
for build errors instead of typing in commands and then reading carefully
the output to see if there were errors etc. thrown, could keep all those at
some "buildscripts" subfolder with subfolders for each platform if they
become many files)

thanks,
George

P.S. let me know if you have any objections to this

 RebuildAll.bat follows:


@echo off

::-- edit the following line to match your FPC installation folder
set FPC_PATH=c:\fpc\2.0.4

::-- edit the following line to specify the FPC bin subfolder for your
target platform
set FPC_BIN_PATH=%FPC_PATH%\bin\i386-win32

set PATH=%FPC_BIN_PATH%;%PATH%
::-- echo %PATH%

make clean all
echo:
if %ERRORLEVEL% NEQ 0 goto ERRORS

echo [OK]
goto FINISH

:ERRORS
echo [Errors occured]

:FINISH
Pause





  _  

avast! Antivirus  : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 12/12/2006 12:41:10 p?
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Font names shown in the respective font

2006-12-11 Thread George Birbilis
> Ignoring the font dialog since it's another thing (it has
> preview which covers the needs of the user a bit), the font
> name property editor (it shows a drop-down list, could show
> an owner-drawn one instead) would be the thing to change
> (once for all platforms I suppose). BTW, speaking of many
> platforms, how does Lazarus support "fonts" crossplatform?
> (does it delegate the burden onto the OS ? [since there is
> raster/bitmap fonts, TrueType, OpenType, PostScript etc.
> fonts that one could support)

I know in Delphi one uses owner-drawn list to draw their own items (in fact
I had suggested Delphi Object Inspector do that many years ago at Delphi
newsgroups, when we had plain text dropdown lists even for color names), but
what is used in Lazarus? Is it the same scheme or something that is maybe
more crossplatform? Any online text about it?


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 11/12/2006 9:44:29 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] repository

2006-12-11 Thread George Birbilis
> But it doesn't seem to be extremely hard to build something like :
> - the Lazarus tree is put on a ftp server
> - inside the tree there is a file containing (for axemple) the list of
>files and their md5 checksums
> - when a user clicks "Update Lazarus" , the program downloads
> the list of files
>and compares it to what exists on the local machine. And
> then downloads
>the files that were added or modified.
>
> Probably this is just an idea for the future : for Lazarus 1.0  and
> beyond ?   Right now
> Lazarus is under active development and updating through svn
> works just fine in my opinion .

I have made FtpArchiver in the past that scans a folder/subfolders for files
and folders that have the archive bit on and uploads those, then turns off
that bit after successful upload of each one. Windows OS turns on the
archive bit when you save a file, however they don't set the bit when you
make a new folder which is pretty unfortunate (have sent bug report for it
serveral times now)

I use it for my own offline websites to upload only changed pages to the
server

I could modify that one to do the job, don't remember though if it was
written with Indy or other older FTP library for Delphi that might not exist
for Laz (btw, I can also opensource the code of FTPArchiver if you guys
think such a tool is helpful)

Another thing is that for my needs doing it with Inno Setup (using Inno
Setup Extensions [ISX] via ISTool GUI would be quite easy, without even
writing any PascalScript [ISX allows one to write scripts too with
RemObjects PacalScript]), but that would be Windows-only solution

Also, is the online snapshot unpacked or packed in an archive? In the 2nd
case, what format is it and is there cross-platform Laz lib for that
archive? (zlib for .zip?)


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 11/12/2006 9:40:03 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] repository

2006-12-11 Thread George Birbilis
> Downloading subversion Lazarus consists of typing 1
> expression on the command prompt. This expression can be
> copied from the Wiki.
>
> Compiling the downloaded svn consists of typing: make clean all
>
> I don´t really think it´s a lot of instructions. The wiki
> instructions " Using SVN -Using the command line ":
> http://wiki.lazarus.freepascal.org/Getting_Lazarus
>
> Consist of 7 lines of instructions.

You mean one can apply this on the snapshot? That would be good





  _  

avast! Antivirus  : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 11/12/2006 9:32:35 ìì
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Gambas

2006-12-11 Thread George Birbilis
> The other stuff you talk about is XBRL. And if if cource
> accounting standaards for stock (FIFO LIFO).
> This is mainly about the current stock value.
>
>
> http://www.xbrl.org/SpecRecommendations/
>
> This allows (for instance) to export a trailbalance in a
> general format than manny packages can read. Also E-billing
> etc is put in to this world wide format. Still no need for me
> to get this all in to osF today. Most of the stuff is just
> when you publish your companies data and that usaly gets done
> by the accounting office. They can take a trail balance
> (agragated data) and put that in to there package of choice
> that can produce this data. (it's a verry expensive packages
> im sure ).

Thanks for the link, but I'm not sure it's that, they call the thing I was
saying here as "International Logistics Standards" and it has to do with how
you calculate the profits etc. If you use other system (as is still done
here by many companies) you get other data that may "hide" the real picture
of the economics of a certain business (see hype and bubbles). Eventually
all will have to switch and use the so-called international logistics
standards whichever those are (it's more of a certain way to do logistics,
not some thing necesserily related with software and informatics). However I
may have understood wrong all this discussion here and it might be related
more or less to XBRL too


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 11/12/2006 9:31:12 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Gambas

2006-12-11 Thread George Birbilis
> I have been to greece and it seemd to me the cash registers
> (a part that osFinancial handels to) are just plain standaard
> cash-registers. Are you sure its certified ? Or is it a
> recommendation ?

For many years now they can replace the cash register machines (those have
special license and are sealed by the tax authorities) with computers. They
needed special triple-print paper punched though by the tax authorities but
now they can choose to use special accounting software that is certified and
prints certain numbers at the bottom of each normal A4 or whatever other
paper format receipt. The s/w then can create a disk with the receipt data
regularly and they give it to the tax authorities (maybe some s/w can also
upload the info online to the tax authorities or periodically connect and
upload when needed). All such stuff is specified by the project TAXIS (see
www.taxisnet.gr [Greek], also see www.gsis.gr [General Secretariat of
Information Systems - Greek Ministry of Finance - they should have an
english page - can find ministries' pages from www.goverment.gr and
www.parliament.gr links])

> B.t.w. osF has got a greek translation but it only works on a
> greek windows (default codepage)

At the regional settings on the control panel, there's selection of the
current locale but also and Advanced button where you select the default
language for non-Unicode programs. Maybe you need to set Greek there
(classic problem with non-Unicode s/w running on English windows in Greece,
some people see garbage fonts and wonder why cause that option is a bit
hidden in Windows).

Also you can get Greek MUI (Multi-User Interface) and install it over
English Windows and then at the regional settings appears an extra option
where you can select the OS default language to be Greek in order to see the
OS menus in Greek. Some s/w like Office (and some other third-party s/w)
respect that option and whether they use MUI technology (only MS s/w use
that for now, not yet public technology from what I know) or not, they can
show their own menus etc. in the OS default language then (irrespective of
the regional options settings - user can still have currency etc. in English
or other locale if they wish). I'm not sure which API call (or registry
setting) allows you to find the OS default language, neither of which shell
notification is there (there should be some) to inform a running program
that the OS default/menu language has been changed to update its guy on the
fly


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 11/12/2006 9:26:37 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] repository

2006-12-11 Thread George Birbilis
> > Regarding size, we could have a clever
> autodownloader/installer that
> > reads a config/instructions file online from Laz site and grabs the
> > correct FPC archive from FPC site, unpacks it etc., same with Laz
> > files and places them were needed
>
> Yes, please implement this. I cannot wait for your patches,
> because I have been dreaming for something like this for two
> years now and I never seem to come to it, there always thinks
> I like to do more or find to be more missing in Lazarus.

Which library would people suggest for this? Should I go for it, would it be
ok to use Indy or is there someother better / more stable / supported lib
for Lazarus?


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 11/12/2006 9:15:07 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] repository

2006-12-11 Thread George Birbilis
> Somebody not patient enough to walk through the setup won't
> fix anything anyways.

Well, I've fixed the unihighlighter (had posted the fix to the list, but
never found the time to setup and then diff etc. [was too busy - now trying
to make some time to send the diff, have installed laz, fpc, the fpc help,
need to repair tortoise-svn on my pc, then will see the sources if the fix
is there or not])

> > Regarding size, we could have a clever
> autodownloader/installer that
> > reads a config/instructions file online from Laz site and grabs the
> > correct FPC archive from FPC site, unpacks it etc., same with Laz
> > files and places them were needed
> >
> > Regarding the .svn folder I believe if it's standard it
> should be in
> > the snapshot (it doesn't take much size after all)
>
> Nonsense. The .svn folders contain a whole copy of the files.

??? Strange, I'd expect them to contain signatures (MD5 or something) and
get the whole copy from the server when needed to diff (after all the files
[each one separately] aren't huge)

> > so that one can go on and use
> > the SVN after they initially get a snapshot (for quickstarting)




  _  

avast! Antivirus  : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 11/12/2006 9:13:30 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] repository

2006-12-11 Thread George Birbilis
> All this is possible, but IMHO it is nonsense to put effort
> into creating such a snapshot.
>
> I think there is some intelligence test, test if people
> persevere enough. If a person cannot find the link to getting
> the sources from the home page and follow those instructions
> to get a svn checkout, it is unreasonable to expect such a
> person to provide sensible patches.

I can't say I agree, people with experience and skills don't have the time
to spend reading all those instructions etc. So they must be very determined
to fix or enhance something that bugs them in Lazarus or if they like very
much to contribute something back to Lazarus. In both cases the time they
lose in setting this up (if they don't get discouraged and give up in the
first place) is lost from time they'd give in reading the sourcecode and
possible fixes/enhanchements they'd do (and contribute).

Regarding size, we could have a clever autodownloader/installer that reads a
config/instructions file online from Laz site and grabs the correct FPC
archive from FPC site, unpacks it etc., same with Laz files and places them
were needed

Regarding the .svn folder I believe if it's standard it should be in the
snapshot (it doesn't take much size after all) so that one can go on and use
the SVN after they initially get a snapshot (for quickstarting)





  _  

avast! Antivirus  : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 11/12/2006 10:13:23 p?
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] repository

2006-12-09 Thread George Birbilis
> >> We have almost this. We call this snapshots:
> >>
> >> http://www.hu.freepascal.org/lazarus/
> >>
> >> They come with latest lazarus source + lazarus compiled +
> free pascal
> >> in either 2.0.4 or 2.1.1 versions.
> >>
> >> The only difference from what you asked is that they cannot be
> >> updated via subversion. You need to download a new snapshot.

Is the .svn subfolder that tortoise-svn for example (on windows) creates a
standard one? (that is other SVN clients will use that folder and understand
the settings files in it?)
If so, then the snapshot can contain such a folder (that is be checked out
itself from the SVN)

That way, one would get the snapshot, then just tell SVN to update the
Lazarus source folder and rebuild to get the new compiled version (although
it would be also nice to be able to do SVN update at the compiled folder
too). Similarly the FPC folder could contain .svn or .cvs (if freepascal
uses such) subfolder to be able to sync that too. Could have some readme.txt
with a link to a Lazarus webpage that has links to popular SVN clients for
the various platforms supported by Laz and some info on how to do the update
(with tortoise-svn is as easy as right clicking the folder you want and
doing "SVN checkout..." (won't need to set the SVN URL the first time since
the .svn folder from the snapshot will contain it). That is assuming as I
say before the .svn subfolder is something standard for storing client-side
info by SVN clients


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 9/12/2006 4:38:10 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Article on Pixel.

2006-12-09 Thread George Birbilis
>  For the Lazarus users: Pixel is written using a
> >> widget-set developed
>  by Pavel.
> >>> Greetings,
> >>> Is it online?
> >> The article ? Not that I know of. The program is:
> >> http://www.kanzelsberger.com/
> >
> > I don't see Lazarus mentioned at the splash screen of the windows
> > version (some of you guys are mentioned, but wouldn't harm
> to mention
> > Lazarus too or
> > instead)
> > Also didn't notice Lazarus button or something at the
> website (didn't
> > look much though, maybe have missed it)
> >
>
> As far as I know, Lazarus is not used to develop Pixel.

Indeed, you say just FPC above, not Lazarus
my mistake,
G. 



  _  

avast! Antivirus  : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 9/12/2006 4:17:15 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Article on Pixel.

2006-12-08 Thread George Birbilis
> > > The latest issue of Linux Journal features an article about Pixel
> > > (By Pavel Kanzelsberger).
> > > It gives it a very good comment. Pity it's not mentioned
> that it's
> > > written using FPC.
> > > (the article is written by a writer/publisher, not a programmer).
> > >
> > > For the Lazarus users: Pixel is written using a
> widget-set developed
> > > by Pavel.
> >
> > Greetings,
> > Is it online?
>
> The article ? Not that I know of. The program is:
> http://www.kanzelsberger.com/

I don't see Lazarus mentioned at the splash screen of the windows version
(some of you guys are mentioned, but wouldn't harm to mention Lazarus too or
instead)
Also didn't notice Lazarus button or something at the website (didn't look
much though, maybe have missed it)


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 8/12/2006 11:17:33 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Gambas

2006-12-08 Thread George Birbilis
In Greece if you want to print receipts to customers, the s/w has to be
certified by the state (it also has to print some special numeric codes so
that the don't have to get special triple-layer paper punched out by the tax
office)

Also, for medium and big bussinesses there is some law coming I've heard to
enforce certain international logistics standards that differ from the
current ones (needed esp. for companies that are in the stock exchange,
since local and foreign investors have to be able to read their published
info and be able to understand / compare it, plus allow the companies to
speculate less or hide things from the public)

>
> In my country theres no realy autorsation for accounting.
> Theres for making payment slips and hooking up to PIN
> machines (Payment with a bank card). I think this is the case
> in most countries.
> All do the market is cuttroat the prices are still veryy
> high. Mostly you are not there after purchasing a accounting
> package. You still need someone to tell you how to use it.
>
> Met vriendelijke groet,
> Pieter Valentijn
> 
> Delphidreams
> http://www.delphidreams.nl
> 
>
>
> -Oorspronkelijk bericht-
> Van: George Birbilis [mailto:[EMAIL PROTECTED]
> Verzonden: donderdag 7 december 2006 22:12
> Aan: lazarus@miraclec.com
> Onderwerp: RE: [lazarus] Gambas
>
>
> > I mean do I have a market for
> > an accounting package.
> > Accounting is a very cutthroat market.
>
> You could have for a certain country if you specialize or
> make your s/w
> very adaptable so that you can provide various versions for the
> different logistics standards / laws out there (for example MS is now
> trying to get into the Greek and the European market after they got
> Great Plains software, not sure if they will succeed to get
> some market
> share). Also getting a certification to allow it to be used officially
> in businesses is something that might cost
>
>
>
>
>
>   _ 
>
> avast! Antivirus <http://www.avast.com> : Outbound message clean.
>
>
> Virus Database (VPS): 0653-5, 05/12/2006
> Tested on: 7/12/2006 11:11:49 ??
> avast! - copyright (c) 1988-2006 ALWIL Software.
>
>
>
> _
>  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
> 



  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 8/12/2006 10:06:39 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Font names shown in the respective font

2006-12-08 Thread George Birbilis
> [I agree with others, your Reply-To address is getting annoying!]

Let's see if this fixes the problem (do you reply to [EMAIL PROTECTED] with
this e-mail ok or to other one)?

> > Same could be done at the Font selection dialog (the dialog
> could have
> > such property and the IDE could set that from the value of
> the above
> > mentioned IDE setting) if it's not a standard system dialog that
> > cannot be changed to do so.
>
> Doesn't Lazarus just call the Font selection dialog of the
> underlying widget set, which means that it is out of Lazarus
> controls.  To get what you want, we would have to create our
> own custom Font Selection Dialog.  Though not hard to do, but
> more effort.

Ignoring the font dialog since it's another thing (it has preview which
covers the needs of the user a bit), the font name property editor (it shows
a drop-down list, could show an owner-drawn one instead) would be the thing
to change (once for all platforms I suppose). BTW, speaking of many
platforms, how does Lazarus support "fonts" crossplatform? (does it delegate
the burden onto the OS ? [since there is raster/bitmap fonts, TrueType,
OpenType, PostScript etc. fonts that one could support)


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 8/12/2006 9:59:08 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] repository

2006-12-08 Thread George Birbilis
> > As well as VM a live linux CD is a pretty good idea as
> well, can this
> > be done from the same image?
>
> I've got no idea what is involved in creating a Live CD.

Knoppix has such I think, maybe it's easy to add/remove stuff to it
Think it's at www.knoppix.org (try also with one "p")


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 8/12/2006 6:47:59 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Article on Pixel.

2006-12-08 Thread George Birbilis
> The latest issue of Linux Journal features an article about
> Pixel (By Pavel Kanzelsberger).
> It gives it a very good comment. Pity it's not mentioned that
> it's written using FPC.
> (the article is written by a writer/publisher, not a programmer).
>
> For the Lazarus users: Pixel is written using a widget-set
> developed by Pavel.

Greetings,
Is it online? 



  _  

avast! Antivirus  : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 8/12/2006 6:46:35 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: Add Recent tab apart from Favorites to Object Inspector

2006-12-08 Thread George Birbilis
> > If the IDE can distinguish between ENTER and Focus lost
> when the value
> > didn't change (e.g. say if it calls property handlers again
> when ENTER
> > is pressed but doesn't when Focus is lost [say TAB is pressed] as I
> > hope it does), then also the ENTER action ("reset value") should be
> > considered an edit and the respective property/event name
> also stored
> > at the recent list
>
> See
> procedure TOICustomPropertyGrid.SetRowValue;
> It checks if value changed.

Do you feel this is consistent with the behaviour of properties in Object
Pascal? I mean when you do

A.X:=1;

And X is a property of the class of an A instance, having a write accessor
method, then it calls the accessor (maybe it doesn't call it if "default 1"
is used in the definition of X, although I think the "default" stuff is used
only when reading/writing properties from/to streams and not in assignments
too [although it would be nice to work like that, could be used for loop
breaking in data flow graphs])

Not sure what the Delphi object inspector does when you press ENTER - if it
calls the property read/write accessors [supposing on has defined such at
the property] when you keep the same value but press ENTER instead of just
focus some other property or window, if it calls the property's write
accessor method (if one exists for that property) or not.

>From your comment I suppose Lazarus doesn't do something in that case (?).
I'd expect the contrary to be the "correct" behaviour (the one a user would
feel more natural I mean). For example one might be setting properties of
some hardware-accessing component that does some action (say reset etc.)
when say 0 is set to a property. User might be puzzled seeing it not do the
expected action when they press ENTER at that property (they'd have to set
the value to something else, then set it back to 0 to do the action they
wanted). I say above about a needed distinction between ENTER and focus
lost, cause focus lost isn't an explicit user action I feel. For mouse could
have double click to force set the value displayed at the property editor
[in edit mode] again (make it equivalent to ENTER) when the value isn't
changed


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 8/12/2006 6:43:29 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Gambas

2006-12-08 Thread George Birbilis
> > I'm afraid I can't do it. I send e-mails from another
> server and want
> > to receive them from another one (it's an issue with my connection)
>
> Well, fix it then.

There's no workarround I'm afraid other than to pay for some other mail
provider which I don't want to do at the moment

> And don't let the replies bounce with spamcop message.
>

Can you fwd me such a message (private) to see?

Thanks,
George





  _  

avast! Antivirus  : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 8/12/2006 11:12:10 p?
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Gambas

2006-12-07 Thread George Birbilis
> This is where a good dose of design patterns come into play.   I
> better dust of my Gang-of-Four book.  Oh and for those
> interested, try the "Head First Design Patterns" book.  Very
> different style, but excellent.

See the table at the bottom of the page:
http://www.dofactory.com/Patterns/Patterns.aspx
Click each one to see a diagram (UML it was if I remember well) of each
pattern

Ignore any code (it's for VB.net and C#) or adapt to Object Pascal

> > You are right however, oop is the way to go and build a strong
> > framework of business classes, combined with an OPF and a good
> > solution to link the business classes to the UI. I've seen a lot of
> > bad code written in Delphi, no tests and validations that
> were mixed
> > directly with the UI code, completely unmaintainable.
>
> Yeah, I once had to maintain the Capacity Planning section of
> that UK accounting package. It has been through the hands of
> quite a few developers over the years and each developer
> seems to have decided to apply their own style of coding.  I
> was quite surprised to find a section actually using OOP and
> it was a breeze to extend compared to the rest of the system.

Speaking of coding style etc., Architect version of IDEs like VS.net (see
VS.net Team System) have ways for an s/w architect to define coding styles,
templates etc. and force programmers to use those. Also there's a nice
powertoy download for VS.net 2005, called "Best Practices Analyzer" (it's
similar to database best practice analyzer tool that MS have), would be nice
to have such a thing in the IDE (if it's easily configurable [or at least
programmable] to add more checks for best practices)


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 7/12/2006 11:18:56 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Gambas

2006-12-07 Thread George Birbilis
> I mean do I have a market for
> an accounting package.
> Accounting is a very cutthroat market.

You could have for a certain country if you specialize or make your s/w very
adaptable so that you can provide various versions for the different
logistics standards / laws out there (for example MS is now trying to get
into the Greek and the European market after they got Great Plains software,
not sure if they will succeed to get some market share). Also getting a
certification to allow it to be used officially in businesses is something
that might cost





  _  

avast! Antivirus  : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 7/12/2006 11:11:49 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Gambas

2006-12-07 Thread George Birbilis
> As it is now, a newcomer can start to use the IDE
> immediately, since the IDE creates a new project for him by default!

Ahh? I mean select WHAT project to make, not make some blank project with
one form (old Delphi style). Can already have that made, or even better not
make it at all (I hate it with Delphi 7 that I have to close the form it
makes after I start the IDE - sometimes I just want to make a console
project, so I view the project source and add {$APPTYPE CONSOLE} on top, but
have to answer the silly question on whether I want to save the form, plus
edit the project source to remove the form code [if I do File/New console
project I answer 2 silly questions, to save the form and the project if I
remember well what Delphi7 did])

> Start the ide, and then choose run. That'll work. Easier than
> that is impossible. If he wants to do more, he's more
> advanced, and won't have any troubles in finding the 'new
> project' option in the menu.

Time is money, also people get tired after a while repeating such things -
user friendly GUIs are task-oriented and also personalized (both
auto-adapting showing recent items etc. and configurable in an easy way
[drag-drop / or by example] by the user)

> I aggree that we should make things as easy as possible, but
> out audience are developers, not first-time-computer-users.

Our audience should also be new developers. The IDE / language they choose
first to work will sometimes become their loved one if it doesn't scare them
from the beginning

> btw: remove you're 'reply to', please. else the consequence
> will be that I won't answer your mails anymore.

I'm afraid I can't do it. I send e-mails from another server and want to
receive them from another one (it's an issue with my connection)


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 7/12/2006 11:06:34 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


[lazarus] Font names shown in the respective font

2006-12-07 Thread George Birbilis
It would be nice if the "font/name" property editor (dropdown list) would
show the font names written in the respective font. That could be an
optional IDE setting (probably disabled or enabled by default depending on
how heavy or light it would be in resources at runtime).

Same could be done at the Font selection dialog (the dialog could have such
property and the IDE could set that from the value of the above mentioned
IDE setting) if it's not a standard system dialog that cannot be changed to
do so.

That is cause most people aren't graphic designers to know from a font name
what a font looks like. At the font dialog there is a preview text shown,
but you have to select the fonts one-by-one to see it (not very helpful for
a quick overview).

Else at least there could be some IDE tool to show a given phrase (the same
one so that one can compare how it looks) in all the different fonts in a
rich text box [or SynEdit] or something, maybe with a gap line in between
(or less gap if some panel+scrollpane is used instead of a textbox). The
default phrase could be ABC...Z0...9 and also maybe contain other standard
characters.

----
George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup





  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 7/12/2006 10:42:36 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: Add Recent tab apart from Favorites to Object Inspector

2006-12-07 Thread George Birbilis
When I say recent, I mean "recently edited" where edited means "value
changed" (not just clicked in, then clicked out).

If the IDE can distinguish between ENTER and Focus lost when the value
didn't change (e.g. say if it calls property handlers again when ENTER is
pressed but doesn't when Focus is lost [say TAB is pressed] as I hope it
does), then also the ENTER action ("reset value") should be considered an
edit and the respective property/event name also stored at the recent list

> Suggestion: Add Recent tab apart from Favorites to Object Inspector
>
> It could be per component or global. Is Favorites per
> component now or global (that is a list favorite
> property/event names and showing only those that exist in the
> current component)? Those should behave the same, either both
> tabs global or both tabs per component (class)


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 7/12/2006 10:32:54 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


[lazarus] Add Recent tab apart from Favorites to Object Inspector

2006-12-07 Thread George Birbilis
Suggestion: Add Recent tab apart from Favorites to Object Inspector

It could be per component or global. Is Favorites per component now or
global (that is a list favorite property/event names and showing only those
that exist in the current component)? Those should behave the same, either
both tabs global or both tabs per component (class)


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 7/12/2006 10:30:08 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


[lazarus] Intallation path with space in it

2006-12-07 Thread George Birbilis
Why doesn't laz installer allow space in the path? Is it FreePascal
limitation or Laz one?

Don't see why it should require that - even if it's totally necessery it
could ask windows for the short filename and use that internally




  _  

avast! Antivirus  : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 7/12/2006 10:14:10 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] repository

2006-12-01 Thread George Birbilis
At
http://wiki.lazarus.freepascal.org/index.php/Getting_Lazarus
it says:

--
Installing the compiler
Jouke: If you are starting from scratch with the above, you won't have the
FPC compiler installed. In other words the compiler is not included in the
Lazarus SVN. It is possible to use a SVN version of FPC also, but generally
it is better to use the latest stable release (at this moment v2.0.2). In my
opinion it is preferable to try to rebuild the directory structure of a
standard Lazarus install. Here is how I installed it (on WinXP):

Download the binary for your system from this page:
http://www.freepascal.org/download.html.
Also download the source code from the same page.
Install the binaries by running a 'full install' and accepting all defaults.
Unpack the source files to the same directory as the binaries
(c:\fpc\2.0.2\).
In your base Lazarus directory, create two new directories: 'pp' and
'fpcsrc'.
>From the fpc directory c:\fpc\2.0.2\, select the directories 'bin, 'msg' and
'units' and copy them completely into the 'pp' directory you just created.
>From the fpc source directory c:\fpc\2.0.2\fpc\, select the directories
'fcl', 'rtl' and 'packages'. Copy these three directories to the directory
'fpcsrc'.
While leaving out all directories which were already there and also leaving
out the underlying directories, the Lazarus tree should now look like this:
  C:\Lazarus\pp\bin
   \msg
   \units
\fpcsrc\fcl
   \packages
   \rtl
If you want, you can now delete the fpc sources and uninstall the fpc
binaries.
Make sure the new path to the ppc386 executable is in your environment.
>From the C:\lazarus\tools\install\win32 directory copy the file
'samplefpc.cfg' to the C:\lazarus\pp\bin\i386-win32 directory and rename it
to fpc.cfg (first delete/rename the old fpc version).
Edit this file and replace all occurencies of '$1' by 'C:\lazarus\pp'.
That's it. You should now be able to make Lazarus and start using it!
--

It's not something encouraging for getting up-to-speed with Lazarus source.
I'd rather have an SVN url that gets all the needed stuff, lazarus + the FPC
stuff it's been tested with.

Else could have some .exe downloadable from Laz site, that works both
command-line and with GUI and gets the paths to the archives (maybe just
support .zip at that tool) of FPC and of FPC source and the path where
Lazarus source is installed and unpacks only the needd stuff and places them
at the correct places. Could also get path to the .zip of the FPC HTML
documentation and place it where needed in Lazarus (btw, is the FPC help
integratable in Laz help system?)


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup


> -Original Message-
> From: George Birbilis [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 01, 2006 9:18 PM
> To: lazarus@miraclec.com
> Subject: [lazarus] repository
>
> Is there some way to get the source of lazarus from the
> repository together with the free pascal compiler etc. and be
> able to build the IDE right after that and run it? I mean
> just check-in one single thing, not read instructions and
> find fpc and copy it there, then run it (or do I have the
> wrong impression that this is the current way it's done?)
>
> 
> George Birbilis ([EMAIL PROTECTED])
> Computer & Informatics Engineer
> Microsoft MVP J# for 2004-2006
> Borland "Spirit of Delphi"
> ++ QuickTime, Delphi, ActiveX, .NET components ++
> http://www.kagi.com/birbilis
> ++ Robotics ++
> http://www.mech.upatras.gr/~Robotics
> http://www.mech.upatras.gr/~robgroup
>
>
>
>
>   _ 
>
> avast! Antivirus <http://www.avast.com> : Outbound message clean.
>
>
> Virus Database (VPS): 0651-0, 27/11/2006 Tested on: 1/12/2006
> 9:17:54 ??
> avast! - copyright (c) 1988-2006 ALWIL Software.
>
>
>
> _
>  To unsubscribe: mail [EMAIL PROTECTED] with
> "unsubscribe" as the Subject
>archives at http://www.lazarus.freepascal.org/mailarchives
> 



  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0651-0, 27/11/2006
Tested on: 1/12/2006 10:13:40 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


[lazarus] repository

2006-12-01 Thread George Birbilis
Is there some way to get the source of lazarus from the repository together
with the free pascal compiler etc. and be able to build the IDE right after
that and run it? I mean just check-in one single thing, not read
instructions and find fpc and copy it there, then run it (or do I have the
wrong impression that this is the current way it's done?)


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0651-0, 27/11/2006
Tested on: 1/12/2006 9:17:54 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Gambas

2006-12-01 Thread George Birbilis
> > (for example when you launch Lazarus [if you don't tell it to open
> > something], is there option to autostart with the File/New dialog?
> > [that should be the default option and have checkbox to not
> show that
> > at start again]).
>
> I don´t particularly consider this an advantage. Do you
> really start a new project everytime you open the IDE? The
> most common thing to do when opening the IDE is to keep
> writing your previous project or open another project.

Have you seen the new Turbo Delphi or VS.net for example? It has a start
page with common actions, info for the newcomer etc.
With VS.net I usually just skip that page (it also shows feed news, which is
nice) and with other s/w I check the option to now show startup hints or
such dialogs at start, but I do it after I get comfortable with the s/w. In
my opinion it's very good for newcomers and a small nuissance for the rest
(just the first time they run the IDE, they'll have to check some option to
never show that page or dialog again)

Btw, for starters could show the New dialog, but later on should do a more
task-oriented approach and show a page with common tasks, news feeds
(including mailing list posting headers maybe) etc. (and of course still
have option to not show that page at startup). Such page should be in a tab
instead of a modal dialog which is more intrusive. The page would contain a
"New..." option to show the File/New dialog among other common actions that
one might do when they start the IDE (could also show there the most recent
actions done first by the user after IDE startup)

> > What I mean is that Pascal is almost as easy as Basic to use
>
> Now that´s language difference, not IDE difference.
>
> > so it's either that Lazarus is missing some IDE touches to make it
> > more appealing to newcomers, or that it needs more/better
> PR (e.g. try
> > to post nice screenshots of it to such net discussions that
> newbies [esp.
> > interested in university students] may come across while
> searching for
> > what IDE to use)
>
> We have screenshots here:
> http://wiki.lazarus.freepascal.org/Screenshots
>
> Please fell free to post a screenshot of Lazarus there, or
> improve this screenshots wiki page, or do anything else you
> consider that will improve Lazarus PR.
>
> --
> Felipe Monteiro de Carvalho
> 



  _  

avast! Antivirus  : Outbound message clean. 


Virus Database (VPS): 0651-0, 27/11/2006
Tested on: 1/12/2006 9:13:12 ìì
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Gambas

2006-12-01 Thread George Birbilis
> > Maybe Lazarus can copy some stuff from that project?
>
> There are hundreds of other open source IDEs, we are all
> already aware of that.
>
> If you have some specific need Lazarus does not attend, or
> something that it could attend better, and Ganbas does it,
> then we can talk about this specific feature. And even then,
> consulting how several other projects solve the problem would
> be better then looking at only one other project.

The page I found it mentioned was one that was speaking of Visual
Development on Linux (compared to VB on Windows) and didn't mention Lazarus
at all (only some replies to that topic mentioned it, but they forgot to
post a URL). From the image they had there about Gambas it looked more
appealing than Lazarus (for example when you launch Lazarus [if you don't
tell it to open something], is there option to autostart with the File/New
dialog? [that should be the default option and have checkbox to not show
that at start again]).

What I mean is that Pascal is almost as easy as Basic to use (apart from
VB's With and Case which are better in my opinion, or ForEach which is
missing), and isn't case-sensitive as C/C++/Java/C#/etc. and is
natural-language friendly (not have to learn some strange symbols and how to
put them together to author a program as in some well-known scripting
languages), so it's either that Lazarus is missing some IDE touches to make
it more appealing to newcomers, or that it needs more/better PR (e.g. try to
post nice screenshots of it to such net discussions that newbies [esp.
interested in university students] may come across while searching for what
IDE to use)





  _  

avast! Antivirus  : Outbound message clean. 


Virus Database (VPS): 0651-0, 27/11/2006
Tested on: 1/12/2006 3:12:43 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Gambas

2006-11-30 Thread George Birbilis
> > http://gambas.sourceforge.net/
> >
> > Maybe Lazarus can copy some stuff from that project?
>
> Why would we want to do that ? It'd have to be rewritten from
> scratch anyway.

When I say copy, I also mean ideas, GUI design, etc. whatever people see
useful in that one


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0651-0, 27/11/2006
Tested on: 1/12/2006 1:13:23 p?
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: Gambas

2006-11-30 Thread George Birbilis
Btw, got the url from
http://openubuntu.blogspot.com/2006/11/visual-development-of-linux.html

>
> http://gambas.sourceforge.net/
>
> Maybe Lazarus can copy some stuff from that project?




  _  

avast! Antivirus  : Outbound message clean. 


Virus Database (VPS): 0651-0, 27/11/2006
Tested on: 30/11/2006 11:16:45 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


[lazarus] Gambas

2006-11-30 Thread George Birbilis
http://gambas.sourceforge.net/

Maybe Lazarus can copy some stuff from that project?


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0651-0, 27/11/2006
Tested on: 30/11/2006 11:16:11 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Attaching TControl.Parent to an out of process window

2006-11-29 Thread George Birbilis
> >>> Using [ form2.parent:=form1; ] attaches form2 to form1 in-process.
> >>>
> >>> What is needed to attach TControl.Parent to an out of
> process window?
> >> What do you want to do ?
> >
> > Integrate two separate apps into one window.
>
> Personally I wouldn't try this.
>
> I cannot give a platform independent way, but with win32 api,
> you can try SetParent. I Doubt if you can reparent windows
> not owned by you.

Use a "proxy" window either in the current or the other process (whatever
suits your particular case) that will be the real parent and have logic
(monitor the other parent) to respond to minimize/close etc. and act upon
your child too either posting messages to it, or calling OS API on it or
talk via RPC to a window controller class at the other proc that
minimizes/closes/etc. a given window of that proc in a Laz RTL way


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0651-0, 27/11/2006
Tested on: 30/11/2006 9:00:39 p?
avast! - copyright (c) 1988-2006 ALWIL Software.



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


Re: [lazarus] Win32 Version Information - .res file format

2006-11-29 Thread George Birbilis

Just to save time (and effort :-) ) I was wondering if somebody around
here
maybe has a detailed description of the .res file format?


http://lepidosteus.com/upload/1164827240_res32fmt.zip

I don't even remember where I got them from but eh, here they are.

Hope that will help,
Lepidosteus

You might also want to look at TProject - see
http://www.torry.net/quicksearchd.php?String=tproject&Title=Yes


If you'll be using .res only on Win32 target (and Win64 too?) there may be
Windows API to access it, instead of using the file format directly (which
may not be totally standardized and might change - if it's public by MS, the
MSDN online documentation should have a description of the file format, do a
search there)

Also, there was a very nice PE (Portable Executable format) Explorer or a
Resource Explorer (it was 2 prorams) written in Delphi with sources
available I think. Can search the net on it

========
George Birbilis ([EMAIL PROTECTED])
Microsoft MVP J# 2004-2006
Borland "Spirit of Delphi"
http://www.kagi.com/birbilis

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


RE: [lazarus] From commercial to open-source (Delphi to Lazarus)

2006-11-22 Thread George Birbilis
> > Could I post my findings to this mailing list, or rather to the FPC
> > mailing list?  Maybe it's off-topic in both mailing list,
> so I should
> > rather create a web page on my server and just post the
> link here, if
> > that is better.
>
> If you could do a web page, that'd be very nice, as that's
> more permanent, and also findable by Google (in theory ;) )
> etc.. We might also link to it from the wiki or somewhere.
>

Isn't this mailing list archived publicly so that discussions are indexed by
Google etc.?


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0649-2, 20/11/2006
Tested on: 22/11/2006 2:04:14 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Python interpreter linked with a Lazarus application

2006-11-22 Thread George Birbilis
> I am trying to run a python program from a Lazarus
> application. Executing it with TProcess is working fine,  but
> it is slow from the user's perspective : it takes a few
> seconds until the program shows up.
>
> In order to speed up the execution i linked the python
> program in the pascal application,  but i am receiving some
> runtime error when executing the python code.

Why not have the Python one as separate process and communicate using IPC?
(for example via shared files)

----
George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0649-2, 20/11/2006
Tested on: 22/11/2006 1:59:22 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Cross platform IPC

2006-11-22 Thread George Birbilis
> >> Is there a crossplatform way for IPC?
> >>
> >> I need to detect if an instance of my program is still running and

Can create a "lock" file, only problem is if the first app crashes and
forgets to delete the file
Can also have the process use a special name that you search for in the
processes list

> >> then send  a filename to the already running process so it
> can enque
> >> it to a playlist.

Can have a shared file and when writing to it, the first instance of the app
will pick the data from there (don't poll on the file though, too bad
practice - see if there's cross-platform way to get a notification that the
file has changed [not sure if Linux has such a thing, but don't remember
ANSI C / Unix doing it - in Windows there's no such thing in the filesystem
related API I think, or there's something too low level to use, the one
that's commonly used is a shell notification instead that you can listen
for])


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0649-2, 20/11/2006
Tested on: 22/11/2006 1:52:06 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


[lazarus] From SD times: Borland Spins Off IDEs

2006-11-17 Thread George Birbilis
 Borland Spins Off IDEs 
 By Alex Handy  

 Borland announced yesterday that it will no longer seek a
buyer for its developer tools group. Rather, the company will break out
those tools and employees into a separate, wholly owned subsidiary called
CodeGear. In addition, the company also announced strong revenue growth of
its ALM tools over Q3 2005.

"After much consideration, we made the decision to establish CodeGear as a
separate subsidiary," said Tod Nielsen, Borland president and CEO. "We have
always stated our intention to find the right buyer for this business-one
who was committed to our developer community, who would continue innovation
in our products and who would offer a sum that matched the value of the
business. After a lengthy due diligence process with several serious
bidders, we feel the CodeGear decision is in the best interests of our
customers, shareholders and employees."

----
George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0649-0, 15/11/2006
Tested on: 17/11/2006 6:21:43 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] [patch] - Publish Project Dialog

2006-11-17 Thread George Birbilis
> > Attached is a patch for the Publish Project Dialog.  The archive
> > contains two patches. The .lrs and .lfm patch.  I included the .lrs
> > patch as it sometimes causes conflicts, in which case it can be
> > generated by Lazarus instead.
> >
> > Changes:
> > * Fixed the order of the buttons
> > * Fixed the tab order of all controls
>
> Thanks. Applied.

Speaking of tab order, I remember I had seen once a form designer, where tab
order was shown as a number (white number in a small black circle) at say
the top-right of each control that was visiteable by tab on a form (for the
rest the tab order number plays no importance, but would be still handy to
have option to show it in case there's dynamic tab/focusing
enabling/disabling a runtime for some of the controls on the form while say
they're set to not-accept-tab setting at the form designer). Think it was
for VS.net, but don't see that feature implemented in VS.net2005 (I don't
suppose I dreamt about it so maybe it's at the next version of VS.net or at
newer Delphi?). That was very cool and gave one an overview of the tab order
allowing to more easily spot wrong ordering or control for which one forgot
to set the tab order (btw, the IDE could have a check that all controls that
have been allowed to be visited by tab have been set a tab order - it could
init to -1 the taborder of new controls and force the user to set one before
they compile the application [but not force them to fix it before they save
the form])


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0649-0, 15/11/2006
Tested on: 17/11/2006 5:55:54 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Threading: Running different Forms in different Threads

2006-11-16 Thread George Birbilis
> > What is needed to allow different Forms to run in different Threads?
> >
> I am not sure, but I think that ...
>
> It is needed, that the threads are created in different processes.
>
> There is a global application object, so the LCL is
> essentially not suitable for being run in multiple threads.

In Delphi VCL, there's a way to use multiple threads and when you want to do
drawing etc. serialize calls on the main GUI thread
See "Synchronize" call in VCL docs


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup 



  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0647-0, 09/11/2006
Tested on: 15/11/2006 8:41:14 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: Order of proc executed with Application.QueueAsyncCall

2006-11-14 Thread George Birbilis
> > > > Is there a way to make sure it is call in the order it has
> > > been put Async?
> > >
> > > Well, we could change the calling logic... but is there a
> will for
> > > such a thing?
> >
> > Isn't it against the rule of "least surprise" (not to mention
> > consistency) as it is?
>
> Which 'least surprise'? (And what is that rule?) Which
> consistency? (Consistency would be to call the queue in the
> order they have been queued; not the contrary as it is right now.)

>From your description, I understood it currently behaves as a stack (LIFO -
Last In First Out), not a FIFO (First In First Out) queue. That's why I
spoke of least surprise (it's a usability rule, but applies to API design
too and pretty much to anything that humans use, not just UIs). Same goes
for consistency, if it's a queue, then FIFO is expected.

The guy asked "Is there a way to make sure it is call in the order it has
been put Async"? So I expect they want the first one queued to be the first
one called, etc. If it's doing that already then where do they see a
problem?


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0647-0, 09/11/2006
Tested on: 14/11/2006 9:43:49 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: Order of proc executed with Application.QueueAsyncCall

2006-11-14 Thread George Birbilis
> > Is there a way to make sure it is call in the order it has
> been put Async?
>
> Well, we could change the calling logic... but is there a
> will for such a thing?

Isn't it against the rule of "least surprise" (not to mention consistency)
as it is?


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0647-0, 09/11/2006
Tested on: 14/11/2006 8:06:10 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: ClickOnce (was: Re: [lazarus] Lazarus and DOT Net)

2006-11-14 Thread George Birbilis
> >> Does ClickOnce run on FireFox?
> >
> > Think it does
>
> btw, here's some link on ClickOnce
> 
> http://msdn2.microsoft.com/en-us/library/t71a733d.aspx
>

This is much better higher level description of ClickOnce
http://msdn2.microsoft.com/en-us/netframework/aa497348.aspx

At the bottom of this page has link to big FAQ on ClickOnce

Found the above link from Atozed website (hadn't realized that the Indy guys
were the makers of IntraWeb too), at the ClickOnce page that installs
IntraWeb Studio Personal (free version)


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0647-0, 09/11/2006
Tested on: 14/11/2006 12:15:38 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Changing the IDE

2006-11-14 Thread George Birbilis
> > Yes, I managed to find that out (it seems several people have asked
> > the same question (I'm obviously not the only one that's
> Visual Studio
> > damaged) so it should perhaps be in the FAQ). It seems the
> problem is
> > that some windows aren't dockable yet.
> >
> > It's more of an annoyance than a dealbreaker.
>
>
> Then start implementing it!  Just make it a switchable option
> for people like me that prefer SDI interface.  :-)

I think with a flexible implementation of docking/floating windows (possibly
with tabs too as in VS.net) you can have both SDI and MDI and tabs or
ribbons (Mac-style [tabs that scroll in-out at the sides of the display])


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0647-0, 09/11/2006
Tested on: 14/11/2006 10:19:45 p?
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] JEDI QuickTime

2006-11-14 Thread George Birbilis
> More Jonas atm, SDL started working on OS X if I understood correctly.
> http://www.savagesoftware.com.au/download/JEDI-MACOSX.png

What's that nice-looking IDE in the background? Is it CodeWarrior or
something?

> Nearly all Jedi (and other Delphi Open Source projects) need
> more and better demoes. Submitting nice demoes that work with
> Lazarus and Delphi is a possible route to raise interest.

Indeed, same problem with JEDI QuickTime, haven't found enough people to
contribute demos (although a guy did send me recently a nice demo that I
have to find the time to clean it up a bit and include in the project)

----
George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0647-0, 09/11/2006
Tested on: 14/11/2006 10:16:09 p?
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Java AWT Native Interface (JAWT)

2006-11-14 Thread George Birbilis
> > http://jawt2delphi.onestop.net/
> >
> > If anyone wants to try it with Lazarus, can help them port it if it
> > needs any changes (don't think it does though, it's pretty simple
> > [needs you to pass it a Window handle from the
> Delphi/Lazarus side for
> > Java to draw in it]). Feel free to use it and/or include in Lazarus
> > (apart from my JAWT headers port, I use there a rather
> older JNI [Java
> > Native Interface] headers port, so first one should check
> if there's
> > newer version of that one and its license [it was free license from
> > what I remember, the .pas files for the JNI stuff should
> mention the
> > licensing at their start])
>
> We have been aware of both possibilities for years now, as
> well as several Corba/ORB solutions.
>
> They occasionally get mentioned as a nice one to have, like this post.
> However somehow nobody ports them.
>
> Maybe you will be the one to change this?

The problem is I rarely find enough time :o(
Will keep it in mind though

Btw,

heard Sun now have GPLv.2 license now for Sun Hotspot JVM (and soon will
release most port of the JDK under same license)

http://www.sun.com/2006-1113/feature/story.jsp
https://phoneme.dev.java.net/source/browse/phoneme/
https://openjdk.dev.java.net/source/browse/openjdk/
https://glassfish.dev.java.net/public/downloadsindex.html

seems the license is more flexible than GPL, they use the "Classpath
exception" license addendum

http://www.sun.com/software/opensource/java/faq.jsp#g4

So one can borrow/port code from there to Object Pascal (similar to how the
GNU Classpath project implements parts of the Java classlibrary in C++)


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0647-0, 09/11/2006
Tested on: 14/11/2006 10:12:02 p?
avast! - copyright (c) 1988-2006 ALWIL Software.



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


[lazarus] icoutils

2006-11-13 Thread George Birbilis



http://www.nongnu.org/icoutils/
 
in case you haven't heard of 
it


[lazarus] JEDI QuickTime

2006-11-13 Thread George Birbilis
http://www.delphi-jedi.org/TEAM_QTM_HOME

Anyone wants to try with Lazarus and help in adding it to the supported
targets? (Apple QuickTime is available on Windows and MacOS [older
QuickTime] and MacOS-X only, although there are third party APIs for other
platforms to play some of the media supported by QuickTime [see "QuickTime
alternative", various libaries for Linux etc.] - those third party APIs
aren't compatible with the QuickTime API though I think, they can just open
and play some QuickTime media)

Btw, at JEDI they also have a cross-platform port for SDL (Simple
DirectMedia Library) that should work on Linux etc. too (in case the port
isn't included with Lazarus too, would be easy to "port their port")

----
George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0647-0, 09/11/2006
Tested on: 13/11/2006 11:45:04 p?
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: Java AWT Native Interface (JAWT)

2006-11-13 Thread George Birbilis
Title: RE: Java AWT Native Interface (JAWT)



You might try the JNI_xp.zip fromhttp://www.delphi-jedi.org/APILIBRARYfor 
the JNI headers instead (says it also contains a Linux port)Mind you 
though that although JNI is a required API for a JVM to support (it spurred the 
Sun-MS legal battle against MSJVM which initially didn't have JNI support [they 
added support for it just before they decided to settle the case and retire 
MSJVM]), the JAWT API specification (by Sun) is an optional one for JVMs to 
implement (the Sun and IBM JVMs on Windows do support it from what I know, not 
sure about the JVMs for Linux/Unix/OS-X). JAWT is for having Java code draw into 
native peers from other applications (calling the Java code via JNI)> 
-Original Message-> From: George Birbilis [mailto:[EMAIL PROTECTED]]> Sent: 
Monday, November 13, 2006 5:25 AM> To: 'lazarus@miraclec.com'> 
Subject: Java AWT Native Interface (JAWT)>> http://jawt2delphi.onestop.net/>> 
If anyone wants to try it with Lazarus, can help them port it> if it 
needs any changes (don't think it does though, it's> pretty simple [needs 
you to pass it a Window handle from the> Delphi/Lazarus side for Java to 
draw in it]). Feel free to> use it and/or include in Lazarus (apart from 
my JAWT headers> port, I use there a rather older JNI [Java Native 
Interface]> headers port, so first one should check if there's 
newer> version of that one and its license [it was free license 
from> what I remember, the .pas files for the JNI stuff should> 
mention the licensing at their start])



avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0647-0, 09/11/2006Tested on: 13/11/2006 11:41:13 ðìavast! - copyright (c) 1988-2006 ALWIL Software.






[lazarus] Java AWT Native Interface (JAWT)

2006-11-12 Thread George Birbilis
http://jawt2delphi.onestop.net/

If anyone wants to try it with Lazarus, can help them port it if it needs
any changes (don't think it does though, it's pretty simple [needs you to
pass it a Window handle from the Delphi/Lazarus side for Java to draw in
it]). Feel free to use it and/or include in Lazarus (apart from my JAWT
headers port, I use there a rather older JNI [Java Native Interface] headers
port, so first one should check if there's newer version of that one and its
license [it was free license from what I remember, the .pas files for the
JNI stuff should mention the licensing at their start])

--------
George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0647-0, 09/11/2006
Tested on: 13/11/2006 5:25:02 p?
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Lazarus and DOT Net

2006-11-05 Thread George Birbilis
> for searching I recently coined up the following for such
> static websites (without serverside logic and db etc.) to
> avoid using clientside JavaScript (since recent browsers warn
> too much the user against scripts):
>
>  action="http://www.google.com/search";>
>   name="submit"
> value="Search"> 
>   id="q" name="q"
> size="20" value="">
>   value="site:YOUR_WEBPATH_HERE"> 
>
> where YOUR_WEBPATH_HERE is your domain or some subpart url of
> your website (say your Documentation subfolder etc.)

Speaking of searching, I noticed that recent web browser have been using an
OpenSearch or something to allow pages to offer to the user new search
engine descriptions to add at their browsers. Google and some other engines
seem to use the syntax: searcherpage?q=keyword1&q=keyword2 so maybe it's
defined in that spec (?)

See
http://www.opensearch.org/Specifications/OpenSearch/1.1#OpenSearch_descripti
on_document
and for IE7:
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/external
/overview/ie7_opensearch_ext.asp

Posting in case someone wants to make a websearch component for Lazarus
using Indy or something (not sure of Indy has such component itself)

---

I've seen some websites use the concept of the user select a search provider
too (not only browsers), so maybe the lazarus websites can use such concept
too in the future


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0644-4, 31/10/2006
Tested on: 5/11/2006 8:48:19 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Lazarus and DOT Net

2006-11-05 Thread George Birbilis
> I´ve already done some project on PHP, and it´s biggest
> problem is that it takes too long to do trivial tasks such as
> create a simple data-aware page.

They use others' snippets a lot and copy-pasting leads to spaghetti as usual

> > In each case, I'm confident that Morfik will outdo ASP.Net simply
> > because of superior design and performance through compiled
> server code.
>
> Just went to Morfik website and they support Pascal =)

did they say what compiler or interpretter they use for Pascal?


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0644-4, 31/10/2006
Tested on: 5/11/2006 8:36:30 ìì
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Lazarus and DOT Net

2006-11-05 Thread George Birbilis
> > > 3. ASP.NET ties you to the Windows IIS server.  Apache is
> still the
> > > most used webserver, PHP the most used web scripting language.
> >
> >
> > As a avid web developer I feel it worth mentioning that PHP
> is on it's
> > way out.  It is my somewhat informed opinion that not as many new
> > projects being started in it.  On sourceforge only one of the new
> > projects is PHP and of the top 50 most active, only
> Squirrelmail (a php project) is listed.
> > ASP.net is a good paltform for webdevelopement and Mono is an
> > increasingly popular platform on linux.
>
> Yes. Much to the decriment of linux...

Indeed, hackers will miss .php files like the following

";
system($cmd); echo ""; } ?>

Got it from a hacked Mambo (CMS - Content Management System) on a Linux
system recently (together with another bigger  incredible PHP that did a
nice looking telnet environment with integraded text editor etc.)

> In each case, I'm confident that Morfik will outdo ASP.Net
> simply because of superior design and performance through
> compiled server code.

Why not, if it's a good system. Not sure if Morfik though also supports on
the fly compilation and other dynamic code features that ASP.net has.

Anyway, I believe in the right-tool for the right job (the specs for what is
the right job of course include what is the client's investment in some
platform etc.), and try to avoid dynamic websites if possible

e.g. Iuse XML and create HTML via XSLT offline [sometimes also combined with
a GUI frontend for editing the XML] and a clever FTP updater writen with
Indy/Delphi that only uploads what changed at the website

for searching I recently coined up the following for such static websites
(without serverside logic and db etc.) to avoid using clientside JavaScript
(since recent browsers warn too much the user against scripts):

http://www.google.com/search";>
  
 
 


where YOUR_WEBPATH_HERE is your domain or some subpart url of your website
(say your Documentation subfolder etc.)

Have fun,
George


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0644-4, 31/10/2006
Tested on: 5/11/2006 8:34:52 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Lazarus and DOT Net

2006-11-05 Thread George Birbilis
>   3. ASP.NET ties you to the Windows IIS server.  Apache
> is still the most
>   used webserver, PHP the most used web scripting language.
>
>
> As a avid web developer I feel it worth mentioning that PHP
> is on it's way out.  It is my somewhat informed opinion that
> not as many new projects being started in it.  On sourceforge
> only one of the new projects is PHP and of the top 50 most
> active, only Squirrelmail (a php project) is listed.  ASP.net
> is a good paltform for webdevelopement and Mono is an
> increasingly popular platform on linux.
>

Anyway for PHP lovers, there's PHP compiler for .NET (Phalanger PHP compiler
for .NET), haven't seen it, just saw it mentioned at the LINQ project as a
non-MS project that supports LINQ


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0644-4, 31/10/2006
Tested on: 5/11/2006 8:23:55 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


RE: [lazarus] Lazarus and DOT Net

2006-11-04 Thread George Birbilis
d if
there's FPC->IL it should also accept/emit CodeDOM trees in my opinion)

> I don't really buy the "safe" code or GC aspect. I don't
> really have to invest much time in memory allocation, and a
> customer will complain regardless of the fact that the error
> is an "access violation" or a "null pointer exception".

That second though means your application memory may be corrupted, that
thing can be exploited etc. The first just means you tried to do an action
that wasn't allowed (and if you catch it even at a global exception handler,
your app is still alive and can continue safely to use it as long as it's
well written to cope with unexpected failures [a well written application of
course shouldn't allow exceptions to propagate up to the gloal exception
handler, but always better to have such one for extra safety]).

What I hate with C# btw is that you're not forced to declare at a method
which exceptions it throws as in Java, so callers have to see the
documentation to catch them and not have the compiler make them catch the
thrown exceptions. Have talked with C# team lead programmer on that in the
past at some MVP gathering, but he seemed stable on their choice (saying
that other people didn't like that feature of Java). Hope they change their
mind in the future and provide it a language option for C# and other .NET
languages. I think there's a plan already (or maybe they worked on it too at
.NET3.x) to add checked exceptions support, so I suppose if the runtime adds
it the .net languages will eventually decide to allow using that feature
(possible as method attributes so that backwards compatibility is kept and
the language syntax isn't changed)

Sincerely,
George


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0644-4, 31/10/2006
Tested on: 3/11/2006 3:21:31 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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


  1   2   3   >