Sie sind nicht angemeldet.

1

Donnerstag, 24. Januar 2013, 17:39

Area over the Font in a textfield is not enabled, but the background OK

Creating a Textfield works great for buttons, except when the cursor is directly over the HTML Font itself, it is not clickable or enabled in any way. Hovering or clicking on the background area above or below the actual wording works fine.
V. 10815 10-12
Am I the only one?

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
	<style name="galbtn" url="%CURRENTXML%/plugins/textfield.swf" keep="true"  
		width="105" height="29"
		vcenter="true"
		selectable="false" 
		borderwidth="1" roundedge="12" 
		shadow="0.01" shadowrange="9" shadowcolor="0x000000" shadowalpha="1" 
		css="font-size:14px; color:#000000; text-align:center"

	/>
		<layer name="txt_home" style="galbtn" html="[b]MAIN MENU[/b]" zorder="51" align="topleft" edge="topleft" y="5" x="5"
		onhover="showtext(enabled);" 
		/>

2

Freitag, 25. Januar 2013, 11:12

Hi,

try adding - children="false" - to make the whole textfield itself clickable (by disabling sending mouse-events to the text, which is a children of the textfield).

Best regards,
Klaus

3

Freitag, 25. Januar 2013, 19:22

Solved

Hi,

try adding - children="false" - to make the whole textfield itself clickable (by disabling sending mouse-events to the text, which is a children of the textfield).

Best regards,
Klaus


Thanks Klaus, that did the trick!