On 10/11/11 5:35 AM, Ed Leafe wrote:
> 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.

I remember having trouble with dBitmap on Linux: something about the way Gtk 
caches 
the bytes resulted in one image overwriting another. However, I thought we 
worked 
around it. I'll try to search for the relevant messages/commits.

Paul


_______________________________________________
Post Messages to: Dabo-users@leafe.com
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/4e9471a6.1050...@ulmcnett.com

Reply via email to