Re: [lazarus] TTrackBar.ShowScale

2006-04-09 Thread Christian U.
http://info.borland.com/techpubs/delphi/v6/updates/ent.html

^here you can download original delphi helpfiles, i think thats importend
for everyone who works on the lcl.
In delphi 6 help no ShowScale Property exists ?!


- Original Message -
From: Vincent Snijders [EMAIL PROTECTED]
To: lazarus@miraclec.com
Sent: Saturday, April 08, 2006 11:49 PM
Subject: [lazarus] TTrackBar.ShowScale


 Hi,

 Can anybody explain the rationale behind the TTrackBar.ShowScale
 property? To me it seems to overlap (partially) with TTrackBar.TickStyle
 and is therefore redundant.

 ShowScale := false seems equivalent with TickStyle := tsNone.

 I don't know how a widgetset should interpret ShowScale := true and
 TickStyle := tsNone.

 Therefore, I think it is better to remove TTrackBar.ShowScale. If it is
 to stay, please provide clear specification how it should interact with
 TTrackBar.TickStyle.

 Vincent.

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




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


Re: [lazarus] Because I can't get SQLDB working

2006-04-09 Thread Michael Van Canneyt


On Sun, 9 Apr 2006, Nataraj S Narayan wrote:

 Hi
 
 I was starting off with Firebird for Lazarus. But now I need to get MySql
 access from Lazarus to convert my legacy windows msaccess apps . Which package
 is best? Sqlite or zeos  components? Or just go for 'direct' access w/o
 compos?

It depends on the version of MySQL you are using. If it's higher than 4.0,
Zeos doesn't work with it (at least not the alpha 6.5), not even in Delphi.

SQLDB (not sqlite, that is another beast) does work with 4.0, 4.1 and 5.0.

Michael.
 
 
 regards
 Nataraj
 
 Matt Henley wrote:
 
  Just a note.. the group that I am working with managed to get zeoslib
  working with lazarus... we are using firebird (2.0 beta) and I can
  confirm that it works for a test database... there are some strange
  things that you have to do (lazarus cant find a source file thats in
  the paths in the compiler options...), but at least on windows we
  managed to get it working.. i have a procedure if you would like it.
  
  On 3/16/06, Joost van der Sluis [EMAIL PROTECTED] wrote:
  
  
I'm now attempting to get zeoslib working.  After many attempts
(lots of
errors due to sqlite) I got it to compile.  But now I can't get it
to install
as a package.  The first thing is Lazarus can not support dynamic
packages.
Then it starts compiling/rebuilding lazarus  it fails with:
Identifer not found ExtractOptionsFromDPR
opens DelphiProjectLaz.pas
// TODO: get all compiler options from .lpr
Result:=ExtractOptionsFromDPR(LPRCode,Project1);
if ResultmrOk then exit;


   ATM ZEOS doesn't work very well with Lazarus. This is more a ZEOS
   issue,
   then an fpc-issue. (except for fpc-bug 4510)
   
   And although the problems are easily fixable, they seems to be to hard
   for the ZEOS team.
   
   --
   Met vriendelijke groeten,
   
   Joost van der Sluis
   CNOC Informatiesystemen en Netwerken
   http://www.cnoc.nl
   
   _
   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
  
  
  
  
 
 
 

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


Re: [lazarus] adding a form to a library

2006-04-09 Thread Felipe Monteiro de Carvalho
This is probably caused by something on the initialization section of LCL units.

One idea to isolated the problem is to comment the code on
initialization section of Forms (and perhaps other units) and see if
the project will now load.

DonĀ“t acctually try to build a form, just put Forms on the uses clause.

If the project now loads, uncomment a part of the initialization
section and repeat the process until you isolate what is causing this.

Because you need to recompile LCL and your software at each step, this
can take some time.

--
Felipe Monteiro de Carvalho

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


[lazarus] Refactoring Subfolders

2006-04-09 Thread L505
Hi, the current copies of Lazarus that another developer and I are using do not
seem to have a subfolder or subdirectory checkbox for refactoring. Do any
lazarus versions contain that feature. Sort of like the search/replace tool in
lazarus where you can recursively search subfolders.


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


Re: [lazarus] Refactoring Subfolders

2006-04-09 Thread Mattias Gaertner
On Sun, 09 Apr 2006 13:35:25 -0600
L505 [EMAIL PROTECTED] wrote:

 Hi, the current copies of Lazarus that another developer and I are using
 do not seem to have a subfolder or subdirectory checkbox for refactoring.
 Do any lazarus versions contain that feature. Sort of like the
 search/replace tool in lazarus where you can recursively search
 subfolders.

Do you mean, you want a fifth option in the refactoring dialog 'project
directory and sub folders'?

Mattias

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


Re: [OT] Re: [lazarus] Temperary FTP Speace

2006-04-09 Thread L505

  There is no excuse for Oil being a raw material needed to ship food
 
  No, there isn't. Which is why those who can are switching to gas (which,
  lo and behold, farmers can produce that themselves) and hydrogen and
  trains anyways. The only problem is the lag of the infrastructure,
  that is, inertia. But that wasn't the point, I see.


And as for hydrogen: how do you make hydrogen? By using energy to first get the
hydrogen?

I'm not familiar with the process. I know you can make hydrogen from water, by
dissecting water into pieces through electrolysis. But this costs you energy -
the electricity that it takes to make hydrogen may be more than what you are in
fact getting OUT of the hydrogen that you produce. I'm not sure though. Then
again, it does cost us money to run oil rigs and etc. - and we do get more oil
out of the ground than it costs us to retrieve the oil.

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


Re: [lazarus] bugfix1872

2006-04-09 Thread Mattias Gaertner
On Wed, 29 Mar 2006 01:01:49 +0200
Darius Blaszijk [EMAIL PROTECTED] wrote:

 Here's a patch that should fix bugreport 1872. There are also some
 anchoring / bordericons and alignment improvement.

Applied. Thanks.

Mattias

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


Re: [lazarus] Patch to sort the list of units shown

2006-04-09 Thread Mattias Gaertner
On Wed, 29 Mar 2006 12:00:52 +0200
Graeme Geldenhuys [EMAIL PROTECTED] wrote:

 Attached is a patch to sort the listbox shown in View Unit, View
 Forms and Remove from Project.  This makes it much easier to find
 units in a large project.
 
 I replaced the TList with a TStringList so I could take advantage of
 the Sort method in the TStringList.
 
 The patch must be applied from the root Lazarus directory.

Applied. Thanks.

Mattias

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


Re: [lazarus] make resource string tool

2006-04-09 Thread Mattias Gaertner
On Wed, 29 Mar 2006 14:17:41 +0300
barko [EMAIL PROTECTED] wrote:

 If I try to create resource string with this tool, I got this error  
 message:
 
 List index (-1) out of bounds.
 
 On linux, latest fpc (2.1.1, from svn), latest lazarus (from svn).
 
 Example:
 
 ---cut---
 
 var
Form1: TForm1;
 
 resourcestring
 test1 = 'test';
 
 implementation
 
 { TForm1 }
 
 procedure TForm1.Button1Click(Sender: TObject);
 begin
caption:='bla bla';  //-- try make resource string (from tools menu)
 end;

Works with fpc 2.0.2.
Maybe a bug in fpc 2.1.1?

Mattias

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


Re: [lazarus] Qt Custom Control Patch

2006-04-09 Thread Mattias Gaertner
On Thu, 30 Mar 2006 21:36:03 -0300
Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote:

 Hello,
 
 This patch does the following modification to Qt interface:
 
 * Custom control descendents work now (with the currently implemented 
 TCanvas functions)
 
 * Adds more TCanvas functions: MoveToEx, LineTo and Ellipse
 
 * Updates the bindings to 1.12 version
 
 * Supports Screen.Width and Screen.Height
 
 You can see a screenshot of a reasonably complex software compiled with 
 the current Qt interface:
 
 http://www.braillevirtual.fe.usp.br/temporario/osciloscopio_qt4.png
 
 And with Gtk1:
 
 http://eletronicalivre.incubadora.fapesp.br/portal/english/oscilloscope/screenshotgtk1/view
 
 And with Win32:
 
 http://eletronicalivre.incubadora.fapesp.br/portal/english/oscilloscope/screenshotwinxp/view
 
 Some things are missing, like TLabel, as you can see.

Great. 
Applied. Thanks.

Mattias

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


Re: [lazarus] patch for comctrl.xml

2006-04-09 Thread Mattias Gaertner
On Sun, 2 Apr 2006 22:09:48 +0200
Graeme Geldenhuys [EMAIL PROTECTED] wrote:

 Here is a patch for TToolbar component.

Thanks.
Applied.

Mattias

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


Re: [lazarus] patch for comctrls (TToolButtonStyle)

2006-04-09 Thread Mattias Gaertner
On Sun, 2 Apr 2006 23:26:35 +0200
Graeme Geldenhuys [EMAIL PROTECTED] wrote:

 Hi
 
 Attached is a fix for the TToolButtonStyle.  I previously documented
 the different enumerated types, but they didn't appear in the
 generated html documentation as I expected. So this patch documents
 them in another place.
 
 Patch should be applied from the root Lazarus directory.

Applied. Thanks.

Mattias

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


Re: [lazarus] tLabel, tComboBox patch

2006-04-09 Thread Mattias Gaertner
On Thu, 06 Apr 2006 14:44:28 +0200
darekm [EMAIL PROTECTED] wrote:

 hi
 attached patch
   1. set up single line for drawing caption without multi line
   2. much faster drawText to single line option
   3.for tComboBox change is called twice
   4. added   {$IFNDEF gtk_no_set_modal} because I want disable 
 gtk_window_set_modal(GtkWindow, true);

Applied. Thanks.
HasMultiline is more platform independent.

Mattias

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


Re: [lazarus] tPanel setColor patch

2006-04-09 Thread Mattias Gaertner
On Thu, 06 Apr 2006 19:38:58 +0200
darekm [EMAIL PROTECTED] wrote:

 Hi
   this patch remove flickering on tPanel

Thanks. Applied.

Mattias

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


Re: [lazarus] make resource string tool

2006-04-09 Thread Vincent Snijders

Mattias Gaertner wrote:

On Wed, 29 Mar 2006 14:17:41 +0300
barko [EMAIL PROTECTED] wrote:


If I try to create resource string with this tool, I got this error  
message:


List index (-1) out of bounds.

On linux, latest fpc (2.1.1, from svn), latest lazarus (from svn).

Example:

---cut---

var
  Form1: TForm1;

resourcestring
   test1 = 'test';

implementation

{ TForm1 }

procedure TForm1.Button1Click(Sender: TObject);
begin
  caption:='bla bla';  //-- try make resource string (from tools menu)
end;



Works with fpc 2.0.2.
Maybe a bug in fpc 2.1.1?



As it happens, I just posted a bug report about resourcestrings with fpc 
2.1.1: http://www.freepascal.org/bugs/showrec.php3?ID=5001


Vincent

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


Re: [OT] Re: [lazarus] Temperary FTP Speace

2006-04-09 Thread Danny Milosavljevic
Hi,

Am Sonntag, den 09.04.2006, 14:17 -0600 schrieb L505:
 
   There is no excuse for Oil being a raw material needed to ship food
  
   No, there isn't. Which is why those who can are switching to gas (which,
   lo and behold, farmers can produce that themselves) and hydrogen and
   trains anyways. The only problem is the lag of the infrastructure,
   that is, inertia. But that wasn't the point, I see.
 
 
 And as for hydrogen: how do you make hydrogen? By using energy to first get 
 the
 hydrogen?
 
 I'm not familiar with the process. I know you can make hydrogen from water, by
 dissecting water into pieces through electrolysis. 

Yeah, that method sucks :)

I'd use http://en.wikipedia.org/wiki/Haber_process since there it's a
leftover resulting H component anyways... I wonder what they are doing
with all the hydrogen resulting from that right now :)

 But this costs you energy -
 the electricity that it takes to make hydrogen may be more than what you are 
 in
 fact getting OUT of the hydrogen that you produce. I'm not sure though. Then
 again, it does cost us money to run oil rigs and etc. - and we do get more oil
 out of the ground than it costs us to retrieve the oil.

cheers,
   Danny


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


Re: [lazarus] Refactoring Subfolders

2006-04-09 Thread L505
  Hi, the current copies of Lazarus that another developer and I are using
  do not seem to have a subfolder or subdirectory checkbox for refactoring.
  Do any lazarus versions contain that feature. Sort of like the
  search/replace tool in lazarus where you can recursively search
  subfolders.

 Do you mean, you want a fifth option in the refactoring dialog 'project
 directory and sub folders'?

That would be nice..

(I'm interested in how the refactoring works, is synedit tokenizer part of the
magic?
I gonna look into the code and see.)

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


Re: [lazarus] Because I can't get SQLDB working

2006-04-09 Thread Nataraj S Narayan

Hi Michael

I want MySql 4.0 and above only. Is SQLDB stable, so that i may replace 
Delphi+BDE +myodbc?


It is a real production app for Inventory management. Also are Rxlib 
compos working in Lazarus?


regards

Nataraj

Michael Van Canneyt wrote:


On Sun, 9 Apr 2006, Nataraj S Narayan wrote:

 


Hi

I was starting off with Firebird for Lazarus. But now I need to get MySql
access from Lazarus to convert my legacy windows msaccess apps . Which package
is best? Sqlite or zeos  components? Or just go for 'direct' access w/o
compos?
   



It depends on the version of MySQL you are using. If it's higher than 4.0,
Zeos doesn't work with it (at least not the alpha 6.5), not even in Delphi.

SQLDB (not sqlite, that is another beast) does work with 4.0, 4.1 and 5.0.

Michael.
 


regards
Nataraj

Matt Henley wrote:

   


Just a note.. the group that I am working with managed to get zeoslib
working with lazarus... we are using firebird (2.0 beta) and I can
confirm that it works for a test database... there are some strange
things that you have to do (lazarus cant find a source file thats in
the paths in the compiler options...), but at least on windows we
managed to get it working.. i have a procedure if you would like it.

On 3/16/06, Joost van der Sluis [EMAIL PROTECTED] wrote:


 


I'm now attempting to get zeoslib working.  After many attempts
(lots of
errors due to sqlite) I got it to compile.  But now I can't get it
to install
as a package.  The first thing is Lazarus can not support dynamic
packages.
Then it starts compiling/rebuilding lazarus  it fails with:
Identifer not found ExtractOptionsFromDPR
opens DelphiProjectLaz.pas
// TODO: get all compiler options from .lpr
Result:=ExtractOptionsFromDPR(LPRCode,Project1);
if ResultmrOk then exit;


 


ATM ZEOS doesn't work very well with Lazarus. This is more a ZEOS
issue,
then an fpc-issue. (except for fpc-bug 4510)

And although the problems are easily fixable, they seems to be to hard
for the ZEOS team.

--
Met vriendelijke groeten,

Joost van der Sluis
CNOC Informatiesystemen en Netwerken
http://www.cnoc.nl

_
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




 



   



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


 



begin:vcard
fn:http://www.gsis.ac.in
n:S Narayan;Nataraj
org:Good Shepherd International School;Software
adr:Niligiris, ;;M.Palada;Ootacamund;TN;643004;INDIA
email;internet:[EMAIL PROTECTED]
title:Project Coordinator
tel;work:0423 2550371 - 307
x-mozilla-html:TRUE
url:http://www.gsis.ac.in
version:2.1
end:vcard



Re: [lazarus] Because I can't get SQLDB working

2006-04-09 Thread Matthijs Willemstein
On Mon, April 10, 2006 06:06, Nataraj S Narayan wrote:
 Hi Michael

 I want MySql 4.0 and above only. Is SQLDB stable, so that i may replace
 Delphi+BDE +myodbc?
It is working and as far as I can see reasonable stable.

 It is a real production app for Inventory management. Also are Rxlib
 compos working in Lazarus?
The lazarus version of RxLib components are working in Lazarus. Some
changes may be necessary. One of the functions used in RxLib is deprecated
in Delphi and not available in Lazarus.
If you need these changes, I may be able to post a diff sometime later today.

Matthijs

-- 
Matthijs J. Willemstein


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