RE: check mark instead of bitmap!?

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

Hi Shep,

I've never seen any such problems.  Perhaps a screen shot and some 
source code would help...

-- Brian
(if you send anything to the list as an attachment, please CC me 
privately because I use the Topica web interface only and can't get 
attachemts)

Shep wrote:
> 
> 
> Hi:
> Everybody, I am having a strange problem.  I have a set of bitmaps in 
> different windows.  Access to the windows comes from a simple pushbutton 
> 
> selection that opens the individual window. In each window a set of 
> bitmaps is displayed. The bitmaps use the following code:
> 
> constant Bitmap174 = createEx( Bitmap, "Bitmap174", Window20, 876, 4, 
> 136, 120, 0, 0 )
> setBitmap( Bitmap174,"WORK.bmp")
> 
> In some windows random bitmaps are displayes using the rand code:
> picd = rand(78) 
> 
> 
> constant PIC_1 = create(Bitmap,"cardback.bmp", Window20, 60, 
> 10,148,148,0 )r c = 78 to 1 by -1 do        -- shuffle the cards
> card1 = rand(c) 
>   setBitmap( PIC_1, sprintf( "%d.bmp", {shuffled[picd]}))
> 
> the code works no problem,
> but, once in a while something weird happens.
> 90% of the time the window opens and all bitmaps can be seen, either fix 
> 
> like the first illustration, or random like the second.
> but...  the other times... a picture or two are not displayed instead a 
> check mark is visible!
> 
> Even when the bitmap pic is fixed!
> constant Bitmap174 = createEx( Bitmap, "pic23.bmp", Window20, 876, 4, 
> 136, 120, 0, 0 )
> 
> It makes no sense to me.. I have worked with visual basic and I never 
> had this type of problem before... I an not sure what is going on 
> here... I dont see a reason why once in a while the bitmap is not shown 
> instead a check mark come up?? 
> 
> Also, a couple of times... a bitmap is not read.. and a error message 
> appears saying "unable to read bitmap". this is true if the same bitmap 
> was open just a few minutes before? and if the window is closed and open 
> 
> again.. the bitmap is loaded!
> 
> However... the check mark.. once it comes.. it will not go away.. unless 
> 
> the program is closed and restarted.
> 
> Can anyone give me an idea? Has any one else had this problem before?
> 
> Many thanks in anticipation for your help.
> Shep
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu