Re: [fpc-pascal] fpGUI Toolkit v0.7-rc1 for FPC 2.4

2010-03-15 Thread Graeme Geldenhuys
Roland Schaefer het geskryf:
 
 level, I'd say using DFB is sort of on a par with using Xlib, only
 easier to handle. Besides the init procedures it acatually feels more

This is what I understood about directfb too [the little that I read about
directfb].


 I'm maintaining FPC-bindings for DFB. Right now, they work with the 1.4
 line of DFB binaries only. If anyone has a need for 1.2 bindings (which


Umm, I'm running Ubuntu 8.04.2 LTS (long term support) release and it comes
with libdirectfb 1.0.1.  I'll be upgrading to the next LTS release due end
of April - hopefully that will include a more up to date version of
directfb, otherwise I'll be in contact with you. ;-)


Regards,
  - Graeme -

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

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Error: Illegal qualifier in converting Delphi unit

2010-03-15 Thread Howard Page-Clark

On 14/3/10 11:52, Frank Church wrote:

Your suggestion worked - what is the secret?
Does the array[0..0 have some relevance here?]

On 14 March 2010 23:01, Howard Page-Clarkh...@talktalk.net  wrote:

On 14/3/10 6:11, Frank Church wrote:


Hi guys,

I am trying to compile the TVersionInfo component by Anders Melander
at http://melander.dk/articles/versioninfo/.

It defines the structure below

type
   TTranslationRec = packed record
 case Integer of
 0: (
   LanguageID: WORD;
   CharsetID: WORD);
 1: (
   TranslationID: DWORD);
   end;
   PTranslationRec = ^TTranslationRec;
   TTranslationTable = array[0..0] of TTranslationRec;
   PTranslationTable = ^TTranslationTable;


which causes the compiler error

VersionInfo.pas(141,37) Error: Illegal qualifier

function TVersionInfo.GetCharset(Index: integer): WORD;
begin
   Result := TranslationTable[Index].CharsetID;
end;

Is there a way to convert for Free Pascal compatibility?


  try:

  result := TranslationTable[Index]^.CharsetID

Howard


No secret - just that fpc requires stricter syntax than Delphi, even in 
{$mode Delphi}. The property TranslationTable is an array property 
declared as a pointer (PTranslationTable), so has to be dereferenced 
before its members can be accessed. It would have helped if the code's 
author had named the property PTranslationTable to highlight that fact, 
because the name hides its pointer character.


H

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Error: Illegal qualifier in converting Delphi unit

2010-03-15 Thread Marco van de Voort
In our previous episode, Howard Page-Clark said:
result := TranslationTable[Index]^.CharsetID
 
  Howard
 
 No secret - just that fpc requires stricter syntax than Delphi, even in 
 {$mode Delphi}. The property TranslationTable is an array property 
 declared as a pointer (PTranslationTable), so has to be dereferenced 
 before its members can be accessed. It would have helped if the code's 
 author had named the property PTranslationTable to highlight that fact, 
 because the name hides its pointer character.

Is there a bugreport about this? If not, pleasae do. $mode delphi not
accepting this is not ok.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] fpGUI Toolkit on WinCE

2010-03-15 Thread Adrian Veith
Am 09.03.2010 14:16, schrieb Graeme Geldenhuys:
 fpGUI v0.7-rc1 is available
 ---
   
Hi, this is the first time I looked at fpGUI. Very nice work !

I tried to cross compile some examples for WinCE and it worked so far -
looks like my search is over and I found a nice little GUI framework for
that platform. I was not satisfied with LCL (much too big), KOL (too
weird) and I even thought of switching to c++ and QT, but QT apps take
ages to load on a phone.

One thing I found is, that when a fpGUI application is running on my
WinCE phone (even when it is in the background), the phone will slow
down dramatically. I guess there is an event loop which is too busy -
any idea ?

cheers, Adrian.



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpGUI Toolkit v0.7-rc1 for FPC 2.4

2010-03-15 Thread Adrian Veith
Am 09.03.2010 14:16, schrieb Graeme Geldenhuys:
 fpGUI v0.7-rc1 is available
   

when compiling uidesigner with actual fpc from svn it fails with
duplicate identifier unitname in vfdfile.pas. It seems to be a name
clash with the new class procedure unitname in TObject. I don't know why
fpc raises an error - is there a rule, that a local identifier cannot
have the same name as a class procedure ? (makes no real sense, because
a class procedure can be accessed via a full qualified name). Anyway if
you change unitname in NewFileSkeleton to aunitname it compiles.

Adrian.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpGUI Toolkit on WinCE

2010-03-15 Thread Graeme Geldenhuys
Adrian Veith het geskryf:
 
 One thing I found is, that when a fpGUI application is running on my
 WinCE phone (even when it is in the background), the phone will slow
 down dramatically. I guess there is an event loop which is too busy -
 any idea ?

WinCE is experimental, so expect some issue. But that is no excuse. ;-)  I
can duplicate the slow down on my Garmin iQue M5, so will try and resolve
the issue before the final v0.7 release. Thanks for bringing this to my
attention.



Regards,
  - Graeme -

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

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpGUI Toolkit v0.7-rc1 for FPC 2.4

2010-03-15 Thread Graeme Geldenhuys
Adrian Veith het geskryf:
 
 when compiling uidesigner with actual fpc from svn it fails with
 duplicate identifier unitname in vfdfile.pas. It seems to be a name
 clash with the new class procedure unitname in TObject. I don't know why


As rule of thumb, I never test with unstable FPC (trunk) because things
change to often and nothing is cast in stone. I only test with latest
release and latest fixes revision. eg: FPC 2.4.1

Either way, I'll update my FPC tomorrow and take a look. It should be no
problem renaming the property in UI Designer, as it is a stand-alone
application and the issue is not in the actual fpGUI library code.


Regards,
  - Graeme -

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

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpGUI Toolkit v0.7-rc1 for FPC 2.4

2010-03-15 Thread Jonas Maebe


On 15 Mar 2010, at 16:17, Adrian Veith wrote:


when compiling uidesigner with actual fpc from svn it fails with
duplicate identifier unitname in vfdfile.pas. It seems to be a name
clash with the new class procedure unitname in TObject.


http://wiki.freepascal.org/User_Changes_Trunk#TObject_class_declaration


I don't know why
fpc raises an error - is there a rule, that a local identifier cannot
have the same name as a class procedure ? (makes no real sense,  
because

a class procedure can be accessed via a full qualified name).


It makes sense because that way you can accidentally hide an  
identifier, which can result in all sorts of hard to debug behaviour.  
It's one of the core differences between objfpc and Delphi mode.



Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpGUI Toolkit v0.7-rc1 for FPC 2.4

2010-03-15 Thread Adrian Veith
Am 15.03.2010 16:23, schrieb Jonas Maebe:

 On 15 Mar 2010, at 16:17, Adrian Veith wrote:

 when compiling uidesigner with actual fpc from svn it fails with
 duplicate identifier unitname in vfdfile.pas. It seems to be a name
 clash with the new class procedure unitname in TObject.

 http://wiki.freepascal.org/User_Changes_Trunk#TObject_class_declaration

 I don't know why
 fpc raises an error - is there a rule, that a local identifier cannot
 have the same name as a class procedure ? (makes no real sense, because
 a class procedure can be accessed via a full qualified name).

 It makes sense because that way you can accidentally hide an
 identifier, which can result in all sorts of hard to debug behaviour.
 It's one of the core differences between objfpc and Delphi mode.


If it makes sense or not - I get the same error in delphi mode.

Adrian.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpGUI Toolkit v0.7-rc1 for FPC 2.4

2010-03-15 Thread Adrian Veith

Am 15.03.2010 16:38, schrieb Adrian Veith:
 If it makes sense or not - I get the same error in delphi mode.
   

my error - forget it

Adrian

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpGUI Toolkit on WinCE

2010-03-15 Thread Paul Breneman

Hi Adrian,


Hi, this is the first time I looked at fpGUI. Very nice work !

I tried to cross compile some examples for WinCE and it worked so far -
looks like my search is over and I found a nice little GUI framework for
that platform. I was not satisfied with LCL (much too big), KOL (too
weird) and I even thought of switching to c++ and QT, but QT apps take
ages to load on a phone.

One thing I found is, that when a fpGUI application is running on my
WinCE phone (even when it is in the background), the phone will slow
down dramatically. I guess there is an event loop which is too busy -
any idea ?


I'm also using fpGUI for WinCE (and Linux) and I'm excited to see fpGUI 
continue moving forward.


You probably don't need it but I would like to point out for the benefit 
of others reading this message thread that I have posted a minimal 
FreePasacal and fpGUI distribution for cross-compiling WinCE 
applications near the bottom of this page:

  http://www.turbocontrol.com/helloworld.htm

--
Regards,
Paul Breneman
www.dbReplication.com - VCL database replication components
www.TurboControl.com - Hardware and software development services
- Educational programming project for environment monitoring
- Information on using FreePascal for embedded systems
- Support information for the TurboPower open source libraries
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] error on compilation

2010-03-15 Thread Martín Marqués
When I try to compile on my laptop (fedora on a AMD64) with fp I get:

fatal: Can't find unit system used by pruebacomentarios

What's wrong here?

-- 
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpGUI Toolkit v0.7-rc1 for FPC 2.4

2010-03-15 Thread Jorge Aldo G. de F. Junior
I'm maintaining FPC-bindings for DFB. Right now, they work with the 1.4
line of DFB binaries only. If anyone has a need for 1.2 bindings (which
is the version that ships with most GNU/Linux distributions these days),
I'd actually provide such bindings. So, if anyone is seriously
interested, please come forward.

Where can i find those bindings ?

And Graeme, where should i look for (Units/Classes) to port fpGUI to directfb ?

Im feeling motivated to do the work...
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] source code UTF8 with BOM problems ?

2010-03-15 Thread Luis Fernando Del Aguila Mejía

Hello, the problem is only linux.

The following source code uses UTF8 without BOM, 
http://www.conoce3000.com/Ejemplo01.pp
the compiler compiles ok and the program displays the message in Unicode 
UTF8 ok


The following source code uses UTF8 with BOM 
http://www.conoce3000.com/Ejemplo02.pp
the compiler compiles ok and the program displays the message in Unicode 
UTF8 with question marks.


How can I tell the compiler to ignore the BOM?

Thanks 


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] tstringlist.savetostream

2010-03-15 Thread Terry A. Haimann
After running tstringlist.savetostream how can I make sure that the 
buffer has been flushed and data sent successfully?


Thx
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] tstringlist.savetostream

2010-03-15 Thread Zaher Dirkey
On Tue, Mar 16, 2010 at 3:53 AM, Terry A. Haimann
te...@haimannonline.comwrote:

 After running tstringlist.savetostream how can I make sure that the buffer
 has been flushed and data sent successfully?


That depend on the stream you passed to TStringList.SaveToStream


-- 
Zaher Dirkey
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal