Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Felipe Monteiro de Carvalho
On 4/16/07, Giuliano Colla <[EMAIL PROTECTED]> wrote: 1) TForm.Color property sicks stubbornly to clBtnFace, whatever you do. TForm.Color is not implemented on Gtk or gtk2 interfaces. I once tryed to implement it, but it´s quite a huge mess, and I couldn´t make it work. TForm.Color works at le

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Alexsander Rosa
IIRC, it's because the "design choice" was to let the Window Manager choose the color. 2007/4/16, Giuliano Colla <[EMAIL PROTECTED]>: Trying to convert to Lazarus Delphi projects, I stumbled in quite a number of incompatibilities. Let's start with TForm. 1) TForm.Color property sicks stubbornly

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Felipe Monteiro de Carvalho
On 4/16/07, Alexsander Rosa <[EMAIL PROTECTED]> wrote: IIRC, it's because the "design choice" was to let the Window Manager choose the color. I don´t think so. The default colors (like clBtnFace) are already reserved for the Window Manager. Setting to clGreen for example should always make it g

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Graeme Geldenhuys
On 4/16/07, Alexsander Rosa <[EMAIL PROTECTED]> wrote: IIRC, it's because the "design choice" was to let the Window Manager choose the color. That would be a very 'bad design choice' then. Sure, get the default color from the Window Manager, but always allow the user to override those if neede

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Graeme Geldenhuys
On 4/16/07, Giuliano Colla <[EMAIL PROTECTED]> wrote: 1) TForm.Color property sicks stubbornly to clBtnFace, whatever you do. Setting a different Color triggers a repaint, but the form is painted with the default color. What is weird is that if you put a component such as a Panel on the form and

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Flávio Etrusco
2) Delphi Form has a Bitmap property which allows to set a background image on the form, while Lazarus does not. What version is it? I vaguely remember seeing this on a very recent version of Delphi (probably Turbo Delphi Explorer), but in Delphi7 there isn't any such property... Cheers, Flávi

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Marc Weustink
Graeme Geldenhuys wrote: > On 4/16/07, Alexsander Rosa <[EMAIL PROTECTED]> wrote: >> IIRC, it's because the "design choice" was to let the Window Manager >> choose the color. > > That would be a very 'bad design choice' then. Sure, get the default > color from the Window Manager, but always allow

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Graeme Geldenhuys
On 4/16/07, Marc Weustink <[EMAIL PROTECTED]> wrote: That it doesn't work for you doesn't mean that it is a bad choice. It was choosen this way, since setting the color would destroy normal theming, so the bitmap background of forms would become invisible. Then why give use the choice of a Co

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Marc Weustink
Graeme Geldenhuys wrote: > On 4/16/07, Marc Weustink <[EMAIL PROTECTED]> wrote: >> >> That it doesn't work for you doesn't mean that it is a bad choice. It >> was choosen this way, since setting the color would destroy normal >> theming, so the bitmap background of forms would become invisible. >>

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Lord Satan
On Mon, 16 Apr 2007 23:58:30 +0200 "Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote: > Forcing all GTK applications to always use the theming colors is *not* > always the developers desire. In this case the developer has the option to use an application specific appname.gtkrc file to override the s

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Graeme Geldenhuys
On 4/17/07, Marc Weustink <[EMAIL PROTECTED]> wrote: > Forcing all GTK applications to always use the theming colors is *not* > always the developers desire. Forcing ppl to not use their theme either! Our issue came into play when we tested under both Linux and Windows. We moved away from Del

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Graeme Geldenhuys
On 4/17/07, Lord Satan <[EMAIL PROTECTED]> wrote: > Forcing all GTK applications to always use the theming colors is *not* > always the developers desire. In this case the developer has the option to use an application specific appname.gtkrc file to override the standard theme and use his own.

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Lord Satan
On Tue, 17 Apr 2007 01:50:14 +0200 "Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote: > On 4/17/07, Lord Satan <[EMAIL PROTECTED]> wrote: > > > > > Forcing all GTK applications to always use the theming colors is *not* > > > always the developers desire. > > > > In this case the developer has the opti

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Giuliano Colla
Lord Satan ha scritto: On Mon, 16 Apr 2007 23:58:30 +0200 "Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote: Forcing all GTK applications to always use the theming colors is *not* always the developers desire. In this case the developer has the option to use an application

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Giuliano Colla
Flávio Etrusco ha scritto: 2) Delphi Form has a Bitmap property which allows to set a background image on the form, while Lazarus does not. What version is it? I vaguely remember seeing this on a very recent version of Delphi (probably Turbo Delphi Explorer), but in Delphi7 there isn't any suc

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Felipe Monteiro de Carvalho
Mark, could you point us to how to fix this? (Which is something much better to do rether then pointlessly arguing about this) What exactly is theming support? How does one implement it? Are there functions in Gtk to retrive the colors for the theme, and then you use them and set the color for th

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-17 Thread Graeme Geldenhuys
Giuliano, I fully agree with you and couldn't say it better myself. This is our company's feeling about commercial software as well. The same thing could be said for my previous two companies I worked for. The clients dictates what they like and we must supply - after all, they paid for the so

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-17 Thread Graeme Geldenhuys
On 4/17/07, Felipe Monteiro de Carvalho <[EMAIL PROTECTED]> wrote: Mark, could you point us to how to fix this? (Which is something much better to do rether then pointlessly arguing about this) What exactly is theming support? How does one implement it? Are there functions in Gtk to retrive the

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-17 Thread Giuliano Colla
Felipe Monteiro de Carvalho ha scritto: Mark, could you point us to how to fix this? (Which is something much better to do rether then pointlessly arguing about this) What exactly is theming support? How does one implement it? Are there functions in Gtk to retrive the colors for the theme, and t

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-17 Thread Lord Satan
On Tue, 17 Apr 2007 03:09:11 +0200 Giuliano Colla <[EMAIL PROTECTED]> wrote: > Lord Satan ha scritto:On Mon, 16 Apr 2007 23:58:30 +0200 > "Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote: > > Forcing all GTK applications to always use the theming colors is *not* > always the developers desire. >

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-17 Thread Giuliano Colla
Lord Satan ha scritto: On Tue, 17 Apr 2007 03:09:11 +0200 Giuliano Colla <[EMAIL PROTECTED]> wrote: Lord Satan ha scritto:On Mon, 16 Apr 2007 23:58:30 +0200 "Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote: Forcing all GTK applications to always use the theming colors is *not* always the develo

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-17 Thread Graeme Geldenhuys
On 4/17/07, Giuliano Colla <[EMAIL PROTECTED]> wrote: Back to business. I've got exactly the same problem, but for me, with GTK1, changing the TEdit background color works just fine. Doesn't it work for you? Hey, progress!!! It didn't work 2 weeks ago. :-) It's still not 100% though. At l

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-17 Thread Graeme Geldenhuys
On 4/17/07, Giuliano Colla <[EMAIL PROTECTED]> wrote: You're right. If a feature isn't there, we do our best trying to provide it. Then it's up to developers to decide if they want override user theme or not. However, just to clarify my point of view, I've got a couple of examples. [snip]..

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-17 Thread Graeme Geldenhuys
On 4/17/07, Giuliano Colla <[EMAIL PROTECTED]> wrote: > I can change the background to a select few colors, but can't set it > back to the default clWindow. See attached screenshot. The top edit > changed color when I blanked the field, but as soon as I entered data, > it should have changed to

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-17 Thread Giuliano Colla
Graeme Geldenhuys ha scritto: On 4/17/07, Giuliano Colla <[EMAIL PROTECTED]> wrote: Back to business. I've got exactly the same problem, but for me, with GTK1, changing the TEdit background color works just fine. Doesn't it work for you? Hey, progress!!! It didn't work 2 weeks ago. :-) It

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-17 Thread Giuliano Colla
Graeme Geldenhuys ha scritto: [...] PS 'Lord Satan': As per your rules that we may not override themes, how would you envision I notify my users what is required fields in a data entry screen at Form Show (see my previous thread for a longer explanation). An then notify them what is invalid or mi

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-17 Thread Micha Nelissen
Graeme Geldenhuys wrote: > Well again, our porting of the Delphi/Kylix application took a turn > for the worse. I can send a few screenshots to show what it looks > like under Linux (not even close to what it should look like). Under > Windows it seems to be okay (for the most part). Putting som

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-17 Thread Lee Jenkins
Flávio Etrusco wrote: 2) Delphi Form has a Bitmap property which allows to set a background image on the form, while Lazarus does not. What version is it? I vaguely remember seeing this on a very recent version of Delphi (probably Turbo Delphi Explorer), but in Delphi7 there isn't any such pro

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-18 Thread Giuliano Colla
Lee Jenkins ha scritto: Flávio Etrusco wrote: 2) Delphi Form has a Bitmap property which allows to set a background image on the form, while Lazarus does not. What version is it? I vaguely remember seeing this on a very recent version of Delphi (probably Turbo Delphi Explorer), but in Delphi7