Re: Stellar Project

new topic     » goto parent     » topic index » view thread      » older message » newer message

Can someone explain my mistake?

This does not work but I need it to work

procedure starWindowOpen (integer self, integer event, sequence params)--params is () 
	atom hbitmap 
	 
	hbitmap =  createDIB( {pal, starTable[3]} ) 
	drawBitmap(pixWindow,hbitmap, 100,100) 
	copyBlt(starWindow,0,0,pixWindow) 
 
	 
end procedure 
 
	setHandler( starWindow, w32HOpen, routine_id("starWindowOpen")) 
	 
	WinMain(starWindow, Normal) 

This does work but I don't want the object where it puts it.

procedure starWindowOpen (integer self, integer event, sequence params)--params is () 
	atom hbitmap 
	 
	hbitmap =  createDIB( {pal, starTable[3]} ) 
	drawBitmap(bitWindow,hbitmap, 100,100) 
	setBitmap(bitWindow, hbitmap) 
	 
end procedure 
 
	setHandler( starWindow, w32HOpen, routine_id("starWindowOpen")) 
	 
	WinMain(starWindow, Normal) 

Any ideas what I am doing wrong.. thanks for help

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu