Re: [Lazarus] Dropdown File list in Source Editor

2012-03-20 Thread Graeme Geldenhuys
On 19 March 2012 16:33, Vincent Snijders vincent.snijders@... wrote:

 Indeed, so clever, that -until you were told- you didn't notice the
 fact that the Lazarus developers didn't spend their time on creating
 their own tab control. :-)

You are not paying attention, dear Vincent. Some core Lazarus
developers have created custom controls. The LCL CustomControls should
be a drop-in replacement, should it not?? The IDE already uses some
custom IDE controls, so why would a few more be so wrong?

Using such custom controls should hopefully also stop developers like
myself hacking the LCL backend widgetsets to get features in the IDE -
because the all mighty native API doesn't support it. Long before
the IDE allowed you to set tab alignment for the source editor, I
hacked the LCL-GTK2 widgetset to give me right-aligned tabs.


 A smart decision indeed.

-1


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dropdown File list in Source Editor

2012-03-20 Thread Graeme Geldenhuys
On 19 March 2012 16:45, Felipe Monteiro de Carvalho
felipemonteiro.carvalho@...wrote:

 Until some months ago there was no custom drawn TCDPageControl in the
 LCL, so there was no decision to be made.


Fair enough.



 That is incorrect, I wrote TCDPageControl which is part of the LCL:

:-)


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dropdown File list in Source Editor

2012-03-20 Thread Felipe Monteiro de Carvalho
On Tue, Mar 20, 2012 at 7:36 AM, Graeme Geldenhuys
graemeg.li...@gmail.com wrote:
 The LCL CustomControls should be a drop-in replacement, should it not?? The 
 IDE already uses some
 custom IDE controls, so why would a few more be so wrong?

Every case should be discussed separately, but in general I would not
change anything which already works before 1.0

-- 
Felipe Monteiro de Carvalho

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dropdown File list in Source Editor

2012-03-20 Thread Graeme Geldenhuys
On 20 March 2012 08:45, Vincent Snijders vincent.snijders@g wrote:

 Resources. Rather have 1.0 this year (could have been last year if


I didn't know 1.0 is that close...


[humour]
Then again, saying Lazarus 1.0 will be out this year/soon should be
held in the same light as the other popular saying: This year will be
the year of the Linux desktop (which is said religiously every year,
yet never materialises).   ;-)
[/humour]




-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dropdown File list in Source Editor

2012-03-20 Thread Graeme Geldenhuys
On 20 March 2012 08:48, Felipe Monteiro de Carvalho
felipemonteiro.carvalho@wrote:

 Every case should be discussed separately, but in general I would not
 change anything which already works before 1.0


I understand your intentions, but that is a odd statement none the
less. Lots are being changes in Lazarus as we speak (before 1.0). Lots
are being fixed, and lots are being broken. Development in the Lazarus
project now, doesn't seem any different to any other time in its
history - just read the mailing list to see what I mean.

Anyway, I respect the decision to not change the tab control in the
editor window at this time.

-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dropdown File list in Source Editor

2012-03-20 Thread Sven Barth

Am 19.03.2012 15:57, schrieb Hans-Peter Diettrich:

Graeme Geldenhuys schrieb:

On 19 March 2012 15:51, zeljko zeljko@... wrote:

No, SE tab control is native handle.


Umm, who made that clever decision! I don't think I know of a single
IDE (except now for Lazarus IDE) that uses a native tab control in the
IDE editor screen.


IMO Delphi and all other platform-specific applications and IDEs use
native controls.


At least in newer Delphi versions (2005+) the source editor tabs seem to 
be a custom one as I can't find other applications with such a tab style.


Regards,
Sven


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dropdown File list in Source Editor

2012-03-20 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said:
  IMO Delphi and all other platform-specific applications and IDEs use native
  controls.
 
 Wishful thinking - they don't! 

They usually do, but not always :-)

Moreover, you have a choice to do so in cases where it is important  to use the 
less optimal one over the ownerdrawn
one. (e.g. to achieve maximal RDP speed)

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dropdown File list in Source Editor

2012-03-19 Thread michael . vancanneyt



On Mon, 19 Mar 2012, Giuliano Colla wrote:


Hi,

until a few revisions ago, the dropdown list of files which is shown 
right-clicking on the editor tabs, would show an asterisk beside modified 
files, which now has disappeared, at least in Linux.


This was very useful, because one could quickly return to the file under 
editing, after verifying declarations, etc. in other files, even with many 
open files.


Could this feature be reactivated?


If the above is correct, then a +1 from me, because the * is something I
rely on...

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dropdown File list in Source Editor

2012-03-19 Thread Graeme Geldenhuys
On 19 March 2012 13:57,  michael.va...wrote:

 If the above is correct, then a +1 from me, because the * is something I
 rely on...


The * has now been replaced by the more popular ' ' (space) character.   ;-)


PS;
What about colour coding the tabs.  A modified file makes the tab a
different colour. EditPad Pro does this very nicely.


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dropdown File list in Source Editor

2012-03-19 Thread zeljko
On Monday 19 of March 2012 14:10:21 Graeme Geldenhuys wrote:
 On 19 March 2012 13:57,  michael.va...wrote:
  If the above is correct, then a +1 from me, because the * is something I
  rely on...
 
 The * has now been replaced by the more popular ' ' (space) character.  
 ;-)
 
 
 PS;
 What about colour coding the tabs.  A modified file makes the tab a
 different colour. EditPad Pro does this very nicely.

Not all ws supports changing tab color. Maybe all supports tab font changes 
...

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dropdown File list in Source Editor

2012-03-19 Thread Felipe Monteiro de Carvalho
2012/3/19 zeljko zel...@holobit.net:
 Not all ws supports changing tab color. Maybe all supports tab font changes

I think that the * is better then font changing. For me it clearly
identifies with changes while a font change could mean anything.

-- 
Felipe Monteiro de Carvalho

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dropdown File list in Source Editor

2012-03-19 Thread Graeme Geldenhuys
2012/3/19 zeljko zel...@holobit.net:


 Not all ws supports changing tab color. Maybe all supports tab font changes


I thought the tab control used in the editor was a custom drawn control?
[so popup menus, x close button per tab, tab alignment etc. could be
available in all platforms]


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dropdown File list in Source Editor

2012-03-19 Thread zeljko
On Monday 19 of March 2012 14:43:47 Graeme Geldenhuys wrote:
 2012/3/19 zeljko zel...@holobit.net:
  Not all ws supports changing tab color. Maybe all supports tab font
  changes
 
 I thought the tab control used in the editor was a custom drawn control?
 [so popup menus, x close button per tab, tab alignment etc. could be
 available in all platforms]

No, SE tab control is native handle.

zeljko
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dropdown File list in Source Editor

2012-03-19 Thread Sven Barth

Am 19.03.2012 14:43, schrieb Graeme Geldenhuys:

2012/3/19 zeljkozel...@holobit.net:



Not all ws supports changing tab color. Maybe all supports tab font changes



I thought the tab control used in the editor was a custom drawn control?
[so popup menus, x close button per tab, tab alignment etc. could be
available in all platforms]




This is not the case:

 [so popup menus, x close button per tab, tab alignment etc. could be
 available in all platforms]


So this is not true either:

 the editor was a custom drawn control?

;)

Regards,
Sven

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dropdown File list in Source Editor

2012-03-19 Thread Graeme Geldenhuys
On 19 March 2012 15:51, zeljko zeljko@... wrote:

 No, SE tab control is native handle.

Umm, who made that clever decision!  I don't think I know of a single
IDE (except now for Lazarus IDE) that uses a native tab control in the
IDE editor screen. IDE's need more visual functionality than standard
native controls can supply - for that reason most if not all IDE's
use custom controls all over the IDE interface. eg: Delphi uses
non-native tab controls, treeviews etc. So does Qt's IDE, Java IDE's
etc.


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dropdown File list in Source Editor

2012-03-19 Thread Vincent Snijders
Op 19 maart 2012 15:09 heeft Graeme Geldenhuys
graemeg.li...@gmail.com het volgende geschreven:
 On 19 March 2012 15:51, zeljko zeljko@... wrote:

 No, SE tab control is native handle.

 Umm, who made that clever decision!

Indeed, so clever, that -until you were told- you didn't notice the
fact that the Lazarus developers didn't spend their time on creating
their own tab control. :-)

A smart decision indeed.

Vincent

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dropdown File list in Source Editor

2012-03-19 Thread Felipe Monteiro de Carvalho
On Mon, Mar 19, 2012 at 3:09 PM, Graeme Geldenhuys
graemeg.li...@gmail.com wrote:
 Umm, who made that clever decision!

Until some months ago there was no custom drawn TCDPageControl in the
LCL, so there was no decision to be made.

On Mon, Mar 19, 2012 at 3:33 PM, Vincent Snijders
vincent.snijd...@gmail.com wrote:
 Indeed, so clever, that -until you were told- you didn't notice the
 fact that the Lazarus developers didn't spend their time on creating
 their own tab control. :-)

That is incorrect, I wrote TCDPageControl which is part of the LCL:

http://wiki.lazarus.freepascal.org/Lazarus_Custom_Drawn_Controls#TCDPageControl

Without it, it would not be possible to correctly implement FPBrowser
with the LCL:

http://wiki.lazarus.freepascal.org/fpbrowser

-- 
Felipe Monteiro de Carvalho

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dropdown File list in Source Editor

2012-03-19 Thread Mattias Gaertner
On Mon, 19 Mar 2012 12:53:40 +0100
Giuliano Colla giuliano.co...@fastwebnet.it wrote:

 Hi,
 
 until a few revisions ago, the dropdown list of files which is shown 
 right-clicking on the editor tabs, would show an asterisk beside 
 modified files, which now has disappeared, at least in Linux.
 
 This was very useful, because one could quickly return to the file under 
 editing, after verifying declarations, etc. in other files, even with 
 many open files.
 
 Could this feature be reactivated?

I see the asterisk in revision 36166.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dropdown File list in Source Editor

2012-03-19 Thread Mattias Gaertner
On Mon, 19 Mar 2012 17:25:10 +0100
Mattias Gaertner nc-gaert...@netcologne.de wrote:

 On Mon, 19 Mar 2012 12:53:40 +0100
 Giuliano Colla giuliano.co...@fastwebnet.it wrote:
 
  Hi,
  
  until a few revisions ago, the dropdown list of files which is shown 
  right-clicking on the editor tabs, would show an asterisk beside 
  modified files, which now has disappeared, at least in Linux.
  
  This was very useful, because one could quickly return to the file under 
  editing, after verifying declarations, etc. in other files, even with 
  many open files.
  
  Could this feature be reactivated?
 
 I see the asterisk in revision 36166.

Sorry. I looked wrong.
I added the asterisk.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dropdown File list in Source Editor

2012-03-19 Thread Giuliano Colla

Felipe Monteiro de Carvalho ha scritto:

On Mon, Mar 19, 2012 at 3:09 PM, Graeme Geldenhuys
graemeg.li...@gmail.com wrote:

Umm, who made that clever decision!


Until some months ago there was no custom drawn TCDPageControl in the
LCL, so there was no decision to be made.

On Mon, Mar 19, 2012 at 3:33 PM, Vincent Snijders
vincent.snijd...@gmail.com wrote:

Indeed, so clever, that -until you were told- you didn't notice the
fact that the Lazarus developers didn't spend their time on creating
their own tab control. :-)


That is incorrect, I wrote TCDPageControl which is part of the LCL:

http://wiki.lazarus.freepascal.org/Lazarus_Custom_Drawn_Controls#TCDPageControl

Without it, it would not be possible to correctly implement FPBrowser
with the LCL:

http://wiki.lazarus.freepascal.org/fpbrowser



OT, but not that much.
About CD components.
I was musing on the need to implement CD OpenFile/OpenDirectory dialogs.
Could we take advantage of VirtualTreeView?
Giuliano

--
Giuliano Colla

Whenever people agree with me, I always feel I must be wrong (O. Wilde)

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dropdown File list in Source Editor

2012-03-19 Thread Giuliano Colla

Mattias Gaertner ha scritto:

On Mon, 19 Mar 2012 17:25:10 +0100
Mattias Gaertner nc-gaert...@netcologne.de wrote:


On Mon, 19 Mar 2012 12:53:40 +0100
Giuliano Colla giuliano.co...@fastwebnet.it wrote:


Hi,

until a few revisions ago, the dropdown list of files which is shown 
right-clicking on the editor tabs, would show an asterisk beside 
modified files, which now has disappeared, at least in Linux.


This was very useful, because one could quickly return to the file under 
editing, after verifying declarations, etc. in other files, even with 
many open files.


Could this feature be reactivated?

I see the asterisk in revision 36166.


Sorry. I looked wrong.
I added the asterisk.



Thanks,

Giuliano


--
Giuliano Colla

Whenever people agree with me, I always feel I must be wrong (O. Wilde)

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dropdown File list in Source Editor

2012-03-19 Thread Felipe Monteiro de Carvalho
On Mon, Mar 19, 2012 at 7:52 PM, Giuliano Colla
giuliano.co...@fastwebnet.it wrote:
 I was musing on the need to implement CD OpenFile/OpenDirectory dialogs.

My plan is to have various dialog options:

1-Generic open/save/sel dir dialogs for mobile applications in the
unit lazdialogs.pas (those are finished from what I remember). That
would be utilized in Windows CE.
2-Native dialogs for Android, iPhone, Windows and Mac OS X
3-Generic open/save/sel dir dialogs for desktop applications in the
unit lazdialogs.pas (not yet written). That would be utilized in X11
which has no native dialogs

 Could we take advantage of VirtualTreeView?

No, because:

1-The codebase of Virtual* controls is a huge mess. They are not fit
for inclusion in the CD controls which are very clean and compact
2-AFAIK we don't need TCDTreeView. TTreeView is custom drawn by
design in the LCL =) It would be like writting TCDImage. It makes no
sense because TImage already works automagically without any extra
effort in LCL-CustomDrawn because it is TCustomControl based. I
haven't yet tested to see if TTreeView works or what is missing.

The hardest controls missing are TCDListView, TCDStringGrid and Menus.

-- 
Felipe Monteiro de Carvalho

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dropdown File list in Source Editor

2012-03-19 Thread Hans-Peter Diettrich

Graeme Geldenhuys schrieb:

On 19 March 2012 15:51, zeljko zeljko@... wrote:

No, SE tab control is native handle.


Umm, who made that clever decision!  I don't think I know of a single
IDE (except now for Lazarus IDE) that uses a native tab control in the
IDE editor screen.


IMO Delphi and all other platform-specific applications and IDEs use 
native controls. In so far the Lazarus IDE is different, because it 
claims to be platform independent by use of the platform independent LCL 
components. Where it should be known that most LCL controls have 
platform or widgetset specific restrictions...


DoDi


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus