Without drawing selection, it was effectively too slow. Drawing the buffer to the canvas is fast enough. But drawing the listbox completely in the buffer for each events that demands updating the drawing.
Now I redraw only the cells that need updating. Now the performance is OK. But I've noticed that the drawing on OS X (G5 1.8) is noticeably (? For the spelling) slower that on Linux (P4 2.8) and windows (P4 2.8 and P4 400mhz). It's surelly connected to the double buffering in OS X. Daniel 11/09/2006 3:03 PM, « [NOM] » <[ADRESSE]> a écrit : > Intersting. Ive found that using an extra buffer makes things a bit > too slow. But theres not much of another choice. Ive done lots of > controls from toolbars to splitviews to listboxs and an editfiields. > > AC > > On 11-Sep-06, at 12:46 PM, Daniel Pereira wrote: > >> 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> > > _______________________________________________ > 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>
