Jump to content

Nochmal ListControl


mague

Recommended Posts

Hi,

 

ich brauch hier etwas Hilfe.

 

Ich will EPG wie in der Senderliste darstellen

post-82324-0-38394200-1330534795_thumb.png

 

Ich mach das ungefaehr so:

 

EPGID:= mychannels[CHNr,26] +  mychannels[CHNr,23] shl 16;
epgresult:= DVBViewer.EPGManager.GetAsArray(EPGID,Now,0,epgarray);

item.Labeltext[1] := epgarray[i,5];
item.Labeltext[2] := epgarray[i,6];

EPGList.AddItem(item);

 

Das tut soweit auch, aber lange strings wie z.B. epgarray[x,6] (Description) oder lange Filmtitel schiebt es mir nach links aus dem Listview Objekt.

post-82324-0-75037900-1330535301_thumb.png

 

Was mach ich falsch ?

Link to comment

Problem ist zur Haelfte geloest. Ich hatte im Skineditor TextAlign auf center. Wenn Near, dann bricht es ordentlich um. Auch muss man item.Labeltext[3] befuellen. Ich hatte 3 ganrnicht im code.

 

Trotzdem schaffe ich es nicht mehr als zwei Zeilen untereinander darzustellen. Der Button sollte bei einer Schriftgroesse von 16 und einer Hoehe von 130px eigentlich gross genug sein.

 

X und Y offsets habe ich im Skineditor beachtet.

 

Mir wuerde es schon helfen wenn jemand bestaetigt oder dementiert das hier getrickts werden muss indem man Strings zusammenfuegt und/oder CRLF benutzt. Also z.B. Titel+'CRLF'+Subtitel. Ist ja kein Problem wenn dem so waere. Ich wills halt so konform wie nur moeglich machen.

Edited by mague
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...