Jump to content


Photo

Visualy notify hint on column header exists


  • Please log in to reply
4 replies to this topic

#1 qi130

qi130
  • Members
  • 23 posts

Posted 26 December 2022 - 01:57 PM

Hello all,

 

Hope the title is self explanatory ?

 

I'm looking for something like in excel where cells with comment on appear with a red square in the upper right corner.

 

Attached File  Capture.JPG   13.86KB   0 downloads

 

Regards.



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 26 December 2022 - 09:17 PM

Hi,

 

You can set MyGrid.Cell[x, y].Hint property for this purpose.


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 qi130

qi130
  • Members
  • 23 posts

Posted 28 December 2022 - 08:19 PM

Hi Boki,

Thanks for reply.

 

I'm talking about the header cell !

 

User cases for header are sorting, sizing or moving column; so the mouse cursor move over the header, and this event show the hint.

 

But, when user just looks at datas in the grid (95% of  the time or more?), the mouse moved from buttons (like ok/cancel) to scroll bars, there is nothing to notify him about a hint for a particular column header cell.

 

I suggest a red square appears when the header hint exists (only for the header cell, not all the column)

 

User xp: ho ho ho what's about this little red square in the column header... let's have a look... whaou ! the soft notifies the sum of the data in the column through the hint



#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 31 December 2022 - 03:11 PM

Hello,

 

There is a property Hint in Header sub-property of Column. Maybe this can help you.

 

Other solution is to use standard OnMouseMove event and implement hints manually. If you want to show hints in "normal" cells, you can hide marks by excluding aoHintMarks from AppearanceOptions property.

 

Hope that this helps a little bit.


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 qi130

qi130
  • Members
  • 23 posts

Posted 03 January 2023 - 01:09 AM

Thx for reply.

 

Unfortunatly, header hint is yet set. But the hint appears only when cursor is flying over. In most time, the cursor is all round the header; that why I asked for the red square as it can be a visual signal to notify a user about information...

 

I'm working on a SQL query buider.

My grid contains a column 'column name'; with a cell for each column of the previously selected tables. each cell is colored depending on technical attributes (ie mandatory:PK or not null w/o  default, etc). for each cell the hint contains the SQL definition (ie integer, date) and the parent table.

And the header hint explains the colors.

 

This light conception prevents the need of numerous permanent columns : parent table name (Text), SQL definition (text), PK & NotNull & default (check) as the grid is yet full of query related columns like new value and others to build the "where" part with a "join" possibility

 

I guess this red square  in the header is a user friendly reminder...

 

Regards.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users