Jump to content

guiCreateScrollPane problems?


denny199

Recommended Posts

Hey there, I was working on something big, but then I have got a problem, when I have created a scrollpane and create the images over it, the scrollbar isn't showing, is this a bug or something else?

Because I never worked with scrollpanes

Here's my code: [ not full ] ~because you only need this part

  
  
musicsong = -0.010 
nummerwit = 0 
  
songs = { 
{"America - A horse with no name","http://netanimations.net/A-Horse-With-No-Name.mp3"}, 
{"Beatfreakz - Superfreak","http://shemet.in/~klav/Music/Dance%20Disko%20Electronik/Various/Beatfreakz%20-%20Superfreak%20(Radio%20Edit)%[email protected]"}, 
{"Swedish House Mafia - Greyhound","http://www.vincesteven.com/IMG/mp3_Swedish_House_Mafia_-_Greyhound_Original-Mix_.mp3"}, 
{"Bobby Burn - I'm from Holland","http://users.telenet.be/melissaris/holland.mp3"}, 
{"Psy - Gangnam style","http://a.tumblr.com/tumblr_m8nexkKWB61qlpz0ko1.mp3"}, 
{"RTC - Army of Hardcore","http://gratuitfr.free.fr/thunderdome%20-%20army%20of%20hardcore.mp3"}, 
{"Eminem - The real slim shady","http://1cd.palco.fm/1/c/3/b/beltrao-eminem-the-real-slim-shady.mp3"}, 
{"David Guetta ft Sia - Titanium","http://a.tumblr.com/tumblr_m3j6avWuZ81qch4ruo1.mp3"}, 
{"Dj Paul Elstak - Blood Sweat Hardcore","http://hardcore.ru/music/mp3/200/31.mp3"}, 
{"Skrillex - Scary Monsters and Nice Sprite","http://thenewmontreal.com/wp-content/uploads/audio/Scary-Monsters-and-Nice-Sprites.mp3"}, 
{"AntiDJ - Dance or die cd1 Progressive house","http://freedownloads.last.fm/download/254068161/Dance+or+Die+-+CD+1.mp3"}, 
} 
  
  
  
function importtest () 
display = guiCreateStaticImage(0.0921, 0.1745, 0.8204, 0.6793,"iphoneback.png", true, ipod ) 
  
scrollpanem = guiCreateScrollPane(0.0000,0.0887 - 0.010,0.9958,0.9975,true,display) 
for i,v in ipairs (songs) do 
nummerwit = nummerwit + 1 
musicsong = musicsong + 0.0887 
wit[ nummerwit ] = guiCreateStaticImage(0.0000,musicsong,0.9958,0.0887,"img/wit.png", true, scrollpanem ) 
songnummer[ nummerwit ] = guiCreateLabel(0.0000,0.0000,0.9958,0.9167, tostring(v[1]),true,wit[ nummerwit ]) 
guiLabelSetHorizontalAlign ( songnummer[ nummerwit ], "center" ) 
guiLabelSetVerticalAlign ( songnummer[ nummerwit ], "center") 
guiLabelSetColor ( songnummer[ nummerwit ], 0, 0, 0 ) 
guiSetFont(songnummer[ nummerwit ], "default-bold-small" ) 
end 
end 
addCommandHandler ( "importme", importtest ) 
  

Regards,

Danny

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...