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 is

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. For example project

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

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

[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 --

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 implemented.

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 be read as

[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

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

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 that the only

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

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 handler) apply this painting

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

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

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: lazarus@miraclec.com Sent: Thursday, October 11, 2007 3:25 PM Subject: Re:

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