RE: Windows bitmaps woes...

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

Your program still needs work but your problem is in your timer routine 
(onMyTimer).

You have:
   Seconds =+ 1

Should be:
   Seconds += 1

-- Brian

JesusC wrote:
> Hi, bitmappers.
> Although some of you have been extremely helpful
> (Mike, Tubby, Dieter...), I'm still stuck with the
> bitmap painting issue.
> I think I understand the principles, but I'm missing
> something, since my programs refuse to work.
> I'm currently working on a revamped Thermometer
> program.
> Basically, the program has two parts: One that
> captures the data from the parallel port, and another
> one that shows it in the form of a simulated LED
> display.
> To do so, I've designed a bitmap file that contains 16
> 128x204 images of each of the basic symbols,
> (1234567890-ºCF+"). This was previously working with
> 16 separate bitmaps.
> The program has a timer that triggers a temperature
> reading every 3 seconds (onTimer).
> I got also a onOpen window routine, and a onPaint one.
> 
> The problem is that the program works only for the
> first time (i.e. paints properly the data onto the
> screen).
> 
> Trying to isolate the problem, I've come into a Clock
> program that is basically the same, but simpler and 
> without accessing to the temperature probe, and
> obviously, the timer goes on every second.
> 
> It's doing the same. I suspect I'm doing something
> wrong when painting onto the screen, but after many
> hours of hair pulling, I've decided to ask for help. I
> enclose the program with the bitmap, because is very
> small once packed (6 Kb.).
> I tried everything: bitblt inside the onpaint routine,
> inside the timer routine.... No luck.
> Thanks for your patience.
> Desperate Jesus.
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu