Re: [lazarus] MessageDlg

2005-09-06 Thread Michael Van Canneyt



On Mon, 5 Sep 2005, Mattias Gaertner wrote:


On Mon, 5 Sep 2005 17:04:04 +0200 (Romance Daylight Time)
Michael Van Canneyt [EMAIL PROTECTED] wrote:




On Mon, 5 Sep 2005, Alexsander Rosa wrote:


After years of development with this kind of dialog box (with a
caption, a message ending with a question and buttons labeled Yes, No,
Cancel etc), I've noticed than most non-tech users actually do not
READ the message, they just read the labels of the buttons and click
Yes or No (rarely Cancel), almost automatically - no thinking at all.

I did some GUI and usability research and found that many experts
suggest that the labels of the buttons should state the action that
will be performed. IIRC, Open Office dot Org does that: when you try
to exit when the text has changed, instead of the classic Save
changes? (Yes, No, Cancel) it says something like: There are
changes. (Save, Discard, Cancel). The experience shows that users
read the buttons, not the message.

Of course it's simple to write such a dialog box, but it would be nice
to have it as a built-in feature, to educate new developers and create
a standard. This would also solve this language problem, as most text
would be provided - except, maybe, Cancel, that could be defined
globally somewhere or at least have a default text.


I think this can be easily implemented as an overloaded form of
MessageDLG, where instead of [mbOK,mbCancel] you pass the captions of
the buttons.


Sounds like
QuestionDlg


Fine too :)





MessageDLg('File has changed. Save Changes?',MB_WARNING,['Save','Don''t
save','Cancel'],0)

The first button is the default button, and the function returns the index
of the pushed button, or -1 if the dialog was closed by closing the
window.


Example:
QuestionDlg('File has changed. Save
Changes?',mtError,[mrYes,mrCancel,'Cancel now',mrIgnore,300,'Sophisticated
Save'],0);


I would only allow strings. But maybe I miss the point of your proposal ?

Michael.

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


Re: [lazarus] MessageDlg

2005-09-06 Thread Marc Weustink

Michael Van Canneyt wrote:



On Mon, 5 Sep 2005, Mattias Gaertner wrote:


On Mon, 5 Sep 2005 17:04:04 +0200 (Romance Daylight Time)
Michael Van Canneyt [EMAIL PROTECTED] wrote:




On Mon, 5 Sep 2005, Alexsander Rosa wrote:


After years of development with this kind of dialog box (with a
caption, a message ending with a question and buttons labeled Yes, No,
Cancel etc), I've noticed than most non-tech users actually do not
READ the message, they just read the labels of the buttons and click
Yes or No (rarely Cancel), almost automatically - no thinking at all.

I did some GUI and usability research and found that many experts
suggest that the labels of the buttons should state the action that
will be performed. IIRC, Open Office dot Org does that: when you try
to exit when the text has changed, instead of the classic Save
changes? (Yes, No, Cancel) it says something like: There are
changes. (Save, Discard, Cancel). The experience shows that users
read the buttons, not the message.

Of course it's simple to write such a dialog box, but it would be nice
to have it as a built-in feature, to educate new developers and create
a standard. This would also solve this language problem, as most text
would be provided - except, maybe, Cancel, that could be defined
globally somewhere or at least have a default text.



I think this can be easily implemented as an overloaded form of
MessageDLG, where instead of [mbOK,mbCancel] you pass the captions of
the buttons.



Sounds like
QuestionDlg



Fine too :)




MessageDLg('File has changed. Save 
Changes?',MB_WARNING,['Save','Don''t

save','Cancel'],0)

The first button is the default button, and the function returns the 
index

of the pushed button, or -1 if the dialog was closed by closing the
window.



Example:
QuestionDlg('File has changed. Save
Changes?',mtError,[mrYes,mrCancel,'Cancel 
now',mrIgnore,300,'Sophisticated

Save'],0);



I would only allow strings. But maybe I miss the point of your proposal ?


One problem I see with strings only are defaut OS/widgetset buttons.
On gnome you have default glyphs for default buttons. If only strings 
are passed, there is no way to find out what glyph to use (or they have 
to be given through a second array)


Marc

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


Re: [lazarus] Native OS X apps

2005-09-06 Thread Marc Weustink

Chris Moody wrote:

Hi all,

I was wondering, how far away are we to be able to create native OS X  
apps, that uses the Aqua interface?


The initial interface is there and a minumum implementation for a form 
and a button is done.


Will we soon have a Lazarus that doesn't require the X windows for OS  X 
installed?


This depends on all the help we get. If it has to be done only by me, 
then don't expect anything before 2006


Marc

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


Re: [lazarus] Menu icons in KDE / Gnome

2005-09-06 Thread A.J. Venter


 That's highly distribution-specific. There are some efforts to make a
 standard, though.

 For Fedora: install the desktop-file-utils. Make a desktop-file (see an
 example in lazarus/install/gnome.ide.desktop) and then run desktop-file-
 install desktopfile.desktop. (this also makes a kde-icon and menu-entry)

Aahh, a question the distribution developer gets to answer :)
Actually, the freedesktop standard is very specific, although gnome fails to 
follow it completely unless you tweak a bunch a stuff, KDE does follow it 
perfectly so the easy way for the programmer is to install for gnome since 
KDE will pick it up.

KDE and gnome will both check /usr/share/applications/ for desktop files, so 
that's where your desktop file should go, to prevent inter-distro issues, 
install your icon picture somewhere global as well, and set a full path in 
the desktop file.
Finally, the crunch is that to get your menu item in the right place, you need 
to use categories, the reason for those are that the distro's can rename menu 
sections, but the application entries will be still be sorted like-by-like.

The easy way to do those, are to drag an item from the same part of the menu 
you want to be in onto your desktop, and look at it with a text file, the 
categories are usually the last line, just copy and paste it into the bottom 
of your own file.

A.J.
-- 
80% Of a hardware engineer's job is application of the uncertainty principle.
80% of a software engineer's job is pretending this isn't so.
A.J. Venter
Chief Software Architect
OpenLab International
http://www.getopenlab.com
http://www.silentcoder.co.za

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


Re: [lazarus] Menu icons in KDE / Gnome

2005-09-06 Thread Joost van der Sluis
On Tue, 2005-09-06 at 11:15 +0200, A.J. Venter wrote:
 
  That's highly distribution-specific. There are some efforts to make a
  standard, though.
 
  For Fedora: install the desktop-file-utils. Make a desktop-file (see an
  example in lazarus/install/gnome.ide.desktop) and then run desktop-file-
  install desktopfile.desktop. (this also makes a kde-icon and menu-entry)

 KDE and gnome will both check /usr/share/applications/ for desktop files, so 
 that's where your desktop file should go, to prevent inter-distro issues, 
 install your icon picture somewhere global as well, and set a full path in 
 the desktop file.

That won't work. Since all desktop-files are cached, this will only work
after a restart of gnome/kde or something.

So I would say: use the script, and don't place the files yourself.
(With the script you can also add categories, to place the menu-entry in
the right place)

Joost.


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


[lazarus] Re: Menu icons in KDE / Gnome

2005-09-06 Thread Felipe Monteiro de Carvalho

Tony Maro wrote:
I can throw an icon on the desktop pretty darn easy, but the menu's 
still escape me and the directions I've seen online so far are cryptic 
at best.


-Tony


How do you put the desktop icons?

I know they are located at ~/Desktop/ but I usually deploy my programs 
in .rpm packages and those are installed as superuser. Should I put 
icons for all users??


thanks,

Felipe

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


Re: [lazarus] MessageDlg

2005-09-06 Thread dhkblaszyk
 On Tue, 6 Sep 2005 10:00:24 +0200 (Romance Daylight Time)
 Michael Van Canneyt [EMAIL PROTECTED] wrote:

 Maybe the example was a little bit overkill.
 For most choices the standard captions ('Yes', 'No', 'Cancel', ...) and
 there constants (mrYes, mrNo, mrCancel, ...) are sufficient. But often you
 need more specific text on a button and sometimes a new constant. That is
 what QuestionDlg is good for.

You could overload a generic QuestionDlg from the highly customizable
version, or not...

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


[lazarus] Errors on linux-64

2005-09-06 Thread Crause, Christo \(JC\)
Hi,

I'm trying to run Lazarus 0.9.9 on an AMD Opteron running 64 bit Redhat Linux 
and FPC 2.0.0.x86_64. I managed to make and run the IDE, but get lots of access 
violations when clicking on certain menus, apparently something to do with 
assigning a value to a scrollbar e.g. clicking on Environment | Debugger 
Options results in the following error: Error reading 
DebuggerOptionsForm.HorizScrollBar.Page. A similar error is seen when clicking 
on Help | About.  The popup hints seems to display a rectangle over the text.

Creating a new application works fine, but when I try to save a blank new form, 
I get the following error: Unable to save Form1: TForm1. Access violation.  If 
I clikc on Ignore, I can run the blank application without problems.  If I drop 
a component e.g. a Tlabel on the form and press run I get the same error.  If I 
click Ignore, the app runs and the form displays without the label.

Opening an example project such as /examples/barchart generates many errors 
starting with: Error reading TForm1.HorixScrollBar.Page: Access violation.  
Clicking Ignore leads to another error: Error reading TForm1.[][]: Division by 
zero.  After canceling the form is displayed as text in the editor.  The 
console output for loading this example is shown below.

Does anyone knows why I got these erros?

$ ./lazarus
TApplication.IconChanged - TODO: convert this message...no implementation in 
gtk or win32
NOTE: codetools config file not found - using defaults
NOTE: help options config file not found - using defaults
TPascalParserTool.BuildTree B OnlyIntf=True  
/home/hattinc1/downloads/lazarus/examples/barchart/frmmain.pas
TMainIDE.DoLoadLFM A 
/home/hattinc1/downloads/lazarus/examples/barchart/frmmain.pas True
TMainIDE.DoLoadLFM AncestorClassName=TForm AncestorType=TForm

[TJITComponentList.ReaderError] Error reading TForm1.HorzScrollBar.Page: 
Access violation ignoring=TRUE

TJITComponentList.ReaderPropertyNotFound TForm1.ï¿¿
TCustomFormEditor.JITListPropertyNotFound TJITForms Instance=TForm1 
PropName=ï¿¿ IsPath=FALSE
ERROR in LCL: TLRSObjectReader.SkipValue unknown valuetype
Creating gdb catchable error:

[TJITComponentList.ReaderError] Error reading TForm1.ï¿¿: Division by zero 
ignoring=TRUE

TJITComponentList.ReaderPropertyNotFound TForm1.rtScrollBar
TCustomFormEditor.JITListPropertyNotFound TJITForms Instance=TForm1 
PropName=rtScrollBar IsPath=TRUE
ERROR in LCL: TLRSObjectReader.SkipValue unknown valuetype
Creating gdb catchable error:

[TJITComponentList.ReaderError] Error reading 
TForm1.rtScrollBar.Page-Leftï¿¿Height,Topï¿¿Widthï¿¿   
TBarChart   BarChart1DepthCaptionMy Data
   
C: Division by zero ignoring=TRUE


[TJITComponentList.ReaderError] Read Error ignoring=TRUE

[TJITComponentList.AddJITChildComponentFromStream] ERROR reading form stream of 
Class 'TForm1' Error: Read Error
ERROR: streaming failed 
lfm=/home/hattinc1/downloads/lazarus/examples/barchart/frmmain.lfm
TPascalParserTool.BuildTree B OnlyIntf=True  
/home/hattinc1/downloads/lazarus/lcl/chart.pp
TPascalParserTool.BuildTree B OnlyIntf=True  
/home/hattinc1/downloads/lazarus/lcl/dialogs.pp
TPascalParserTool.BuildTree B OnlyIntf=True  
/home/hattinc1/downloads/lazarus/lcl/graphics.pp
TPascalParserTool.BuildTree B OnlyIntf=True  
/home/hattinc1/downloads/lazarus/lcl/controls.pp
TPascalParserTool.BuildTree B OnlyIntf=True  
/home/hattinc1/downloads/lazarus/lcl/forms.pp
TPascalParserTool.BuildTree B OnlyIntf=True  
/home/hattinc1/downloads/lazarus/lcl/lclclasses.pp
TPascalParserTool.BuildTree B OnlyIntf=True  
/home/hattinc1/downloads/lazarus/lcl/widgetset/wslclclasses.pp
TPascalParserTool.BuildTree B OnlyIntf=True  
/usr/share/fpcsrc/rtl/unix/classes.pp
TPascalParserTool.BuildTree B OnlyIntf=True  
/usr/share/fpcsrc/rtl/objpas/rtlconsts.pp

Regards
Christo

NOTICE: Please note that this eMail, and the contents thereof, 
is subject to the standard Sasol eMail legal notice which may be found at: 
http://www.sasol.com/legalnotices   
   

If you cannot access the legal notice through the URL attached and you wish 
to receive a copy thereof please send an eMail to 
[EMAIL PROTECTED]


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


[lazarus] Embedded Mozilla

2005-09-06 Thread John Jewitt

Hi all,

I've written a Delphi 3 application that uses Active X to control MS IE 
from within a form.


I'd like to port it to Lazarus/Linux/Mozilla but I am unsure where to 
start.


I've looked at gtkmozembed on the Mozilla site but it has not helped 
much as I'm unsure how to use a GTK widget within Lazarus.


Can anyone point me in the right direction?

Regards

John

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


Re: [lazarus] Re: Menu icons in KDE / Gnome

2005-09-06 Thread dannym
Hi,

Am Dienstag, den 06.09.2005, 10:34 -0300 schrieb Felipe Monteiro de
Carvalho:
 Tony Maro wrote:
  I can throw an icon on the desktop pretty darn easy, but the menu's 
  still escape me and the directions I've seen online so far are cryptic 
  at best.
  
  -Tony
 
 How do you put the desktop icons?
 
 I know they are located at ~/Desktop/ but I usually deploy my programs 
 in .rpm packages and those are installed as superuser. Should I put 
 icons for all users??

errr?

no. Just for the one user that installed or uses the program, of course.
Or still better, none. Put it in the application menu.

 
 thanks,
 
 Felipe

cheers,
   Danny


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


Re: [lazarus] Lazarus binaries size

2005-09-06 Thread Tony Maro

Felipe Monteiro de Carvalho wrote:




On 9/5/05, *Tony Maro* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:


I did some rough tests the other day and the smallest I could get an
executable that included the forms unit was just under 2MB with
everything stripped and smartlinking on the application, optimized
code
for size, etc.  Of course I only got limited results out of
smartlinking
on the app, but it did affect the size.


Did you call strip on the command line? I think that if you do so you 
can get smaller executables. The strip that comes with lazarus does 
not seam to do a good job.


Calling strip from command line in Linux is identical to using the 
checkboxes in results.  I've checked.  Using the checkboxes in Win32 
however seems to do nothing.


-Tony

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


Re: [lazarus] Used mac laptop

2005-09-06 Thread Roberto Antonio Berrospe Machin

Hello Tony.
Mac laptops.. i think the best is the 12 ibook. This is totally  
enought for development, and also for a lot of other things like play  
halo, haha.
I actually have a 14 ibook and its very good; it commes with Tiger,  
the OS, all you need is there.. to give you an idea, it is something  
like Windows, Linux and Apple retouch operating system :) (but better  
than windows my opinion, and also i was windows user) ;)
12 ibooks rounds $999 on NY actually. But you can find good prices  
for Used laptops at www.ebay.com


(sorry that i cant help developing lazarus for osx.. im bad actually  
with osx api, just know how to use a few things... and im ussing JAVA  
for development actually.. i hope some day we can have the awesome  
lazarus native on OSX) :)


Grettings.


Roberto.

El 06/09/2005, a las 02:42 PM, Tony Maro escribió:


One of my clients wants to buy me a used cheap mac laptop for  
developing on using Lazarus.


Any recommendations?  Cheap is a key word... I know absolutely  
nothing about Mac's so I dunno what OS version I'll need or  
anything...


-Tony

_
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] MessageDlg

2005-09-06 Thread Alexsander Rosa
IMHO the glyphs are *less* important than the text. A simple version
of this function could accept text-only buttons - following the modern
human interface trends - and optionally an array of glyphs, if they
are needed at all.

Alex

2005/9/6, Marc Weustink [EMAIL PROTECTED]:
 Michael Van Canneyt wrote:
 [cut]
 
 One problem I see with strings only are defaut OS/widgetset buttons.
 On gnome you have default glyphs for default buttons. If only strings
 are passed, there is no way to find out what glyph to use (or they have
 to be given through a second array)
 
 Marc
 
 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
 


-- 
Atenciosamente,

Alexsander da Rosa

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


Re: [lazarus] Used mac laptop

2005-09-06 Thread Chris Moody

Hey Tony,

If it doesn't have to be a laptop, you could get a Mac Mini for 499.

Chris

On Sep 6, 2005, at 10:42 AM, Tony Maro wrote:

One of my clients wants to buy me a used cheap mac laptop for  
developing on using Lazarus.


Any recommendations?  Cheap is a key word... I know absolutely  
nothing about Mac's so I dunno what OS version I'll need or  
anything...


-Tony

_
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] Used mac laptop

2005-09-06 Thread Roberto Antonio Berrospe Machin
Mac mini is cool, but you will need a monitor, keyboard and mouse...  
u will get only the main frame :)
If you buy a monitor, and the needed things, included speakers, u  
only need to add $200 more or less to get a better and nicer comp, a  
laptop :)


(at least that's my opinion)


Roberto.


El 06/09/2005, a las 03:24 PM, Chris Moody escribió:


Hey Tony,

If it doesn't have to be a laptop, you could get a Mac Mini for 499.

Chris

On Sep 6, 2005, at 10:42 AM, Tony Maro wrote:


One of my clients wants to buy me a used cheap mac laptop for  
developing on using Lazarus.


Any recommendations?  Cheap is a key word... I know absolutely  
nothing about Mac's so I dunno what OS version I'll need or  
anything...


-Tony

_
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


[lazarus] Little mess

2005-09-06 Thread Juan Martinez
Hi

I sent an updated version of the file
objinspstrconsts.es.utf but in the svn from today I
saw that this file contains no translations. Maybe the
file I sent was some way corrupted so I attached it
again.

Another problem is that lcl.esutf.po was deleted and
now lcl.es.po is utf8 encoded (that's fine) but
lazaruside.esutf.po and objinspstrconsts.esutf.po are
still  there, I think those files need to be renamed
to *.es.po too and get rid of the non-utf8 ones too.

Juan

__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.espanol.yahoo.com/ 

objinspstrconsts.esutf.po.gz
Description: 3485261067-objinspstrconsts.esutf.po.gz


[lazarus] more TTranslateString

2005-09-06 Thread Василий Волченко
Slight fix for TListColumn.Caption translation. 


lazarus.diff.gz
Description: GNU Zip compressed data


Re: [lazarus] Used mac laptop

2005-09-06 Thread Chris Moody
True, unless you already have a monitor, mouse, and keyboard. Since  
it uses PC standards, most people already have what they need esp if  
you have a KVM switch.


Chris

On Sep 6, 2005, at 11:30 AM, Roberto Antonio Berrospe Machin wrote:

Mac mini is cool, but you will need a monitor, keyboard and  
mouse... u will get only the main frame :)
If you buy a monitor, and the needed things, included speakers, u  
only need to add $200 more or less to get a better and nicer comp,  
a laptop :)


(at least that's my opinion)


Roberto.


El 06/09/2005, a las 03:24 PM, Chris Moody escribió:



Hey Tony,

If it doesn't have to be a laptop, you could get a Mac Mini for 499.

Chris

On Sep 6, 2005, at 10:42 AM, Tony Maro wrote:



One of my clients wants to buy me a used cheap mac laptop for  
developing on using Lazarus.


Any recommendations?  Cheap is a key word... I know absolutely  
nothing about Mac's so I dunno what OS version I'll need or  
anything...


-Tony

_
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





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


Re: [lazarus] Embedded Mozilla

2005-09-06 Thread Bram Kuijvenhoven

John Jewitt wrote:
I've written a Delphi 3 application that uses Active X to control MS IE 
from within a form.


I'd like to port it to Lazarus/Linux/Mozilla but I am unsure where to 
start.


I've looked at gtkmozembed on the Mozilla site but it has not helped 
much as I'm unsure how to use a GTK widget within Lazarus.


Can anyone point me in the right direction?


For the Windows part of embedding Mozilla, look at http://delphi.mozdev.org/? 
In particular, there are two articles on that site (see 
http://delphi.mozdev.org/articles/index.html) on embedding the Mozilla ActiveX 
control.

(This could be useful for a cross platform component (in Lazarus) that embeds 
Mozilla.)

For the Linux part, I can't be much of a help I'm afraid.

Regards,

Bram

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


Re: [lazarus] Re: Menu icons in KDE / Gnome

2005-09-06 Thread Felipe Monteiro de Carvalho
On 9/6/05, dannym [EMAIL PROTECTED] wrote:
errr?no. Just for the one user that installed or uses the program, of course.Or still better, none. Put it in the application menu.
I usually deploy on RedHat Package Manager (RPM) packages.

The package contains a bash script that is executed as superuser. So I
have no way of knowing whitch user is actually going to use the
program, as this will almost certainly not be the root.

I like desktop icons =)

Unfortunatly it seams that desktop icons do not exist on all window managers.
-- Felipe Monteiro de Carvalho


[lazarus] Error example - Execute external program WIKI

2005-09-06 Thread Adriano Frare

Dear Friends


I am testing example program procoutlarge on 
http://wiki.lazarus.freepascal.org/index.php/Executing_External_Programs



but when execute LINE

  WriteLn('-- executing --');

The program abort.


Thanks.

Adriano

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


Re: [lazarus] Error example - Execute external program WIKI

2005-09-06 Thread Tony Maro

Adriano Frare wrote:


Dear Friends


I am testing example program procoutlarge on 
http://wiki.lazarus.freepascal.org/index.php/Executing_External_Programs



but when execute LINE

  WriteLn('-- executing --');

The program abort. 


Is this a Windows computer?  Run this from a command prompt and it won't 
happen.  There's no console to output your writeln to, so it crashes.


I believe the better way to do it is

DebugLn('-- executing --');

This will work (or at least not crash) regardless of an existing console.

-Tony Maro

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


Re: [lazarus] Re: Menu icons in KDE / Gnome

2005-09-06 Thread Tony Maro

Felipe Monteiro de Carvalho wrote:




On 9/6/05, *dannym* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
wrote:



errr?

no. Just for the one user that installed or uses the program, of
course.
Or still better, none. Put it in the application menu.


I usually deploy on RedHat Package Manager (RPM) packages.

The package contains a bash script that is executed as superuser. So I 
have no way of knowing whitch user is actually going to use the 
program, as this will almost certainly not be the root.


I like desktop icons =)

Unfortunatly it seams that desktop icons do not exist on all window 
managers.


True, but it seems all the recent Gnome and KDE desktop's I've used have 
a /home/username/Desktop/ folder that works.  Debian, Mandrake and I 
think the other was a Knoppix.


-Tony

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