Displaying text on top of an image in a label

Questions, tips and tricks and techniques for scripting in Servoy

Displaying text on top of an image in a label

Postby drookwood » Wed Feb 18, 2004 1:18 pm

What is the best way to display text on top of an image in a label?

I like the navigation buttons in crm which indicate to the user the route they have taken to get where they are and allows them to jump back to any point on the route.

When I try to implement a similar system the graphic does not display - instead I get the name of the media file displayed as text followed by any other text set by the method.

The label text property is set to:

%%globals.navHTML1%%%%globals.nav1_button_img%%%%globals.navHTML2%%%%globals.nav1_button_text1%%%%globals.navHTML3%%%%globals.nav1_button_text2%%%%globals.navHTML4%%

where the navHTML fields hold the html code (as in crm) to surround the global text fields which are set with the image and text to display using this:
Code: Select all
globals.nav1_button_img = "media:///contacts_icon.png";
globals.nav1_button_text1 = current_form;
globals.nav1_button_text2 = name;


Can anyone see why the graphic does not display?
Does anyone have a better way of doing this?
David Rookwood

SAN Developer
drookwood
 
Posts: 290
Joined: Tue Nov 11, 2003 7:08 pm
Location: Somerset, UK

Postby maarten » Wed Feb 18, 2004 9:13 pm

Can you give me a screenshot of the button?
Did you recheck the html code that goes into the HTMLtags?
Maarten Berkenbosch
User avatar
maarten
 
Posts: 797
Joined: Wed Apr 23, 2003 10:52 pm
Location: Amersfoort, Netherlands

Postby drookwood » Fri Feb 27, 2004 7:05 pm

Sorry for the delay - you were right about the html, there was an error. Now fixed and working :oops:
David Rookwood

SAN Developer
drookwood
 
Posts: 290
Joined: Tue Nov 11, 2003 7:08 pm
Location: Somerset, UK


Return to Methods

Who is online

Users browsing this forum: No registered users and 41 guests

cron