Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-03

Dropdown File list in Source Editor

28 messages · 10 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Giuliano Colla

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?

Thanks,

Giuliano

Reply by email

Unknown author
to Giuliano Colla
Giuliano Colla wrote 11 lines
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.

Reply by email

Graeme Geldenhuys
to Unknown author
<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

Reply by email

zeljko
to Graeme Geldenhuys
Graeme Geldenhuys wrote 11 lines
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120319/1426d9bf/attachment.html>

Reply by email

Felipe Monteiro de Carvalho
to zeljko

2012/3/19 zeljko :

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

Reply by email

zeljko
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 6 lines
2012/3/19 zeljko : > 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.

+1 in any case.

zeljko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120319/35290f41/attachment.html>

Reply by email

Graeme Geldenhuys
to zeljko: Not all ws supports changing tab color. Maybe all supports tab font changes ... zeljko…

2012/3/19 zeljko :

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

Reply by email

Graeme Geldenhuys
to Felipe Monteiro de Carvalho: 2012/3/19 zeljko : I think that the * is better then font changing. For me it clearly…
Felipe Monteiro de Carvalho wrote
I think that the * is better then font changing. For me it clearly identifies with changes while a font change could mean anything.

Yeah, I wouldn't like the font changing idea either.

Regards, ? - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email

zeljko
to Graeme Geldenhuys: 2012/3/19 zeljko : I thought the tab control used in the editor was a custom drawn…
Graeme Geldenhuys wrote 7 lines
2012/3/19 zeljko : > 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120319/88b69250/attachment.html>

Reply by email

Sven Barth
to Graeme Geldenhuys: 2012/3/19 zeljko : I thought the tab control used in the editor was a custom drawn…
Graeme Geldenhuys wrote 11 lines
2012/3/19 zeljko: > > > 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

Reply by email

Graeme Geldenhuys
to zeljko: No, SE tab control is native handle. zeljko -------------- next part -------------- An…
zeljko <zeljko at ... 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

Reply by email

Vincent Snijders
to Graeme Geldenhuys

Op 19 maart 2012 15:09 heeft Graeme Geldenhuys
het volgende geschreven:

Show quoted text 5 lines
On 19 March 2012 15:51, zeljko <zeljko at ... 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

Reply by email

Felipe Monteiro de Carvalho
to Vincent Snijders
Graeme Geldenhuys 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.

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. :-)

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

Reply by email

Hans-Peter Diettrich
to Graeme Geldenhuys: Umm, who made that clever decision! I don't think I know of a single IDE (except now for…
Show quoted text 6 lines
On 19 March 2012 15:51, zeljko <zeljko at ... 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

Reply by email

Mattias Gaertner
to Giuliano Colla: until a few revisions ago, the dropdown list of files which is shown right-clicking on…
Show quoted text 11 lines
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

Reply by email

Mattias Gaertner
to Mattias Gaertner
Show quoted text 16 lines
On Mon, 19 Mar 2012 12:53:40 +0100 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? I see the asterisk in revision 36166.

Sorry. I looked wrong.
I added the asterisk.

Mattias

Reply by email

Giuliano Colla
to Felipe Monteiro de Carvalho: On Mon, Mar 19, 2012 at 3:09 PM, Graeme Geldenhuys Until some months ago there was no…

Felipe Monteiro de Carvalho ha scritto:

Show quoted text 22 lines
On Mon, Mar 19, 2012 at 3:09 PM, Graeme Geldenhuys 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 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)

Reply by email

Giuliano Colla
to Mattias Gaertner: On Mon, 19 Mar 2012 17:25:10 +0100 Sorry. I looked wrong. I added the asterisk. Mattias

Mattias Gaertner ha scritto:

Show quoted text 22 lines
On Mon, 19 Mar 2012 17:25:10 +0100 Mattias Gaertner wrote: > On Mon, 19 Mar 2012 12:53:40 +0100 > 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? > 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)

Reply by email

Felipe Monteiro de Carvalho
to Giuliano Colla: Felipe Monteiro de Carvalho ha scritto: OT, but not that much. About CD components. I was…
Giuliano Colla 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

Reply by email

Graeme Geldenhuys
to Vincent Snijders: Op 19 maart 2012 15:09 heeft Graeme Geldenhuys het volgende geschreven: Indeed, so…
Vincent Snijders <vincent.snijders at ... 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

Reply by email

Graeme Geldenhuys
to Felipe Monteiro de Carvalho: On Mon, Mar 19, 2012 at 3:09 PM, Graeme Geldenhuys Until some months ago there was no…
Felipe Monteiro de Carvalho <felipemonteiro.carvalho at ... 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

Reply by email

Vincent Snijders
to Graeme Geldenhuys: You are not paying attention, dear Vincent. Some core Lazarus developers have created…

Op 20 maart 2012 07:36 heeft Graeme Geldenhuys
het volgende geschreven:

Show quoted text 10 lines
On 19 March 2012 16:33, Vincent Snijders <vincent.snijders at ... 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?

Resources. Rather have 1.0 this year (could have been last year if more developers were more focused), than a shiny IDE with the relatively newly developed customdrawn tabcontrol and 1.0 next year.

> A smart decision indeed. -1

I guess we agree to disagree.

VIncent

Reply by email

Graeme Geldenhuys
to Vincent Snijders: Op 20 maart 2012 07:36 heeft Graeme Geldenhuys het volgende geschreven: Resources. Rather…
Vincent Snijders 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

Reply by email

Graeme Geldenhuys
to Felipe Monteiro de Carvalho: On Tue, Mar 20, 2012 at 7:36 AM, Graeme Geldenhuys Every case should be discussed…
Felipe Monteiro de Carvalho <felipemonteiro.carvalho at .... 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

Reply by email

Sven Barth
to Hans-Peter Diettrich: IMO Delphi and all other platform-specific applications and IDEs use native controls. In…
Hans-Peter Diettrich wrote 10 lines
Graeme Geldenhuys schrieb: > On 19 March 2012 15:51, zeljko <zeljko at ... 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

Reply by email

Graeme Geldenhuys
to Hans-Peter Diettrich: IMO Delphi and all other platform-specific applications and IDEs use native controls. In…
Hans-Peter Diettrich wrote
IMO Delphi and all other platform-specific applications and IDEs use native controls.

Wishful thinking - they don't! In the case of Delphi, they use VirtualTreeView all over the place (a custom draw component as you should know). The editor tabs are custom controls, and so are many other areas of the Delphi IDE (component palette etc). Use any Windows "window query" tool to query the Delphi IDE interface and see what I mean (a simple tool like MWSnap's Window Info function should do, but there are many others you can use too).

Regards, ? - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email

Marco van de Voort
to Graeme Geldenhuys

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)

Reply by email