Sign in Join

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

Mailing lists / lazarus / 2000-01

cvs changes

23 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Stefan Hille

Recent changes:

- TRadioGroup nearly completed
- minor changes to groupbox
- introduced TBevel in extrctrls (new file bevel.inc)
- minor changes to constructor in customlistbox.inc
- safety check for fCompStyle csNone in wincontrol.inc

--------------------------------------------------------- Stefan Hille email: 48155 Muenster voice: 0251/664695

Reply by email

Marc Weustink

Hi,
first of all a happy 2000.

Latest changes:
+ Added keyup and buttonup events.
They already where there only the signal mask of the widget-window wasn't set :-(

+ Added LM_MOUSEMOVE callback
Wasn't there yet. In order to do a selection by mouse you need this. Somehow the selection dosnt work yet without pressing shift (?)

+ Started with scrollbars in editor
First attempt to get scrollbars. Don't know if this is the way to go (For a scrolling canvas it is for sure). I need to do some more investigations.

Marc

Reply by email

Marc Weustink

Hi, some changes. Not many to do with mwEdit... I won't make large changes right not, I somewhere caught the flu.

Changes:
Fixed LM_CHAR message.
It is now after the LM_KEYUP message

Fixed Menus at checkbox example.
A question. TMenubar, is this a component of Delphi ?? For now, don't use it. Create menus like in main.pp or examples/checkbox.pp

Removed references to TTabbedNoteBK (somebody removed the files) and changed it on the compileroptions form. The tabpages work on this form, the components ....

Marc

Reply by email

Stefan Hille
to Marc Weustink
Marc Weustink wrote 10 lines
Hi, some changes. Not many to do with mwEdit... I won't make large changes right not, I somewhere caught the flu. Changes: Fixed LM_CHAR message. It is now after the LM_KEYUP message Fixed Menus at checkbox example. A question. TMenubar, is this a component of Delphi ?? For now, don't use it. Create menus like in main.pp or examples/checkbox.pp

No, TMenubar is no Delphi component. Seems to be an old component, think we can remove it.

bye,

Stefan

--------------------------------------------------------- Stefan Hille email: 48155 Muenster voice: 0251/664695

Reply by email

Stefan Hille

recent changes:

- changed ReadState procedure to match actual implementation in fcl (Affects TPage / TCustomNotebook)
---> requires actual fcl!!!!!!!!!!!!!
- fixed bug in TCustomRadioGroup, no longer crashing in Destroy
- added callback for stringlist in TCustomradiogroup (OnChanging event)

--------------------------------------------------------- Stefan Hille email: 48155 Muenster voice: 0251/664695

Reply by email

Stefan Hille

recent changes:

- new messages LM_GETVALUE, LM_SETVALUE, LM_SETPROPERTIES
- changed trackbar, progressbar, checkbox to use above messages
- some more published properties for above component (all properties derived from TWinControl)
- new functions SetValue, GetValue, SetProperties in gtk-interface
- removed some specialized messages for trackbar, progressbar & checkboxes (in fact replaced them by the ones mentioned above)

--------------------------------------------------------- Stefan Hille email: 48155 Muenster voice: 0251/664695

Reply by email

Marc Weustink

Hi,

some changes:

+ Added more scrollbar support for TWinControl
The comtrol is now based upon a GTKScrollingWindow and a modified GTKFixed (GTKWinapiWindow). For now most signals for TWinControl are yet connected to the wrong widget (now scrolling window it should be the fixed). This results in a lockup when dragging the scrollers. This will be fixed. Anothjer thing to do is the scroll handling for all the applicable winapi functions
(show/hide/get/setinfo and others)

+ Added some cvs entries
to some files wich didn't have history enties

Marc

Reply by email

Marc Weustink
to Marc Weustink

BTW, due to some problems with my new rtl, I couldn't check if everything compiled after I got the latest changes (it did before I retrieved the latest changes). Sorry for that.

Marc

+ From: Marc Weustink
+ Hi,
+
+ some changes:
+
+ + Added more scrollbar support for TWinControl
+ The comtrol is now based upon a GTKScrollingWindow and a modified
+ GTKFixed (GTKWinapiWindow). For now most signals for TWinControl
+ are yet connected to the wrong widget (now scrolling window it
+ should be the fixed). This results in a lockup when dragging the
+ scrollers. This will be fixed. Anothjer thing to do is the scroll
+ handling for all the applicable winapi functions
+ (show/hide/get/setinfo and others)
+
+ + Added some cvs entries
+ to some files wich didn't have history enties +
+
+ Marc
+
+
+ _________________________________________________________________
+ To unsubscribe: mail with
+ "unsubscribe" as the Subject
+ archives at http://www.miraclec.com/list_archives/lazarus +

Reply by email

Marc Weustink
to Marc Weustink: Latest changes: I added the GetFocus API func based on GTK/GDK. This brings us a bit…

Some more changes:

Removed some old ifdef stuf from mwEdit

Added CreateCaret.
Now most Caret funcs are implemented, now only for APIWindowWidget (= controls derived from TWinControl). For other controls the code has to be added.
APIWindowWidget_HideCaret doesn't do anything yet.

One can check CreatCaret by pressing insert.
(For one reason I don't know, the editor doesn't get a LM_Focus message so CreatCaret isn't called initially)

Marc

Reply by email

Marc Weustink
to Michal Bukovjan: I just commited some changes into the CVS. Fixed Makefile so that it does not want…
Michal Bukovjan wrote
I just commited some changes into the CVS. Began implementation of DeleteObject in GtkWinAPI.

Great, that was something I still had to do but hadn't time for it.

Fixed a bug in GDIObject allocation. This in turn fixed a lot of weird problems, and now the fonts display correctly/perfectly on my Linux :-)))

??? The only main difference I see is a AllocMem instead of a New. AFAIK the new should work allso (or is there something I don't know ?)

Hmmm... It dumps here. I'll try to find why.

Marc

Reply by email

Marc Weustink

+ From: Michal Bukovjan
+
+ New should also work, but it does not zero memory upon
+ allocation. This was causing all sorts of things,
+ instead of font of size 10 normal I was getting
+ font 14 italics, etc.
+ You could also see tons of messages like XLFD : could not find
+ courier-*-*-1254545465-14545412-* and other nonsense. +
+ As I changed it to AllocMem, fonts display OK and the error
+ messages about fonts mostly disappeared.

It didn't change anything for me, I get still these messages. Second, the origin of these messages is not the memory being zeroed but the fact that GetFont doesn't return valid info on a DC with HWND=0. Thats a part that had a low priority to me so I didn't fix it yet.

Another thing to keep in mind is that AllocMem/FreeMem and New/Despose should be used together. Since the rest of the API uses dispose, I prefer to use New instead of AllocMem

Something else.
I allso saw that you changed the pointsize and the resolution of the XLFD. As far as my docs go this shouldn't be done since we are using the font height (and not point size). If you're using font height the pointsize should be empty and a resolution should only be given if a pointsize is used. Do you have other sources of info ?

Marc

Reply by email

Marc Weustink
to Michal Bukovjan: I agree. I found this would be a problem by seeing error XLFD messages with totally weird…
you wrote 9 lines
> > Thats why I posted this message. I do see that somethings might not work on > other systems. I only want to understand why, otherwise you are only fixing > symptoms and not the real problem > I agree. I found this would be a problem by seeing error XLFD messages with totally weird values, like courier-212312-345345345 and so. So I thougt there is something wrong with some properties not being always initialized, and it was, although I did not find where, yet.

I start to remember things.
You get these strange results as a result of the current implementation of GetDC, CreateFont and GetObject(gdiFont). As a temp hack I stored the logfont info from the CreateFont into the GDIObject, so the GetObject can return this info. GetDC doesn't store this info. So if you do a GetObject on a font coming from such a DC (for instance the result of selectobject) you get rubbish.
As I said it is a temp hack. The logfont info shouln't be there and the info for GetObject(gdiFont) should be constructed from the CurrentFont, I only rembered there was something, but didnt know what (till now)

It is OK, it is small on my X server, too. But as I looked into GNOME font selector, this is really how courier of size 10 should look like. I suggest switching to font size of 12 or maybe 14.

OK

Marc

Reply by email

Shane Miller
to Marc Weustink: Some changes: Created/updated new gtkwidget for TWinControl decendants like mwCustomEdit…
Show quoted text 13 lines
Hi, Some changes: Created/updated new gtkwidget for TWinControl decendants like mwCustomEdit also improved foccusing on such a control (mouseclick results in focus) Made scrolbar support definitive, now only the correct messages and supporting winapi funcs have to be added BTW: Shane (?) nice work on the cursor (It only takes some resources ;-)

Thanks.
Are you saying it takes too many resources? I'll look at it and see if I can improve it. I would love to find a way to determine which cursor the widget currently is using.....(like when it's created)

Marc

---------------------------------------
Shane Miller

Get paid to surf the net!
http://alladvantage.com/go.asp?refid=DEX-870

Home page : http://www.lakefield.net/~smiller

Auto-IP Publisher : http://www.lakefield.net/~smiller/autoip

Advanced Clipboard : http://www.lakefield.net/~smiller/advclipboard

Lazarus : http://www.miraclec.com/lazarus

Earlier message 5 lines
----- Original Message ----- From: "Marc Weustink" To: Sent: Thursday, January 13, 2000 4:40 PM Subject: [lazarus] cvs changes

Reply by email

Michal Bukovjan
Show quoted text 5 lines
Thats why I posted this message. I do see that somethings might not work on other systems. I only want to understand why, otherwise you are only fixing symptoms and not the real problem

I agree. I found this would be a problem by seeing error XLFD messages with totally weird values, like courier-212312-345345345 and so. So I thougt there is something wrong with some properties not being always initialized, and it was, although I did not find where, yet.

Show quoted text 5 lines
+ The reason I changed it is because you (or + the code :-) assumes that you are running at 120 dpi + resolution, which is not my case (I have 75). The 120 was just a hack to get things running. I didn't have a

PixelsPerInch

at that moment. The only thin now in my case is that the font is drawn way to small. But thats I think a bug in my XServer (Xwin32 on a NT box with large fonts).

It is OK, it is small on my X server, too. But as I looked into GNOME font selector, this is really how courier of size 10 should look like. I suggest switching to font size of 12 or maybe 14.

Michal Bukovjan

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

Reply by email

Marc Weustink

Hi,

Some changes:
Created/updated new gtkwidget for TWinControl decendants like mwCustomEdit also improved foccusing on such a control (mouseclick results in focus)

Made scrolbar support definitive, now only the correct messages and supporting winapi funcs have to be added

BTW: Shane (?) nice work on the cursor (It only takes some resources ;-)

Marc

Reply by email

Michal Bukovjan

I just commited some changes into the CVS.

Fixed Makefile so that it does not want tabnotbk again. I already fixed it, but someone commits over this and it gets bad again.

Began implementation of DeleteObject in GtkWinAPI.

Played with TFont a bit, also with Screen / TScreen. Moved them to a saner place.

Fixed a bug in GDIObject allocation. This in turn fixed a lot of weird problems, and now the fonts display correctly/perfectly on my Linux :-)))

Good night everyone.

Michal Bukovjan

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

To:
Subject: [lazarus] cvs changes

Earlier message 20 lines
From: Marc Weustink Date: Mon, 17 Jan 2000 00:22:47 +0100 Reply-To: Resent-Date: Sun, 16 Jan 2000 19:09:12 -0500 Resent-From: Resent-Message-ID: Resent-Sender: Hi, I added the winAPI code for scrollbar handling, so the editor can scroll. One thing left which looks like a mwEdit bug: when on the last line, the scrollbar doesn't scroll up (so you cant se you last line). Marc _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Marc Weustink

Hi,
I added the winAPI code for scrollbar handling, so the editor can scroll. One thing left which looks like a mwEdit bug: when on the last line, the scrollbar doesn't scroll up (so you cant se you last line).

Marc

Reply by email

Shane Miller

Added some code for Application.ProcessMessages. Not fully tested and definitly not completed.

Added

TScreen.width
TScreen.Height
TScreen.GetWidth
TScreen.GetHeight.

I also added the code in GetSystemMetricsa for these (width,height) to work.

Shane

Reply by email