For the listbox control, effectivelly I use a picture buffer the size of the control. So the clipping is automatically done when the workspace ask the Listbox to draw itself. Also, I only wite the rows ans column that are visible.
Have you done other controls? Daniel Le 11/09/06 11:29, « [NOM] » <[ADRESSE]> a écrit : > Ive done the same thing. This is why i was interested in seeing how > you did it. No matter. What have you done about clipping? Do you draw > into a buffer to do the clipping or do you have another way to do it? > > AC > > > > On 11-Sep-06, at 11:17 AM, Daniel Pereira wrote: > >> Hi Alex, >> >> Not really and it would not be a lot of use. But I can tell you it >> is a part >> of a custom IDE where the only control I use from Realbasic is the >> canvas. >> >> More précisely i've created one classe from the canvas class that I >> call >> workspace. That class control the drawing and all the events. >> >> I've defined all the usual controls (those I need) as virtual control >> (Object class) that knows how to draw itself and react to events. >> The event >> are dispatched from the Workspace Class. >> >> So, for the listbox, I draw everything...the border, the lines, the >> scrollbar etc. depending on the event received. All the drawing was >> surprisingnely not that hard to do. >> >> The fact that Realbasic let me create my how events was a big part >> of it. >> >> Daniel >> >> >> <[ADRESSE]> a écrit : >> >>> Hi, >>> >>> Can you show us your listbox class? Id be interested in seeing the >>> code if you would allow. >>> >>> thanks >>> >>> Alex >>> >>> On 8-Sep-06, at 11:48 AM, Daniel Pereira wrote: >>> >> >> >> _______________________________________________ >> Unsubscribe or switch delivery mode: >> <http://www.realsoftware.com/support/listmanager/> >> >> Search the archives of this list here: >> <http://support.realsoftware.com/listarchives/lists.html> > > _______________________________________________ > Unsubscribe or switch delivery mode: > <http://www.realsoftware.com/support/listmanager/> > > Search the archives of this list here: > <http://support.realsoftware.com/listarchives/lists.html> _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
