Re: [fpc-pascal] Wrong Time from Now() or Time()

2008-12-03 Thread Graeme Geldenhuys
On Thu, Dec 4, 2008 at 9:36 AM, Alexander Bauer <[EMAIL PROTECTED]> wrote: > It's always the same time. UTC - 6 hours. > But it's not a problem of fpc or the functions, it must be a problem of the > Linux Ditribution. > > On Ubuntu 8.04 Desktop the time is correct. > I use a system based on Ubuntu

Re: [fpc-pascal] Lazarus: graphical interface using code only?

2008-12-03 Thread Graeme Geldenhuys
On Thu, Dec 4, 2008 at 9:20 AM, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > > Anybody know how I can store the output of a program into a variable > in windows batch files? I'm trying to capture the following output > like I have done in the unix shell script. > fpctarget=`fpc -iTP`-`fpc -iTO`

Re: [fpc-pascal] Wrong Time from Now() or Time()

2008-12-03 Thread Alexander Bauer
Valdas Jankūnas schrieb: Alexander Bauer rašė: I have a strange problem with fpc 2.2.2 on Ubuntu Linux. The function Now(); did not return the right time ?!? It returns the time UTC - 6 hours. Any suggestions ? br, Alex try GetTime or GetLocalTime from SysUtils unit. It's always the sa

Re: [fpc-pascal] Lazarus: graphical interface using code only?

2008-12-03 Thread Graeme Geldenhuys
On Thu, Dec 4, 2008 at 8:35 AM, Ryan Mann <[EMAIL PROTECTED]> wrote: > Actually, I tried to compile FPGUI using build.bat on Windows earlier today > and I got an error. It should now be fixed in revision 1051. Please get a svn update and try again. The windows build.bat file did not try and create

Re: [fpc-pascal] Lazarus: graphical interface using code only?

2008-12-03 Thread Ryan Mann
Actually, I tried to compile FPGUI using build.bat on Windows earlier today and I got an error. If you want, I can try it again and get the exact error message. By the way, does FPGUI use Windows API on Windows? If it does that's good because the GUIs it creates are probably accessible to sc

Re: [fpc-pascal] GetAppConfigDir but for temp data?

2008-12-03 Thread Graeme Geldenhuys
On Wed, Dec 3, 2008 at 7:54 PM, Mattias Gärtner <[EMAIL PROTECTED]> wrote: > > notepad.exe has problems with non windows line ends. Yes I know, but that's besides the point. Windows has ShellExecute which handle the file association for you. Linux doesn't. >> Under linux, how do you know the use

Re: [fpc-pascal] Lazarus: graphical interface using code only?

2008-12-03 Thread Graeme Geldenhuys
On Thu, Dec 4, 2008 at 4:48 AM, Ryan Mann <[EMAIL PROTECTED]> wrote: > OK thanks, but where can I find information about doing this? The lazarus > tutorial on the Wiki talks about using the IDE. fpGUI Toolkit has a readme.txt file in the 'src' directory explaining how you can develop applications

Re: [fpc-pascal] Lazarus: graphical interface using code only?

2008-12-03 Thread Ryan Mann
OK thanks, but where can I find information about doing this? The lazarus tutorial on the Wiki talks about using the IDE. Thanks. Ryan On Dec 3, 2008, at 10:33 AM, Michael Fuchs wrote: Ryan Mann schrieb: [..] Instead of using the IDE to design graphical interfaces, is it possible to write a

Re: [fpc-pascal] GetAppConfigDir but for temp data?

2008-12-03 Thread Michael Schneider
Am Mittwoch, 3. Dezember 2008 21:22:47 schrieb Vinzent Höfler: > Graeme Geldenhuys wrote: > > Under linux, how do you know the users > > favorite text editor? For the 2 common DEs KDE3 http://developer.kde.org/documentation/library/kdeqt/kde3arch/mime.html Gnome http://library.gnome.org/devel/gnom

Re: [fpc-pascal] GetAppConfigDir but for temp data?

2008-12-03 Thread Vinzent Höfler
Graeme Geldenhuys wrote: Under linux, how do you know the users favorite text editor? $ echo $EDITOR /usr/bin/vi SCNR, Vinzent. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] GetAppConfigDir but for temp data?

2008-12-03 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > On Wed, Dec 3, 2008 at 6:56 PM, Mattias G?rtner > <[EMAIL PROTECTED]> wrote: > >> > >> :-) Like I said, Linux has a long way to go for desktop friendly apps. > > > > desktop friendly <> mono culture > > I don't understand? What I meant by "deksto

Re: [fpc-pascal] Wrong Time from Now() or Time()

2008-12-03 Thread Valdas Jankūnas
Alexander Bauer rašė: I have a strange problem with fpc 2.2.2 on Ubuntu Linux. The function Now(); did not return the right time ?!? It returns the time UTC - 6 hours. Any suggestions ? br, Alex try GetTime or GetLocalTime from SysUtils unit. -- Valdas Jankūnas

Re: [fpc-pascal] GetAppConfigDir but for temp data?

2008-12-03 Thread Michael Van Canneyt
On Wed, 3 Dec 2008, Graeme Geldenhuys wrote: > On Wed, Dec 3, 2008 at 6:36 PM, Michael Van Canneyt > <[EMAIL PROTECTED]> wrote: > > >> I don't know which applications actually adhere to these locations > >> though, but I'm willing to start. :-) > > > > On a KDE system: none. > > :-) Like I sa

[fpc-pascal] Wrong Time from Now() or Time()

2008-12-03 Thread Alexander Bauer
I have a strange problem with fpc 2.2.2 on Ubuntu Linux. The function Now(); did not return the right time ?!? It returns the time UTC - 6 hours. Any suggestions ? br, Alex ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.free

Re: [fpc-pascal] GetAppConfigDir but for temp data?

2008-12-03 Thread Mattias Gärtner
Zitat von Graeme Geldenhuys <[EMAIL PROTECTED]>: > On Wed, Dec 3, 2008 at 6:56 PM, Mattias Gärtner > <[EMAIL PROTECTED]> wrote: > >> > >> :-) Like I said, Linux has a long way to go for desktop friendly apps. > > > > desktop friendly <> mono culture > > I don't understand? What I meant by "dekst

Re: [fpc-pascal] Lazarus: graphical interface using code only?

2008-12-03 Thread Graeme Geldenhuys
On Wed, Dec 3, 2008 at 5:27 PM, Ryan Mann <[EMAIL PROTECTED]> wrote: > Hello. I'm blind and the Lazarus IDE does not work that well with my screen > reader. Instead of using the IDE to design graphical interfaces, is it > possible to write a graphical interface using Pascal code? Yes, by all mea

Re: [fpc-pascal] GetAppConfigDir but for temp data?

2008-12-03 Thread Graeme Geldenhuys
On Wed, Dec 3, 2008 at 6:56 PM, Mattias Gärtner <[EMAIL PROTECTED]> wrote: >> >> :-) Like I said, Linux has a long way to go for desktop friendly apps. > > desktop friendly <> mono culture I don't understand? What I meant by "dekstop friendly apps" is Take a simple example. Under Windows you

Re: [fpc-pascal] GetAppConfigDir but for temp data?

2008-12-03 Thread Mattias Gärtner
Zitat von Graeme Geldenhuys <[EMAIL PROTECTED]>: > On Wed, Dec 3, 2008 at 6:36 PM, Michael Van Canneyt > <[EMAIL PROTECTED]> wrote: > > >> I don't know which applications actually adhere to these locations > >> though, but I'm willing to start. :-) > > > > On a KDE system: none. > > :-) Like I sa

Re: [fpc-pascal] GetAppConfigDir but for temp data?

2008-12-03 Thread Graeme Geldenhuys
On Wed, Dec 3, 2008 at 6:36 PM, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: >> I don't know which applications actually adhere to these locations >> though, but I'm willing to start. :-) > > On a KDE system: none. :-) Like I said, Linux has a long way to go for desktop friendly apps. > Well

Re: [fpc-pascal] GetAppConfigDir but for temp data?

2008-12-03 Thread Michael Van Canneyt
On Wed, 3 Dec 2008, Graeme Geldenhuys wrote: > On Wed, Dec 3, 2008 at 2:40 PM, Michael Van Canneyt > <[EMAIL PROTECTED]> wrote: > >> I believe Microsoft has a LocalAppData location, but not sure if that > >> is also used for GetAppConfigDir(False). > > > > Yes it is. > > Umm... :-( > > >> Fo

Re: [fpc-pascal] Lazarus: graphical interface using code only?

2008-12-03 Thread Michael Fuchs
Ryan Mann schrieb: [..] Instead of using the IDE to design graphical interfaces, is it possible to write a graphical interface using Pascal code? Of course, you can create all components dynamicly and give them their positions by code. It is like programming with Turbo Vision/Free Vision. g

[fpc-pascal] Lazarus: graphical interface using code only?

2008-12-03 Thread Ryan Mann
Hello. I'm blind and the Lazarus IDE does not work that well with my screen reader. Instead of using the IDE to design graphical interfaces, is it possible to write a graphical interface using Pascal code? Thanks for any help. Ryan Ryan Mann [EMAIL PROTECTED] Break The Matrix http://www.

Re: [fpc-pascal] GetAppConfigDir but for temp data?

2008-12-03 Thread Graeme Geldenhuys
On Wed, Dec 3, 2008 at 2:40 PM, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: >> I believe Microsoft has a LocalAppData location, but not sure if that >> is also used for GetAppConfigDir(False). > > Yes it is. Umm... :-( >> For example: freedesktop.org (I believe) specifies the following file:

Re: [fpc-pascal] GetAppConfigDir but for temp data?

2008-12-03 Thread Michael Van Canneyt
On Wed, 3 Dec 2008, Graeme Geldenhuys wrote: > Hi, > > GetAppConfigDir(False) returns a directory location where local config > information about an application can be store. Is there one for local > data? Or is the recommendation (from FreeDesktop.org or Microsoft > etc..) that it's okay to u

[fpc-pascal] GetAppConfigDir but for temp data?

2008-12-03 Thread Graeme Geldenhuys
Hi, GetAppConfigDir(False) returns a directory location where local config information about an application can be store. Is there one for local data? Or is the recommendation (from FreeDesktop.org or Microsoft etc..) that it's okay to use the local config directory for data as well? eg: I have