On Oct 11, 2011, at 1:24 AM, Adam wrote:
> I'm a beginner to Dabo and programming in general, so I have no idea
> what's happening here. Basically, I have a window displaying a dBitmap
> control on the left to be manipulated, and some controls on the right.
> This screenshot shows the state of the window before pressing the "Run"
> button, as well as the code that is executed upon hitting the button:
>
> http://img198.imageshack.us/img198/2914/beforeix.png
>
> At this point the only effect of the button should be to track whether
> it is 'running' or 'paused,' and to change the caption of the button to
> reflect this toggling between states.
>
> The toggling behavior works, but with an undesired side effect of
> erasing most of the bitmap:
>
> http://img59.imageshack.us/img59/7015/afters.png
>
> Attempting to refresh() or redraw() the dBitmap after the button press
> has no effect. I notice that the bitmap below the button remains
> visible, so I imagine this is a clue. bringToFront() or sendToBack()
> don't make any difference.
>
> Any idea what's causing this, if there's a simple fix, or will I have to
> rebuild the bitmap every time this happens?
First off, can you post your system info? From any Dabo app, go to the
Help/About menu, and the dialog that appears will have a button that will copy
the info to the clipboard, where you can paste it in your reply.
Second, how are you creating the dBitmap? I just tried running a Class
Designer session, and noticed that dBitmap isn't very well supported: the
Picture property isn't exposed! I think that's because normally a dImage
control is used for displaying images, whether they are BMPs, JPGs, or whatever.
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/[email protected]