[Lazarus] Codebrowser, Search Identifier (was fpc-devel: procedure ... message(); in Linux)

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Mar 2 00:14:33 CET 2010


On Mon, 1 Mar 2010 23:03:55 +0200
Juha Manninen <juha.manninen at phnet.fi> wrote:

> Hi,
> 
> I moved this Lazarus related thread here from FPC-devel list.
> 
> > Mattias Gärtner wrote:
> 
> >>> What gave no feedback?
> >>
> >> Ok, I tested again with a non-typical situation.
> >> I worked with lazarus.lpi and built Lazarus from tools -> Configure Build
> >> Lazarus. The error messages show up just like when compiling a "normal"
> >> project but "search identifier" does nothing.
> > 
> > I tested with lazarus.lpi: It works.
> > Do you have english messages?
> 
> Yes, the problem was elsewhere.
> The tool tries to find the source file in project directory, "lazarus/ide" in 
> this case, but the problematic file was in "lazarus/converter" directory.
> When I created a similar problem in a file in ide directory, it worked as 
> expected.

Fixed.

 
> >> Now I tested with a "normal" project and it works. It is a cool feature
> >> actually.
> >> I noticed a minor bug: the Scope combobox gets "Project" by default. If I
> >> click the down-arrow to see a list then the first "Lazarus IDE" gets 
> selected
> >> automatically. I guess you forgot to set Combobox.ItemIndex and only set 
> its
> >> text.
> > 
> > It didn't matter for me. I now set the ItemIndex. Does that fix it?
> 
> There seems to be again a difference between GTK2 and QT bindings behavior for 
> combobox. I don't know which one is more correct though.
> QT version seems to select the item pointed by ItemIndex, GTK2 version does 
> not.
> Now it is worse than before because you set a wrong ItemIndex (I guess, didn't 
> look at code).

I use
ScopeComboBox.Items.IndexOf

maybe IndexOf is buggy under qt? (I can't test qt at the moment)


> "Project" is the second item so ItemIndex should be 1 but it is 
> apparently 0 instead and "Lazarus IDE" gets selected without touching 
> anything. That is for QT version.
> GTK2 version also shows "Lazarus IDE" hilighted when opening the list but 
> doesn't select it unless you press enter.

My gtk2 theme does not show anything hilighted. I tried some others:
none does.
What gtk2 theme do you use?

Mattias




More information about the Lazarus mailing list