Re: [lazarus] Master detail using SQLdb

2006-03-31 Thread Michael Van Canneyt



On Thu, 30 Mar 2006, Joost van der Sluis wrote:




1. Does the relation of the parent and child have to be based on numbers?  I
ask this because of the fact that a primary key must be a number currently.
I was not able to determine the data type from your example.


No, only ApplyUpdates need the primary key to be a number. (which is a
bug, actually)


2. I noticed the indexdefs was set on the sqlquerys on your forms.  It appears
that indexdefs is a list (array?).  But is it used?  If is is used - how is
it used?


Well, it contains the indexes. Not that sqldb does something with them.
The only thing is that they are used to find what the primary key is.

Btw: if you open a tsqlquery, and ParseSQL is true, it'll get a list of
indexes which do exist on that table from the DB-server. That's how it
finds out what the primary key is.


3. I noticed that the child relation is moved/set in the code. The code below
is the example from your code. And wonder if this is required or there was
some other reason. I would have expected sqlquery2 (child) to follow
sqlquery1 (parent).


As said, master-detail isn't supported by sqldb yet, so I made it
myself, with the lines of code below:


I'll try to implement it, it's rather easy to do. I've done it before in
Delphi too...

Michael.

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


RE: [lazarus] Platform compatibility

2006-03-31 Thread George Birbilis
Is the more info on wince support at Lazarus? (I suppose it means Windows
CE?)


 There is a page with status of each component here:

 http://wiki.lazarus.freepascal.org/index.php/Road_To_1.0#Widge
tset_dependent_components

 Note that the status of Gtk2 and Carbon are incorrect and
 need to be updated.




  _  

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


Virus Database (VPS): 0613-1, 29/03/2006
Tested on: 31/3/2006 1:07:43 ??
avast! - copyright (c) 1988-2005 ALWIL Software.



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


[lazarus] SynEdit

2006-03-31 Thread George Birbilis
Has anybody gotten SynEdit (http://synedit.sf.net) and maybe also
UniHighlighter to work under Lazarus?

TIA,
George


George Birbilis ([EMAIL PROTECTED])
Microsoft MVP J# for 2004-2006
* QuickTime, QTVR, ActiveX, VCL, .NET
http://www.kagi.com/birbilis
* Robotics PhD student
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

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


Virus Database (VPS): 0613-1, 29/03/2006
Tested on: 31/3/2006 1:10:26 ??
avast! - copyright (c) 1988-2005 ALWIL Software.



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


Re: [lazarus] Platform compatibility

2006-03-31 Thread Felipe Monteiro de Carvalho
Hello,

On 3/31/06, George Birbilis [EMAIL PROTECTED] wrote:
 Is the more info on wince support at Lazarus? (I suppose it means Windows
 CE?)

What do you mean by more info? Can you be more specific?

First you should follow the steps here:
http://www.freepascal.org/wiki/index.php/WinCE_port

to build the cross compiler.

then you can follow the steps on lazarus wiki to build software
designed with lazarus.

--
Felipe Monteiro de Carvalho

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


Re: [lazarus] Qt interface installation

2006-03-31 Thread zeljko
On Friday 31 March 2006 15:58, you wrote:
 Hi

 Today I tried to setup the Qt interface under Linux. Running FPC 2.0.2
 and latest Lazarus from SVN.  I followed the instructions given on the
 wiki.
 Downloaded the binary Qt bindings and placed the .so file in /usr/lib.
 Recompiled the LCL only for Qt in Lazarus.
 Created a new project (just a form, I am not sure what controls works
 yet), selected Qt as the GUI toolkit and tried to compile the app.

 This is the output in the Messages Window...

 Free Pascal Compiler version 2.0.2 [2005/12/07] for i386
 Copyright (c) 1993-2005 by Florian Klaempfl
 Target OS: Linux for i386
 Compiling /tmp/project1.lpr
 Compiling unit1.pas
 Linking /tmp/project1
 /usr/bin/../lib/libqt4intf.so: undefined reference to
 `QImageReader::setBackgroundColor(QColor const)'
 /usr/bin/../lib/libqt4intf.so: undefined reference to
 `QPen::setMiterLimit(double)'
 /usr/bin/../lib/libqt4intf.so: undefined reference to
 `QImage::text(QString const) const'
 /usr/bin/../lib/libqt4intf.so: undefined reference to
 `QWidget::setAutoFillBackground(bool)'
 /usr/bin/../lib/libqt4intf.so: undefined reference to
 `QProgressBar::setOrientation(Qt::Orientation)'
 /usr/bin/../lib/libqt4intf.so: undefined reference to
 `QWidget::autoFillBackground() const'
 /usr/bin/../lib/libqt4intf.so: undefined reference to
 `QIODevice::peek(long long)'

  ...snip - this continued for about another 100 lines

seem that you don't have Qt 4.1 libs in your path, XXintfs.so is only c 
binding for Qt 4.1 libs ?!? 

cheers
zac

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


Re: [lazarus] Qt interface installation

2006-03-31 Thread Graeme Geldenhuys
On 31/03/06, zeljko [EMAIL PROTECTED] wrote:
 seem that you don't have Qt 4.1 libs in your path, XXintfs.so is only c
 binding for Qt 4.1 libs ?!?

 cheers
 zac

I made a symlink from /usr/lib/libqt4intf.so to /lib as well.  Also
added (though I think unneeded) /usr/lib to the /etc/ld.so.conf file. 
All this made no difference.

Regards,
  - Graeme -



--
There's no place like 127.0.0.1

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


Re: Qt interface installation

2006-03-31 Thread Graeme Geldenhuys
I see there is a qt4.pas file as well in the binary Qt bindings I
downloaded.  Should I have placed this file somewhere as well?  Maybe
replaced something in Lazarus?

Regards,
  - Graeme -


--
There's no place like 127.0.0.1

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


Re: [lazarus] Qt interface installation

2006-03-31 Thread zeljko
On Friday 31 March 2006 17:05, you wrote:
 On 31/03/06, zeljko [EMAIL PROTECTED] wrote:
  seem that you don't have Qt 4.1 libs in your path, XXintfs.so is only c
  binding for Qt 4.1 libs ?!?
 
  cheers
  zac

 I made a symlink from /usr/lib/libqt4intf.so to /lib as well.  Also
 added (though I think unneeded) /usr/lib to the /etc/ld.so.conf file.
 All this made no difference.

but the question is : do you have libQtCore.so.4 also ?
libqt4intf.so is just one part, you must also have real qt4 libs in your 
path (libQtCore.so.4).

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


RE: [lazarus] SynEdit

2006-03-31 Thread George Birbilis
  Has anybody gotten SynEdit (http://synedit.sf.net) and maybe also
  UniHighlighter to work under Lazarus?

 Lazarus works with a private copy synedit; you can install
 this copy as components in the IDE.

Indeed, had forgotten that it seems Lazarus uses SynEdit for the source-code
editor
Is the Lazarus SynEdit version available at synedit.sf.net or some private
Lazarus modification of it? If it's the 2nd, where can I get it and on which
SynEdit version was it based?

tia,
George


George Birbilis ([EMAIL PROTECTED])
Microsoft MVP J# for 2004-2006
* QuickTime, QTVR, ActiveX, VCL, .NET
http://www.kagi.com/birbilis
* Robotics PhD student
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup





  _  

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


Virus Database (VPS): 0613-2, 31/03/2006
Tested on: 31/3/2006 8:03:43 ??
avast! - copyright (c) 1988-2005 ALWIL Software.



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


Re: [lazarus] SynEdit

2006-03-31 Thread Mattias Gaertner
On Fri, 31 Mar 2006 20:03:46 +0300
George Birbilis [EMAIL PROTECTED] wrote:

   Has anybody gotten SynEdit (http://synedit.sf.net) and maybe also
   UniHighlighter to work under Lazarus?
 
  Lazarus works with a private copy synedit; you can install
  this copy as components in the IDE.
 
 Indeed, had forgotten that it seems Lazarus uses SynEdit for the
 source-code editor
 Is the Lazarus SynEdit version available at synedit.sf.net or some private
 Lazarus modification of it? If it's the 2nd, where can I get it and on
 which SynEdit version was it based?

1.3
with hundreds of additions.


Mattias



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


[lazarus] Windows CE compilation

2006-03-31 Thread Felipe Monteiro de Carvalho

Hello,

I´m having trouble compiling LCL for Windows CE recently. Before I used 
my normal batch script:


PATH=C:\Programas\lazarus13\pp\bin\i386-win32;c:\Programas\arm
make lcl LCL_PLATFORM=wince PP=ppcrossarm.exe CPU_TARGET=arm OS_TARGET=wince

Now I execute it and there is an error:

Compiling Graphics.pp
Fatal: Can't find unit Contnrs
Fatal: Compilation aborted
make[1]: *** [alllclunits.ppu] Error 1
make[1]: Leaving directory `C:/Programas/lazarus/lcl'
make: *** [lcl] Error 2

I am sure that Contnrs .o and .ppu files are located at 
C:\Programas\lazarus13\pp\units\arm-wince\fcl


So, what is missing? Why can´t he find it?

This error also happens if I try to compile the LCL for arm-wince from 
the IDE. It did not happen before.


It´s probably something simple.

thanks,

Felipe

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


[lazarus] Patch to TCustomNotebook

2006-03-31 Thread Júnior Gonçalves
Patch to Issue 0001903:In customnotebook.inc, procedure ShowCurrentPage:procedure TCustomNotebook.ShowCurrentPage;begin if (FPageIndex = 0) and (FPageIndex  PageCount) then begin Page[FPageIndex].Visible := true; If IsVisible=True then SetFocus; end;end;Júnior Gonçalves.
		 
Yahoo! Acesso Grátis  
Internet rápida e grátis. Instale o discador agora!

Re: [lazarus] SynEdit

2006-03-31 Thread Felipe Monteiro de Carvalho
On 3/31/06, George Birbilis [EMAIL PROTECTED] wrote:
 Is the Lazarus SynEdit version available at synedit.sf.net or some private
 Lazarus modification of it?

Well, in my Lazarus, I can see a SynEdit tab with almost 20 visual components.

It´s after the System tab.

And I did not install any extra packages.

--
Felipe Monteiro de Carvalho

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


Re: [lazarus] SynEdit

2006-03-31 Thread L505
On 3/31/06, George Birbilis [EMAIL PROTECTED] wrote:
 Is the Lazarus SynEdit version available at synedit.sf.net or some private
 Lazarus modification of it?

It is a private modification.
So the one from sourceforge will not work. Sources for lazarus one are on your
hard drive under /components/synedit/

You may be able to get the Lazarus one to work in Delphi, but the one from
source forge would not work out of the box in lazarus.


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