1. Pictures arn't showing up

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!  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!

-Dan Da Man

new topic     » topic index » view message » categorize

2. Re: Pictures arn't showing up

Post the program to me and I'll have a look.
------
Derek Parnell
Melbourne, Australia
"To finish a job quickly, go slower."

----- Original Message -----
From: <RedDan11 at AOL.COM>
To: "EUforum" <EUforum at topica.com>
Sent: Thursday, March 08, 2001 3:44 AM
Subject: Pictures arn't showing up


> 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!  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!
>
> -Dan Da Man
>
>

new topic     » goto parent     » topic index » view message » categorize

3. 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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu