[Lazarus] Console App Development

Graeme Geldenhuys graemeg.lists at gmail.com
Sun Aug 14 00:21:49 CEST 2011


On 13 August 2011 23:56, Martin wrote:
> So as far as I can see speed is watched, where it has an impact on normal
> use cases.

OK, thanks.



>> the active tab? Does LCL always set focus (active tab) to the newly
>> created tab sheet? That's what it looks like to me (when I tested
>> Friday at work).
>
> I don't know enough about that, and it may depend on the widgetset too.
> maybe windows, or gtk are forcing it?

Maybe all that is required is:  pagecontrol.beginupdate ...
pagecontrol.endupdate.  ;-)

Then the control should only need to redraw once, and not per tab.


> I don't know if anyone has such a number of files open in real life, you
> can't maintain them anyway, you never find a file through the tabs, and
> neither through any menu.

Martin does in MSEide, and I am starting to use it in a similar
fashion. Open those units in MSEide. Then press Ctrl+E. A form will
popup with a grid which is searchable by just starting to type, or
navigating quickly with the arrow keys.

I used to put all my units inside a "project inspector" like tree
structure. But having hundreds of units makes navigation no faster
even if they are sorted alphabetically.  You just can't see enough
items at a glance. Martin's idea in MSEide works quite well.

And yes, you are correct. Navigation in Lazarus with that amount of
units is totally useless. Even the popup menu when you right click on
the tab, or the Window menu is just to large, and scrolling that menu
takes forever (in GTK2).


-- 
Regards,
  - Graeme -


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




More information about the Lazarus mailing list