[lazarus] Work being done
Shane Miller
SMiller1 at stvgb.org
Wed Feb 16 09:35:00 EST 2000
Currently I am busy and unable to work on Lazarus, but fear not. I will continue work ASAP. I am currently writing a bunch of HL7 interfaces and am unable to find the time for anything else.
Again, I would like our first improvement to be the speed issue. Find a way to avoid creating a new font each time the color/bold/style of the font changes and we will be in business. That should speed it up. For GTK, perhaps when they select a font, we try to load a normal, bold, italicized font right away and store them until the font is destroyed. Now, if it switches to BOLD, we have to free our current gtk font and load a new one.
Shane
>>> sam at campbellsci.co.uk 02/11/00 07:28AM >>>
> -----Original Message-----
> From: Michal Bukovjan [mailto:mbukovjan at netscape.net]
> Sent: Thursday, February 10, 2000 04:19 PM
> To: lazarus at miraclec.com
> Subject: Re: [Re: Fw: TListBox]
>
>
> Last time I checked the TListBox was working well. I'll look
> why was the
> internal list changed back to TStringList - it makes no sense. The
> TGtkListStringList was created and should be used as a counterpart to
> TListBoxStrings found in Delphi, which looks up the strings
> in the underlying
> Win32 list box. This way, the list box items are not held
> twice in memory.
> Since the TListBoxStrings is Win32 specific, hence the need for
> TGtkListStringList. Note that the TListBox only knows in has
> TStrings, it does
> not now about concrete descendant, which is determined in the
> interface
> object.
>
> The same technique is used for items of TComboBox.
Don't forget this control should save the contents in a real TStringList
during a DestroyHandle, and repopulate the underlying control from this
during the CreateHandle. When updating the items property, if
HandleAllocated returns false you do the same operations on the temporary
TStringList instead.
One the handle is allocated and populated from the TStringList the
StringList can be free'd.
Sam
_________________________________________________________________
To unsubscribe: mail lazarus-request at miraclec.com with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus
More information about the Lazarus
mailing list