Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making the paging buttons into Image buttons

Grid DTC's

Making the paging buttons into Image buttons

by  MerlinB  Posted    (Edited  )
The code needed to set a grid's page navigation buttons (Prev, Next etc.) is as follows:

Somewhere in the thisPage_onenter()...

with grdIssueList.getPagingNavbar()
with .getButton(0)
.setStyle 1
.src = "../images/first.gif"
.alt = "First"
end with
with .getButton(1)
.setStyle 1
.src = "../images/back.gif"
.alt = "Prev"
end with
with .getButton(2)
.setStyle 1
.src = "../images/next.gif"
.alt = "Next"
end with
with .getButton(3)
.setStyle 1
.src = "../images/last.gif"
.alt = "Last"
end with
end with

Change the name of the grid (in bold above) to the appropriate one. (And the path to the images, of course!)

The .setStyle 1 bit tells the button to be an Image button (0 = Text, 1 = Image).

You should check to see if the grid uses navigation buttons first (else an error may occur).

mbeedell@websitedesign.co.uk
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top