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)
NextGrid - ability to populate a column with a useable button (only)
Started by DbBanjo, Oct 03 2012 04:20 PM
NextGrid TNxImageColumn TNxButtonColumn
4 replies to this topic
#1
Posted 03 October 2012 - 04:20 PM
#2
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.
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.
--
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
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)
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
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.
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.
--
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
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,
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,
Also tagged with one or more of these keywords: NextGrid, TNxImageColumn, TNxButtonColumn
NextSuite v6 - VCL Components →
NextGrid v6 Component →
Help with NextGrid.RowHeight at runtime.Started by lsquez, 21 Aug 2018 |
|
|
||
NextSuite v5 - VCL Components (Previous version) →
General Discussion →
Adding solid cells in the tableStarted by Ltybcrf, 15 Sep 2016 |
|
|
||
NextSuite v5 - VCL Components (Previous version) →
NextGrid Component →
NextGrid headers do not support Unicode in BPLStarted by igorok, 01 Mar 2015 |
|
|
||
NextSuite v5 - VCL Components (Previous version) →
NextGrid Component →
Disable header clickStarted by Alex, 13 Jan 2015 |
|
|
||
NextSuite v5 - VCL Components (Previous version) →
NextGrid Component →
Direct load image from the web to TNxImageColumn or TNxGraphicColumnStarted by IUnknown, 19 Aug 2014 |
|
|
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












