Re: [Lazarus] Canvas.CopyRect query...

2008-10-27 Thread dominique
Oops I cut and pasted a typo. x:= x + xx should be x := x + ww; But that still does not fix the problem. On Mon, 27 Oct 2008 20:36:55 -0400, <[EMAIL PROTECTED]> wrote: > I'm using the following code to copy a portion of one TImage to a second > TImage > > procedure TForm1.Button2Click(Sender: T

[Lazarus] Canvas.CopyRect query...

2008-10-27 Thread dominique
I'm using the following code to copy a portion of one TImage to a second TImage procedure TForm1.Button2Click(Sender: TObject); var i, x, xx, yy, ww, hh, pos : integer; s : string; begin x := 0; for i := 1 to Length ( Edit1.Text ) do begin pos := Ord( Edit1.Text[ i ] ); s := Edi

Re: [Lazarus] Cannot install Lazarus-0.9.26/fpc-2.2.2 on Suse 10.0, help needed

2008-10-27 Thread Norman Schwirz
Bart schrieb: > Hi, > > On my rather old computer I run Suse 10.0 (as my second OS). > I tried to upgrade my existing Lazarus (0.9.24) to 0.9.26. > I downloaded the rpm's for fpc, fpc-src and lazarus, then tried: > > simenon:/home/bart/downloads # rpm -Uvh fpc-2.2.2-0.i386.rpm > fpc-src-2.2.2-081

Re: [Lazarus] Mac OS X : Certain properties not being persisted...

2008-10-27 Thread dominique
OK will do. On Tue, 28 Oct 2008 06:42:13 +0700, Paul Ishenin <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: >> Secondly, is the ImageList property if your TImageList exists on another >> form. >> For example if my MainForm has a TreeView and and empty form has an > image >> list that is sha

Re: [Lazarus] Mac OS X : Certain properties not being persisted...

2008-10-27 Thread Paul Ishenin
[EMAIL PROTECTED] wrote: > Secondly, is the ImageList property if your TImageList exists on another > form. > For example if my MainForm has a TreeView and and empty form has an image > list that is shared across several other units. > If I don't have the ImageList form open in the IDE, when I m

Re: [Lazarus] IDE: Win32: MouseWheel Scrolling (SynEdit)

2008-10-27 Thread Martin Friebe
Christian Budde wrote: > Hi Martin > >> This is probably cross all OS. I am not sure what the intended >> behaviour is. >> >> I guess that it is correct to take the action on Mouse-up, but it may be >> sensible to limit it on cases where ctrl was hold down during the >> mouse-down event. IMH

Re: [Lazarus] Carbon: PostMessage/SendMessage

2008-10-27 Thread mitya boyarintsev
beware! if you're going to use Carbon sendevent (sendmessage), than you should keep in mind, that it acts different from Windows thread message. Win sendmessage blocks the sending thread until recieving threads proccess the messages. Of cause, if thread sends a message to itself (or a window in th

Re: [Lazarus] IDE: Win32: MouseWheel Scrolling (SynEdit)

2008-10-27 Thread Christian Budde
Hi Martin > This is probably cross all OS. I am not sure what the intended > behaviour is. > > I guess that it is correct to take the action on Mouse-up, but it may be > sensible to limit it on cases where ctrl was hold down during the > mouse-down event. IMHO in that case, you could either say

[Lazarus] Cannot install Lazarus-0.9.26/fpc-2.2.2 on Suse 10.0, help needed

2008-10-27 Thread Bart
Hi, On my rather old computer I run Suse 10.0 (as my second OS). I tried to upgrade my existing Lazarus (0.9.24) to 0.9.26. I downloaded the rpm's for fpc, fpc-src and lazarus, then tried: simenon:/home/bart/downloads # rpm -Uvh fpc-2.2.2-0.i386.rpm fpc-src-2.2.2-081004.i386.rpm lazarus-0.9.26-0.

Re: [Lazarus] IDE: Win32: MouseWheel Scrolling (SynEdit)

2008-10-27 Thread Martin Friebe
Christian Budde wrote: >>> If I could help out to solve this issue I'd be glad to 'fix' some more >>> (like the annoying Shift+Click, that triggers slightly wrong and makes >>> me continuously enter the wrong unit). >>> >> Can you give an example what exactly goes wrong with the shift

[Lazarus] Mac OS X : Certain properties not being persisted...

2008-10-27 Thread dominique
Within the Carbon IDE, I've noticed certain properties are not being persisted consistently. The first is the ItemHeight property of the TListBox. I've had to ammend the *.lfm file to make sure things work. Of course as soon as I change anything on the form, via the IDE, that value is lost and I

Re: [Lazarus] IDE: Win32: MouseWheel Scrolling (SynEdit)

2008-10-27 Thread Christian Budde
Hi Martin > I don't remember all of it, and it's Windows only (so you must find the > other OS yourself) > lcl\interfaces\win32\win32winapi.inc line 180 > The Msg send to Synedit is WM_HScroll or something like this. It is also > worth checking i f the Msg goes th Synedit or the Scrollbar > > Goo

Re: [Lazarus] Mac OS X : How to get my app to show proper Short-Cuts...

2008-10-27 Thread dominique
Ah, for some weird reason I thought it needed API calls. It is now all set via the IDE. Thanks again for the clarification. Dominique. On Mon, 27 Oct 2008 09:24:34 +0100, "EarMaster - Bent Olsen" <[EMAIL PROTECTED]> wrote: > Hi, > > Via LCL - by setting ShortCut properties for menus and actio

Re: [Lazarus] Rotating a bitmap

2008-10-27 Thread Michael Van Canneyt
On Mon, 27 Oct 2008, Luiz Americo Pereira Camara wrote: > Michael Van Canneyt escreveu: > > All I need is to display a text at a 90° angle. Since GTK 1 doesn't > > support rotated text (hint hint), I draw the text on a bitmap, rotate > > that 90 degrees and display the bitmap, when I detect GTK

Re: [Lazarus] Rotating a bitmap

2008-10-27 Thread Luiz Americo Pereira Camara
Michael Van Canneyt escreveu: > All I need is to display a text at a 90° angle. Since GTK 1 doesn't > support rotated text (hint hint), I draw the text on a bitmap, rotate > that 90 degrees and display the bitmap, when I detect GTK1 as a widget > set :-) > Take a look at the unit i pointed.

Re: [Lazarus] Rotating a bitmap

2008-10-27 Thread Michael Van Canneyt
On Mon, 27 Oct 2008, Reenen Laurie wrote: > I had a similar problem... Eventually I moved on to GLscene... > > Though obviously it's probably not at all what you want to do, but it's > pretty easy to rotate things there. :-) > > obj.rollangle := obj.rollangle + 90; > > You can use an orthogon

Re: [Lazarus] Rotating a bitmap

2008-10-27 Thread Reenen Laurie
I had a similar problem... Eventually I moved on to GLscene... Though obviously it's probably not at all what you want to do, but it's pretty easy to rotate things there. :-) obj.rollangle := obj.rollangle + 90; You can use an orthogonal camera if you don't want / need the perspective. You can

Re: [Lazarus] Rotating a bitmap

2008-10-27 Thread Michael Van Canneyt
On Mon, 27 Oct 2008, Vincent Snijders wrote: > 2008/10/27 Michael Van Canneyt <[EMAIL PROTECTED]>: > > Hi, > > > > How can I rotate a bitmap 90° counterclockwise ? > > > > Alternatively, how can I read/write the pixels in the bitmap ? > > I found ReadChannels/WriteChannels from RawImage, but the

Re: [Lazarus] Rotating a bitmap

2008-10-27 Thread Michael Van Canneyt
On Mon, 27 Oct 2008, Graeme Geldenhuys wrote: > 2008/10/27 Michael Van Canneyt <[EMAIL PROTECTED]>: > > Hi, > > > > How can I rotate a bitmap 90° counterclockwise ? > > > To save you the trouble... :-) > > http://www.efg2.com/Lab/ImageProcessing/RotateScanline.htm > http://www.delphi-central.

Re: [Lazarus] IDE: Win32: MouseWheel Scrolling (SynEdit)

2008-10-27 Thread Martin Friebe
Christian Budde wrote: > Hello, > > I just worked a bit with lazarus after some month. It's still quite > impressive how good it works. On the other hand it's sad that so many > things do not work yet. Especially in Win32 IMHO it's still easier to > work in Delphi and only switch to Lazarus when

Re: [Lazarus] Rotating a bitmap

2008-10-27 Thread Vincent Snijders
2008/10/27 Michael Van Canneyt <[EMAIL PROTECTED]>: > Hi, > > How can I rotate a bitmap 90° counterclockwise ? > > Alternatively, how can I read/write the pixels in the bitmap ? > I found ReadChannels/WriteChannels from RawImage, but they > use a strange kind of position object which I don't unders

Re: [Lazarus] Rotating a bitmap

2008-10-27 Thread Vincent Snijders
2008/10/27 Michael Van Canneyt <[EMAIL PROTECTED]>: > Hi, > > How can I rotate a bitmap 90° counterclockwise ? > > Alternatively, how can I read/write the pixels in the bitmap ? > I found ReadChannels/WriteChannels from RawImage, but they > use a strange kind of position object which I don't unders

Re: [Lazarus] Rotating a bitmap

2008-10-27 Thread Graeme Geldenhuys
2008/10/27 Michael Van Canneyt <[EMAIL PROTECTED]>: > Hi, > > How can I rotate a bitmap 90° counterclockwise ? Wouldn't a rotation matrix do the trick? I remember the old fpGUI code (gfxbase.pas) unit used a 3x3 matrix to do translations and scalations calculations. I would imagine the same could

Re: [Lazarus] Rotating a bitmap

2008-10-27 Thread Graeme Geldenhuys
2008/10/27 Michael Van Canneyt <[EMAIL PROTECTED]>: > Hi, > > How can I rotate a bitmap 90° counterclockwise ? To save you the trouble... :-) http://www.efg2.com/Lab/ImageProcessing/RotateScanline.htm http://www.delphi-central.com/tutorials/RotateBitmapBitBlt.aspx http://delphi.about.com/cs/adpt

[Lazarus] Rotating a bitmap

2008-10-27 Thread Michael Van Canneyt
Hi, How can I rotate a bitmap 90° counterclockwise ? Alternatively, how can I read/write the pixels in the bitmap ? I found ReadChannels/WriteChannels from RawImage, but they use a strange kind of position object which I don't understand :( (an alternate answer is to implement rotated fonts in

Re: [Lazarus] Carbon: PostMessage/SendMessage

2008-10-27 Thread EarMaster - Bent Olsen
Hi, Just a follow up - I've compiled a small test program with a thread and PostMessage for the client installation, and it's working as it should, so nothing wrong with posting messages. Back to testing... > -Original Message- > From: EarMaster - Bent Olsen [mailto:[EMAIL PROTECTED] > S

Re: [Lazarus] Mac OS X : How to get my app to show proper Short-Cuts...

2008-10-27 Thread EarMaster - Bent Olsen
Hi, Via LCL - by setting ShortCut properties for menus and actions with ssMeta in Carbon, or ssCtrl in Win32. Hope this helps, Normann > Hi Normann, > Can you explain what you mean by dynamically? Do you mean via Carbon > API > calls or LCL settings? > > Dominique. > > On Tue, 21 Oct 2008 09