2011-06-03, 14:21
is there a way to display a text like "type album name" in the edit control if it has focus and nothing is typed in, but disappears as something is typed in?
<control type="label" description="search album">
<visible>Control.HasFocus(19) + Container.Content(Albums) + IsEmpty(19)</visible>
<posx>108</posx>
<posy>4</posy>
<width>220</width>
<height>40</height>
<aligny>center</aligny>
<align>left</align>
<label>type album name here</label>
</control>
pieh Wrote:but then skinners wouldn't have control over font used to render it
ronie Wrote:perhaps add [font=] to the label formatting options?That would be very handy in general imo, I believe I even made a trac for this at some point actually.
Jeroen Wrote:It could also be used for the name field in the media source dialog, and in the keyboard dialog. Possibly also the search field in the left menu in the library screens.
jmarshall Wrote:One thing to think about is an edit control has 2 labels (left and right like a button), and will currently return label1 most likely? It would be feasible to change this so that it returns a combination of label1 and label2 - I think button does this?
jmarshall Wrote:With that said, Control.GetLabel() should return _something_ sensible either way.
<label font="default">hello world</label>
<label font="arial.ttf" size="20">hello world</label>