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!

Grid Navigation Buttons - with (rollover) images

Button DTCs

Grid Navigation Buttons - with (rollover) images

by  MerlinB  Posted    (Edited  )
If you want to add images to the first/last next/previous buttons of the gridDTC, then you may find the following code useful:

sub <myPage>_onenter()

'set images for the grid navigation buttons
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
end sub

To add rollover images, then see the other FAQ that shows how to extend the PushButtonDTC to include the rollover feature. Then in each section above, add a
.rollover_src = "../images/first_01.gif"
or whatever the image is called.
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