Jump to content


Photo

NextGrid - ability to populate a column with a useable button (only)

NextGrid TNxImageColumn TNxButtonColumn

  • Please log in to reply
4 replies to this topic

#1 DbBanjo

DbBanjo
  • Members
  • 26 posts

Posted 03 October 2012 - 04:20 PM

Howdy,

Is a component available for the NextGrid which provides the ability to populate a column
with a useable button? By 'useable button' I mean: a graphic (.ico\.bmp\etc ..) which will
visually react to a mouse click.

Thanks,

DbBanjo (Marc Bolen)

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 03 October 2012 - 05:32 PM

Hello,

You may use custom drawing for this, to draw a button. Also you may use ImageColumn and attach Images to it.

Here is a small demo about how to draw a button.

Attached Files


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 DbBanjo

DbBanjo
  • Members
  • 26 posts

Posted 04 October 2012 - 12:51 AM

Howdy Boki,

Thanks for taking the time to both reply and supply a solution with an example!

I've decided to use the TNxImageColumn approach which allows for the programatic
display of one of several images depending on my data.

It would be "nice" to have the ability to have a button image which would visually
respond to a mouse click. By this I mean: then a mouse click occurs, the button image
would change to visually indicate the button has been clicked.

The functionality I'm trying describe above is the same as is displayed with a
TNxButton (when the button is clicked).

Any thoughts on how to accomplish this?

Thanks for your help,

DbBanjo (Marc Bolen)

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 04 October 2012 - 07:38 AM

Hello,

Maybe you can use OnMouseDown event and GetCellAtPos method. Then, simply change custom drawing or change image when cell is pressed.

v6 of NextGrid will include such kind of button column.
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 DbBanjo

DbBanjo
  • Members
  • 26 posts

Posted 08 October 2012 - 08:17 PM

Howdy Boki,

Thanks for the direction. A combo. of using OnMouseDown & OnMouseUp to display
a desired .bmp & an inverse image of the same .bmp does exactly what I'm looking for.

I'll look forward to V6!

Thanks for your help,





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users