Jump to content


Photo

How to display a row's memo contents via mouse-over event?


  • Please log in to reply
9 replies to this topic

#1 DbBanjo

DbBanjo
  • Members
  • 26 posts

Posted 22 May 2017 - 08:26 PM

Howdy,

 

  What properties \ event is needed to be able to display a row's memo contents 

when a mouse-over event occurs?  This display would be shown in a very similar 

manner as a hint ..

 

                   Thanks,

 

Attached Files



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,757 posts
  • Gender:Male

Posted 22 May 2017 - 09:15 PM

Hi,

You can use ExpandContent property to show content in all cells, but for your case maybe you can use OnMouseMove event and GetCellAtPos method.

Then inside OnSetCell event of Column, set ExpandContent to True or False depending if cell is currently "hot" (mouse is over cell).

I will addd OnCellHover event as soon as possible, but maybe you can do something with this.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.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 DbBanjo

DbBanjo
  • Members
  • 26 posts

Posted 23 May 2017 - 02:43 AM

Howdy Boki,

 

  Thanks for the rapid reply & suggestions!

 

  For ref, attached is an example of the code & 

display of this feature with NxDBGrid, ver 5.

 

 

Attached Files



#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,757 posts
  • Gender:Male

Posted 23 May 2017 - 07:19 AM

Hi,

ExpandContent property should work in your case then, to achieve same effect as in v5.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.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 DbBanjo

DbBanjo
  • Members
  • 26 posts

Posted 23 May 2017 - 10:10 AM

Howdy Boki,

 

  I agree with you: 'ExpandContent' SHOULD work in 

the same manner for version 6 as it does for version 5: 

my point is the fact this is NOT working.  Sorry, if I wasn't 

clear in my original post ...

 

              Thanks,

 



#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,757 posts
  • Gender:Male

Posted 23 May 2017 - 05:12 PM

Hi,

Not sure why it's not working.

Can you open demo in:

....\Next Suite 6\Demos\Next DBGrid\Delphi\ClientDataSet Demos\Delphi XE6\Memo Field Demo

And then click on arrow in header for memo column. Can you tell me does it work?
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.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.

#7 DbBanjo

DbBanjo
  • Members
  • 26 posts

Posted 23 May 2017 - 06:21 PM

Howdy Boki,

 

  Well, as to the question 'Does it work?', I think the answer 

depends on your definition of 'working'.  I was able to built 

your Memo Field Demo for Delphi 7:

 

    - I do see the ExpandContent option which toggle the 

    contents of a cell's memo value to either '(MEMO)' or 

    a full display of the memo value (within the available cell 

    space)

 

    - I don't see the functionality which was present in Ver. 5: 

    in which a cell's memo value is displayed within a hint window 

    when a mouse-over event occurs (as shown in the screen 

    shot from my last post) 

 

 It's not a problem, I'll just assume this version 5 functionality 

as been removed.

 

                    Thanks for your patience,

 



#8 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,757 posts
  • Gender:Male

Posted 23 May 2017 - 06:25 PM

Hi,

Now I understand, hint differ from content. i will take a look again and fix it.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.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 DbBanjo

DbBanjo
  • Members
  • 26 posts

Posted 24 May 2017 - 12:57 AM

Howdy Boki,

 

  Thanks.  

 

  Lol, I'm sorry I couldn't have explained this 

a bit clearer when I started this thread.  I need 

to just post a screen shot of the problem in the 

very beginning ...



#10 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,757 posts
  • Gender:Male

Posted 24 May 2017 - 08:57 PM

Hi,

No problem, hope that I will re-upload files in couple of days so you can use this feature.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.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.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users