Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2000-02

CVS update

6 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michal Bukovjan

Hello,

I just updated CVS.

- The alignment looks like it working now (not heavily tested).
- Did some bug fixes (and added some)

BTW, the mwEdit in IDE editor started to behave somewhat funny. I'm not sure what trigerred this, could someone look into that? The other on the TestForm look OK, though.

Michal Bukovjan

____________________________________________________________________ Get your own FREE, personal Netscape WebMail account today at http://webmail.netscape.com.

Reply by email

Samuel Liddicott
Show quoted text 14 lines
-----Original Message----- From: Shane Miller Sent: Monday, February 21, 2000 09:04 PM To: Subject: Re: [lazarus] CVS update Hello, I just updated CVS. I fixed a bug in GetCaption for csEdit. When a csEdit is created, the caption is checked for it. In GetCaption a LM_GetText is called, but the widget hasn't been created yet. I added a line to check HandleAllocated first for csEdit.

Just curious; csEdit should be able to maintain a caption quite successfully before the handle has been created. The GetCaption should always check HandleAllocated, if false return the internal caption, otherwise it should use LM_GetText.

When the handle is created (CreateWnd) the caption should be set from the internal caption.

When the handle is destroyed with DestroyWnd the LM_GetText caption should be copied back to the internal caption ready for access via GetText and restoration when CreateWnd is next called.

Similarly, SetCaption should update either the internal copy, or the LM_SetText way depending on the existance of a handle.

Sam

Reply by email

Shane Miller

I agree with you and that's what I did. If gettext is called, I check HANDLEALLOCATED. IF True, then I call the SendMEssage. If false, then I use FCaption. Shane

>> 02/22/00 05:09AM >>>
Show quoted text 14 lines
-----Original Message----- From: Shane Miller Sent: Monday, February 21, 2000 09:04 PM To: Subject: Re: [lazarus] CVS update Hello, I just updated CVS. I fixed a bug in GetCaption for csEdit. When a csEdit is created, the caption is checked for it. In GetCaption a LM_GetText is called, but the widget hasn't been created yet. I added a line to check HandleAllocated first for csEdit.

Just curious; csEdit should be able to maintain a caption quite successfully before the handle has been created. The GetCaption should always check HandleAllocated, if false return the internal caption, otherwise it should use LM_GetText.

When the handle is created (CreateWnd) the caption should be set from the internal caption.

When the handle is destroyed with DestroyWnd the LM_GetText caption should be copied back to the internal caption ready for access via GetText and restoration when CreateWnd is next called.

Similarly, SetCaption should update either the internal copy, or the LM_SetText way depending on the existance of a handle.

Sam

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Michal Bukovjan

Hello,

I commited some changes. These include :

- implemented forms' border styles better. Still needs a little work(tomorrow)
- implemented forms' position
- some minor cleanups here and there.
- revisited TComboBox and TListBox. It should work now, at least most of its properties. The items are cached until the handle is created, but the rest is not. Since the HandleNeeded behaves weirdly when the component is hidden, I have yet to decide whether to cache them as well (which I don't like) or try to fix the behavior.

I put a sample list box and combo box on the test form.

BTW, I think MWE has removed it, why don't you like virtual procedures when setting property values? If they are static, the component is little extensible for its descendants. This is one of the thing I hate on original Borland VCL - too often you are stuck at a procedure which really should not be static and , I would like to remove csMainForm style - it is really useless.

Have fun,

Michal Bukovjan

____________________________________________________________________ Get your own FREE, personal Netscape WebMail account today at http://webmail.netscape.com.

Reply by email

Shane Miller

Hello,
I just updated CVS.

I fixed a bug in GetCaption for csEdit. When a csEdit is created, the caption is checked for it. In GetCaption a LM_GetText is called, but the widget hasn't been created yet. I added a line to check HandleAllocated first for csEdit.

Shane

>> 02/20/00 02:54PM >>>

Hello,

I just updated CVS.

- The alignment looks like it working now (not heavily tested).
- Did some bug fixes (and added some)

BTW, the mwEdit in IDE editor started to behave somewhat funny. I'm not sure what trigerred this, could someone look into that? The other on the TestForm look OK, though.

Michal Bukovjan

____________________________________________________________________ Get your own FREE, personal Netscape WebMail account today at http://webmail.netscape.com.

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email