[lazarus] Patches to Shanes files
Cliff Baeseman
vbman at pcpros.net
Wed Jul 7 16:44:48 EDT 1999
Shane I am going to work some more components while you smooth the upper you
call it lower classes..... ;)
Cliff
-----Original Message-----
From: Shane Miller <SMiller1 at stvgb.org>
To: lazarus at miraclec.com <lazarus at miraclec.com>
Date: Wednesday, July 07, 1999 3:38 PM
Subject: Re: RE: [lazarus] Patches to Shanes files
>I am using Strings but in Delphi they are really AnsiStrings. I guess I am
assuming that they are AnsiStrings when declared as Strings.
>
>If StrAlloc remembers extra junk (which would be a bug) then how did you
get around it?
>
>Shane
>
>
>>>> "John Margaglione" <jmargaglione at hotmail.com> 07/07 2:47 PM >>>
>I was having the same problem a while ago. Are you using AnsiStrings? I
>remember that PChar worked well with AnsiStrings, but that the StrAlloc
>method would remember extra junk, no matter how I initialized the string
>before copying.
>
>John
>
>----- Original Message -----
>From: Shane Miller <SMiller1 at stvgb.org>
>To: <lazarus at miraclec.com>
>Sent: Wednesday, July 07, 1999 12:50 PM
>Subject: Re: RE: [lazarus] Patches to Shanes files
>
>
>> I have fixed the problem with the events using a char array (sort of) by
>changing it to a PChar.
>>
>> Here's the problem, even using a pchar and doing..
>>
>> newpchar := StrAlloc(Length(StringVar)+1);
>> StrPCopy(newPChar,StringVar);
>>
>> I still get unwanted characters. Why is this? I'm not sure what the
>problem is. I thought doing it this way would work.
>>
>> Please help....
>>
>> Shane
>>
>>
>> >>> "Baeseman, Cliff" <Cliff.Baeseman at greenheck.com> 07/07 9:16 AM >>>
>> Shane...
>>
>> I worked on the code last night and found a few things. The event
>> dispatcher looks at a passed message and is using a char array. It will
>blow
>> past all of the messages and never assign the event to the widget. This
is
>> because the string is munged up with extra chars at the end. This is the
>> same problem with the menu items. Good news is that the messaging seems
to
>> work as advertised. I hardcoded a clicked event into it and put a button
>on
>> the form. When I clicked it the message was passed back and the function
>> fired. As for control placement you will have to change the code to use
>> gtk_fixed_put the first time a widget is added to the fixed widget. After
>it
>> is in place you can then use move. I had to put that in the control last
>> night to get the controls to place correctly.
>>
>> Bad thing is that we have to rewrite some of the component code but
>because
>> of the way we designed it in the first place it should be pretty easy to
>do.
>>
>>
>> Cliff
>>
>> -----Original Message-----
>> From: Shane Miller [mailto:SMiller1 at stvgb.org]
>> Sent: Wednesday, July 07, 1999 9:06 AM
>> To: lazarus at miraclec.com
>> Subject: Re: [lazarus] Patches to Shanes files
>>
>>
>> All right, were back in business. I finally got the application to
>compile
>> again and bring up the menu. There was a problem with my "new"
AddControl
>> procedure and I took way too long to figure it out.
>>
>> For today I'm going to clean up the code so it's somewhat presentable,
and
>> test the new event's. If the events work correctly (please, please,
>please)
>> then I'll update CVS.
>>
>> Lazarus still has the problem with it's menu's having funny characters at
>> the end. I'm not sure why that is. I know the reason, but not the
cause.
>>
>> Michael, I think you may be right about the interfraceobject being an
>> unneeded layer. I was thinking that once we had QT and GTK done it would
>be
>> great for a user to simply change a "define" and it would switch tools,
>but
>> if they know which tool they want to use, I guess they can specify a file
>to
>> link to.
>>
>> I'll see about cutting that file out.
>> Shane
>>
>>
>>
>> _________________________________________________________________
>> To unsubscribe: mail lazarus-request at miraclec.com with
>> "unsubscribe" as the Subject
>> archives at http://www.miraclec.com/list_archives/lazarus
>>
>> _________________________________________________________________
>> To unsubscribe: mail lazarus-request at miraclec.com with
>> "unsubscribe" as the Subject
>> archives at http://www.miraclec.com/list_archives/lazarus
>>
>> _________________________________________________________________
>> To unsubscribe: mail lazarus-request at miraclec.com with
>> "unsubscribe" as the Subject
>> archives at http://www.miraclec.com/list_archives/lazarus
>>
>
>_________________________________________________________________
> To unsubscribe: mail lazarus-request at miraclec.com with
> "unsubscribe" as the Subject
> archives at http://www.miraclec.com/list_archives/lazarus
>
>_________________________________________________________________
> 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