Re: Pictures arn't showing up
Hello Dan,
>I used to program in DOS but I switched over to windows for more options.
>I
>have been trying to display a BMP with loadbitmapfromfile and drawBitmap
>but
>it just ain't working!
Try this:
create a pixmap using the create() function
load the bitmap file into it using setPixmap()
display the image using copyBlt()
>I thought it might be my code but it wasn't throwing
>any errors, so I ended up even trying this which I copied right out of the
>win32lib document:
>drawLine (SimpleWin , 10, 10, 100, 100)
>
>No line came up in my window. It was just blank! Someone help me out!
Make sure you are showing the correct window i.e: "SimpleWin"
Make sure the drawLine statement is being executed:
Put it in a routine called DrawTheLine() and then after the
end procedure put this line:
onClick[SimpleWin] = routine_id( "DrawTheLine" )
Now when you click on the window the line should be drawn
another thing to try: setPenColor() to make your line colored.
hope this helps,
Lewis Townsend
|
Not Categorized, Please Help
|
|