Re: [lazarus] Drawing Strategy in Carbon Lazarus

2007-10-11 Thread James Chandler Jr
On Oct 11, 2007, at 6:25 PM, Mattias Gaertner wrote: On Thu, 11 Oct 2007 08:53:35 -0700 Peter Gannon <[EMAIL PROTECTED]> wrote: [snip] Yes, hopefully some solution will arise to allow direct drawing to the screen outside of paint events. Most programs do some kind of direct painting at some sta

Re: [lazarus] Drawing Strategy in Carbon Lazarus

2007-10-11 Thread Peter Gannon
Most programs? Can you give some examples? OK, I'll change it to "some programs" draw directly to the screen (outside of Paint methods). Peter - Original Message - From: "Mattias Gaertner" <[EMAIL PROTECTED]> To: Sent: Thursday, October 11, 2007 3:25 PM Subject: Re: [lazarus] Draw

Re: [lazarus] Drawing Strategy in Carbon Lazarus

2007-10-11 Thread Luiz Americo Pereira Camara
James Chandler Jr wrote: Hi Giuliano The Carbon Lazarus works great with invalidate and the OnPaint events, as far as I've been able to tell. Mac double-buffering on the screen well-guarantees no flicker. And it is true that invalidate can be called multiple times before the event loop gets a

Re: [lazarus] Drawing Strategy in Carbon Lazarus

2007-10-11 Thread James Chandler Jr
On Oct 11, 2007, at 10:34 AM, Giuliano Colla wrote: If Lazarus is intended to be Delphi compatible, Delphi provides for Tcontrol descendants (and also for a number of other of visual objects not descending from TControl, such as TPanel) an Invalidate method which, according the manuals "c

Re: [lazarus] Drawing Strategy in Carbon Lazarus

2007-10-11 Thread Mattias Gaertner
On Thu, 11 Oct 2007 08:53:35 -0700 Peter Gannon <[EMAIL PROTECTED]> wrote: > >>> So some workarounds should be done to implement painting outside > >>> paint > event. > > Possible workarounds: > - perform all painting outside paint event to special image and > later (in paint event ha

[lazarus] Display line numbers in run time error

2007-10-11 Thread Alain Michaud
Hi, this is a novice question again. sorry. I get the following error in a console application: An unhandled exception occured at $BFF000 EdivZero : division by zero Now the $100 question: What line number is it? I have tried to set the (-gl) option in: lazarus/compiler options/linker

Re: [lazarus] Drawing Strategy in Carbon Lazarus

2007-10-11 Thread Peter Gannon
So some workarounds should be done to implement painting outside paint event. Possible workarounds: - perform all painting outside paint event to special image and later (in paint event handler) apply this painting to widget window - if painting outside paint event is happen then a) request wi

Re: [lazarus] Drawing Strategy in Carbon Lazarus

2007-10-11 Thread Giuliano Colla
Paul Ishenin ha scritto: Adriaan van Os wrote: >>> LCL supports drawing only on paint event. Yes, 'arbitrary drawing' is >>> possible with win32 and gtk widgetsets, but not with carbon and qt. >>> The only legal way for you is to move all that Canvas calls to OnPaint. >> >> I assume th

Re: [lazarus] Drawing Strategy in Carbon Lazarus

2007-10-11 Thread James Chandler Jr
On Oct 11, 2007, at 4:49 AM, Adriaan van Os wrote: Jim, is this something we need ? Not immediately. It isn't a stop-the-presses issue. I modified the code to move the 'playback indicator' SpeedButton to track mouse movement, which is good enough for right now. But the playback indicato

[lazarus] Any idea why this is going wrong ?

2007-10-11 Thread A.J. Venter
Hi, I'm trying to write a really simple SOAP client, to send SMS's with. At least, it's really simple in THEORY. My code is below, I checked it - in string the content is perfect, and it is posting. But it kept failing, so enventualy I sniffed it, it's POSTING it as garbage - it looks like ansi

Re: [lazarus] Drawing Strategy in Carbon Lazarus

2007-10-11 Thread Paul Ishenin
Adriaan van Os wrote: >>> LCL supports drawing only on paint event. Yes, 'arbitrary drawing' is >>> possible with win32 and gtk widgetsets, but not with carbon and qt. >>> The only legal way for you is to move all that Canvas calls to OnPaint. >> >> I assume that "the only legal way" is to

Re: [lazarus] Drawing Strategy in Carbon Lazarus

2007-10-11 Thread Adriaan van Os
>>> LCL supports drawing only on paint event. Yes, 'arbitrary drawing' is >>> possible with win32 and gtk widgetsets, but not with carbon and qt. >>> The only legal way for you is to move all that Canvas calls to OnPaint. >> >> I assume that "the only legal way" is to be read as "currently not >>

Re: [lazarus] Synedit syntax highlight

2007-10-11 Thread Mattias Gaertner
On Thu, 11 Oct 2007 09:41:47 +0200 ik <[EMAIL PROTECTED]> wrote: > Hello, > > Is there a guide or example with comments that explains how to create > syntax highlight to SynEdit ? AFAIK: no guide, but there are lots of examples. > And does SynEdit support multiple syntax highlight in one sour

[lazarus] Synedit syntax highlight

2007-10-11 Thread ik
Hello, Is there a guide or example with comments that explains how to create syntax highlight to SynEdit ? And does SynEdit support multiple syntax highlight in one source ? That is for example, PHP with CSS Javascript and HTML all in one syntax highlighter ? Thanks, Ido -- http://ik.homelinu

Re: [lazarus] Drawing Strategy in Carbon Lazarus

2007-10-11 Thread Paul Ishenin
Adriaan van Os wrote: Paul Ishenin wrote: James Chandler Jr wrote: LCL supports drawing only on paint event. Yes, 'arbitrary drawing' is possible with win32 and gtk widgetsets, but not with carbon and qt. The only legal way for you is to move all that Canvas calls to OnPaint. I assume that

Re: [lazarus] Drawing Strategy in Carbon Lazarus

2007-10-11 Thread Vincent Snijders
Adriaan van Os schreef: Paul Ishenin wrote: James Chandler Jr wrote: LCL supports drawing only on paint event. Yes, 'arbitrary drawing' is possible with win32 and gtk widgetsets, but not with carbon and qt. The only legal way for you is to move all that Canvas calls to OnPaint. I assume th

Re: [lazarus] More icons

2007-10-11 Thread wile64
2007/10/11, Paul Ishenin <[EMAIL PROTECTED]>: > > Paul Ishenin пишет: > > wile64 wrote: > >> > >> I commited them in 12400, but I am not very happy. Project option > and > >> Project inspector look as spot :( Maybe you can play with colors > >> or with > >> size of project glyph. Fo

Re: [lazarus] Drawing Strategy in Carbon Lazarus

2007-10-11 Thread Adriaan van Os
Paul Ishenin wrote: James Chandler Jr wrote: LCL supports drawing only on paint event. Yes, 'arbitrary drawing' is possible with win32 and gtk widgetsets, but not with carbon and qt. The only legal way for you is to move all that Canvas calls to OnPaint. I assume that "the only legal way" i