RE: [lazarus] String functions on non latin text

2006-02-27 Thread Panagiotis Sidiropoulos
>so if there is something wrong with the sample I thought it should >be gtk2 and the only problem I found was the position returned >mismatched visually the substring I tried to find a relation between results but there is no any kind of pattern, for example, for the first character give 1, the

RE: [lazarus] String functions on non latin text

2006-02-27 Thread Panagiotis Sidiropoulos
>My guess, why a simple Pos does not work for Panagiotis, >is a either a FPC bug FPC is 2.0.2 downloaded a few days ago from a German ftp server directed through www.freepascal.org. >or a gtk1 bug with greek characters. I'm compiling for GTK2. Panagiotis -Original Message- From: Mat

Re: [lazarus] String functions on non latin text

2006-02-27 Thread Vincent Snijders
Panagiotis Sidiropoulos wrote: It returns 41. Seems to be correct. I'm using fpc 2.0.2. Greek k suggested when sample project I up, is in position 21 in the string, not 41. When using sample project, I get following relults while search for each character in "String to search in" edit box: - 1

RE: [lazarus] String functions on non latin text

2006-02-27 Thread Panagiotis Sidiropoulos
>result := Pos(UTF8Decode(SubStr), UTF8Decode(Str)); >seems to work, I think Pos(UTF8String,UTF8String) is yet to be implemented. UTF8Decode return "?" for me for each Greek character (non latin). Is it normal? Should I check something else but my code? Panagiotis -Original Message- From

RE: [lazarus] String functions on non latin text

2006-02-27 Thread Panagiotis Sidiropoulos
>It returns 41. Seems to be correct. >I'm using fpc 2.0.2. Greek k suggested when sample project I up, is in position 21 in the string, not 41. When using sample project, I get following relults while search for each character in "String to search in" edit box: - 1st: position: 1 - correct - 2nd:

Re: [lazarus] TListView selection

2006-02-27 Thread George Lober
George Lober wrote: Vincent Snijders wrote: [EMAIL PROTECTED] wrote: George, This feature does not work under win32. I have attached a patch that should fix this. I looked at the patch I don't understand the part in win32wscustomlistview.pas. You add SetProperty(TListView(AWinControl

Re: [lazarus] String functions on non latin text

2006-02-27 Thread Jesus Reyes
- Original Message - From: "Mattias Gaertner" <[EMAIL PROTECTED]> To: Sent: Monday, February 27, 2006 2:45 PM Subject: Re: [lazarus] String functions on non latin text > On Mon, 27 Feb 2006 13:41:13 -0600 (CST) > Jesus Reyes <[EMAIL PROTECTED]> wrote: > > > > > --- Panagiotis Sidiro

Re: [lazarus] GTK2 SetFont Patch - final (for now)

2006-02-27 Thread Marc Santhoff
Am Dienstag, den 28.02.2006, 04:26 +0100 schrieb Mattias Gaertner: > I added the code to the SetWidgetColor/SetWidgetFont functions. > TEdit does not like to change its color, but at least its font size. > I can confirm, that the font color is ignored during handle creation. Maybe > this must be s

Re: [lazarus] GTK2 SetFont Patch - final (for now)

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 23:44:05 +0200 "A.J. Venter" <[EMAIL PROTECTED]> wrote: > Right then, I tested this a bit and it seems to work pretty well unless I > am still missing something, this version ALSO includes font.color > support. > > As a whole this should probably ALL be considered experimenta

Re: [lazarus] Changing SynEdit

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 19:03:07 -0700 L505 <[EMAIL PROTECTED]> wrote: > > Basically, yes. But as a matter of fact, what I was thinking about it > > to stop wasting my time developing for Delphi and finally shift my > > focus to Lazarus... > > How does M.H. and the rest of the Synedit developers feel

Re: [lazarus] Changing SynEdit

2006-02-27 Thread L505
> Basically, yes. But as a matter of fact, what I was thinking about it > to stop wasting my time developing for Delphi and finally shift my > focus to Lazarus... How does M.H. and the rest of the Synedit developers feel? I have Delphi 5 too btw. Some of the ifdefs might even be able to be taken

Re: [lazarus] Changing SynEdit

2006-02-27 Thread Flávio Etrusco
> > > is there some kind of "official maintainer" for the SynEdit component > > > in Lazarus? I'd like to discuss some changes that were to the original > > > SynEdit code and some new features (and refactors and restructuing ;-) > > > I'd like to play with... > > > > > > Best regards, > > > Flávio

[lazarus] GTK2 SetFont Patch - final (for now)

2006-02-27 Thread A.J. Venter
Right then, I tested this a bit and it seems to work pretty well unless I am still missing something, this version ALSO includes font.color support. As a whole this should probably ALL be considered experimental code but it (probably) won't crash your apps. At least I believe it provides a good

Re: [lazarus] String functions on non latin text

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 13:41:13 -0600 (CST) Jesus Reyes <[EMAIL PROTECTED]> wrote: > > --- Panagiotis Sidiropoulos <[EMAIL PROTECTED]> escribió: > > > Please download sample project at: > > - www.magentadb.gr/ftp/pos-sample.zip > > > > Panagiotis > > > > result := Pos(UTF8Decode(SubStr), UTF8De

Re: GTK2 Font patch - build 2

2006-02-27 Thread A.J. Venter
This build fixes the TControl descendants both design and runtime (and I tested it, works lovely with truetype fonts). Right now though the TControl's STILL need to have their fontname explicitely set, intriguingly this doesn't affect designtime, only runtime (odd!) TLabel still works ONLY at d

Re: [lazarus] graphical shapes library or component

2006-02-27 Thread Michael Van Canneyt
On Mon, 27 Feb 2006, Marc Santhoff wrote: > Hi, > > is anoyone aware of a library or a (set of) componet(s) for pitchforking > around some shapes, rectangles, elipses and the like and for creating > connectors between this shapes? > > Of course it should be easily usable with fpc and lazarus. I'

[lazarus] New Lazarus addon - Procedure List

2006-02-27 Thread Graeme Geldenhuys
Hi The procedure list enables you to view a list of Free Pascal / Lazarus procedures in the current unit and quickly jump to the implementation of a given procedure. Include files are also supported. This is the first of a few GExpert addons I want to convert to Lazarus. For more information and

RE: [lazarus] String functions on non latin text

2006-02-27 Thread Jesus Reyes
--- Panagiotis Sidiropoulos <[EMAIL PROTECTED]> escribió: > Please download sample project at: > - www.magentadb.gr/ftp/pos-sample.zip > > Panagiotis > result := Pos(UTF8Decode(SubStr), UTF8Decode(Str)); seems to work, I think Pos(UTF8String,UTF8String) is yet to be implemented. Jesus Reyes

Re: [lazarus] transparent forms

2006-02-27 Thread xpete
sorry for the late reply. I have been doing some test with this code: procedure TForm1.FormCreate(Sender: TObject); var Rgn : HRGN; begin Rgn := CreateEllipticRgn(1,1,217,217); SetWindowRgn(Handle, Rgn, True); end; And it works in Lazarus if i use unit Windows i

[lazarus] graphical shapes library or component

2006-02-27 Thread Marc Santhoff
Hi, is anoyone aware of a library or a (set of) componet(s) for pitchforking around some shapes, rectangles, elipses and the like and for creating connectors between this shapes? Of course it should be easily usable with fpc and lazarus. I'm searching for the basic things making up a graphical ed

Re: [lazarus] compile lazarus on opensuse 10.0

2006-02-27 Thread Eric Chapman
> thank you for the info. > I will try to find a gtk1-dev-package for suse 10.0 then. > Any hints where to find it (suse 10.0 users)? The package you want is called gtk-devel and it's on any of the normal SuSE mirrors or the installation DVD. Eric ___

Re: [lazarus] Sqlite component cleanup

2006-02-27 Thread Vincent Snijders
Luiz Americo wrote: The files sqlitedslaz.pas, sqlitedslaz.lpk, sqliteds.lrs, tableeditorform.pas, tableeditorform.lrs can be removed from the components/sqlite subversion repository since they are not used anymore and can lead to user confusion. Thanks for the information. I removed them in

Re: GTK2 Font patch - build 1

2006-02-27 Thread A.J. Venter
Drat, should have looked FIRST, it added all those Makefile stuff again. The attached one is cleaned up - just the REAL changes this time. On Monday 27 February 2006 20:21, A.J. Venter wrote: > This is very nearly ready, but it still has two bugs I don't know how to > fix - hopefully though it will

[lazarus] GTK2 Font patch - build 1

2006-02-27 Thread A.J. Venter
This is very nearly ready, but it still has two bugs I don't know how to fix - hopefully though it will provide enough of a basis that somebody can help me finish it off. Bugs: 1) Tedit doesn't display unless the font is EXPLICITELY set (e.g. my current catch code doesn't seem to work for it) 2

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 19:59:02 +0200 "A.J. Venter" <[EMAIL PROTECTED]> wrote: > On Monday 27 February 2006 18:51, Mattias Gaertner wrote: > >   font_desc:=pango_font_description_from_string(PChar(PangoDescStr)); > >   gtk_widget_modify_font(AWidget,font_desc); > >   pango_font_description_free(font_

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread A.J. Venter
On Monday 27 February 2006 18:51, Mattias Gaertner wrote: >   font_desc:=pango_font_description_from_string(PChar(PangoDescStr)); >   gtk_widget_modify_font(AWidget,font_desc); >   pango_font_description_free(font_desc);           Right my patch is ALL BUT complete, one thing is missing though, T

Re: [lazarus] compile lazarus on opensuse 10.0

2006-02-27 Thread Uwe Grauer
Mattias Gaertner wrote: > On Mon, 27 Feb 2006 15:24:50 +0100 > Uwe Grauer <[EMAIL PROTECTED]> wrote: > >> Do i really need to have a gtk1-dev-package to compile lazarus? >> Opensuse has full gtk2-support. I don't want to mess up my system >> just to compile lazarus. >> What can i do? > > gtk1 and

[lazarus] packages, more packages...

2006-02-27 Thread Alain Michaud
Hi, may be I am too naive, but it seems that most questions about installing Lazarus has to do with selectiong the right packages. May be there should be a table published on the web page that would give the list of the necessary packages. May be it is impossible to write such list. I do not

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread A.J. Venter
On Monday 27 February 2006 18:51, Mattias Gaertner wrote: >   font_desc:=pango_font_description_from_string(PChar(PangoDescStr)); >   gtk_widget_modify_font(AWidget,font_desc); >   pango_font_description_free(font_desc);               > > Works. Thanks, that gives me enough of a base to start clon

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 18:47:56 +0200 "A.J. Venter" <[EMAIL PROTECTED]> wrote: > > > Correct. > > There must be already such a function, but I'm not sure if it works > > good. There are a lot of font issues in the gtk2 interface. > Well if it's there, it's not there under the same name :) > > > > >

Re: [lazarus] transparent forms

2006-02-27 Thread Felipe Monteiro de Carvalho
On 2/27/06, Micha Nelissen <[EMAIL PROTECTED]> wrote: > I think SetWindowRgn makes part of a window transparent (the parts not > in the region). For example, winamp can do it: have oddly shaped sizes. well ... good to know new things =) I did not know that such API function existed. Maybe it can

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread A.J. Venter
> > try > > NewFontDescription := PPangoFontDescription(PangoDescStr); > > AWidget.Modify_Font(NewFontDescription); > > I will take a look ... > Mucios Gracias Amigo. A.J. -- A.J. Venter Chief Software Architect OpenLab International www.getopenlab.com www.silentcoder.co.za +27

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 18:28:04 +0200 "A.J. Venter" <[EMAIL PROTECTED]> wrote: > > > > > > > If this is possible, then this is *the* way to go. > > > > At least I know it is possible for gtk2 - I implemented dynamic fonts in > > one of my (C++, unfortunately) programs. The documentation seems to tal

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread A.J. Venter
> Correct. > There must be already such a function, but I'm not sure if it works good. > There are a lot of font issues in the gtk2 interface. Well if it's there, it's not there under the same name :) > > > So the RIGHT way I believe is to enable the method, presumably by > > descending PGTKWidge

Re: [lazarus] transparent forms

2006-02-27 Thread Den Jean
On Monday 27 February 2006 03:38 am, Micha Nelissen wrote: > I think SetWindowRgn makes part of a window transparent (the parts not > in the region). For example, winamp can do it: have oddly shaped sizes. > Here is a sample of using regions with FPC/Qt4 to get oddly shaped sizes. http://users.pan

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 18:28:04 +0200 "A.J. Venter" <[EMAIL PROTECTED]> wrote: > > > > > > > If this is possible, then this is *the* way to go. > > > > At least I know it is possible for gtk2 - I implemented dynamic fonts in > > one of my (C++, unfortunately) programs. The documentation seems to tal

Re: [lazarus] transparent forms

2006-02-27 Thread Christian Iversen
On Monday 27 February 2006 17:15, Flávio Etrusco wrote: > On 2/27/06, Christian Iversen <[EMAIL PROTECTED]> wrote: > > On Monday 27 February 2006 09:38, Micha Nelissen wrote: > > > Felipe Monteiro de Carvalho wrote: > > > > What really happens with TransparentColor of TForm is that it takes a > > >

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 16:42:06 +0200 "A.J. Venter" <[EMAIL PROTECTED]> wrote: > Well I did some research and the GTK way of doing it is really very > simple, except that the method (modify_font) doesn´t seem to exist in > PGTKWidget which I surmise is because the definition of THAT is taken > from

Re: Why is this throwing an exception - ANSWER

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 18:24:09 +0200 "A.J. Venter" <[EMAIL PROTECTED]> wrote: > On Monday 27 February 2006 18:19, Vincent Snijders wrote: > > A.J. Venter wrote: > > >>I applied only the ippanel change. > > > > > > As far as I know that should have been the only one anyway though it > > > seems the t

Re: [lazarus] TSqlite3Dataset

2006-02-27 Thread Luiz Americo Pereira Camara
Bogusław Brandys escreveu: I uploaded a version of sqlite3ds that retrieves the data from the database when Cancel is called. The code is commented to avoid future incompatibilities since the correct approach is to revert to the last Posted value which demands more changes/testing. Anyway it's

Re: [lazarus] Changing SynEdit

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 09:24:34 -0700 L505 <[EMAIL PROTECTED]> wrote: > > is there some kind of "official maintainer" for the SynEdit component > > in Lazarus? I'd like to discuss some changes that were to the original > > SynEdit code and some new features (and refactors and restructuing ;-) > > I'd

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread A.J. Venter
> > > > If this is possible, then this is *the* way to go. > > At least I know it is possible for gtk2 - I implemented dynamic fonts in > one of my (C++, unfortunately) programs. The documentation seems to talk > about the font code as something New and Improved (tm), so I'd say it's > quite hard

Re: Why is this throwing an exception - ANSWER

2006-02-27 Thread A.J. Venter
On Monday 27 February 2006 18:19, Vincent Snijders wrote: > A.J. Venter wrote: > >>I applied only the ippanel change. > > > > As far as I know that should have been the only one anyway though it > > seems the tutorial on patch creation should be expanded to include "make > > clean" before creating

Re: Why is this throwing an exception - ANSWER

2006-02-27 Thread Vincent Snijders
A.J. Venter wrote: I applied only the ippanel change. As far as I know that should have been the only one anyway though it seems the tutorial on patch creation should be expanded to include "make clean" before creating a patch. That would not have helped in this case, because most of you

Re: [lazarus] Changing SynEdit

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 13:05:23 -0300 "Flávio Etrusco" <[EMAIL PROTECTED]> wrote: > Hi all, > > is there some kind of "official maintainer" for the SynEdit component > in Lazarus? I'd like to discuss some changes that were to the original > SynEdit code and some new features (and refactors and restr

Re: [lazarus] Changing SynEdit

2006-02-27 Thread L505
> is there some kind of "official maintainer" for the SynEdit component > in Lazarus? I'd like to discuss some changes that were to the original > SynEdit code and some new features (and refactors and restructuing ;-) > I'd like to play with... > > Best regards, > Flávio I'm not the maintainer a

Re: [lazarus] transparent forms

2006-02-27 Thread Flávio Etrusco
On 2/27/06, Christian Iversen <[EMAIL PROTECTED]> wrote: > On Monday 27 February 2006 09:38, Micha Nelissen wrote: > > Felipe Monteiro de Carvalho wrote: > > > What really happens with TransparentColor of TForm is that it takes a > > > screenshot of the screen, probably before the application is lo

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread Christian Iversen
On Monday 27 February 2006 09:47, Micha Nelissen wrote: > A.J. Venter wrote: > > Hi all, > > Probably the most requested feature for tappytux is that the entry line > > where users type answers needs to be bigger (I mean huge) and prettier, > > using something like Comic Sans font at size 32 should

Re: [lazarus] transparent forms

2006-02-27 Thread Christian Iversen
On Monday 27 February 2006 09:38, Micha Nelissen wrote: > Felipe Monteiro de Carvalho wrote: > > What really happens with TransparentColor of TForm is that it takes a > > screenshot of the screen, probably before the application is loaded, > > so it doesn't appear on the screenshot, and the first t

[lazarus] Changing SynEdit

2006-02-27 Thread Flávio Etrusco
Hi all, is there some kind of "official maintainer" for the SynEdit component in Lazarus? I'd like to discuss some changes that were to the original SynEdit code and some new features (and refactors and restructuing ;-) I'd like to play with... Best regards, Flávio __

Re: [lazarus] TSqlite3Dataset

2006-02-27 Thread Bogusław Brandys
Luiz Americo Pereira Camara wrote: Bogusław Brandys escreveu: But why Post is not working for TSqlite3Dataset ? ApplyUpdates seems to be rather for remote server (Delphi help : "Changes made to the client dataset’s local copy of data are not sent to the application server until the client ap

Re: [lazarus] TSqlite3Dataset

2006-02-27 Thread Luiz Americo Pereira Camara
Bogusław Brandys escreveu: But why Post is not working for TSqlite3Dataset ? ApplyUpdates seems to be rather for remote server (Delphi help : "Changes made to the client dataset’s local copy of data are not sent to the application server until the client application calls the ApplyUpdates met

Re: [lazarus] compile lazarus on opensuse 10.0

2006-02-27 Thread Uwe Grauer
Mattias Gaertner wrote: > On Mon, 27 Feb 2006 15:24:50 +0100 > Uwe Grauer <[EMAIL PROTECTED]> wrote: > >> Do i really need to have a gtk1-dev-package to compile lazarus? >> Opensuse has full gtk2-support. I don't want to mess up my system >> just to compile lazarus. >> What can i do? > > gtk1 and

Re: [lazarus] TSqlite3Dataset

2006-02-27 Thread Luiz Americo Pereira Camara
Michael Van Canneyt escreveu: On Sun, 26 Feb 2006, Luiz Americo Pereira Camara wrote: Michael Van Canneyt escreveu: Maybe it's easier to revert your component to SQLDb. Probably not. As i said is just a question of time. The design is already on my mind and the implementation

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread A.J. Venter
Well I did some research and the GTK way of doing it is really very simple, except that the method (modify_font) doesn´t seem to exist in PGTKWidget which I surmise is because the definition of THAT is taken from the GTK1 definition. According to the GTK2 docs, all GTK2 widgets derive from GTKWi

Re: [lazarus] Listview scroll selected item into view

2006-02-27 Thread Graeme Geldenhuys
Thanks Marc, it was MakeVisible... G. On 2/27/06, Marc Weustink <[EMAIL PROTECTED]> wrote: > Item.EnsureVisible (or was it called Item.MakeVisible ?) > > Marc _ To unsubscribe: mail [EMAIL PROTECTED] with "uns

Re: [lazarus] compile lazarus on opensuse 10.0

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 15:24:50 +0100 Uwe Grauer <[EMAIL PROTECTED]> wrote: > Do i really need to have a gtk1-dev-package to compile lazarus? > Opensuse has full gtk2-support. I don't want to mess up my system > just to compile lazarus. > What can i do? gtk1 and gtk2 lives happily together. They don

Re: [lazarus] String functions on non latin text

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 16:08:52 +0200 "Panagiotis Sidiropoulos" <[EMAIL PROTECTED]> wrote: > Please download sample project at: > - www.magentadb.gr/ftp/pos-sample.zip It returns 41. Seems to be correct. I'm using fpc 2.0.2. Mattias > > Panagiotis > > > -Original Message- > From: Mat

[lazarus] compile lazarus on opensuse 10.0

2006-02-27 Thread Uwe Grauer
Do i really need to have a gtk1-dev-package to compile lazarus? Opensuse has full gtk2-support. I don't want to mess up my system just to compile lazarus. What can i do? Tanks, Uwe _ To unsubscribe: mail [EMAIL PROTECTED

RE: [lazarus] String functions on non latin text

2006-02-27 Thread Panagiotis Sidiropoulos
Please download sample project at: - www.magentadb.gr/ftp/pos-sample.zip Panagiotis -Original Message- From: Mattias Gaertner [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 3:10 PM To: lazarus@miraclec.com Subject: Re: [lazarus] String functions on non latin text On Mon, 27

Re: [lazarus] Listview scroll selected item into view

2006-02-27 Thread Marc Weustink
Graeme Geldenhuys wrote: Hi, Anybody know how I can scroll the selected item of a TListview into the viewable area. eg: I have 30 items in my Listview (style is Report). Currently the listview shows the first 5 items in the list. I programatically set the FocusedItem and SelectedItem to th

Re: [lazarus] CodeTools - jump to method I loose focus

2006-02-27 Thread Michael Van Canneyt
On Mon, 27 Feb 2006, Graeme Geldenhuys wrote: I will place it on my server tonight and post the link here... After a bit of public testing, and it being useful enough, maybe someone could add it to the Lazarus\Components folder. I am in the process on converting a few of the GExperts addons t

Re: [lazarus] CodeTools - jump to method I loose focus

2006-02-27 Thread Graeme Geldenhuys
I will place it on my server tonight and post the link here... After a bit of public testing, and it being useful enough, maybe someone could add it to the Lazarus\Components folder. I am in the process on converting a few of the GExperts addons to Lazarus. This one is the first and a few more wi

[lazarus] Listview scroll selected item into view

2006-02-27 Thread Graeme Geldenhuys
Hi, Anybody know how I can scroll the selected item of a TListview into the viewable area. eg: I have 30 items in my Listview (style is Report). Currently the listview shows the first 5 items in the list. I programatically set the FocusedItem and SelectedItem to the 20th item. Now I want t

Re: [lazarus] CodeTools - jump to method I loose focus

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 14:49:18 +0200 "Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote: > Thanks Mattias. Thinking about it now, the problem makes sense. Made > the change and it works perfectly now! > > I am very impressed with CodeTools so far! I have only scratched the > surface of what it can do

Re: [lazarus] String functions on non latin text

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 15:03:17 +0200 "Panagiotis Sidiropoulos" <[EMAIL PROTECTED]> wrote: > Unfortunatelly, even after checking syntax (system.pos()) I get same > strange behaviour, I can't seek in a string. Maybe you can send a complete example? (zipped) Mattias > > Panagiotis > > > -Ori

Re: [lazarus] Cannot run r8833

2006-02-27 Thread Vincent Snijders
A.J. Venter wrote: Not sure how far back this goes because I only update ever few days, but I cannot run this version, after a clean build, lazarus begins to start, shows the splash screen and the lazarus editor window and freezes (nothing ever gets painted IN the editor window). On the shell

RE: [lazarus] String functions on non latin text

2006-02-27 Thread Panagiotis Sidiropoulos
Unfortunatelly, even after checking syntax (system.pos()) I get same strange behaviour, I can't seek in a string. Panagiotis -Original Message- From: Mattias Gaertner [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 1:27 PM To: lazarus@miraclec.com Subject: Re: [lazarus] String

[lazarus] Cannot run r8833

2006-02-27 Thread A.J. Venter
Not sure how far back this goes because I only update ever few days, but I cannot run this version, after a clean build, lazarus begins to start, shows the splash screen and the lazarus editor window and freezes (nothing ever gets painted IN the editor window). On the shell the last output is:

Re: [lazarus] CodeTools - jump to method I loose focus

2006-02-27 Thread Graeme Geldenhuys
Thanks Mattias. Thinking about it now, the problem makes sense. Made the change and it works perfectly now! I am very impressed with CodeTools so far! I have only scratched the surface of what it can do, but it is brilliant. Once you get the basics of how it works and what each class does, it

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread A.J. Venter
> I assume it´s specified somewhere else ? Presumably the same place where > the debugln for setWidgetFont comes from. > Sorry, I just realized my copy here at the office is about a week old, did an update and found all the GTK declarations, now to study how GTK2 sets fonts in C and basically tr

Re: [lazarus] String functions on non latin text

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 15:17:41 +0200 Panagiotis Sidiropoulos <[EMAIL PROTECTED]> wrote: > Functions such as POS() and COPY(), return strange result when used with > utf8 text. > > Forr example, if your try > pos( '__', > '_

[lazarus] String functions on non latin text

2006-02-27 Thread Panagiotis Sidiropoulos
Functions such as POS() and COPY(), return strange result when used with utf8 text. Forr example, if your try pos( 'κ', 'άέύίόήώϊϋΐΰαβγδεζηθικλμνξοπρσςτυφχψωΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣςΤΥΦΧΨΩΆΈΎΊΌΉΏΪΫ-' ) you will get 1, which is incorrect. I know this has to do with utf encoding (2 or more bytes per cha

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread A.J. Venter
> > > Any idea how I need ot change it to use GTK2 ? Or did you do this in code > > ? > > I did it in the designer and it works at runtime with gtk1. > For gtk2: > This needs to be implemented in gtkobject.inc TGtkWidgetSet.SetWidgetFont. > I am studying that file now, thinking off it, my way woul

Re: [lazarus] TListView selection

2006-02-27 Thread George Lober
Vincent Snijders wrote: [EMAIL PROTECTED] wrote: George, This feature does not work under win32. I have attached a patch that should fix this. I looked at the patch I don't understand the part in win32wscustomlistview.pas. You add SetProperty(TListView(AWinControl), lvpHideSelection, T

Re: [lazarus] PNG support

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 12:32:43 +0200 "Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote: > Hi, > > I see lazarus can read and display png file. However, Lazarus doesn't > seem to support the blending effect that png files support. By > blending I mean the shadow in a png file, etc... If this needs al

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 12:08:26 +0200 "A.J. Venter" <[EMAIL PROTECTED]> wrote: > On Monday 27 February 2006 11:40, Mattias Gaertner wrote: > > On Mon, 27 Feb 2006 11:15:03 +0200 > > > > "A.J. Venter" <[EMAIL PROTECTED]> wrote: > > > On Monday 27 February 2006 10:47, Micha Nelissen wrote: > > > > A.J.

Re: [lazarus] CodeTools - jump to method I loose focus

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 11:36:39 +0200 "Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote: > Hi, > > I created a Lazarus addon which shows a list of procedures in a Modal > dialog (same a GExperts Procedure List). Everythings seems to work > fine, except for the editor focus after the jump. > > When I c

Re: [lazarus] TListView selection

2006-02-27 Thread George Lober
George Lober wrote: Micha Nelissen wrote: George Lober wrote: Darius Blaszijk wrote: Maybe the patch is too old ? It's patched against SVN, so I guess not ;) Applying the patch in the lcl directory, the output of 'patch --dry-run < listview.diff' under Windows is: --

[lazarus] PNG support

2006-02-27 Thread Graeme Geldenhuys
Hi, I see lazarus can read and display png file. However, Lazarus doesn't seem to support the blending effect that png files support. By blending I mean the shadow in a png file, etc... Is there a packages or unit I can load to give me that support? I see FPC has a libPNG package, but not sure

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread A.J. Venter
On Monday 27 February 2006 11:40, Mattias Gaertner wrote: > On Mon, 27 Feb 2006 11:15:03 +0200 > > "A.J. Venter" <[EMAIL PROTECTED]> wrote: > > On Monday 27 February 2006 10:47, Micha Nelissen wrote: > > > A.J. Venter wrote: > > > > Hi all, > > > > Probably the most requested feature for tappytux i

Re: [lazarus] TListView selection

2006-02-27 Thread George Lober
Micha Nelissen wrote: George Lober wrote: Darius Blaszijk wrote: Maybe the patch is too old ? It's patched against SVN, so I guess not ;) Applying the patch in the lcl directory, the output of 'patch --dry-run < listview.diff' under Windows is: -- |Index:

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 11:15:03 +0200 "A.J. Venter" <[EMAIL PROTECTED]> wrote: > On Monday 27 February 2006 10:47, Micha Nelissen wrote: > > A.J. Venter wrote: > > > Hi all, > > > Probably the most requested feature for tappytux is that the entry > > > line where users type answers needs to be bigger

[lazarus] CodeTools - jump to method I loose focus

2006-02-27 Thread Graeme Geldenhuys
Hi, I created a Lazarus addon which shows a list of procedures in a Modal dialog (same a GExperts Procedure List). Everythings seems to work fine, except for the editor focus after the jump. When I call the method below, it jumps to the correct location, and the Modal dialog closes, but now I ca

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread A.J. Venter
On Monday 27 February 2006 10:47, Micha Nelissen wrote: > A.J. Venter wrote: > > Hi all, > > Probably the most requested feature for tappytux is that the entry line > > where users type answers needs to be bigger (I mean huge) and prettier, > > using something like Comic Sans font at size 32 should

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread Micha Nelissen
A.J. Venter wrote: Hi all, Probably the most requested feature for tappytux is that the entry line where users type answers needs to be bigger (I mean huge) and prettier, using something like Comic Sans font at size 32 should do it, but of course lazarus provides no means of setting fonts and

Re: [lazarus] transparent forms

2006-02-27 Thread Micha Nelissen
Felipe Monteiro de Carvalho wrote: What really happens with TransparentColor of TForm is that it takes a screenshot of the screen, probably before the application is loaded, so it doesn't appear on the screenshot, and the first thing that happens on the paint process of the window is paint a port

Re: [lazarus] TListView selection

2006-02-27 Thread Vincent Snijders
[EMAIL PROTECTED] wrote: George, This feature does not work under win32. I have attached a patch that should fix this. I looked at the patch I don't understand the part in win32wscustomlistview.pas. You add SetProperty(TListView(AWinControl), lvpHideSelection, True); and then you seem to co

[lazarus] Pretty looking TEdit

2006-02-27 Thread A.J. Venter
Hi all, Probably the most requested feature for tappytux is that the entry line where users type answers needs to be bigger (I mean huge) and prettier, using something like Comic Sans font at size 32 should do it, but of course lazarus provides no means of setting fonts and gtkrc seems to only b

Re: [lazarus] TListView selection

2006-02-27 Thread Micha Nelissen
George Lober wrote: Darius Blaszijk wrote: Maybe the patch is too old ? It's patched against SVN, so I guess not ;) Applying the patch in the lcl directory, the output of 'patch --dry-run < listview.diff' under Windows is: -- |Index: lcl/interfaces/win32/win32w