Re: [lazarus] Mantis has being working hard
Felipe Monteiro de Carvalho wrote: lazarus staff :-) They are underpaid, so don't depend on this performance in the future, as they might go on strike. ;-) Vincent. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Security advisory for SynEdit
Hello all, There is a security advisory regarding SynEdit. Don't warry it's not that bad :) It seems that by placing NULL Zerrow chars inside a text file, you can hide from that point, the rest of the file content. That way I can give you a code that may seems like implemention something X but hide more code that will be compiled at the end by a programming language etc... The advisory btw was reported at: http://rgod.altervista.org/syn.html BTW I hope that there will be much more securiy advisory for Pascal based programs/components. That way we will know that more and more people uses this type of programs (Now I open Pandora's box) :) Ido _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Forcing fonts
Hi all, Okay, the WIKI states that font setting is very limited (unless you use canvas drawn components) since GTK overrrides your settings. Is there ANY way I can get around this ? I am getting desperately annoyed that after I create a really good looking program, the first time a user changes his desktop theme, the captions no longer fit on the buttons :( All my apps now use GTK2. I have tried to hack gtkrc-2.0 by hand - no luck there, it seems to ignore the font line entirely. Resizing the buttons is not an option, I HAVE to support 640x480 resolution and the buttons only just manage to all fit on screen as it is. -- A.J. Venter Chief Software Architect OpenLab International http://www.getopenlab.com http://www.silentcoder.co.za _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Forcing fonts
On Mon, 22 Aug 2005 11:30:02 +0200 A.J. Venter [EMAIL PROTECTED] wrote: Hi all, Okay, the WIKI states that font setting is very limited (unless you use canvas drawn components) since GTK overrrides your settings. Is there ANY way I can get around this ? I am getting desperately annoyed that after I create a really good looking program, the first time a user changes his desktop theme, the captions no longer fit on the buttons :( All my apps now use GTK2. I have tried to hack gtkrc-2.0 by hand - no luck there, it seems to ignore the font line entirely. Have you tried gtk-theme-switch2 ? What desktop environment are you using ? Eg. Xfce4.2 seems to override anything specified elsewhere; I also don't understand how that all works. Micha _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Forcing fonts
Am Montag, den 22.08.2005, 11:30 +0200 schrieb A.J. Venter: Hi all, Okay, the WIKI states that font setting is very limited (unless you use canvas drawn components) since GTK overrrides your settings. Is there ANY way I can get around this ? I am getting desperately annoyed that after I create a really good looking program, the first time a user changes his desktop theme, the captions no longer fit on the buttons :( All my apps now use GTK2. I have tried to hack gtkrc-2.0 by hand - no luck there, it seems to ignore the font line entirely. No answer here but another question: Is the .gtkrc(-2.0) read at startup? In gtk 1.x programs it has to be activated by something like this: gtk_rc_parse( where it is ); and this does work for me with simple gtk widgets (not the lazarus ones) ... Do Lazarus GTK2-widgets respect the settings in the rc file? Marc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Security advisory for SynEdit
Quoting Michael Van Canneyt [EMAIL PROTECTED]: On Mon, 22 Aug 2005, Mattias Gaertner wrote: On Mon, 22 Aug 2005 10:45:04 +0300 Ido Kanner [EMAIL PROTECTED] wrote: Hello all, There is a security advisory regarding SynEdit. Don't warry it's not that bad :) Yes it is. Well in security issues, it is not bad I would rate it low, and if I had a lower rating it was there instead :) The reason is because its just hide information... it does not do anything else. It is not a DoS, or a Buffer Overflow or hurt anything ... only hide information... It seems that by placing NULL Zerrow chars inside a text file, you can hide from that point, the rest of the file content. That way I can give you a code that may seems like implemention something X but hide more code that will be compiled at the end by a programming language etc... The advisory btw was reported at: http://rgod.altervista.org/syn.html BTW I hope that there will be much more securiy advisory for Pascal based programs/components. That way we will know that more and more people uses this type of programs (Now I open Pandora's box) :) I fixed TSynPasSyn and TSynPHPSyn. Probably the other highlighters also have the problem. But what more troubling is, that the FCL TStrings, TStringList stop at #0 and some parts of synedit too. Because of this you can loose code and that's pretty bad. There should be a filter for a null terminited string that will convert it to #0 string or will just remove it... in PHP it is more sevear. I don't see how you can loose code. If there is a #0 somewhere in your source, the compiler won't compile it, this is for sure. You do not loose code... only you do not see it. Lets assume you wrote a PHP code for example: ?php echo hello world; php? #0 ?php `rm -rf /`; php? You will not see the ` chars and the execution itself... What is more, delphi has the same behaviour. It's the string way behavior. In delphi it meant that you can not concat string with #0 without remove that char. And it seems that FPC is the same with that behavior. But the FCL should be fixed, this is for sure. Michael. Ido _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Forcing fonts
I would say a more sane approach is that application settings should override theme defaults. I know the gnome guys have this thing about deciding how every human being on the planet ought to think but surely they didn't make it impossible to do this ? Did they ? The gnome guys think, that fonts and themes should be controlled by the user, i.e. every human being on the planet, not by the application, i.e. programmer. Oh I've heard their arguments, I even agree with them. It's their METHODS I don't approve off. I think they go about their goal of consistency in completely the wrong way and fail exactly at what they set out to do - controll by the user. Where KDE gets it right is letting the user configure everything, then sticking with it as DEFAULT which the user can overwrite PER APPLICATION because not all apps do the same tasks and thinking that there can be a completely universal good standard is just stupid. Some apps NEED to look different in order to actually work usably. I have actually had a lead gnome dev (who shall remain nameless) say: any setting that would only be usefull to one application must never be implementable. This I dissagree with 100%. As far as I am concerned, too many options for configuration is a lesser crime than too few, and every real user agrees with me - and I have a rather particular point of authority in this. I have thousands of users, and 95% of them were first time computer users when they touched my system for the first time. They all had the option of gnome or KDE, and they all tried both, and they all preffered KDE - because KDE could look the way they wanted it to. In the end TRUE userfriendlyness is recognizing that every user is unique, and allowing every bit of the system to be adaptable to the USER's preffered way of working - when you have that the computer learns the user and no longer vice versa. In fact, before I began on OpenLab 4 I did a survey among my paying customers, since not a single user was using the gnome desktop by choice. I won't be including it in OpenLab4 - I see no point of supporting something my customers don't want anyway. The gnome libs are there, cos there are some cool gnome apps. But that's it. A.J. -- A.J. Venter Chief Software Architect OpenLab International http://www.getopenlab.com http://www.silentcoder.co.za _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Forcing fonts
For starters I created in olpack(http://silentcoder.co.za/viewsvn/viewsvn.php?project=lazaruspath= %2Folpack%2F) the screensize component, these particular apps, by their very nature are used alone, so they run maximized. Since lazarus doesn't (yet?) obey ws_maximized, I use the screensize to get the Tell me how the code to set ws_maximized looks, and I can check if the gtk backend of lazarus handles it, and fix it. Is it just via windowstate ? That's all I've tried, windowstate in the object inspector. Bear in mind I've never actually USED delphi. I first learned a bit GUI programming in Java around 5 years ago before then I had spent about 10 years doing nothing more GUI than ncurses :p I got sick of java FAST ! So I actually wrote the freepascal support for tcl/tk and maintained it for some time (nobody else seemed very interested though) so I stopped bothering, haven't actually even looked at that code for about 3 years. Anyway, at that point I had no use for doing any GUI programming in my career that couldn't be handled by the odd bit of SDL. Things changed and suddenly the same job was involving a LOT of GUI coding, so I studied the principles of it. When it came to actually using a language though, I opted for the one I knew best (pascal based, been using it since I was 9 years old after all) and chose Lazarus. Been doing that ever since. Effectively though, what I know about how to actually CODE GUI's I learned from using a delphi book and playing with lazarus by myself. Oh and constantly reading this mailing list ! A.J. -- A.J. Venter Chief Software Architect OpenLab International http://www.getopenlab.com http://www.silentcoder.co.za _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Game Development with Lazarus
Yoppy Sundawa wrote: Hi .. I want to developt a game with lazarus, can anyone give me a clue where to start ? i've been made a game with Delphi before, an openGL approach will be great ... Hi. I've been playing a bit with GLScene (http://glscene.sourceforge.net/index.php) which is quite interesting. Take a look. []s Adilson. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] win1250
Pictures of the problem: my form in lazarus ide, marked areas are problem: http://www.opinfos.com/tempo/laz/pic1.png when I run application: http://www.opinfos.com/tempo/laz/pic2.png it's all ok. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Game Development with Lazarus
Yoppy Sundawa wrote: Looks great, but is it 100% compatible to lazarus ? I thought it was only for Delphi ... I'm not sure about the 100% :) But I installed them here (there's a lazarus pack) and a few quick tests I did gave me the expected results. []s Adilson. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Game Development with Lazarus
you right, I found the .lpk file from the cvs, thanks a lot - Original Message - From: Adilson Oliveira [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Tuesday, August 23, 2005 9:34 AM Subject: Re: [lazarus] Game Development with Lazarus Yoppy Sundawa wrote: Looks great, but is it 100% compatible to lazarus ? I thought it was only for Delphi ... I'm not sure about the 100% :) But I installed them here (there's a lazarus pack) and a few quick tests I did gave me the expected results. []s Adilson. _ 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