Hi, I'm playing around with the Blitzplus demo to see if it will do the job I need it for.. so I'm alittle in the dark with the docs.
Anyway, I wrote this lil proggie - but for some reason the buttons dont work ? (apart from the first one).. and I keep losing them on the screen (refresh ?)
Most of the code was taken from the demos, so I'm not sure what does what.. alittle help please kind Sirs !.
As a quick afterthought.. how do you put text in the window ? (so I can label things). I'd like some descriptive text above my drop down box.
Anyway, I wrote this lil proggie - but for some reason the buttons dont work ? (apart from the first one).. and I keep losing them on the screen (refresh ?)
Global wwidth=400 Global hheight=400 winhandle=CreateWindow( "Report Form",(ClientWidth(Desktop())/2)-(wwidth/2),(ClientHeight(Desktop())/2)-(hheight/2),wwidth,hheight ) studentname=CreateComboBox( 10,10,128,24,winhandle ) classname=CreateComboBox( 10,60,100,24,winhandle) For k=0 To 9 AddGadgetItem studentname,"Pupil "+k Next OptionButton1=CreateButton("C",100,100,300,40,WinHandle,2) OptionButton2=CreateButton("O",130,100,300,40,winhandle,2) OptionButton3=CreateButton("K",160,100,300,40,WinHandle,2) OptionButton4=CreateButton("V",190,100,300,40,WinHandle,2) OptionButton5=CreateButton("W",220,100,300,40,WinHandle,2) OptionButton6=CreateButton("H",250,100,300,40,WinHandle,2) OptionButton7=CreateButton("P",280,100,300,40,WinHandle,2) While WaitEvent()<>$803 If EventID()=$401 If EventSource()=studentname Notify "Item selected:"+SelectedGadgetItem(studentname) EndIf EndIf Wend End
Most of the code was taken from the demos, so I'm not sure what does what.. alittle help please kind Sirs !.
As a quick afterthought.. how do you put text in the window ? (so I can label things). I'd like some descriptive text above my drop down box.