REALbasic
Maybe a diary of REALbasic app development. Maybe just stuff about REALbasic. Maybe nothing :)


@ Thursday, February 28, 2002
 



I think I've given up with the idea of retrofitting my Klondike game with the new rendering method. It is too dependent on the current method. I might as well rewrite it. And that's what I think I might do. I've got an idea to make some classes that implement a visual hierarchy in one canvas in REALbasic. What's the point of that? Not much, probably. In RB 4.5 there will be support for a visual hierarchy at the control level. So you can drag on control onto another in the visual editor and that control will become the child of the enclosing control. That's pretty good. But the other thing I need is the ability to draw some part of the window into a picture. I need that to do smooth updating. Draw just the part of the window that needs updating into a picture and blit that picture directly onto the screen. Windows have a DrawInto method, but that doesn't do what I want. The origin is 0,0 and you can't specify only a part of a window. But if everything draws in one canvas, then you can do it. You'd set the origin of that canvas up and to the left and then let everything draw normally into the picture. You'll get, in the picture, just that part you want.

I even have a name for my visual hierarchy system: Boxes. The Box will be the fundamental drawing element of the BoxCanvas. Everything else will be a subclass. I can have a TextBox, a CheckBox, a PictureBox, etc.

Hmm. This is really sounding useless. But fun :)

comment ()  10:45:21 AM  #  



Click here to visit the Radio UserLand website. © Copyright 2002 Will Leshner.
Last update: 2/28/02; 12:57:21 PM.
February 2002
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28    
Jan   Mar

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~