Sign in Join

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

Mailing lists / lazarus / 2015-12

Procedure List in Lazarus IDE

8 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Juha Manninen

I turned ProcedureList into a proper IDE window in r50908. It is not ready yet. There are open issues, patches to solve them are welcome.

1. The window cannot be docked when AnchorDocking is installed. I have not studied yet how to do it.

2. I replaced the filter edit and its handler code with TListviewFilterEdit. Now the Objects Combobox does not affect the data as it used to. Must be improved.

3. There is a weird issue in adding data to Objects Combobox.Items. It was updated in FormCreate. Same duplicate class names get added to Items many times but the list shows only one unique instance. Now the same thing is done in FormShow and the list shows all duplicates. Feels like a bug somewhere else.

I remember Graeme mentioned that some features broke or disappeared during the years. I did not find the post any more but now would be a good time to fix it.
What are the missing features?

Juha

Reply by email

Juha Manninen
to Juha Manninen
Juha Manninen wrote 5 lines
3. There is a weird issue in adding data to Objects Combobox.Items. It was updated in FormCreate. Same duplicate class names get added to Items many times but the list shows only one unique instance. Now the same thing is done in FormShow and the list shows all duplicates. Feels like a bug somewhere else.

This is easy to fix of course by using a temporary StringList, dealing with duplicates there and then assigning to Combobox.Items. Still, very strange.

Juha

Reply by email

Mattias Gaertner
to Juha Manninen
Show quoted text 7 lines
On Fri, Dec 18, 2015 at 9:58 PM, Juha Manninen wrote: > 3. There is a weird issue in adding data to Objects Combobox.Items. It > was updated in FormCreate. Same duplicate class names get added to > Items many times but the list shows only one unique instance. > Now the same thing is done in FormShow and the list shows all > duplicates. Feels like a bug somewhere else.

How can the user distinguish duplicates in the combobox?

Mattias

Reply by email

Juha Manninen
to Mattias Gaertner
Mattias Gaertner wrote
How can the user distinguish duplicates in the combobox?

He can't.
The class names are meant to work as filters. Duplicates make no sense. I will fix it using a temp StringList, I was just hoping somebody could explain what happened to the duplicates when the list was filled in FormCreate. Yes, I debugged and they were really added.

Juha

Reply by email

Mattias Gaertner
to Juha Manninen
Show quoted text 9 lines
On Sat, Dec 19, 2015 at 6:02 PM, Mattias Gaertner wrote: > How can the user distinguish duplicates in the combobox? He can't. The class names are meant to work as filters. Duplicates make no sense. I will fix it using a temp StringList, I was just hoping somebody could explain what happened to the duplicates when the list was filled in FormCreate. Yes, I debugged and they were really added.

Maybe we should add to the docs, that the handling of duplicates in the list is undefined and outcome depends on widgetset.

Mattias

Reply by email

Graeme Geldenhuys
to Juha Manninen: I turned ProcedureList into a proper IDE window in r50908. It is not ready yet. There are…
Juha Manninen wrote
I remember Graeme mentioned that some features broke or disappeared during the years. I did not find the post any more

I couldn't find that post either, but off the top of my head I know the following:

* The icons next to each method, function, procedure, constructor and destructor are missing. The original GExperts icons were used, and is quite useful in finding things. The fpGUI demo IDE (Maximus) shows these correctly, if you wanted a reference.

* Remembering last used window size and position didn't work. I hacked my own solution locally writing to a new INI file.

* Remembering last used columns sizes doesn't work. Again, I hacked my own solution locally writing to a new INI file.

I'll take another look at Procedure List in Lazarus to see what others are missing or not working and let you know.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

Graeme Geldenhuys
to Juha Manninen: I turned ProcedureList into a proper IDE window in r50908. It is not ready yet. There are…
Juha Manninen wrote
I turned ProcedureList into a proper IDE window in r50908.

Juha, please revert that patch - it broke Procedure List completely! It is now in an unusable state. See my message thread "Procedure List dialog regressions" for details.

I reverted it locally, and now it works as normal again.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email