Jump to content


Photo

Hints


  • Please log in to reply
12 replies to this topic

#1 abraham_ll

abraham_ll
  • Members
  • 30 posts

Posted 28 June 2007 - 10:13 AM

Hi Boki,

Only the hints assigned to TNextInspector is exposed to the application. Hints from all its children (TNxToolbarItem, TNxComboboxItem, TNxButtonItem, ...) are not exposed. The reason seems to be that TNextInspector is a TControl but TNxToolbarItem, TNxComboboxItem, TNxButtonItem, ... are not TControl.

Abraham

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 28 June 2007 - 11:42 AM

Hello Abraham,

I am sorry, but I don't understand your post completelly sad.gif Maybe you are need to set ShowHint of Item to True?

Can you please give me more details.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 abraham_ll

abraham_ll
  • Members
  • 30 posts

Posted 28 June 2007 - 05:11 PM

Couple of examples:

Ex 1. Drop a RzBaloonHints (Raize) or JvBaloonHint (JVCL) on a form containing TNextInspector and some standard controls such as buttons, checkboxes, etc. Hints from all the controls on the form will change their look (even TNextInspector) except TNxToolbarItem, TNxComboboxItem, TNxButtonItem, ...

Ex 2. The component FormHelp from UtilMind displays a "whats this?" caption button on the title bar of a form. When you click that button and click any control on the form it then shows the hint associated with that control. Now on my form it shows the hints from every other control except TNxToolbarItem, TNxComboboxItem, TNxButtonItem, ...

I can manually pass a control to FormHelp but it must be a TControl.

Hope it´s clear now.

Thanks, Abraham

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 28 June 2007 - 05:22 PM

Hello Abraham,

I have fix it,

Please contact me via e-mail to I send you latest release with this bug fixed.

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#5 abraham_ll

abraham_ll
  • Members
  • 30 posts

Posted 28 June 2007 - 05:25 PM

Wow, that was quick.
Email sent.

Thanks, Abraham

#6 abraham_ll

abraham_ll
  • Members
  • 30 posts

Posted 28 June 2007 - 07:52 PM

Unfortunately it didn't help.
If you have JVCL installed, just drop a JvBaloonHint on the form and compare the hints.

Thanks, Abraham

#7 abraham_ll

abraham_ll
  • Members
  • 30 posts

Posted 28 June 2007 - 07:55 PM

By the way the version number of NextInspector is 4.5.1

Abraham

#8 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 28 June 2007 - 10:31 PM

Hello Abraham,

I am sorry, I didn't realise that constructor of Component is called before constructor of Form sad.gif

Please do next:

1) Open NxInspector.pas
2) Go to,
constructor TNxCustomInspector.Create(AOwner: TComponent);
3) Delete 2 lines:
CODE
FHintWindow := HintWindowClass.Create(Self);
FHintWindow.Color := Application.HintColor;

and replace them with
CODE
FHintWindow := nil;

4) Go to
TNxCustomInspector.ShowItemHint and add next lines at begin of procedure:
CODE
if not Assigned(FHintWindow) then
begin
  FHintWindow := HintWindowClass.Create(Self);
  FHintWindow.Color := Application.HintColor;
end;


I hope that this is it smile.gif
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#9 abraham_ll

abraham_ll
  • Members
  • 30 posts

Posted 28 June 2007 - 11:00 PM

Now it generates Access violation:
NxInspector 1580 TNxCustomInspector.HideItemHint
NxInspector 1124 TNxCustomInspector.MouseMove

#10 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 28 June 2007 - 11:14 PM

Hello Abraham,

I will be back in few minutes, just to find where I may put creating hint to create hints immidiately when component is created.

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#11 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 29 June 2007 - 12:11 AM

Hello Abraham,

I think that now is fine, I am checking HintWindowClass, and if differ from current, hint window is re-created with new HintWindowClass.

I have send you changes inside PM.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#12 abraham_ll

abraham_ll
  • Members
  • 30 posts

Posted 29 June 2007 - 09:56 AM

Thanks, with the PM file JvBaloonHint works now, but still out of luck with UtilMind's FormHelp.

Abraham

#13 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 29 June 2007 - 10:07 AM

Hello Abraham,

Maybe it is not possible to have UtilsMind's tooltip for specific Item. Can you please tell me on what principe it works?

Please note that Items in NextInspector are not controls with own handles (this will take a lot of memory).

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users