Sign in Join

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

Mailing lists / lazarus / 2000-02

Troubles implementing TScreen

6 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

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

Hongli Lai
to Michal Bukovjan: I thought that Screen/TScreen is partially implemented now, at least Width, Height, and…

Op Mon, 07 Apr 2036, schreef Michal Bukovjan:

I thought that Screen/TScreen is partially implemented now, at least Width, Height, and PixelsPerInch.

According the Status page it isn't.

Show quoted text 5 lines
Anyway, should you want to extend the TScreen, I suggest you look at extending TScreenInfo / ScreenInfo in Graphics.pp unit, extend appropriate message LM_SCREENINIT, which gets values you need, and map these into TScreen. Michal Bukovjan

OK, thanks.

Reply by email

Hongli Lai

I'm trying to implement TScreen, but I encountered a problem. Lazarus is designed to be platform and widget independend. But when I try to implement TScreen.Height and TScreen.Width, I need to access GDK functions. I can also access Xlib functions, but X is not available in Win32 and some others OSses. What shall I do?

Reply by email

Shane Miller

Sorry. The status page is wrong. I have implemented the screen width and height already. Feel free to look at the code for help on future implementations. Shane

>> 02/29/00 06:03AM >>>

Op Mon, 07 Apr 2036, schreef Michal Bukovjan:

I thought that Screen/TScreen is partially implemented now, at least Width, Height, and PixelsPerInch.

According the Status page it isn't.

Show quoted text 5 lines
Anyway, should you want to extend the TScreen, I suggest you look at extending TScreenInfo / ScreenInfo in Graphics.pp unit, extend appropriate message LM_SCREENINIT, which gets values you need, and map these into TScreen. Michal Bukovjan

OK, thanks.

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

Reply by email

Michael A. Hess
to Michal Bukovjan: I thought that Screen/TScreen is partially implemented now, at least Width, Height, and…
Hongli Lai wrote 6 lines
Op Mon, 07 Apr 2036, schreef Michal Bukovjan: > I thought that Screen/TScreen is partially implemented now, at least > Width, Height, and PixelsPerInch. According the Status page it isn't.

I don't doubt it. The component status page is WAY out of date. That is why I have asked people to review the information on the page and send me any information that needs to be updated or added. I'll make those changes in the mean time. Shortly registered developers will be able to make those modifications themselves to keep this data accurate.

But until then please review the list and send me some updates.

Thanks.

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Michal Bukovjan

I thought that Screen/TScreen is partially implemented now, at least Width, Height, and PixelsPerInch.

Anyway, should you want to extend the TScreen, I suggest you look at extending TScreenInfo / ScreenInfo in Graphics.pp unit, extend appropriate message LM_SCREENINIT, which gets values you need, and map these into TScreen.

Michal Bukovjan

Hongli Lai wrote
I'm trying to implement TScreen, but I encountered a problem. Lazarus is designed to be platform and widget independend. But when I try to implement TScreen.Height and TScreen.Width, I need to

access

Show quoted text 7 lines
GDK functions. I can also access Xlib functions, but X is not available in Win32 and some others OSses. What shall I do? _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

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

Reply by email

Marc Weustink
to Hongli Lai: I'm trying to implement TScreen, but I encountered a problem. Lazarus is designed to be…

+ From: Hongli Lai
+
+ I'm trying to implement TScreen, but I encountered a problem.
+ Lazarus is designed to be platform and widget independend.
+ But when I try to implement TScreen.Height and TScreen.Width,
+ I need to access GDK functions. I can also access Xlib
+ functions, but X is not available in
+ Win32 and some others OSses. What shall I do?

Look at the API function GetSystemMetrics(SM_CXSCREEN). Most times you can safe call the API functions. They are made platform independent.

In most cases (if not all) you don't need access to GDK XLib or whetever platform dependent libs. This access is handle by the Interface objects and or WINAPI

Marc

Reply by email