tRzDBGrid Button Press

Components on the Raize Lists palette: list boxes, check lists, combo boxes, tree views, list views, grids, etc.

tRzDBGrid Button Press

Postby Bazzer747 » Fri Jun 22, 2018 3:55 am

Hi,
With a normal dbgrid I can simulate a button press programmatically with

dbgrid.BtnClick( nbNext );

Bur the Raize component doesn't have that.

How do I do this?
Bazzer747
 
Posts: 26
Joined:
Tue Jan 12, 2016 6:05 am

Re: tRzDBGrid Button Press

Postby Raize Support » Fri Jun 22, 2018 5:46 pm

Hi,

Your post refers to the TDBGrid and TRzDBGrid controls, but I believe you mean the TDBNavigator and TRzDBNavigator controls. The navigators are the controls that have the BtnClick method.

The BtnClick method does indeed exist in the TRzDBNavigator control. However, the enum type that is used as the parameter is a TRzNavigatorButton and not a TNavigatorButton. The simplest way to resolve the scoping issue is to simply prefix the nbNext with the TRzNavigatorButton type. For example,

Code: Select all
  RzDBNavigator1.BtnClick( TRzNavigatorButton.nbNext );


Ray
Raize Software Support
Raize Software
http://www.raize.com
Raize Support
 
Posts: 622
Joined:
Fri Mar 25, 2011 9:04 pm


Return to Lists

Who is online

Users browsing this forum: Bing [Bot] and 2 guests

cron