Re: [Lazarus] Error while compiling resources

2012-04-17 Thread patspiper
On 18/04/12 01:11, Mattias Gaertner wrote: On Wed, 18 Apr 2012 00:07:31 +0300 patspiper wrote: On 17/04/12 23:57, Mattias Gaertner wrote: I save the project to project1.lpi and unit1.pas I now run it again. It fails with "project1.lpr(19,1) Error: Error while compiling resources". Hint: Sta

Re: [Lazarus] Error while compiling resources

2012-04-17 Thread Dave Coventry
On 17 April 2012 22:57, Mattias Gaertner wrote: > It is saved to your temp directory and compiled there. Yes, of course. > Can you compare the two directories (temp and saved) and tell where the > difference is? Lazarus is running on a Virtualbox Virtual Windows XP guest on an Ubuntu derivative

[Lazarus] Fw: Mantis bugid 0015390 - showmodal closing when hide called.

2012-04-17 Thread Justin Smyth
- Original Message - From: Justin Smyth To: zel...@holobit.net Sent: Wednesday, April 18, 2012 8:39 AM Subject: Re: [Lazarus] Mantis bugid 0015390 - showmodal closing when hide called. You have it wrong. as per other comments showmodal SHOULD NOT exit till the form is closed an ex

Re: [Lazarus] Error while compiling resources

2012-04-17 Thread Mattias Gaertner
On Wed, 18 Apr 2012 00:07:31 +0300 patspiper wrote: > On 17/04/12 23:57, Mattias Gaertner wrote: > > > >> I save the project to project1.lpi and unit1.pas > >> > >> I now run it again. It fails with "project1.lpr(19,1) Error: Error > >> while compiling resources". > >> > >> Hint: Start of reading

Re: [Lazarus] Error while compiling resources

2012-04-17 Thread patspiper
On 17/04/12 23:57, Mattias Gaertner wrote: I save the project to project1.lpi and unit1.pas I now run it again. It fails with "project1.lpr(19,1) Error: Error while compiling resources". Hint: Start of reading config file C:\lazarus\fpc\2.6.0\bin\i386-win32\fpc.cfg Hint: End of reading config

Re: [Lazarus] Error while compiling resources

2012-04-17 Thread Mattias Gaertner
On Tue, 17 Apr 2012 22:51:48 +0200 Dave Coventry wrote: > On 17 April 2012 18:21, patspiper wrote: > > Did you check the project source (Radmin.lpr) for the $R directive (click > > Project/View project source)? Usually, the culprit is something like: > > {$IFDEF WINDOWS}{$R foobar.rc}{$ENDIF} >

Re: [Lazarus] Error while compiling resources

2012-04-17 Thread Dave Coventry
On 17 April 2012 18:21, patspiper wrote: > Did you check the project source (Radmin.lpr) for the $R directive (click > Project/View project source)? Usually, the culprit is something like: > {$IFDEF WINDOWS}{$R foobar.rc}{$ENDIF} 8< 8< 8< 8< 8<8< 8< Radmin.lpr 8< 8< 8< 8< 8< program Radmina; {$m

Re: [Lazarus] Bug 15390 and Showmodal

2012-04-17 Thread patspiper
On 17/04/12 21:19, zeljko wrote: On Tuesday 17 of April 2012 17:41:54 patspiper wrote: > This is related to bug #15390: > > My understanding is that Showmodal blocks until the form is closed. > Hiding the form should have no effect. > > try > Self.Hide; > Form2.ShowModal; //<- this shoul

Re: [Lazarus] TImage - Getting image properties in 'canvas space'

2012-04-17 Thread Reimar Grabowski
On Tue, 17 Apr 2012 22:19:45 +0200 Sven Barth wrote: > type >TMyHackImage = class(TImage) >public > function DestRect: TRect; >end; > > var >MyImage: TImage; >r: TRect; > begin >// let's suppose that MyImage contains a TImage instance >r := TMyHackImage(MyImage).

Re: [Lazarus] TImage - Getting image properties in 'canvas space'

2012-04-17 Thread Sven Barth
On 17.04.2012 20:22, Reimar Grabowski wrote: On Tue, 17 Apr 2012 19:46:08 +0200 Sven Barth wrote: Well... class helpers are at least an officially supported hackish approach unlike other forms of making a protected member visible. Deriving my own class is certainly more work (as in more to ty

Re: [Lazarus] Embedding a standard dialogue

2012-04-17 Thread Juha Manninen
On Tue, Apr 17, 2012 at 12:17 PM, Mark Morgan Lloyd < markmll.laza...@telemetry.co.uk> wrote: > Is it possible to embed a standard dialogue in a custom form? For example, > if I wanted to filter text input through a user-specified regular > expression, can I set up a form containing a file-open di

Re: [Lazarus] [Lazarusdev] WinCE users please

2012-04-17 Thread Zaher Dirkey
On Sun, Apr 15, 2012 at 8:33 PM, Martin wrote: > On 15/04/2012 16:58, Fabio Luis Girardi wrote: > >> > Please compile with >>> WinIME >>> defined. >>> >>> > Define "WinIME" in my project? Best Regards Zaher Dirkey -- ___ Lazarus mailing list Lazarus

Re: [Lazarus] TImage - Getting image properties in 'canvas space'

2012-04-17 Thread Reimar Grabowski
On Tue, 17 Apr 2012 19:46:08 +0200 Sven Barth wrote: > Well... class helpers are at least an officially supported hackish > approach unlike other forms of making a protected member visible. Deriving my own class is certainly more work (as in more to type) but it is officially supported and I fa

Re: [Lazarus] Bug 15390 and Showmodal

2012-04-17 Thread zeljko
On Tuesday 17 of April 2012 17:41:54 patspiper wrote: > This is related to bug #15390: > > My understanding is that Showmodal blocks until the form is closed. > Hiding the form should have no effect. > >try > Self.Hide; > Form2.ShowModal; //<- this should block until Form2 is closed

Re: [Lazarus] TImage - Getting image properties in 'canvas space'

2012-04-17 Thread Mattias Gaertner
On Tue, 17 Apr 2012 19:46:08 +0200 Sven Barth wrote: >[...] > Well... class helpers are at least an officially supported hackish > approach unlike other forms of making a protected member visible. I wonder what protected is still good for when you can use class helpers to access protected membe

Re: [Lazarus] TImage - Getting image properties in 'canvas space'

2012-04-17 Thread Sven Barth
On 17.04.2012 16:26, Reimar Grabowski wrote: On Tue, 17 Apr 2012 12:26:13 +0200 Sven Barth wrote: I personally don't consider them strange, but that might be, because I implemented them in FPC ^^ Considering that they were a hackish workaround to marry Delphis VCL and .NET and Delphi users w

Re: [Lazarus] Error while compiling resources

2012-04-17 Thread patspiper
On 17/04/12 12:29, Dave Coventry wrote: Hi Mattias, Sorry, I was a bit rude (late) last night. Thanks for the help. ;) I have fpcres.exe installed in C:\lazarus\fpc\2.6.0\bin\i386-win32 I have appended this onto my Path through My Computer->Properties->Advanced->Environment Variables->System

Re: [Lazarus] RE : RE : RE : Trunk IDE won't display project's main form

2012-04-17 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Ludo Brands wrote: Reading between the lines, it sounds as though I'd be best going through all projects and making sure that they build and run properly with 0.9.30 before doing anything else. Thank heavens I set up svn here a few months ago. If that is the route to

[Lazarus] Bug 15390 and Showmodal

2012-04-17 Thread patspiper
This is related to bug #15390: My understanding is that Showmodal blocks until the form is closed. Hiding the form should have no effect. try Self.Hide; Form2.ShowModal; //<- this should block until Form2 is closed finally Self.Show; // <- this should not be reached until Form2

Re: [Lazarus] TImage - Getting image properties in 'canvas space'

2012-04-17 Thread Marc Weustink
Mattias Gaertner wrote: On Tue, 17 Apr 2012 12:12:21 +0200 Marc Weustink wrote: Mattias Gaertner wrote: Reimar Grabowski hat am 16. April 2012 um 16:42 geschrieben: > Hi, > > I load a TLazIntfImage from disk, manipulate it and show it on my form in a TImage. Center, Proportional an

Re: [Lazarus] TProcess, UTF8, Windows

2012-04-17 Thread waldo kitty
On 4/17/2012 02:54, michael.vancann...@wisa.be wrote: On Mon, 16 Apr 2012, waldo kitty wrote: On 4/15/2012 05:25, Michael Van Canneyt wrote: [...] If you want to browse the repository, use the viewvc interface: http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/?root=docs http does not

Re: [Lazarus] TImage - Getting image properties in 'canvas space'

2012-04-17 Thread Reimar Grabowski
On Tue, 17 Apr 2012 12:27:09 +0200 Mattias Gaertner wrote: > On Tue, 17 Apr 2012 12:12:21 +0200 > Marc Weustink wrote: > > TImage is not meant to draw to. If you want to custom paint your image, > > use a TPaintbox > > > > A TImage is for display only. > > TImage has a published OnPaint even

Re: [Lazarus] TImage - Getting image properties in 'canvas space'

2012-04-17 Thread Reimar Grabowski
On Tue, 17 Apr 2012 12:26:13 +0200 Sven Barth wrote: > I personally don't consider them strange, but that might be, because I > implemented them in FPC ^^ Considering that they were a hackish workaround to marry Delphis VCL and .NET and Delphi users were warned not to use them because they shou

Re: [Lazarus] TImage - Getting image properties in 'canvas space'

2012-04-17 Thread Mattias Gaertner
On Tue, 17 Apr 2012 12:12:21 +0200 Marc Weustink wrote: > Mattias Gaertner wrote: > > > > Reimar Grabowski hat am 16. April 2012 um 16:42 > > geschrieben: > > > > > Hi, > > > > > > I load a TLazIntfImage from disk, manipulate it and show it on my > > form in a TImage. Center, Proportional and

Re: [Lazarus] TImage - Getting image properties in 'canvas space'

2012-04-17 Thread Sven Barth
Am 17.04.2012 03:17, schrieb Reimar Grabowski: At the moment you have to descend your own TImage class to access it or write a hack class (e.g. via a class helper). Class helpers are a new concept to me and IMHO quite a strange one. I can understand why you call this a hack but at least it work

Re: [Lazarus] TImage - Getting image properties in 'canvas space'

2012-04-17 Thread Marc Weustink
Mattias Gaertner wrote: Reimar Grabowski hat am 16. April 2012 um 16:42 geschrieben: > Hi, > > I load a TLazIntfImage from disk, manipulate it and show it on my form in a TImage. Center, Proportional and Stretch properties of the TImage are set to true. > Now I want to draw some overlays o

Re: [Lazarus] Ubuntu 12.04

2012-04-17 Thread zeljko
On Tuesday 17 of April 2012 11:34:13 Mattias Gaertner wrote: > On Tue, 17 Apr 2012 11:30:23 +0200 > > zeljko wrote: > > On Tuesday 17 of April 2012 11:15:34 Mattias Gaertner wrote: > > > On Tue, 17 Apr 2012 07:54:47 +0200 > > > > > > zeljko wrote: > > > > On Monday 16 of April 2012 20:52:31 Ric

Re: [Lazarus] Ubuntu 12.04

2012-04-17 Thread Mattias Gaertner
On Tue, 17 Apr 2012 11:30:23 +0200 zeljko wrote: > On Tuesday 17 of April 2012 11:15:34 Mattias Gaertner wrote: > > On Tue, 17 Apr 2012 07:54:47 +0200 > > > > zeljko wrote: > > > On Monday 16 of April 2012 20:52:31 Richard Mace wrote: > > > > Hi All, > > > > > > > > When running the Lazarus "F

Re: [Lazarus] Ubuntu 12.04

2012-04-17 Thread zeljko
On Tuesday 17 of April 2012 11:30:23 zeljko wrote: > On Tuesday 17 of April 2012 11:15:34 Mattias Gaertner wrote: > > On Tue, 17 Apr 2012 07:54:47 +0200 > > > > zeljko wrote: > > > On Monday 16 of April 2012 20:52:31 Richard Mace wrote: > > > > Hi All, > > > > > > > > When running the Lazarus "F

Re: [Lazarus] Ubuntu 12.04

2012-04-17 Thread zeljko
On Tuesday 17 of April 2012 11:15:34 Mattias Gaertner wrote: > On Tue, 17 Apr 2012 07:54:47 +0200 > > zeljko wrote: > > On Monday 16 of April 2012 20:52:31 Richard Mace wrote: > > > Hi All, > > > > > > When running the Lazarus "Fixes 1_0" branch, I have to run Lazarus with > > > the following co

Re: [Lazarus] Error while compiling resources

2012-04-17 Thread Dave Coventry
Hi Mattias, Sorry, I was a bit rude (late) last night. Thanks for the help. ;) I have fpcres.exe installed in C:\lazarus\fpc\2.6.0\bin\i386-win32 I have appended this onto my Path through My Computer->Properties->Advanced->Environment Variables->System variables->Path %SystemRoot%\system32;%Sy

[Lazarus] Embedding a standard dialogue

2012-04-17 Thread Mark Morgan Lloyd
Is it possible to embed a standard dialogue in a custom form? For example, if I wanted to filter text input through a user-specified regular expression, can I set up a form containing a file-open dialog plus an edit box for the regex, or do I have to implement it from scratch? -- Mark Morgan L

Re: [Lazarus] Ubuntu 12.04

2012-04-17 Thread Mattias Gaertner
On Tue, 17 Apr 2012 07:54:47 +0200 zeljko wrote: > On Monday 16 of April 2012 20:52:31 Richard Mace wrote: > > Hi All, > > > > When running the Lazarus "Fixes 1_0" branch, I have to run Lazarus with the > > following command: > > LIBOVERLAY_SCROLLBAR=0 ./lazarus > > > > Is there a plan for Laza

Re: [Lazarus] Mantis bugid 0015390 - showmodal closing when hide called.

2012-04-17 Thread zeljko
On Tuesday 17 of April 2012 11:05:08 Justin Smyth wrote: > Yeah i will bring post a example over the next few days > > > what plat forms was it tested on ? I've tested qt, gtk2 (linux) , win32 and qt (windows) and qt under macosx. zeljko > - Original Message - > From: zeljko > To

Re: [Lazarus] Mantis bugid 0015390 - showmodal closing when hide called.

2012-04-17 Thread Justin Smyth
Yeah i will bring post a example over the next few days what plat forms was it tested on ? - Original Message - From: zeljko To: lazarus@lists.lazarus.freepascal.org ; Justin Smyth Sent: Tuesday, April 17, 2012 4:27 AM Subject: Re: [Lazarus] Mantis bugid 0015390 - showmodal c