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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to insert image on DTC button. 2

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello. I am trying to insert an image onto a DTC button. After I click on the option to insert image, I select my jpg - however, when I click ok, no picture shows on the button.

Thanks,
Rene
 
o Is the JPG a part of the project? You must ADD it in the 'images' folder
o Which property did you use? I tried it with succes using the style|background-image property.
o Look at the source. I see in my button tag:
<input id=button1 style=&quot;BACKGROUND-IMAGE: url(images/test.jpg&quot;) >
o Be sure to doubleclick your JPG in the right 'Create URL' window: the picture should be visible in the 'Design' windows after that.
br
Gerard
 
The image only shows at runtime (i.e. in a browser). At design time it shows the alt text in an ordinary button.

You can add images to Grid Next/Prev First/Last buttons too - but it is slighly more complicated...

Sub thisPage_onenter()
if thisPage.firstEntered = true then
with grdGRID_DTC.getPagingNavbar()
with .getButton(0)
.setStyle 1
.src = &quot;../images/first.gif&quot;
.alt = &quot;First&quot;
end with
with .getButton(1)
.setStyle 1
.src = &quot;../images/back.gif&quot;
.alt = &quot;Prev&quot;
end with
with .getButton(2)
.setStyle 1
.src = &quot;../images/next.gif&quot;
.alt = &quot;Next&quot;
end with
with .getButton(3)
.setStyle 1
.src = &quot;../images/last.gif&quot;
.alt = &quot;Last&quot;
end with
end with
end if
end sub
(Content Management)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top