Re: [lazarus] Carbon native IDE
Felipe Monteiro de Carvalho wrote: Hi, I just tested the Lazarus IDE with carbon, and it loads and looks reasonable: http://magnifier.sourceforge.net/photos/Fullscreen_1.png =) It cannot be used, because SynEdit doesn't work (lot's of bugs: no Caret, when moves around the text the new text is painted over the old text, no scrollbars, etc, etc). But, nevertheless, it's a great progress already =) :) One more ide to check, before I commit my alpha patch :( (at this moment lazarus doesn't even start) Marc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Carbon native IDE
On 12/07/07, Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote: Hi, I just tested the Lazarus IDE with carbon, and it loads and looks reasonable: http://magnifier.sourceforge.net/photos/Fullscreen_1.png =) It cannot be used, because SynEdit doesn't work (lot's of bugs: no Caret, when moves around the text the new text is painted over the old text, no scrollbars, etc, etc). But, nevertheless, it's a great progress already =) this is great news, well done to everyone involved! :) henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Carbon native IDE
On 7/12/07, Marc Weustink [EMAIL PROTECTED] wrote: One more ide to check, before I commit my alpha patch :( (at this moment lazarus doesn't even start) which alpha patch is that? thanks, -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Carbon native IDE
Nice one! :) Graeme. On 12/07/07, Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote: Hi, I just tested the Lazarus IDE with carbon, and it loads and looks reasonable: http://magnifier.sourceforge.net/photos/Fullscreen_1.png _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Carbon native IDE
Felipe Monteiro de Carvalho wrote: On 7/12/07, Marc Weustink [EMAIL PROTECTED] wrote: One more ide to check, before I commit my alpha patch :( (at this moment lazarus doesn't even start) which alpha patch is that? the one in branches/marc-lcl Marc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Carbon native IDE
On 7/12/07, Paul Ishenin [EMAIL PROTECTED] wrote: SynEdit uses ExtTextOut to fill background. To do this SynEdit passes Empty Str argument and Count = 0. As result BeginTextRender return False and no bg filling will happen. But which will be the rectangle to be filled if there is no text? The one in Rect argument? thanks, -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Carbon native IDE
On 7/12/07, Marc Weustink [EMAIL PROTECTED] wrote: the one in branches/marc-lcl What I mean it: What does it have of special? =) -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Carbon native IDE
On 7/12/07, Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote: But which will be the rectangle to be filled if there is no text? The one in Rect argument? Cool, I used the Rect argument and it works now =) I commited the change. If only I had a caret now =) Keyboard input also doesn't work on the Carbon SynEdit. -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Carbon native IDE
Felipe Monteiro de Carvalho wrote: On 7/12/07, Marc Weustink [EMAIL PROTECTED] wrote: the one in branches/marc-lcl What I mean it: What does it have of special? =) It adds alpha support to the widgetsets Marc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Carbon native IDE
Felipe Monteiro de Carvalho wrote: On 7/12/07, Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote: But which will be the rectangle to be filled if there is no text? The one in Rect argument? Cool, I used the Rect argument and it works now =) I commited the change. If only I had a caret now =) Keyboard input also doesn't work on the Carbon SynEdit. can you send me your lazarus.app bundle? I compiled the ide for carbon last night but it won't function without the bundle. Thanks, Andrew _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
RE: [lazarus] Carbon native IDE
Felipe, I believe that SynEdit is a TCustomControl descendent. TCustomControl's can't yet receive focus or keyboard input, as indicated as a bug on this page: http://wiki.lazarus.freepascal.org/Carbon_interface_internals#Bugs Thanks. -Phil -Original Message- From: Felipe Monteiro de Carvalho [mailto:[EMAIL PROTECTED] Sent: Thursday, July 12, 2007 6:39 AM To: lazarus@miraclec.com Subject: Re: [lazarus] Carbon native IDE On 7/12/07, Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote: But which will be the rectangle to be filled if there is no text? The one in Rect argument? Cool, I used the Rect argument and it works now =) I commited the change. If only I had a caret now =) Keyboard input also doesn't work on the Carbon SynEdit. -- Felipe Monteiro de Carvalho _ 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] Carbon native IDE
Same thing further down in TCarbonDeviceContext.GetTextExtentPoint. If BeginTextRender fails due to a blank string, it should probably set Size.cx and Size.cy to 0, which would probably make sense to calling code (that is, the width of the string is 0). I notified Tomas of the issue with passing a blank string to BeginTextRender last week but he's been on holiday. Thanks. -Phil -Original Message- From: Paul Ishenin [mailto:[EMAIL PROTECTED] Sent: Thursday, July 12, 2007 5:53 AM To: lazarus@miraclec.com Subject: Re: [lazarus] Carbon native IDE Felipe Monteiro de Carvalho пишет: Hi, I just tested the Lazarus IDE with carbon, and it loads and looks reasonable: http://magnifier.sourceforge.net/photos/Fullscreen_1.png =) It cannot be used, because SynEdit doesn't work (lot's of bugs: no Caret, when moves around the text the new text is painted over the old text, no scrollbars, etc, etc). But, nevertheless, it's a great progress already =) After experience with patching same issues in qt I have an idea. Felipe, can you correct TCarbonDeviceContext.ExtTextOut a bit and retest? Look at code. if not BeginTextRender(Str, Count, TextLayout) then Exit; SynEdit uses ExtTextOut to fill background. To do this SynEdit passes Empty Str argument and Count = 0. As result BeginTextRender return False and no bg filling will happen. So if (Options and ETO_OPAQUE) 0 then backgound should be filled inspite of BeginTextRendere = False. Best regards, Paul Ishenin. _ 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