[Lazarus] Object Inspector/Favorites tab, base class and adding properties from code?

2014-07-17 Thread Bruno HR
Hello all,
about the Favorites tab in the Object Inspector, why do we need to select a 
base class for a property to add to Favorites? And why do we need to choose a 
base class also when removing a property from Favorites?
Also, is there a way of declaring a property/event as Favorite in its 
declaration in the source code? Or yet, is there a file where Lazarus reads its 
Favorites properties/events from? Could it be edited manually?
Thanks in advance!
(Laz 1.2.4, i386-win32, FPC 2.6.4, win7-32bit)
Bruno Henrique Reis
-- (51) 8178-5760
  --
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Object Inspector/Favorites tab, base class and adding properties from code?

2014-07-17 Thread Mattias Gaertner
On Thu, 17 Jul 2014 10:13:31 -0300
Bruno HR bhrei...@hotmail.com wrote:

 Hello all,
 about the Favorites tab in the Object Inspector, why do we need to select a 
 base class for a property to add to Favorites?

Only properties of instances inheriting from the class are favorites.


 And why do we need to choose a base class also when removing a
 property from Favorites?

These are excludes.


 Also, is there a way of declaring a property/event as Favorite in its 
 declaration in the source code?

Yes:
DefaultOIFavoriteProperties.Add(TOIFavoriteProperty.Create(ABaseClass,APropertyName,true));


Mattias

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


[Lazarus] Object Inspector

2012-09-19 Thread Howard Page-Clark
There is currently a spelling discrepancy which probably needs to be 
rectified in that the OI Favorites page is spelt in the US way, as is 
the popup context menu text that refers to it. Whereas the dialog 
caption and interior label of the Add to favourite properties dialog 
(and associated source code) all use the British spelling of favourite.


I also wonder if the default setting whereby the OI statusbar is always 
shown is the best option. I have never found the OI statusbar gives 
essential information, but perhaps I have simply not paid attention to 
it at the right moment, or perhaps there are plans to expand its 
usefulness. It would be more helpful to beginners, I think, if the OI 
InfoBox were shown by default in preference to the statusbar. Although a 
statusbar provides a useful sizing grip, the OI can also be resized 
without it, and turning it off allows one more property to be displayed 
in the grid without the need to scroll.


Howard

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


Re: [Lazarus] Object Inspector

2012-09-19 Thread Graeme Geldenhuys

On 19/09/12 11:31, Howard Page-Clark wrote:

Whereas the dialog caption and interior label of the Add to favourite
properties dialog (and associated source code) all use the British
spelling of favourite.


It's a cross-language feature. The Lazarus project doesn't discriminate. ;-)


Graeme.



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


Re: [Lazarus] Object Inspector

2012-09-19 Thread Mattias Gaertner
On Wed, 19 Sep 2012 11:38:53 +0100
Graeme Geldenhuys gra...@geldenhuys.co.uk wrote:

 On 19/09/12 11:31, Howard Page-Clark wrote:
  Whereas the dialog caption and interior label of the Add to favourite
  properties dialog (and associated source code) all use the British
  spelling of favourite.
 
 It's a cross-language feature. The Lazarus project doesn't discriminate. ;-)

;)

No, for consistency it should be American spelling.
I fixed it.

Mattias

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


[Lazarus] Object inspector hints ?

2012-04-30 Thread Michael Van Canneyt


Hi,

The lazarus code editor shows tooltip hints about identifiers; It gets those
from the sources or even fpdoc.

Is there any reason why the object inspector would not be able to offer the 
same hints ?
Properties and events are also just identifiers after all.

Michael.

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


Re: [Lazarus] Object inspector hints ?

2012-04-30 Thread Mattias Gaertner
On Mon, 30 Apr 2012 10:03:41 +0200 (CEST)
Michael Van Canneyt mich...@freepascal.org wrote:

 
 Hi,
 
 The lazarus code editor shows tooltip hints about identifiers; It gets those
 from the sources or even fpdoc.
 
 Is there any reason why the object inspector would not be able to offer the 
 same hints ?
 Properties and events are also just identifiers after all.

Right click on OI: enable Show hints

Mattias

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


Re: [Lazarus] Object inspector hints ?

2012-04-30 Thread michael . vancanneyt



On Mon, 30 Apr 2012, Mattias Gaertner wrote:


On Mon, 30 Apr 2012 10:03:41 +0200 (CEST)
Michael Van Canneyt mich...@freepascal.org wrote:



Hi,

The lazarus code editor shows tooltip hints about identifiers; It gets those
from the sources or even fpdoc.

Is there any reason why the object inspector would not be able to offer the 
same hints ?
Properties and events are also just identifiers after all.


Right click on OI: enable Show hints


Unbelievable... How many years this gem remained hidden from me.

You can learn everything there is to know about lazarus in a week, 
and yet after many years, it can still surprise you. ( (c) Gandalf )


Thanks.

Michael.

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


Re: [Lazarus] Object inspector hints ?

2012-04-30 Thread Howard Page-Clark

On 30/4/12 9:23, Mattias Gaertner wrote:

On Mon, 30 Apr 2012 10:03:41 +0200 (CEST)
Michael Van Canneytmich...@freepascal.org  wrote:



Hi,

The lazarus code editor shows tooltip hints about identifiers; It gets those
from the sources or even fpdoc.

Is there any reason why the object inspector would not be able to offer the 
same hints ?
Properties and events are also just identifiers after all.


Right click on OI: enable Show hints


There is also the (optional) OI information box which displays limited 
documentation. However, it is often very limited.

e.g.

TControl.OnClick
Event Handler for mouse click

which hardly aids a programmer looking for more information, and in fact 
is hardly worth displaying at all.
Would it be difficult to add parameter and parameter type information, 
and function return type such as codetools offers in the Editor?


Howard


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


Re: [Lazarus] Object inspector hints ?

2012-04-30 Thread Mattias Gaertner
On Mon, 30 Apr 2012 09:50:30 +0100
Howard Page-Clark h...@talktalk.net wrote:

 On 30/4/12 9:23, Mattias Gaertner wrote:
  On Mon, 30 Apr 2012 10:03:41 +0200 (CEST)
  Michael Van Canneytmich...@freepascal.org  wrote:
 
 
  Hi,
 
  The lazarus code editor shows tooltip hints about identifiers; It gets 
  those
  from the sources or even fpdoc.
 
  Is there any reason why the object inspector would not be able to offer 
  the same hints ?
  Properties and events are also just identifiers after all.
 
  Right click on OI: enable Show hints
 
 There is also the (optional) OI information box which displays limited 
 documentation. However, it is often very limited.
 e.g.
 
 TControl.OnClick
 Event Handler for mouse click
 
 which hardly aids a programmer looking for more information, and in fact 
 is hardly worth displaying at all.
 Would it be difficult to add parameter and parameter type information, 
 and function return type such as codetools offers in the Editor?

The OI and the source editor show the same hint.

Since 0.9.31 the hint shows some more fpdoc content. For example
the description.

Since yesterday it shows the type of redefined properties like OnClick.
That means it shows property OnClick: TNotifyEvent.

It's a todo to show related information like parameters of TNotifyEvent.

Mattias

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


Re: [Lazarus] Object inspector hints ?

2012-04-30 Thread Hans-Peter Diettrich

Howard Page-Clark schrieb:


Right click on OI: enable Show hints


There is also the (optional) OI information box which displays limited 
documentation. However, it is often very limited.

e.g.

TControl.OnClick
Event Handler for mouse click

which hardly aids a programmer looking for more information, and in fact 
is hardly worth displaying at all.
Would it be difficult to add parameter and parameter type information, 
and function return type such as codetools offers in the Editor?


What's the use of such additional information in OI?

You can let the OI create the event handler for you, no need to bother 
with parameters here.


DoDi


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


Re: [Lazarus] Object inspector hints ?

2012-04-30 Thread Howard Page-Clark

On 30/4/12 11:54, Hans-Peter Diettrich wrote:

Howard Page-Clark schrieb:




What's the use of such additional information in OI?

You can let the OI create the event handler for you, no need to bother
with parameters here.


For people who use a stable release all the time, set up according to 
their established preferences, this is true.


I prefer to work mainly with the cutting-edge. And working help for some 
reason is often the first casualty of a new installation.
Since Lazarus does not yet install all help files on all platforms 
ready-to-run, I often find on upgrading or using a daily snapshot that 
help and hints have stopped working for me, and require quite a lot of 
downloads and file copying and setting of help parameters (as URLs, not 
usual directory locations) before the new help installation is rolling 
again. Unaccountably this process sometimes goes quickly and smoothly, 
and at other times takes far too long, and I have to refer to wiki 
articles and mail list archives to try to solve the problem.


OTOH the OI already lists all published events nicely, without need to 
look up the sources. So it is quicker for me (if help is not yet 
working) to drop a component on a form, inspect some information in the 
OI as needed, and perhaps delete the component again if it is not 
actually needed. Obviously for classes that are not on the Component 
Palette this method is not applicable, but often it seems the quickest 
way to get to the information I need. Otherwise I quickly end up with 
loads of source files open in the Editor (which I prefer to avoid 
because it makes it harder to find the few files I am working on; and if 
ever I close a file, I nearly always seem to need it only a few moments 
later).


Howard

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


Re: [Lazarus] Object inspector hints ?

2012-04-30 Thread Richard Mace
On 30 April 2012 09:23, Mattias Gaertner nc-gaert...@netcologne.de wrote:

 On Mon, 30 Apr 2012 10:03:41 +0200 (CEST)
 Michael Van Canneyt mich...@freepascal.org wrote:

 
  Hi,
 
  The lazarus code editor shows tooltip hints about identifiers; It gets
 those
  from the sources or even fpdoc.
 
  Is there any reason why the object inspector would not be able to offer
 the same hints ?
  Properties and events are also just identifiers after all.

 Right click on OI: enable Show hints

 When I do this, I don't get a menu?
I think I am being stupid, could someone elberate?

Thanks

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


Re: [Lazarus] Object Inspector off screen

2012-01-17 Thread wildfire
Anyway, it appears lazarus has remembered my previous window settings and the 
object inspector window is off screen, I can’t see any way to bring it back.

Never mind I found it in IDE options, sorry for wasting your time.--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Object Inspector odd behavior (ComboBox issue)

2011-02-14 Thread John Stoneham
My setup: LCL=carbon (OS X), I build svn daily, and fpc is 2.5.1 from svn

A couple of weeks ago, I noticed that *single*-clicking in the Object
Inspector actually increments the value of any property displayed with
ComboBoxes. That can't be the intended behavior, can it? And then, you can't
re-click it to increment it again; you have to drop the list down and
*double*-click on an item to select the new value. This seems really strange
to me and counter-intuitive. I had to carefully go back through my entire
project to make sure I haven't accidentally changed a value simply by
single-clicking in the object inspector (several indeed had been changed).
Every svn update, I rebuild hoping it's not going to do it anymore, but it
still does.

I actually hope this is a bug, because it's just really weird. Where would I
look in the sources to change this behavior so that it only increments on
double-click, not single-click?

Related to TComboBox, the behavior on carbon (not sure about other
platforms) is not consistent. If it's a read-only list, single-clicking on
an item in the drop-down list selects it and the list goes back up. If it's
not read-only, you must double-click on a list item to make the list go back
up (proper behavior on OS X is for the item to be selected and the list go
back up with just a single click). Again, where would I look in the sources
to change this behavior? This one is really important for my project,
because it goes against the Apple HI Guidelines and might cause my app to
get rejected.


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


Re: [Lazarus] Object Inspector odd behavior (ComboBox issue)

2011-02-14 Thread dmitry boyarintsev
 Related to TComboBox, the behavior on carbon (not sure about other platforms) 
 is not consistent.
 If it's a read-only list, single-clicking on an item in the drop-down list 
 selects it and the list goes
 back up. If it's not read-only, you must double-click on a list item to make 
 the list go back up
 (proper behavior on OS X is for the item to be selected and the list go back 
 up with just a single click).
 Again, where would I look in the sources to change this behavior? This one is 
 really important for my project,
 because it goes against the Apple HI Guidelines and might cause my app to get 
 rejected.

I'm afraid this is how Apple designed Carbon (intentionally i suspect
to force everyone to use Cocoa).
You can actually test by using Interface Builder. Create a window and
place a combobox on it. Add some items to the combobox and run the
simulation. You'll see that combobox is behaving in the same.

This is possible to fix, but it required some additional efforts, and
nobody ever wanted to fix Apple's bugs for them.

This bug doesn't present in Cocoa combobox. So it will be working once
Cocoa widgetset is mature enough, however it's still Alpha and almost
unusable.

thanks,
Dmitry

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


Re: [Lazarus] Object Inspector odd behavior (ComboBox issue)

2011-02-14 Thread John Stoneham
On Mon, Feb 14, 2011 at 12:07 PM, dmitry boyarintsev 
skalogryz.li...@gmail.com wrote:


 I'm afraid this is how Apple designed Carbon (intentionally i suspect
 to force everyone to use Cocoa).
 You can actually test by using Interface Builder. Create a window and
 place a combobox on it. Add some items to the combobox and run the
 simulation. You'll see that combobox is behaving in the same.

 This is possible to fix, but it required some additional efforts, and
 nobody ever wanted to fix Apple's bugs for them.

 This bug doesn't present in Cocoa combobox. So it will be working once
 Cocoa widgetset is mature enough, however it's still Alpha and almost
 unusable.


Hmm, didn't know it was a Carbon combobox thing, since I've only every used
Cocoa in the past, and it is definitely different. Ok, good enough.

However, I'm still curious as to why on earth Object Inspector increments
properties on *single*-click. That is just annoying the hell out of me. You
can't even click to see the list of available properties without changing
the value. I've tried delving into the source but can't locate where to fix
this.


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


Re: [Lazarus] Object Inspector odd behavior (ComboBox issue)

2011-02-14 Thread John Stoneham
On Mon, Feb 14, 2011 at 12:14 PM, John Stoneham captnjamesk...@gmail.comwrote:


 However, I'm still curious as to why on earth Object Inspector increments
 properties on *single*-click. That is just annoying the hell out of me. You
 can't even click to see the list of available properties without changing
 the value. I've tried delving into the source but can't locate where to fix
 this.



Alright, this is definitely a bug. I tried it on the 0.9.28.2 release and it
definitely does not happen there. I can't recall when it started. I'm not
sure if it affects other widgets sets.

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


Re: [Lazarus] Object Inspector odd behavior (ComboBox issue)

2011-02-14 Thread John Stoneham
On Mon, Feb 14, 2011 at 12:30 PM, John Stoneham captnjamesk...@gmail.comwrote:



 On Mon, Feb 14, 2011 at 12:14 PM, John Stoneham 
 captnjamesk...@gmail.comwrote:


 However, I'm still curious as to why on earth Object Inspector increments
 properties on *single*-click. That is just annoying the hell out of me. You
 can't even click to see the list of available properties without changing
 the value. I've tried delving into the source but can't locate where to fix
 this.



 Alright, this is definitely a bug. I tried it on the 0.9.28.2 release and
 it definitely does not happen there. I can't recall when it started. I'm not
 sure if it affects other widgets sets.



Just tried Lazarus svn on Ubuntu and single-clicking on a property in the
Object Inspector does *not* increment its value -- unlike the weird behavior
in the Object Inspector on OS X.

Someone who has more familiarity with the source than me will have to
determine if it's because of a bug introduced in the carbon widgets sometime
after 0.9.28.2, or if it's a bug in the IDE code itself which somehow only
shows with the carbon widget set.

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


[Lazarus] Object Inspector method find error

2009-05-23 Thread a . sanguigni
Hi all,just for one project I have the following error when I try to go into an event clicking on the object inspector:/home/antonio/freepascal/fpc/rtl/objpas/classes/classesh.inc(1557,55) Error: "end" for class/object not foundI'm using:- Lazarus 0.9.27 r20139M FPC 2.3.1 i386-linux-gtk 2 (beta)The only weird thing I have done with this demo project downloaded from the Net was to rename its .lpr name for lower case problems.ThanksAntonio-- Antonio Sanguigni alias slapshot--GioveLUG (Linux User Group) - http://www.giovelug.orgEdupup (Educational distro) - http://www.pieroni.biz/edupup



signature.asc
Description: OpenPGP digital signature
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Object Inspector method find error

2009-05-23 Thread Mattias Gaertner
On Sat, 23 May 2009 12:34:36 +0200 (CEST)
a.sangui...@gmail.com wrote:

 Hi all,
 
 just for one project I have the following error when I try to go into
 an event clicking on the object inspector:
 
 /home/antonio/freepascal/fpc/rtl/objpas/classes/classesh.inc(1557,55)
 Error: end for class/object not found
 
 I'm using:
 
 - Lazarus 0.9.27 r20139M FPC 2.3.1 i386-linux-gtk 2 (beta)
 
 The only weird thing I have done with this demo project downloaded
 from the Net was to rename its .lpr name for lower case problems.

Sorry my fault. Fixed in r20141.

Mattias

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