Re: Anybody using FVWM window manager?

2007-11-09 Thread Graeme Geldenhuys
On 24/10/2007, Graeme Geldenhuys [EMAIL PROTECTED] wrote:
 Hi,

 I switched from Gnome to FVWM.  I've noticed that now some dialogs
 show without a title bar.
 Is this a X11 feature implemented in FVWM and not in Gnome? A possible
 bug in FVWM - which one is correct?  Anybody know what attribute
 (property) in Lazarus TForm controls the visibility of the titlebar?


OK, I finally found the answer to this question.  I narrowed it down
to *modal forms* not have a titlebar or borders on them, so you
couldn't move or resize them. This only occurred under FVWM2 and was
very annoying.

Anyway, the issue is when a modal form (under X11) is set via the
transient window hint.  To correct this annoying behaviour under FVWM2
you have to tell the window manager to also decorate transient
windows.

In my setup, I had to edit the ~/.fvwm/globalfeel file and uncomment the line:
   Style * DecorateTransient


Restart the window manager and modal forms now look normal!!!  ;-)
I thought I would share this tip for anybody else experiencing this
issue under FVWM window manager.  Should we maybe place this on a wiki
page somewhere?


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

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


Re: [lazarus] Object Pascal (Delphi Lazarus) developers are spoilt

2007-11-09 Thread Adrian Maier
On Nov 9, 2007 7:27 AM, Graeme Geldenhuys [EMAIL PROTECTED] wrote:
 Hi,

 It's just amazing how many cool features we have in the compilers and
 especially the IDE's.  The biggest _cool_ feature is the jumping
 between Interface and Implementation sections for a method
 (Ctrl+Shift+Up/Down).

 Anybody done this before?  How complicated would the code parsing be
 to enable something like that. Note: I've never written a pascal code
 parser before.  All I'm interested in is the jumping feature, no
 syntax highlighting etc...
 But then again, if the FPC's text IDE supports that, my problem is
 solved. If it doesn't, maybe I can implement it in their instead.

Hello Graeme ,

Any editor that knows how to handle ctags  (vim,emacs,probably others)
should be able to
provide this jumping  as long as you provide a 'tags' file in the
directory where you are
editing the sources.

I have done a quick test and ran :   ctags  *.pas
which has successfully generated the tags file for all the pascal
files in the current directory.
I've opened the pas with vim,   and i can go on a procedure call and
press ctrl+]   which
jumps to the definition of that procedure.  Ctrl+T jumps back .
In my case the procedure was defined in the same source file,  but
there is no reason for
this mechanism not to work with functions defined in another file.

The version of ctags that i've used is :  Exuberant Ctags 5.5.4
(http://ctags.sourceforge.net/)


Cheers,
Adrian Maier

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


Re: Anybody using FVWM window manager?

2007-11-09 Thread Michael Van Canneyt


On Fri, 9 Nov 2007, Graeme Geldenhuys wrote:

 On 24/10/2007, Graeme Geldenhuys [EMAIL PROTECTED] wrote:
  Hi,
 
  I switched from Gnome to FVWM.  I've noticed that now some dialogs
  show without a title bar.
  Is this a X11 feature implemented in FVWM and not in Gnome? A possible
  bug in FVWM - which one is correct?  Anybody know what attribute
  (property) in Lazarus TForm controls the visibility of the titlebar?
 
 
 OK, I finally found the answer to this question.  I narrowed it down
 to *modal forms* not have a titlebar or borders on them, so you
 couldn't move or resize them. This only occurred under FVWM2 and was
 very annoying.
 
 Anyway, the issue is when a modal form (under X11) is set via the
 transient window hint.  To correct this annoying behaviour under FVWM2
 you have to tell the window manager to also decorate transient
 windows.
 
 In my setup, I had to edit the ~/.fvwm/globalfeel file and uncomment the line:
Style * DecorateTransient
 
 
 Restart the window manager and modal forms now look normal!!!  ;-)
 I thought I would share this tip for anybody else experiencing this
 issue under FVWM window manager.  Should we maybe place this on a wiki
 page somewhere?

I think this would be good. Lots of 'bugs' in Lazarus/LCL are actually
window manager things. Such as 'Ctrl-F9' for 'run' not working, because
the window manager catches it to jump to desktop number 9, before Lazarus
even sees the keystroke...

Michael.

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


Re: [lazarus] Lazarus and InstantObjects ?

2007-11-09 Thread Joao Morais

Al Boldi wrote:

Joao Morais wrote:

I am currently working in an IO-like project with a smarter, faster and
more customizable OPF engine, decoupled frameworks (after all data type
and opf aren't the same thing), no dbware or tdataset dependency, and
the best item: no backward compatibility to bother. www.pressobjects.org


Sounds great!

Does your OPF handle data storage natively?


The OPF just creates DDLs and DMLs based on an object oriented model, 
built over a data type framework. The DDLs and DMLs are sent to the 
database through a connection broker, built against Zeos, UIB, SQLdb 
(and also DOA and IBX when compiled with Delphi). Native access is in 
the 2.0 roadmap. Let me know if this answer your question.


--
Joao Morais

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


Re: [lazarus] Object Pascal (Delphi Lazarus) developers are spoilt

2007-11-09 Thread Graeme Geldenhuys
On 09/11/2007, Adrian Maier [EMAIL PROTECTED] wrote:

 I have done a quick test and ran :   ctags  *.pas
 which has successfully generated the tags file for all the pascal
 files in the current directory.
 I've opened the pas with vim,   and i can go on a procedure call and
 press ctrl+]   which
 jumps to the definition of that procedure.  Ctrl+T jumps back .


Thanks Adrian.  Up 'till now I never even knew about ctags! :-)
I just tried that but can't seem to get vim to do the jump?

I move the cursor over the function name. Press Ctrl+] and the cursor
jumps to column 1 on that same line. Ctrl+T jumps back to my previous
position. It doesn't actually jump to the implementation.  Pressing
Ctrl+] twice gives me a E426 error: Tag not found 'function'.
I used Exuberant Ctags 5.7

Any clues?

Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

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


Re: [lazarus] Object Pascal (Delphi Lazarus) developers are spoilt

2007-11-09 Thread Graeme Geldenhuys
On 09/11/2007, Graeme Geldenhuys [EMAIL PROTECTED] wrote:
 Thanks Adrian.  Up 'till now I never even knew about ctags! :-)
 I just tried that but can't seem to get vim to do the jump?

Ah, I think I got it.  It can jump from the implementation section to
the interface section, but not other way round (as the first jump).
Still very handy, thanks!


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

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


Re: Anybody using FVWM window manager?

2007-11-09 Thread Graeme Geldenhuys
On 09/11/2007, Michael Van Canneyt [EMAIL PROTECTED] wrote:

 I think this would be good. Lots of 'bugs' in Lazarus/LCL are actually
 window manager things. Such as 'Ctrl-F9' for 'run' not working, because
 the window manager catches it to jump to desktop number 9, before Lazarus
 even sees the keystroke...


I've just started such a readme file for our product as well.  Some
deployment tips. :-)


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

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


Re: [lazarus] Object Pascal (Delphi Lazarus) developers are spoilt

2007-11-09 Thread Adrian Maier
On Nov 9, 2007 12:28 PM, Graeme Geldenhuys [EMAIL PROTECTED] wrote:
 On 09/11/2007, Graeme Geldenhuys [EMAIL PROTECTED] wrote:
  Thanks Adrian.  Up 'till now I never even knew about ctags! :-)
  I just tried that but can't seem to get vim to do the jump?

 Ah, I think I got it.  It can jump from the implementation section to
 the interface section, but not other way round (as the first jump).
 Still very handy, thanks!

I'm glad it helps.

I've never used ctags with Pascal,  only with C/C++ sources .  Since
ctags is something created initially for c   it's possible that
parsing pascal is not perfect.


Cheers,
Adrian Maier

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


Re: [lazarus] Object Pascal (Delphi Lazarus) developers are spoilt

2007-11-09 Thread Marc Santhoff
Am Freitag, den 09.11.2007, 09:27 +0200 schrieb Graeme Geldenhuys:
 Hi,
 
 It's just amazing how many cool features we have in the compilers and
 especially the IDE's.  The biggest _cool_ feature is the jumping
 between Interface and Implementation sections for a method
 (Ctrl+Shift+Up/Down).
 
 Most programing editors support syntax highlighting for Object Pascal,
 but never support the 'jumping' feature.   I find that feature
 invaluable and saves me a lot of time!

Okay, I know I'm kind of shouting Jehova here, but:

I'm using jEdit which can split windows. If the window is split
horizontally, I can see the declaration and the implementation both at
the same time. Without any jumping aroung.

Wouldn't this be a nice goal, splitting windows? ;)

Regards,
Marc


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


Re: [lazarus] Object Pascal (Delphi Lazarus) developers are spoilt

2007-11-09 Thread Graeme Geldenhuys
On 09/11/2007, Marc Santhoff [EMAIL PROTECTED] wrote:

 Wouldn't this be a nice goal, splitting windows? ;)

Nice.  :)
I remember Visual Basic 6 also had that ability.  It was pretty cool
but then VB6 also had that function ComboBox thingy to jump to code.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

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


Re: [lazarus] Lazarus and InstantObjects ?

2007-11-09 Thread Al Boldi
Joao Morais wrote:
 Al Boldi wrote:
  Joao Morais wrote:
  I am currently working in an IO-like project with a smarter, faster and
  more customizable OPF engine, decoupled frameworks (after all data type
  and opf aren't the same thing), no dbware or tdataset dependency, and
  the best item: no backward compatibility to bother.
  www.pressobjects.org
 
  Sounds great!
 
  Does your OPF handle data storage natively?

 The OPF just creates DDLs and DMLs based on an object oriented model,
 built over a data type framework. The DDLs and DMLs are sent to the
 database through a connection broker, built against Zeos, UIB, SQLdb
 (and also DOA and IBX when compiled with Delphi).

Oh.

 Native access is in the 2.0 roadmap.

That's great.  You see, trying to create an OPF as a separate layer that 
connects to the db via a broker is just broken by design, as this will 
introduce a tremendous overhead due to the dual caching problem.

In fact, the correct way forward seems to be to implement the OPF as the 
broker, just like you implement the broker against a specific db-lib.  What 
you get is a db specific OPF that wraps the broker inside it in a native 
fashion.

Now, in the end this OPF may end up pluggable, but it would still be native 
per db, with one single cache manager.

 Let me know if this answer your question.

Thanks!

--
Al

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


[lazarus] Latest svn eats IDE icons

2007-11-09 Thread Giuliano Colla
Upgrading to the latest snv (r 12796) some icons on the IDE Bar have 
disappeared.


Notably, in the Addtional Section, the icons for TImage and TColorBox 
are blank, while TColorListBox shows just a few pixels on top. The same 
occurs for some custom components I've added. Three Icons show properly, 
the fourth doesn't show at all.


Is there some issue with transparency requiring the upgrade of icons, or 
it's just a bug?


Platform is Linux, widgeset gtk1, fpc 2.0.4.

--
Giuliano Colla

Whenever people agree with me, I always feel I must be wrong (O. Wilde)

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


Re: Anybody using FVWM window manager?

2007-11-09 Thread Giuliano Colla

Graeme Geldenhuys ha scritto:

On 24/10/2007, Graeme Geldenhuys [EMAIL PROTECTED] wrote:

Hi,

I switched from Gnome to FVWM.  I've noticed that now some dialogs
show without a title bar.
Is this a X11 feature implemented in FVWM and not in Gnome? A possible
bug in FVWM - which one is correct?  Anybody know what attribute
(property) in Lazarus TForm controls the visibility of the titlebar?


If you need a light window manager, have you considered fluxbox?

http://fluxbox.sourceforge.net/

 I evaluated it (before realizing that my customers needed all the 
features of KDE), and it appeared quite stable and friendly.


Regards,

Giuliano

--
Giuliano Colla

Whenever people agree with me, I always feel I must be wrong (O. Wilde)

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


Re: [lazarus] Latest svn eats IDE icons

2007-11-09 Thread Paul Ishenin

Giuliano Colla wrote:
Upgrading to the latest snv (r 12796) some icons on the IDE Bar have 
disappeared.


Notably, in the Addtional Section, the icons for TImage and TColorBox 
are blank, while TColorListBox shows just a few pixels on top. The 
same occurs for some custom components I've added. Three Icons show 
properly, the fourth doesn't show at all.


Is there some issue with transparency requiring the upgrade of icons, 
or it's just a bug?
Just a bug. I am working on that new bugs I introduced in recent changes 
though I dont have them on my main development platform (windows XP).


Best regards,
Paul Ishenin.

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


Re: [lazarus] Latest svn eats IDE icons

2007-11-09 Thread Damien Gerard


On Nov 9, 2007, at 1:27 PM, Giuliano Colla wrote:

Upgrading to the latest snv (r 12796) some icons on the IDE Bar have  
disappeared.


Notably, in the Addtional Section, the icons for TImage and  
TColorBox are blank, while TColorListBox shows just a few pixels on  
top. The same occurs for some custom components I've added. Three  
Icons show properly, the fourth doesn't show at all.


Is there some issue with transparency requiring the upgrade of  
icons, or it's just a bug?


Platform is Linux, widgeset gtk1, fpc 2.0.4.



Confirmed with GTK2 / Linux / fpc 2.1.4


--
Damien Gerard
[EMAIL PROTECTED]



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


Re: [lazarus] Lazarus and InstantObjects ?

2007-11-09 Thread Joao Morais

Al Boldi wrote:
You see, trying to create an OPF as a separate layer that 
connects to the db via a broker is just broken by design, as this will 
introduce a tremendous overhead due to the dual caching problem.


I agree with you that this will cause some overhead, but it is not as 
much as you figured. The main bottleneck of an OPF is the database 
access, how the OPF builds DMLs, do object cache, lazy loading, bulk 
retrieving, etc.


In fact, the correct way forward seems to be to implement the OPF as the 
broker, just like you implement the broker against a specific db-lib.  What 
you get is a db specific OPF that wraps the broker inside it in a native 
fashion.


If I understood you correctly, this means build an OPF tied to an 
specific database, and this isn't a nice approach. In the current design 
I have:


  user - mvp - data type - opf engine broker -
   connection broker (tied with) db engine

You can change every part without changing the others. A small overhead 
do exist actually, and the way to remove it is writing a connection 
broker that doesn't depend of a db suite like SQLdb or Zeos, and that 
doesn't depend of the tdataset as well.


--
Joao Morais

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


Re: [lazarus] Object Pascal (Delphi Lazarus) developers are spoilt

2007-11-09 Thread Lee Jenkins

Graeme Geldenhuys wrote:

Hi,

It's just amazing how many cool features we have in the compilers and
especially the IDE's.  The biggest _cool_ feature is the jumping
between Interface and Implementation sections for a method
(Ctrl+Shift+Up/Down).



That is a cool feature.  I need to look around more with editors.  I just 
stumbled on Ctrl-Delete the other day.  I must lead a sheltered life.


I am more spoiled with Delphi than I am with Lazarus because of one little 
add-in that works with Delphi:


http://www.cnpack.org

It's a suite of productivity tools like GExperts for those of you who haven't 
seen it.  Someone suggested it to me on borland NG's a while back.  Lots of cool 
features, but to me the best reason for installing it, is auto suggestion code 
insight like C#/VS2005.


It's like hitting Ctrl-Space automatically.  You start typing tstr and 
assuming you have SysUtils in your uses clause, the suggestion box pops up 
automatically with contextual suggestions like :


TStringList
TStrings
...

and it works with declare variables, keywords, etc.

You hit tab or enter to accept the suggestion and one less word to type.  For 
actual coding, I have not seen a better little feature than this as far as 
productivity is concerned.


1. Speeds typing in two ways: 1) You obviously don't have to type the entire 
keyword, variable, etc out and 2) No shift key necessary to get nicely camel 
cased variables.


2. Improves readability of code and lessens coding mistakes.

I would literally pay for this feature to be in Lazarus.

--
Warm Regards,

Lee

My wife is better at Guitar Hero than I am and it's really irritating.

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


[lazarus] Where the parameter hints?

2007-11-09 Thread Lee Jenkins


I've running precompiled binaries on my WinXP box, Lazarus 0.9.22, svn revision 
10809.  And the parameters hints are no longer showing.


Is there a newer setting that I should be aware of?

--
Warm Regards,

Lee

My wife is better at Guitar Hero than I am and it's really irritating.  

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


Re: [lazarus] Lazarus and InstantObjects ?

2007-11-09 Thread Al Boldi
Joao Morais wrote:
 Al Boldi wrote:
  You see, trying to create an OPF as a separate layer that
  connects to the db via a broker is just broken by design, as this will
  introduce a tremendous overhead due to the dual caching problem.

 I agree with you that this will cause some overhead, but it is not as
 much as you figured. The main bottleneck of an OPF is the database
 access, how the OPF builds DMLs,

Yes, that's the easy part.

 do object cache, lazy loading, bulk retrieving, etc.

That's where things become interesting, because you have to figure out how to 
interface with your non-OO db, aka relational-DB, without incurring any 
duplicate overhead.

  In fact, the correct way forward seems to be to implement the OPF as the
  broker, just like you implement the broker against a specific db-lib. 
  What you get is a db specific OPF that wraps the broker inside it in a
  native fashion.

 If I understood you correctly, this means build an OPF tied to an
 specific database, and this isn't a nice approach.

I know it does not sound nice, but an OPF should not be considered an 
independent layer, but rather as a wrapper/converter/adapter to the non-OO 
db, much like the connection broker, only the connection broker output is a 
tdataset wheras the OPF should give you direct access to your native 
objects.

 In the current design I have:

user - mvp - data type - opf engine broker -
 connection broker (tied with) db engine

 You can change every part without changing the others.

If you implement the OPF as a pluggable system, then you may do the same.

 A small overhead do exist actually,

I don't think it's small, unless you mean small apps which deal with textual 
data only.  For large apps that deal with blobs, the overhead may bring down 
your system.

 and the way to remove it is writing a connection
 broker that doesn't depend of a db suite like SQLdb or Zeos, and that
 doesn't depend of the tdataset as well.

If you do it this way, then you are actually implementing proxies, and 
proxies should not be used unless there is a need for them like for 
border-gateways, because proxies add overhead.

What you may want to try is to refactor the OPF, dataBroker, and 
dbConnectionLib into their respective layering components, and then 
recompose a native OPF wrapper based on those layering components.  This 
should give a decoupled system while maintaining native performance.


Thanks!

--
Al

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


[lazarus] [fpc] Inlining

2007-11-09 Thread Damien Gerard


I have questions about FPC and inlining.

Imagine you have a class like this :

type
  TFoo = class(TObject)
  public
 ...
 procedure foo;inline;
  end;

implementation

procedure TFoo.foo;inline;
begin
   ...
end;


Is the keyword 'inline' is needed in the implementation section ?

Does the use of this keyword follow the same rules as in C++ about how  
optimisations are made by the compiler ?



--
Damien Gerard
[EMAIL PROTECTED]



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


RE: [lazarus] Using SDL.framework within Lazarus project on Mac OS X

2007-11-09 Thread Hess, Philip J
Dominique,

Normally with a Carbon app you won't be linking to X11 yet that's what
your app is doing. Is SDL an X11-based framework?

The -L switch doesn't look right for a framework. I think -L is normally
used with standalone libraries, not frameworks. What about omitting that
and adding another -k-framework in front of -ksdl?

Did you run with the -Cn command line switch to see what the linker is
actually getting?

Thanks.

-Phil


-Original Message-
From: Dominique Louis [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 08, 2007 6:12 PM
To: lazarus@miraclec.com
Subject: Re: [lazarus] Using SDL.framework within Lazarus project on Mac
OS X

Hi Philip,
   I'm still having this framework issue.

When I run the otool -L myapp command I get
   /System/Library/Carbon.framework/Versions/A/Carbon ( Compatibility 
version 2.0.0, current version 128.0.0)
   /usr/lib/libz.1.dylib ( compatibility version 1.0.0, current version 
1.2.3)
   /usr/lib/libSystem.B.dylib ( compatibility version 1.0.0, current 
version 88.3.9)
   /usr/lib/libX11.6.dylib ( compatibility version 6.2.0, current 
version 6.2.0)

Does that look right?

In the lazarus compiler options under the linking tab I have
-L/Library/Frameworks/SDL.framework -framework carbon sdl

and in the Show Options screen this translates to...
-k-L/Library/Frameworks/SDL.framework -k-framework -kcarbon -ksdl

Which I think all looks fine, but I still get the following error...
/usr/bin/ld: can't open: sdl ( No such file or directory, errno = 2)
Error:Error while linking

This is definitely the location of the framework because I can create an

XCode FreePascal project and that correctly links to SDL.framework in 
that directory and I can see a 3D OpenGL spinning cube when it runs.

Thanks,


Dominique.

Hess, Philip J wrote:
 Dominique,
 
 I don't believe that's the Carbon framework that your apps are using.
 
 Use otool -L against any app compiled against the Carbon framework to
 see the framework's location.
 
 Try compiling with the -Cn switch, then look at the link.res text file
 generated. This contains the actual switches that are being passed to
 the linker.
 
 Thanks.
 
 -Phil
 
 
 -Original Message-
 From: Dominique Louis [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, November 01, 2007 11:29 AM
 To: lazarus@miraclec.com
 Subject: Re: [lazarus] Using SDL.framework within Lazarus project on
Mac
 OS X
 
 Hi Philip,
I've just been re-reading your message. So when using frameworks,
 there is no need to specify a library name, because the linker
resolves
 this automagically?
 
 just for clarification the SDL.framework is located @
 /Library/Frameworks/SDL.framework.
 
 While I notice that Carbon.framework is located @

/Developers/SDKs/MacOS10.4u.sdk/System/Library/Frameworks/Carbon.framewo
 rk
 
 I even tried adding /Library/Frameworks/ to -Fl in the Libraries field
 on the Path tab in case that would help, but that did not work either.
I
 still get the Can't open : sdl ( No such file or directory,  errorno
=
 2).
 
 So the compiler recognises that I'm passing a framework via the
command
 line, but it just can't find it. Is there something else I need to do
to
 use 3rd Party frameworks?
 
 Dominique.
 
 Hess, Philip J wrote:
 Dominique,

 Did you put the sdl.framework bundle (folder) somewhere that the
 linker
 can find it? Typically this would be in the Library/Frameworks
folder.

 If the linker can find the framework it should be able to find any
 externally declared functions in your program. You shouldn't need any
 link directives in your source either.

 Note how it's done in FPCMacOSAll.pas:

 function sqrt(x: double_t): double_t; external name '_sqrt';

 When you include -framework carbon the linker is able to find the
 _sqrt function in the Carbon framework's library.

 Thanks.

 -Phil



 -Original Message-
 From: Dominique Louis [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 30, 2007 7:53 AM
 To: lazarus@miraclec.com
 Subject: RE: [lazarus] Using SDL.framework within Lazaru project

 Hi Philip,
Thanks for pointing this out. On the Mac that option was being  
 hidden due to the dialog size, so I could not see the area where I  
 needed to put the framework. This is now entered, but I now get a  
 Unable to find sdl error message when it tris to link to the  
 framework. Is there something else I need to do? Also, if I have  
 sdl.pas in the project file, it complains that it cant link to  
 -lSDL-1.2.0 .

 If it finds the framework, does it still need to link to it via -l?


 Thanks,


 Dominique.


 Quoting Hess, Philip J [EMAIL PROTECTED]:

 Dominique,

 On the Compiler Options tab, check the Pass Options To The Linker
 box
 and enter this in text box:  -framework sdl

 This will be passed to FPC as -k'-framework' -k'sdl', which then
 passes
 the switches on to the linker.

 Thanks.

 -Phil


 -Original Message-
 From: Dominique Louis [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 29, 2007 9:38 AM
 To: 

Re: [lazarus] ParentWindow

2007-11-09 Thread Christian Budde

Hello,

I once asked here, if someone knows any replacement for the Delphi function:

   MyForm.ParentWindow := HWnd(AnotherForm.Handle);

I need this to make a form stored in a DLL is move into another form 
(called MyForm here). I tried


   Parent := FindControl(AnotherForm.Handle)

but I guess since both forms are not in the same project it won't find 
that handle and thus return nil.


There is a FParentWindow located in TWinControl, but there is nothing 
like ParentWindow. Is there any reason for it or was it simply never 
necessary and thus never implemented? Any hints welcome!


Thanks in advance,

   Christian



Christian Budde wrote:

Hi again,

I'm now missing a procedure to 'host' a form in a different window 
given only by a handle. In Delphi it's as simple as


MyForm.ParentWindow := HWnd(Handle);

It directly uses Windows.SetParent(FHandle, Value); from the WinAPI. 
At the moment I'm still on Windows, but I'd like to find a 
multi-platform solution.


There is a FParentWindow located in TWinControl, but there is nothing 
like ParentWindow. Is there any reason for it or was it simply never 
necessary and thus never implemented? Any hints welcome!


Thanks in advance,

Christian




Re: [lazarus] Where the parameter hints?

2007-11-09 Thread Mattias Gaertner
On Fri, 09 Nov 2007 08:51:37 -0500
Lee Jenkins [EMAIL PROTECTED] wrote:

 
 I've running precompiled binaries on my WinXP box, Lazarus 0.9.22,
 svn revision 10809.  And the parameters hints are no longer showing.

Does this mean you upgraded from 0.9.20 to 0.9.22?

 
 Is there a newer setting that I should be aware of?

AFAIK: no

Does find declaration work on the procedure?

You can start lazarus with --debug-log=log.txt. Normally the codetools
write some hints why something do no work.

Mattias
 

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


Re: [lazarus] Using SDL.framework within Lazarus project on Mac OS X

2007-11-09 Thread Felipe Monteiro de Carvalho
Another hint: You can group the -k statements with quotes:

-k-framework carbon -framework sdl

-- 
Felipe Monteiro de Carvalho

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


Re: [lazarus] Latest svn eats IDE icons

2007-11-09 Thread Paul Ishenin

Paul Ishenin wrote:

Giuliano Colla wrote:
Upgrading to the latest snv (r 12796) some icons on the IDE Bar have 
disappeared.


Notably, in the Addtional Section, the icons for TImage and TColorBox 
are blank, while TColorListBox shows just a few pixels on top. The 
same occurs for some custom components I've added. Three Icons show 
properly, the fourth doesn't show at all.


Is there some issue with transparency requiring the upgrade of icons, 
or it's just a bug?
Just a bug. I am working on that new bugs I introduced in recent 
changes though I dont have them on my main development platform 
(windows XP).

That was more generic bug and it has been fixed in r12797.

Best regards,
Paul Ishenin.

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


Re: [lazarus] Latest svn eats IDE icons

2007-11-09 Thread Giuliano Colla

Paul Ishenin ha scritto:

Paul Ishenin wrote:

Giuliano Colla wrote:
Upgrading to the latest snv (r 12796) some icons on the IDE Bar have 
disappeared.


Notably, in the Addtional Section, the icons for TImage and TColorBox 
are blank, while TColorListBox shows just a few pixels on top. The 
same occurs for some custom components I've added. Three Icons show 
properly, the fourth doesn't show at all.


Is there some issue with transparency requiring the upgrade of icons, 
or it's just a bug?
Just a bug. I am working on that new bugs I introduced in recent 
changes though I dont have them on my main development platform 
(windows XP).

That was more generic bug and it has been fixed in r12797.


Thanks a lot.

Giuliano

--
Giuliano Colla

Whenever people agree with me, I always feel I must be wrong (O. Wilde)

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


Re: [lazarus] Using SDL.framework within Lazarus project on Mac OS X

2007-11-09 Thread Dominique Louis

Felipe Monteiro de Carvalho wrote:

Another hint: You can group the -k statements with quotes:

-k-framework carbon -framework sdl




Damn how stupid do I feel. I was under the impression that the FPC 
compiler would take the -k-framework directive and apply to all option 
that appeared after it until it found a non -k directive so as I 
mentioned earlier the command like looked like this..

-k-framework -kcarbon -ksdl

when it should have been
-k-framework -kcarbon -k-framework -ksdl

That now compiles correctly. Thank Felipe and thank you Philip for your 
patience throughout this thread.


Hopefully one last question when it come to passing parameters to the 
compiler from lazarus. How do I pass the -XM parameter via the Lazarus 
IDE, as I need to redefine the main function it currently uses?

I could not find a tab that allowed me to set this up.

Thanks,


Dominique.

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


Re: [lazarus] Lazarus and InstantObjects ?

2007-11-09 Thread Joao Morais

Al Boldi wrote:

do object cache, lazy loading, bulk retrieving, etc.


That's where things become interesting, because you have to figure out how to 
interface with your non-OO db, aka relational-DB, without incurring any 
duplicate overhead.


Interesting and amusing.

an OPF should not be considered an 
independent layer, but rather as a wrapper/converter/adapter to the non-OO 
db,


An OPF and its connection brokers consist of an independent layer that 
binds objects of an oo model and a storage mechanism.



A small overhead do exist actually,


I don't think it's small, unless you mean small apps which deal with textual 
data only. For large apps that deal with blobs, the overhead may bring down 
your system.


No, small overhead even to applications that handle large objects. There 
are three points to consider: 1. the real bottleneck is in the database 
and in the network; 2. moving data between layers doesn't mean big 
overhead due to refcount of ansistrings or other managed objects; 3. 
lazy loading of objects and attributes mixed with bulk retrieving.



and the way to remove it is writing a connection
broker that doesn't depend of a db suite like SQLdb or Zeos, and that
doesn't depend of the tdataset as well.


If you do it this way, then you are actually implementing proxies, and 
proxies should not be used unless there is a need for them like for 
border-gateways, because proxies add overhead.


I think you meant wrappers. And yes, wrappers to SQLdbs are necessary in 
this case, because implement wrappers to database API at this stage of 
the project demands an effort that I would like to use to other more 
important tasks like tests, docs and the expert.


What you may want to try is to refactor the OPF, dataBroker, and 
dbConnectionLib into their respective layering components, and then 
recompose a native OPF wrapper based on those layering components.  This 
should give a decoupled system while maintaining native performance.


Perhaps what you are proposing is something I have already implemented. 
I don't use any db* class and have created an abstract data access to 
improve speed as much as possible (or as I can) -- writing wrappers to 
database APIs in future versions. Have a look in the code.


--
Joao Morais

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


RE: [lazarus] Using SDL.framework within Lazarus project on Mac OS X

2007-11-09 Thread Hess, Philip J
Dominique,

I think you can enter -XM under Custom options on the Compiler
Options' Other tab.

Glad to hear that you got it to compile. Maybe you could write up
something in the wiki about how to use SDL with Lazarus. Perhaps a small
test app to help get folks started.

Thanks.

-Phil


-Original Message-
From: Dominique Louis [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 09, 2007 12:53 PM
To: lazarus@miraclec.com
Subject: Re: [lazarus] Using SDL.framework within Lazarus project on Mac
OS X

Felipe Monteiro de Carvalho wrote:
 Another hint: You can group the -k statements with quotes:
 
 -k-framework carbon -framework sdl
 


Damn how stupid do I feel. I was under the impression that the FPC 
compiler would take the -k-framework directive and apply to all option 
that appeared after it until it found a non -k directive so as I 
mentioned earlier the command like looked like this..
-k-framework -kcarbon -ksdl

when it should have been
-k-framework -kcarbon -k-framework -ksdl

That now compiles correctly. Thank Felipe and thank you Philip for your 
patience throughout this thread.

Hopefully one last question when it come to passing parameters to the 
compiler from lazarus. How do I pass the -XM parameter via the Lazarus 
IDE, as I need to redefine the main function it currently uses?
I could not find a tab that allowed me to set this up.

Thanks,


Dominique.

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

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


Re: [lazarus] Lazarus and InstantObjects ?

2007-11-09 Thread Al Boldi
Joao Morais wrote:
 Al Boldi wrote:
  A small overhead do exist actually,
 
  I don't think it's small, unless you mean small apps which deal with
  textual data only. For large apps that deal with blobs, the overhead may
  bring down your system.

 No, small overhead even to applications that handle large objects. There
 are three points to consider: 1. the real bottleneck is in the database
 and in the network;

Correct.  Let's call this the server-side, which isn't under our control.  
Then comes the client-side, which we can control.

 2. moving data between layers doesn't mean big
 overhead due to refcount of ansistrings or other managed objects;

Ok, that sounds like a cache manager.  So you are not actually moving any 
data, but rather managing the pointers.

Where is the data cached?

 3.lazy loading of objects and attributes mixed with bulk retrieving.

And how does the app access this object-data?

  and the way to remove it is writing a connection
  broker that doesn't depend of a db suite like SQLdb or Zeos, and that
  doesn't depend of the tdataset as well.
 
  If you do it this way, then you are actually implementing proxies, and
  proxies should not be used unless there is a need for them like for
  border-gateways, because proxies add overhead.

 I think you meant wrappers. And yes, wrappers to SQLdbs are necessary in
 this case, because implement wrappers to database API at this stage of
 the project demands an effort that I would like to use to other more
 important tasks like tests, docs and the expert.

The problem with this is that, the proper construction of the OOrdb cache 
manager is critically dependent on the native access to the dbAPI.  
Otherwise you may be hindered by the dual-cache problem.

  What you may want to try is to refactor the OPF, dataBroker, and
  dbConnectionLib into their respective layering components, and then
  recompose a native OPF wrapper based on those layering components.  This
  should give a decoupled system while maintaining native performance.

 Perhaps what you are proposing is something I have already implemented.
 I don't use any db* class and have created an abstract data access to
 improve speed as much as possible (or as I can) -- writing wrappers to
 database APIs in future versions. Have a look in the code.

Sure.  Can you give us a link to a tarball?


Thanks!

--
Al

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


[lazarus] XML and UTF-8

2007-11-09 Thread Valdas Jankūnas

Hello,

 when i saving unicode text to file with TXMLConfig (from Laz_XMLCfg) 
i get correct results (code below, first part), but if use TXMLDocument 
(secont part of code) i get messed unicode text in file. Why?? What i 
doing wrong?


// code (on form placed two labels):

unit Unit1;

{$mode objfpc}{$H+}

interface

uses laz_xmlcfg, DOM, XMLRead, XMLWrite,
  Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, 
StdCtrls;


type

  { TForm1 }

  TForm1 = class(TForm)
Label1: TLabel;
Label2: TLabel;
procedure FormCreate(Sender: TObject);
  private
{ private declarations }
  public
{ public declarations }
  end;

var
  Form1: TForm1;

implementation

{ TForm1 }

procedure TForm1.FormCreate(Sender: TObject);
const
  FAILAS='testas.config';
  SAKA='testas/eilute';
  TESTAS='-ąčęėįšųūž-ĄČĘĖĮŠŲŪŽ-';
var
  xmlcfg: TXMLConfig;
  xml_doc: TXMLDocument;
  node_00, node_01: TDOMNode;
begin
DeleteFile(FAILAS);
// using TXMLConfig =
xmlcfg:=TXMLConfig.Create(FAILAS);
xmlcfg.SetValue(SAKA, TESTAS);
xmlcfg.Flush;
xmlcfg.Free;
//
xmlcfg:=TXMLConfig.Create(FAILAS);
Label1.Caption:=''+xmlcfg.GetValue(SAKA, '')+'';
xmlcfg.Free;
//
DeleteFile(FAILAS);
// using TXMLDocument ===
xml_doc:=TXMLDocument.Create;
node_00:=xml_doc.CreateElement('root');
xml_doc.AppendChild(node_00);
node_00:=xml_doc.DocumentElement;
node_01:=xml_doc.CreateElement('kitas_testas');
node_00.AppendChild(node_01);
TDOMElement(node_01)['kita_eilute']:=TESTAS;
WriteXMLFile(xml_doc, FAILAS);
xml_doc.Free;
//
xml_doc:=TXMLDocument.Create;
ReadXMLFile(xml_doc, FAILAS);
node_00:=xml_doc.FindNode('root');
node_01:=node_00.FindNode('kitas_testas');
Label2.Caption:=''+TDOMElement(node_01)['kita_eilute']+'';
xml_doc.Free;
end;

initialization
  {$I unit1.lrs}

end.



--
  Valdas Jankūnas

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


Re: [lazarus] Lazarus and InstantObjects ?

2007-11-09 Thread Joao Morais

Al Boldi wrote:

Joao Morais wrote:

1. the real bottleneck is in the database
and in the network;


Correct.  Let's call this the server-side, which isn't under our control.


Sometimes it is, eg building smart DMLs and smart strategies to retrieve 
data, using prepared statements when possible, and so on.



Then comes the client-side, which we can control.


Improvements in the client side sometimes doesn't worth the effort. If, 
lets say, 90% of the time is in the server side and the network, a 
perfect client side would increase 10% of the performance. The side 
effect is the complexity to maintain and extend the code.


Other improvements that can be made regarding performance is creating 
threads to perform some slow tasks in the background, while the 
application answer some key or mouse events of the user.



Where is the data cached?


Attributes belong to business objects. BOs are reference counted and the 
ones that wasn't removed from the memory are referenced by a cache that 
belongs to the persistence service.



3.lazy loading of objects and attributes mixed with bulk retrieving.


And how does the app access this object-data?


Retrieving its OID through the persistence service. This service will 
query the cache (binary tree -- todo list) in order to know if the 
object was already instantiated. If it exist, its address is returned, 
otherwise the persistence (xml, database, whatever) is queried in order 
to retrieve information to instantiate such object.



and the way to remove it is writing a connection
broker that doesn't depend of a db suite like SQLdb or Zeos, and that
doesn't depend of the tdataset as well.

If you do it this way, then you are actually implementing proxies, and
proxies should not be used unless there is a need for them like for
border-gateways, because proxies add overhead.

I think you meant wrappers. And yes, wrappers to SQLdbs are necessary in
this case, because implement wrappers to database API at this stage of
the project demands an effort that I would like to use to other more
important tasks like tests, docs and the expert.


The problem with this is that, the proper construction of the OOrdb cache 
manager is critically dependent on the native access to the dbAPI.  
Otherwise you may be hindered by the dual-cache problem.


No, only one cache that references objects. No relational data is 
cached, just some datasets.



What you may want to try is to refactor the OPF, dataBroker, and
dbConnectionLib into their respective layering components, and then
recompose a native OPF wrapper based on those layering components.  This
should give a decoupled system while maintaining native performance.

Perhaps what you are proposing is something I have already implemented.
I don't use any db* class and have created an abstract data access to
improve speed as much as possible (or as I can) -- writing wrappers to
database APIs in future versions. Have a look in the code.


Sure.  Can you give us a link to a tarball?


Sure. A 'zipball': 
http://pressobjects.org/snapshot/press-snapshot-20071103-r706.zip or 
subversion: 
https://pressobjects.svn.sourceforge.net/svnroot/pressobjects/trunk


--
Joao Morais

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


Re: Anybody using FVWM window manager?

2007-11-09 Thread Micha Nelissen
Graeme Geldenhuys wrote:
 OK, I finally found the answer to this question.  I narrowed it down
 to *modal forms* not have a titlebar or borders on them, so you
 couldn't move or resize them. This only occurred under FVWM2 and was
 very annoying.
 
 Anyway, the issue is when a modal form (under X11) is set via the
 transient window hint.  To correct this annoying behaviour under FVWM2
 you have to tell the window manager to also decorate transient
 windows.

My opinion is that modal forms are buggy in gtk/X. For me, they are
present on all desktops, which is not what I want.

Micha

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


Re: Anybody using FVWM window manager?

2007-11-09 Thread Mattias Gaertner
On Fri, 09 Nov 2007 20:53:24 +0100
Micha Nelissen [EMAIL PROTECTED] wrote:

 Graeme Geldenhuys wrote:
  OK, I finally found the answer to this question.  I narrowed it down
  to *modal forms* not have a titlebar or borders on them, so you
  couldn't move or resize them. This only occurred under FVWM2 and was
  very annoying.
  
  Anyway, the issue is when a modal form (under X11) is set via the
  transient window hint.  To correct this annoying behaviour under
  FVWM2 you have to tell the window manager to also decorate transient
  windows.
 
 My opinion is that modal forms are buggy in gtk/X. For me, they are
 present on all desktops, which is not what I want.

Only FVWM or in general? gtk2 too?

Mattias

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


Re: [lazarus] Lazarus and InstantObjects ?

2007-11-09 Thread Joao Morais

Al Boldi wrote:

The problem with this is that, the proper construction of the OOrdb
cache manager is critically dependent on the native access to the dbAPI.
Otherwise you may be hindered by the dual-cache problem.

No, only one cache that references objects. No relational data is
cached, just some datasets.


Of course you are not caching any relational data, but you said that you are 
using a connection broker to the rdb, which caches the rdb data, which means 
extra overhead.


Hmmm... the rdb or the suite that access the rdb caching data means 
extra resource usage I think, on behalf of performance.



Sure.  Can you give us a link to a tarball?

Sure. A 'zipball':
http://pressobjects.org/snapshot/press-snapshot-20071103-r706.zip or
subversion:
https://pressobjects.svn.sourceforge.net/svnroot/pressobjects/trunk


Ok, I had a quick look through the docs, and it seems that you have the 
design tightly coupled to the MVP.


The MVP _is_ the design, or even better, is the presentation framework.

Is there a way to directly attach LCL 
objects to your OPF?


You don't need to do this. Eg: create a form without code or non-visual 
components, bind BO attributes and components in a single line, and the 
MVP will do the rest for you using informations from the model.


--
Joao Morais

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


Re: [lazarus] what is this package error message

2007-11-09 Thread Mattias Gaertner
On Fri, 9 Nov 2007 21:18:46 +0100
wile64 [EMAIL PROTECTED] wrote:

 Hi,
 
 That two times I remake my package and after the installation I was
 the message.
 
 What is create this error?

It means, the IDE executable contains the code of a package
pkg_gifanim, but the IDE didn't found the corresponding
pkg_gifanim.lpk file.

This happens for example, if you install a package as one user and start
the IDE as another user.

Solutions:
a) open the pkg_gifanim.lpk once.
b) add a /path/to/lazarus/packager/globallinks/pkg_gifanim-0.lpl file.


Mattias

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


Re: Anybody using FVWM window manager?

2007-11-09 Thread Giuliano Colla

Micha Nelissen ha scritto:

Graeme Geldenhuys wrote:

OK, I finally found the answer to this question.  I narrowed it down
to *modal forms* not have a titlebar or borders on them, so you
couldn't move or resize them. This only occurred under FVWM2 and was
very annoying.

Anyway, the issue is when a modal form (under X11) is set via the
transient window hint.  To correct this annoying behaviour under FVWM2
you have to tell the window manager to also decorate transient
windows.


My opinion is that modal forms are buggy in gtk/X. For me, they are
present on all desktops, which is not what I want.



Either modal forms are decorated, with title bar and borders, then they 
stay on top of their parent window, but can be covered by other 
unrelated windows, or they are without title bar and without borders 
(such as splash screens), and in that case they stay above any other 
window, but they will show in all desktops. Happens with Gtk, and with 
Qt also, because it's an X11 spec.


Regards,

Giuliano



Micha

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




--
Giuliano Colla

Whenever people agree with me, I always feel I must be wrong (O. Wilde)

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


Re: [lazarus] what is this package error message

2007-11-09 Thread Mattias Gaertner
On Fri, 9 Nov 2007 22:04:26 +0100
wile64 [EMAIL PROTECTED] wrote:

 2007/11/9, Mattias Gaertner [EMAIL PROTECTED]:
 
  On Fri, 9 Nov 2007 21:18:46 +0100
  wile64 [EMAIL PROTECTED] wrote:
 
   Hi,
  
   That two times I remake my package and after the installation I
   was the message.
  
   What is create this error?
 
  It means, the IDE executable contains the code of a package
  pkg_gifanim, but the IDE didn't found the corresponding
  pkg_gifanim.lpk file.
 
  This happens for example, if you install a package as one user and
  start the IDE as another user.
 
 
 one user (me), error after install package (IDE reboot)

Darn.
What OS? Is this the lazarus from svn or from a package? How do you
start lazarus (startlazarus or lazarus-de or lazarus)? Do you use any
special parameters?

 
 Solutions:
  a) open the pkg_gifanim.lpk once.
  b) add a /path/to/lazarus/packager/globallinks/pkg_gifanim-0.lpl
  file.
 
 
 Thanks Mattias,
 
 But the file is found, is override by IDE?

Which file? lpk, lpl?

 
 I succeeded in restoring the backup and implement the solution one (a)


Mattias

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


Re: [lazarus] what is this package error message

2007-11-09 Thread wile64
2007/11/9, Mattias Gaertner [EMAIL PROTECTED]:

 On Fri, 9 Nov 2007 22:04:26 +0100
 wile64 [EMAIL PROTECTED] wrote:

  2007/11/9, Mattias Gaertner [EMAIL PROTECTED]:
  
   On Fri, 9 Nov 2007 21:18:46 +0100
   wile64 [EMAIL PROTECTED] wrote:
  
Hi,
   
That two times I remake my package and after the installation I
was the message.
   
What is create this error?
  
   It means, the IDE executable contains the code of a package
   pkg_gifanim, but the IDE didn't found the corresponding
   pkg_gifanim.lpk file.
  
   This happens for example, if you install a package as one user and
   start the IDE as another user.
 
 
  one user (me), error after install package (IDE reboot)

 Darn.
 What OS? Is this the lazarus from svn or from a package? How do you
 start lazarus (startlazarus or lazarus-de or lazarus)? Do you use any
 special parameters?


WinXP SP2, Snapshot 09/11, lazarus, no any parameters !

 Solutions:
   a) open the pkg_gifanim.lpk once.
   b) add a /path/to/lazarus/packager/globallinks/pkg_gifanim-0.lpl
   file.
  
  
  Thanks Mattias,
 
  But the file is found, is override by IDE?

 Which file? lpk, lpl?


The lpk file

 I succeeded in restoring the backup and implement the solution one (a)


 Mattias

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




-- 
Laurent.

French Forum : http://lazforum-fr.tuxfamily.org/index.php


Re: [lazarus] what is this package error message

2007-11-09 Thread wile64
2007/11/9, Mattias Gaertner [EMAIL PROTECTED]:

 On Fri, 9 Nov 2007 21:18:46 +0100
 wile64 [EMAIL PROTECTED] wrote:

  Hi,
 
  That two times I remake my package and after the installation I was
  the message.
 
  What is create this error?

 It means, the IDE executable contains the code of a package
 pkg_gifanim, but the IDE didn't found the corresponding
 pkg_gifanim.lpk file.

 This happens for example, if you install a package as one user and start
 the IDE as another user.


one user (me), error after install package (IDE reboot)

Solutions:
 a) open the pkg_gifanim.lpk once.
 b) add a /path/to/lazarus/packager/globallinks/pkg_gifanim-0.lpl file.


Thanks Mattias,

But the file is found, is override by IDE?

I succeeded in restoring the backup and implement the solution one (a)

Regards,

-- 
Laurent.

French Forum : http://lazforum-fr.tuxfamily.org/index.php


Re: [lazarus] what is this package error message

2007-11-09 Thread Mattias Gaertner
On Fri, 9 Nov 2007 22:33:09 +0100
wile64 [EMAIL PROTECTED] wrote:

 2007/11/9, Mattias Gaertner [EMAIL PROTECTED]:
 
  On Fri, 9 Nov 2007 22:04:26 +0100
  wile64 [EMAIL PROTECTED] wrote:
 
   2007/11/9, Mattias Gaertner [EMAIL PROTECTED]:
   
On Fri, 9 Nov 2007 21:18:46 +0100
wile64 [EMAIL PROTECTED] wrote:
   
 Hi,

 That two times I remake my package and after the installation
 I was the message.

 What is create this error?
   
It means, the IDE executable contains the code of a package
pkg_gifanim, but the IDE didn't found the corresponding
pkg_gifanim.lpk file.
   
This happens for example, if you install a package as one user
and start the IDE as another user.
  
  
   one user (me), error after install package (IDE reboot)
 
  Darn.
  What OS? Is this the lazarus from svn or from a package? How do you
  start lazarus (startlazarus or lazarus-de or lazarus)? Do you use
  any special parameters?
 
 
 WinXP SP2, Snapshot 09/11, lazarus, no any parameters !

Strange.
Normally if you open a package and install it the IDE saves the
found .lpk files to packagefiles.xml.
Either this file was not written or it not read on restart.

 
  Solutions:
a) open the pkg_gifanim.lpk once.
b) add a /path/to/lazarus/packager/globallinks/pkg_gifanim-0.lpl
file.
   
   
   Thanks Mattias,
  
   But the file is found, is override by IDE?
 
  Which file? lpk, lpl?
 
 
 The lpk file

The .lpk file is only written to disk, if the lpk file is open (as
package editor) and modified and then saved OR if it was deleted on
disk.


Mattias

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


Re: [lazarus] what is this package error message

2007-11-09 Thread wile64
2007/11/9, Mattias Gaertner [EMAIL PROTECTED]:

 On Fri, 9 Nov 2007 22:33:09 +0100
 wile64 [EMAIL PROTECTED] wrote:

  2007/11/9, Mattias Gaertner [EMAIL PROTECTED]:
  
   On Fri, 9 Nov 2007 22:04:26 +0100
   wile64 [EMAIL PROTECTED] wrote:
  
2007/11/9, Mattias Gaertner [EMAIL PROTECTED]:

 On Fri, 9 Nov 2007 21:18:46 +0100
 wile64 [EMAIL PROTECTED] wrote:

  Hi,
 
  That two times I remake my package and after the installation
  I was the message.
 
  What is create this error?

 It means, the IDE executable contains the code of a package
 pkg_gifanim, but the IDE didn't found the corresponding
 pkg_gifanim.lpk file.

 This happens for example, if you install a package as one user
 and start the IDE as another user.
   
   
one user (me), error after install package (IDE reboot)
  
   Darn.
   What OS? Is this the lazarus from svn or from a package? How do you
   start lazarus (startlazarus or lazarus-de or lazarus)? Do you use
   any special parameters?
 
 
  WinXP SP2, Snapshot 09/11, lazarus, no any parameters !

 Strange.
 Normally if you open a package and install it the IDE saves the
 found .lpk files to packagefiles.xml.
 Either this file was not written or it not read on restart.


I do not know, now it work !

  Solutions:
 a) open the pkg_gifanim.lpk once.
 b) add a /path/to/lazarus/packager/globallinks/pkg_gifanim-0.lpl
 file.


Thanks Mattias,
   
But the file is found, is override by IDE?
  
   Which file? lpk, lpl?
 
 
  The lpk file

 The .lpk file is only written to disk, if the lpk file is open (as
 package editor) and modified and then saved OR if it was deleted on
 disk.


The file is modified by IDE?

Mattias

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




-- 
Laurent.

French Forum : http://lazforum-fr.tuxfamily.org/index.php


Re: [lazarus] what is this package error message

2007-11-09 Thread Jesus Reyes

--- wile64 [EMAIL PROTECTED] escribió:

  Strange.
  Normally if you open a package and install it the IDE saves the
  found .lpk files to packagefiles.xml.
  Either this file was not written or it not read on restart.

I can reproduce the problem under linux too, here it first fails with
package pascalscript, this section is from .lazarus/packagefiles.xml

Item37
  Name Value=PascalScript/
  Version Build=1/
  Filename
Value=snipped/pascalscript/Source/pascalscript.lpk/
/Item37

of course snipped/pascalscript/Source/pascalscript.lpk
exists and righs are ok.

Jesus Reyes A.


  

¡Capacidad ilimitada de almacenamiento en tu correo!
No te preocupes más por el espacio de tu cuenta con Correo Yahoo!:  

http://correo.yahoo.com.mx/

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


Re: [lazarus] what is this package error message

2007-11-09 Thread wile64
2007/11/9, wile64 [EMAIL PROTECTED]:



 2007/11/9, Mattias Gaertner [EMAIL PROTECTED]:
 
  On Fri, 9 Nov 2007 22:33:09 +0100
  wile64 [EMAIL PROTECTED] wrote:
 
   2007/11/9, Mattias Gaertner [EMAIL PROTECTED] :
   
On Fri, 9 Nov 2007 22:04:26 +0100
wile64 [EMAIL PROTECTED] wrote:
   
 2007/11/9, Mattias Gaertner  [EMAIL PROTECTED]:
 
  On Fri, 9 Nov 2007 21:18:46 +0100
  wile64  [EMAIL PROTECTED] wrote:
 
   Hi,
  
   That two times I remake my package and after the installation
   I was the message.
  
   What is create this error?
 
  It means, the IDE executable contains the code of a package
  pkg_gifanim, but the IDE didn't found the corresponding
  pkg_gifanim.lpk file.
 
  This happens for example, if you install a package as one user
  and start the IDE as another user.


 one user (me), error after install package (IDE reboot)
   
Darn.
What OS? Is this the lazarus from svn or from a package? How do you
start lazarus (startlazarus or lazarus-de or lazarus)? Do you use
any special parameters?
  
  
   WinXP SP2, Snapshot 09/11, lazarus, no any parameters !
 
  Strange.
  Normally if you open a package and install it the IDE saves the
  found .lpk files to packagefiles.xml.
  Either this file was not written or it not read on restart.


 I do not know, now it work !

   Solutions:
  a) open the pkg_gifanim.lpk once.
  b) add a /path/to/lazarus/packager/globallinks/pkg_gifanim-0.lpl
  file.
 
 
 Thanks Mattias,

 But the file is found, is override by IDE?
   
Which file? lpk, lpl?
  
  
   The lpk file
 
  The .lpk file is only written to disk, if the lpk file is open (as
  package editor) and modified and then saved OR if it was deleted on
  disk.


 The file is modified by IDE?


The file is recreate after error message!


-- 
Laurent.

French Forum : http://lazforum-fr.tuxfamily.org/index.php


Re: [lazarus] Latest svn eats IDE icons

2007-11-09 Thread wile64
2007/11/9, Paul Ishenin [EMAIL PROTECTED]:

 Giuliano Colla wrote:
  Upgrading to the latest snv (r 12796) some icons on the IDE Bar have
  disappeared.
 
  Notably, in the Addtional Section, the icons for TImage and TColorBox
  are blank, while TColorListBox shows just a few pixels on top. The
  same occurs for some custom components I've added. Three Icons show
  properly, the fourth doesn't show at all.
 
  Is there some issue with transparency requiring the upgrade of icons,
  or it's just a bug?
 Just a bug. I am working on that new bugs I introduced in recent changes
 though I dont have them on my main development platform (windows XP).



Very good

It's very nice and works well with XP

Regards,


-- 
Laurent.

French Forum : http://lazforum-fr.tuxfamily.org/index.php


Re: [lazarus] Latest svn eats IDE icons

2007-11-09 Thread Damien Gerard


On Nov 9, 2007, at 11:46 PM, wile64 wrote:




2007/11/9, Paul Ishenin [EMAIL PROTECTED]:
Giuliano Colla wrote:
 Upgrading to the latest snv (r 12796) some icons on the IDE Bar have
 disappeared.

 Notably, in the Addtional Section, the icons for TImage and  
TColorBox

 are blank, while TColorListBox shows just a few pixels on top. The
 same occurs for some custom components I've added. Three Icons show
 properly, the fourth doesn't show at all.

 Is there some issue with transparency requiring the upgrade of  
icons,

 or it's just a bug?
Just a bug. I am working on that new bugs I introduced in recent  
changes

though I dont have them on my main development platform (windows XP).


Very good

It's very nice and works well with XP



For Linux/GTK2 too


Regards,




--
Damien Gerard
[EMAIL PROTECTED]





[lazarus] GetText Question

2007-11-09 Thread Lee Jenkins


From some of the examples I've seen it look like there should be a function 
gettext(nameoftext), but its not in the gettext unit.


Am I supposed to create a TMOFile directly?  I've couldn't pickup it from what 
was on the wiki.


Thanks,

--
Warm Regards,

Lee

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


Re: [lazarus] Using SDL.framework within Lazarus project on Mac OS X

2007-11-09 Thread Dominique Louis

Hi Philip,
  Thanks again, that does the trick. As soon as I finish this project 
sometime in Jan/Feb I'll be sure to add stuff to the Wiki.


Dominique.

Hess, Philip J wrote:

Dominique,

I think you can enter -XM under Custom options on the Compiler
Options' Other tab.

Glad to hear that you got it to compile. Maybe you could write up
something in the wiki about how to use SDL with Lazarus. Perhaps a small
test app to help get folks started.

Thanks.

-Phil


-Original Message-
From: Dominique Louis [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 09, 2007 12:53 PM

To: lazarus@miraclec.com
Subject: Re: [lazarus] Using SDL.framework within Lazarus project on Mac
OS X

Felipe Monteiro de Carvalho wrote:

Another hint: You can group the -k statements with quotes:

-k-framework carbon -framework sdl




Damn how stupid do I feel. I was under the impression that the FPC 
compiler would take the -k-framework directive and apply to all option 
that appeared after it until it found a non -k directive so as I 
mentioned earlier the command like looked like this..

-k-framework -kcarbon -ksdl

when it should have been
-k-framework -kcarbon -k-framework -ksdl

That now compiles correctly. Thank Felipe and thank you Philip for your 
patience throughout this thread.


Hopefully one last question when it come to passing parameters to the 
compiler from lazarus. How do I pass the -XM parameter via the Lazarus 
IDE, as I need to redefine the main function it currently uses?

I could not find a tab that allowed me to set this up.

Thanks,


Dominique.



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


[lazarus] Fix for PrintersDlgs error in current snapshots on Mac OS X...

2007-11-09 Thread Dominique Louis

Hi all,
  I sent the following fix to Jesus a few days ago, but I have not 
heard back so don't know if he received it or if he has checked it in yet.


Basically in PrintersDlgs you have code that looks similar to this just 
after the implementation.


{$IFDEF LCLCarbon}
uses Unit Names Here
{$ELSE}
{$I cupsprndialogs.inc}
uses Unit Names Here
{$ENDIF}


This should really read

{$IFDEF LCLCarbon}
uses Unit Names Here
{$I cupsprndialogs.inc} // Moving it here works
{$ELSE}
uses Unit Names Here
{$ENDIF}

I currently do not have access to a patch facility so I can't provide 
one this time, so I hope someone can move that include to fix this error 
and check it in.


Thanks,


Dominique.

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


Re: [lazarus] Fix for PrintersDlgs error in current snapshots on Mac OS X...

2007-11-09 Thread Jesus Reyes

--- Dominique Louis [EMAIL PROTECTED] escribió:

 Hi all,
I sent the following fix to Jesus a few days ago, but I have not
 
 heard back so don't know if he received it or if he has checked it
 in yet.
 
 Basically in PrintersDlgs you have code that looks similar to this
 just 
 after the implementation.
 

Basically, I sent you this patch with instructions on how to apply it
and recompile Printer4Lazarus pacakge, and the last message I
received from you was that it didn't work. 

Anyway, in r12807 I commited the patch that I think should fix the
issue.

 {$IFDEF LCLCarbon}
 uses Unit Names Here
 {$ELSE}
 {$I cupsprndialogs.inc}
 uses Unit Names Here
 {$ENDIF}

The code in r12545 doesn't look like this ...

 
 
 This should really read
 
 {$IFDEF LCLCarbon}
 uses Unit Names Here
 {$I cupsprndialogs.inc} // Moving it here works
 {$ELSE}
 uses Unit Names Here
 {$ENDIF}

Maybe that would be an error under *nix. The whole LCLCarbon can be
well removed, but well, lets the code as it is until carbon printer
support is implemented, which seems to be work in progress by the
way.

 
 Dominique.
 

Jesus Reyes A.


  

¡Capacidad ilimitada de almacenamiento en tu correo!
No te preocupes más por el espacio de tu cuenta con Correo Yahoo!:  

http://correo.yahoo.com.mx/

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


Re: [lazarus] Lazarus and InstantObjects ?

2007-11-09 Thread Al Boldi
Joao Morais wrote:
 Al Boldi wrote:
  Of course you are not caching any relational data, but you said that you
  are using a connection broker to the rdb, which caches the rdb data,
  which means extra overhead.

 Hmmm... the rdb or the suite that access the rdb caching data means
 extra resource usage I think, on behalf of performance.

Exactly.  But you wouldn't want to do this caching twice.

  Ok, I had a quick look through the docs, and it seems that you have the
  design tightly coupled to the MVP.

 The MVP _is_ the design, or even better, is the presentation framework.

Oh, I meant the OPF design.  Is it possible to isolate the OPF from the MVP?

  Is there a way to directly attach LCL
  objects to your OPF?

 You don't need to do this. Eg: create a form without code or non-visual
 components, bind BO attributes and components in a single line, and the
 MVP will do the rest for you using informations from the model.

Sure, this is great when you are working with a disconnected presentation 
layer like a web interface.  But for native apps, you don't need this, 
because your presentation layer is already connected to your model via 
TForm.  So what we need is for a TForm to directly connect to the OPF 
without going through the redundant MVP framework.  Is this possible?

BTW, as I said, the MVP would be great for a disconnected presentation layer 
like in web development, so it would be really useful to have an MVP to 
WebPresentation proxy.  Does your MVP include this feature?

Also, I tried to compile the demo, but it gives this error:
ObjectModel.pas(23,3) Error: Only class which are compiled in $M+ mode can be 
published


Thanks!

--
Al

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


Re: [lazarus] Fix for PrintersDlgs error in current snapshots on Mac OS X...

2007-11-09 Thread Dominique Louis

Hi Jesus,
  I sent you an email last week ( 6th of November to be exact ), 
confirming that this fix works.


I've been away in New York, so could not send you a confirmation 
earlier. This was all mentioned in that email. Obviously you did not get 
it which is what I feared, hence why I sent the email to the list.


Dominique.

Jesus Reyes wrote:

--- Dominique Louis [EMAIL PROTECTED] escribió:


Hi all,
   I sent the following fix to Jesus a few days ago, but I have not

heard back so don't know if he received it or if he has checked it
in yet.

Basically in PrintersDlgs you have code that looks similar to this
just 
after the implementation.




Basically, I sent you this patch with instructions on how to apply it
and recompile Printer4Lazarus pacakge, and the last message I
received from you was that it didn't work. 


Anyway, in r12807 I commited the patch that I think should fix the
issue.


{$IFDEF LCLCarbon}
uses Unit Names Here
{$ELSE}
{$I cupsprndialogs.inc}
uses Unit Names Here
{$ENDIF}


The code in r12545 doesn't look like this ...



This should really read

{$IFDEF LCLCarbon}
uses Unit Names Here
{$I cupsprndialogs.inc} // Moving it here works
{$ELSE}
uses Unit Names Here
{$ENDIF}


Maybe that would be an error under *nix. The whole LCLCarbon can be
well removed, but well, lets the code as it is until carbon printer
support is implemented, which seems to be work in progress by the
way.


Dominique.



Jesus Reyes A.



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