You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, April 5th 2010, 3:48pm

Text which appears over buttons

If can, help how to adjust the text which appears over buttons (a folder skin).
It is necessary to fix the text over buttons in the middle (at cursor prompting on any button).

In drawing below.
Can eat an example?

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

2

Monday, April 5th 2010, 7:24pm

Hi Ippolit,

Have a look to the showtext(text,textstyle*) and the <textstyle> documentation...
The showtext action can call a textstyle parameter.
In the <textstyle> node you can define how the text is displayed.
  • .....
  • origin
    "cursor" - set textposition to mouse cursor (=default)
    for a fixed positon on screen use one of these values:
    "lefttop", "left", "leftbottom", "top", "center", "bottom", "righttop", "right", "rightbottom"
  • edge
    edge/origin positon on the text itself, default="bottom"
  • textalign
    align of the text: "none", "left", "center", "right" (default="none")
  • xoffset
    x offset of text (default="0")
  • yoffset
    y offset of text (default="-3")
  • .....
So, a possible code for your needs could be:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
<!-- button showtext() style -->
<textstyle name="buttonstyle"
	origin="bottom" 
	yoffset="60"
	......
	/>
	
<plugin name="openfs"
	......
	onhover="showtext(Fullscreen, buttonstyle);"
	onclick="set(fullscreen,true);"
	/>


SAlut.

3

Monday, April 5th 2010, 8:02pm

One minute and all has earned! The wizard! :)
Thanks!!!

Similar threads