Re: [Lazarus] New behavior - RadioGroup

2011-04-06 Thread zeljko
On Tuesday 05 of April 2011 22:16:29 t.wieckow...@gmail.com wrote:
 Hi,
 since rev. 30161, my apps goes crazy.

Where and why your apps goes crazy because of that ?

 When I'm setting itemindex for Radiogroup in OnCreateForm event then
 OnClick for that control is fired.

Actually, I've changed that to be Delphi compat.

 Such behavior will be from now on ?

Yes, see  http://bugs.freepascal.org/view.php?id=15989

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Error 500

2011-04-06 Thread Graeme Geldenhuys
On 06/04/2011 03:20, silvioprog wrote:
 
 How I get a full log with CGIs erros?

I log all things, and exceptions to a log file in a temp directory (just
while developing the cgi app). Alternatively you can log to a
debugserver too - see the dbugintf unit in FCL.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] New behavior - RadioGroup

2011-04-06 Thread t . wieckowski
2011/4/6 zeljko zel...@holobit.net

 On Tuesday 05 of April 2011 22:16:29 t.wieckow...@gmail.com wrote:
  Hi,
  since rev. 30161, my apps goes crazy.

 Where and why your apps goes crazy because of that ?


1. in some case I've OnClick code which show some control if another are
visible, in that case they are not visible and
I see what it should not see.
2. in some case I've MessageBox in OnClick, then if I've ItemIndex:=2
OnCreate Form then it fired that MessageBox
etc.

but there is no problem, I can use if not Visible then exit; - OnClick
or maybe better solution is:
RadioGroup1.OnClick:=nil;
RadioGroup1.ItemIndex:=2;
RadioGroup1.OnClick:=@RadioGroup1OnClick;



   When I'm setting itemindex for Radiogroup in OnCreateForm event then
  OnClick for that control is fired.

 Actually, I've changed that to be Delphi compat.

  Such behavior will be from now on ?

 Yes, see  http://bugs.freepascal.org/view.php?id=15989



IMHO I think that is odd behaviour, better (logical) in that case is to have
OnChange event related with ItemIndex (but there's no OnChange for
RadioGroup).

what will be now with ListBox,ComboBox.ItemIndex in that case ? I don't have
Delphi to check.

Maybe another problem, I read a little about this behavior in Delphi and I
do not know if this is true but (in Delphi) Itemindex OnClick fires only
when different from the previous value is set. Can't check this.


best regards
Tomek
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Error 500

2011-04-06 Thread Lukasz Sokol
On 06/04/2011 01:59, silvioprog wrote:

 procedure TMainFPWebModule.indexRequest(Sender: TObject; ARequest: TRequest;
   AResponse: TResponse; var Handled: Boolean);
 begin
   Handled := True;
   InitEngine; // If I comment this line, the error disappears. :o
 end;
 

Just a thought:

On 5/04/2011 23:39, Alexander Klenin wrote:
 On Wed, Apr 6, 2011 at 09:11, Michael Van Canneyt
 mich...@freepascal.org wrote:
  
   or on windows
  
FontMgr.SearchPath:='c\windows\fonts';
 On Windows this is done in the initializtion section of FTFont unit.

 -- Alexander S. Klenin 

Maybe the initialization is already done somewhere i.e. you don't need to 
run it twice ?

L.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] FPC and Lazarus on ARM

2011-04-06 Thread Mark Morgan Lloyd

Den Jean wrote:

On Sunday 27 March 2011 23:13:37 Florian Klämpfl wrote:

Am 26.03.2011 22:02, schrieb Tobias Giesen:

If anybody is looking for an ARM device, the Toshiba AC100 is pretty
cool. Around 200 EUR with Cortex A9 dual core and 512 MB RAM. It is
a netbook computer and has HDMI as well as USB. Mine has an 8GB SSD.

Hmm, would be a nice system to improve fpc arm eabi support on modern
ARM CPUs :)


A long time ago I tried compiling Lazarus natively on the N900 (Maemo),
it didn't work due to some arm resource compiling problems. 
As cross compiling work like a charm, I did not try for some time.

Now with a recent trunk of fpc and lazarus, Lazarus compiles and runs
on the device. The advantage of Maemo is that it is a fairly standard
Linux (debian based, apt-get install whatever) 
with a Qt source compatible with Desktop Qt.


Nevertheless Lazarus on the device is not usable due to the many windows
of Lazarus that all get maximized and some other small problems.
Lazarus can compile and run the default application project.


Screenshots: 
The first screenshot is the alt-tab equivalent (composited window manager 
program/window switcher)
 
http://users.telenet.be/Jan.Van.hijfte/qtforfpc/N900/LazN900_AltTab.png

http://users.telenet.be/Jan.Van.hijfte/qtforfpc/N900/LazN900_Editor.png
http://users.telenet.be/Jan.Van.hijfte/qtforfpc/N900/LazN900_Main.png
http://users.telenet.be/Jan.Van.hijfte/qtforfpc/N900/LazN900_ObjectInspector.png


That's interesting. I've now got 0.9.30 compiled to run natively on my 
development Slug and still get an exception when changing project or 
exiting- I was about to start a bug report. If you've got it running 
reliably that might localise the problem to a range of CPUs.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] trouble with Radiogroup

2011-04-06 Thread hector fiandor

hello:

i have a medical app. with TDbf were it is used a lot of RadioGroups and 
CheckBox. When call Insert for a new patient, all this RadioGroups and 
CheckBox appears Cheched as default, but it is preferred to appear as 
unchecked and lets the doctors to check or not when filling the form.


if this is possible, i will appreciate any help to do it.

Thanks in advance,

Ing. Héctor F. Fiandor Rosario
hfian...@infomed.sld.cu


--

Este mensaje le ha llegado mediante el servicio de correo electronico que 
ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema 
Nacional de Salud. La persona que envia este correo asume el compromiso de usar 
el servicio a tales fines y cumplir con las regulaciones establecidas

Infomed: http://www.sld.cu/

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] All Win 64bit users please (GDB issues)

2011-04-06 Thread Martin
There are currently a few 64 bit issues when it come to debugging. (on 
Win 64 bit)


One seems to be that the debug info written by FPC 2.4.2 is unreadable 
for GDB 7.2.50. ( http://bugs.freepascal.org/view.php?id=19044 )


Since I don't use Win64 myself, I don't feel like searching for which 
versions of FPC and GDB actually work together.


But from previous mails it seems there are some versions that do:
- Some versions may do, just out of the box
- Some versions may do, but only if the app is compiled with -WB40)

Minimum Lazarus Version for all of this is 0.9.29 form middle of 
December 2010 (better 0.9.30). Any Lazarus before this has known 64 bit 
issues.


So to all Win 64 bit users: Please report your experiences.

- Do/Did you have success using gdb, on a 64 bit application (debugging 
a 32 bit app under 64 bit, doesn't count)


- Which version of GDB (download url, if not supplied by Lazarus?)
- Which version/revision of FPC ?

If no one has any good combination, then are there any volunteers, for 
going through recent fpc trunk / 2.4.3 revisions, and testing them with 
gdb under Lazarus?



Thanks for any feedback, and/or contribution

Martin

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] trouble with Radiogroup

2011-04-06 Thread zeljko
On Wednesday 06 of April 2011 13:08:24 hector fiandor wrote:
 hello:
 
 i have a medical app. with TDbf were it is used a lot of RadioGroups and
 CheckBox. When call Insert for a new patient, all this RadioGroups and
 CheckBox appears Cheched as default, but it is preferred to appear as
 unchecked and lets the doctors to check or not when filling the form.
 
 if this is possible, i will appreciate any help to do it.

How can anybody help you without code ? If you think it's lazarus problem then 
please open an issue about it and attach project example which triggers your 
problem.

zeljko

 
 Thanks in advance,
 
 Ing. Héctor F. Fiandor Rosario
 hfian...@infomed.sld.cu
 
 
 --
 
 Este mensaje le ha llegado mediante el servicio de correo electronico que
 ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema
 Nacional de Salud. La persona que envia este correo asume el compromiso de
 usar el servicio a tales fines y cumplir con las regulaciones establecidas
 
 Infomed: http://www.sld.cu/
 
 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] FPC and Lazarus on ARM

2011-04-06 Thread Mark Morgan Lloyd

Mark Morgan Lloyd wrote:

At this point I need to come clean: I'm aware of one and possibly two 
bugs that affect the Lazarus IDE on both ARM and SPARC: basically, an 
exception when switching projects and when closing the IDE. It doesn't 
happen on x86 and PPC, which suggests to me that it could be an 
alignment issue. I was hoping to get more familiar with the innards of 
FPC and Lazarus (not to mention Mantis etc.) before reporting this, 
meanwhile lazbuild works fine as do generated apps.


Now reported as 0019109.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] trouble with Radiogroup

2011-04-06 Thread Howard Page-Clark

On 06/4/11 12:08, hector fiandor wrote:

hello:

i have a medical app. with TDbf were it is used a lot of RadioGroups and
CheckBox. When call Insert for a new patient, all this RadioGroups and
CheckBox appears Cheched as default, but it is preferred to appear as
unchecked and lets the doctors to check or not when filling the form.

if this is possible, i will appreciate any help to do it.


Have you have set ItemIndex to your preferred value in the Object 
Inspector (or in initialization code)?

Do you still find display defaults differ from what you have set?

H

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Lazarus r30219 cannot be compiled on Mac OS X

2011-04-06 Thread Fred Flinestone
Hello all,

It writes:

ld: library not found for -lfreetype
lazarus.pp(130,42) Error: Error while linking

thanx.

F.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Looking for custom TPageControl

2011-04-06 Thread Leonardo M . Ramé
Hi, I'm looking for an owner-drawn/custom TPageControl where tabs look
similar to OSX's. It should look equal on Win/Linux/OSX.

Here's an example of what I'm looking for: 
http://images.macworld.com/images/legacy/2006/02/images/content/speed_ical.jpg

Does anyone knows a component similar to what I'm looking for?

Thanks in advance,
-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Looking for custom TPageControl

2011-04-06 Thread Mattias Gaertner
On Wed, 6 Apr 2011 11:40:57 -0300
Leonardo M. Ramé l.r...@griensu.com wrote:

 Hi, I'm looking for an owner-drawn/custom TPageControl where tabs look
 similar to OSX's. It should look equal on Win/Linux/OSX.
 
 Here's an example of what I'm looking for: 
 http://images.macworld.com/images/legacy/2006/02/images/content/speed_ical.jpg
 
 Does anyone knows a component similar to what I'm looking for?

I don't, but IMO it would be nice to have for the setup dialog of the
IDE too.
Then it can be added to the package lazcontrols.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus r30219 cannot be compiled on Mac OS X

2011-04-06 Thread Alexander Klenin
On Wed, Apr 6, 2011 at 23:31, Fred Flinestone ffre...@gmail.com wrote:
 Hello all,

 It writes:

 ld: library not found for -lfreetype
 lazarus.pp(130,42) Error: Error while linking

Please try r30225.

A question to Mattias/others: what should I do with this kind of problems?
Similar trouble was with opengl back-end.
For now, I removed the fpcanvas back-end from the uses clause of a package,
but it seems to be just a workaround.

-- 
Alexander S. Klenin

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus r30219 cannot be compiled on Mac OS X

2011-04-06 Thread Vincent Snijders
2011/4/6 Alexander Klenin kle...@gmail.com:
 On Wed, Apr 6, 2011 at 23:31, Fred Flinestone ffre...@gmail.com wrote:
 Hello all,

 It writes:

 ld: library not found for -lfreetype
 lazarus.pp(130,42) Error: Error while linking

 Please try r30225.

 A question to Mattias/others: what should I do with this kind of problems?
 Similar trouble was with opengl back-end.
 For now, I removed the fpcanvas back-end from the uses clause of a package,
 but it seems to be just a workaround.


No compiler version is mentioned.

Would it work differently with fpc 2.5.1 because of this change?
http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/packages/fcl-image/src/freetypeh.pp?r1=11614r2=15827
I don't think it is part of fpc 2.4.2.

Vincent

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] test

2011-04-06 Thread Vincent Snijders
Test

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Error 500

2011-04-06 Thread silvioprog
2011/4/6 Graeme Geldenhuys graemeg.li...@gmail.com:
 I log all things, and exceptions to a log file in a temp directory (just
 while developing the cgi app). Alternatively you can log to a
 debugserver too - see the dbugintf unit in FCL.

 Regards,
  - Graeme -
 --
 fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
 http://fpgui.sourceforge.net/

I'm using debugserver (http://goo.gl/jHrSH), is a very good tool.

ps. Hm... my CGI app is still with error 500. :(

Thx.

-- 
Silvio Clécio
=
Blog - silvioprog.com.br
Twitter - twitter.com/silvioprog
LazSolutions - code.google.com/p/lazsolutions
Lazarus-BR - groups.google.com.br/group/lazarus-br?hl=pt-BR
=

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] trouble with Radiogroup

2011-04-06 Thread hector fiandor

Dear Mr. Howard and Zeljko:

thanks for your kindly answer.

Really, my probles is with the DBCheckBox.

I have a form with a PageControl with 9 tabSheets for the control of 
patients.

in many of this tabSheets i have used DBCheckBox

When i have a new patient, i need to insert a new set of TabSheets. I 
press the + in the navigator bar, and all the CheckBoxes linked to the 
fields of the new record appear as checked. The operator who is 
intoruducing the data (generally an especialist) need to unckeck the 
CheckBoxes that no apply to the new record (that are the more quantity 
compared with the CheckBoxes that apply) before post.


In the ObjectInspector i have setted the Valuecheched as true and the 
ValueUnckecked as false, and for the old r prior records it pretty 
works.


Really, i dont know if this if sufficient. With the DBRadioGrour there are 
no problesm, because the defalut can be setted by the ItemIndex=-1.


thanks again and awainting yours comments

Ing. Héctor F. Fiandor Rosario
hfian...@infomed.sld.cu 



--

Este mensaje le ha llegado mediante el servicio de correo electronico que 
ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema 
Nacional de Salud. La persona que envia este correo asume el compromiso de usar 
el servicio a tales fines y cumplir con las regulaciones establecidas

Infomed: http://www.sld.cu/

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus