Recent

Author Topic: specific os properties  (Read 4184 times)

Dark1

  • Guest
specific os properties
« on: July 08, 2006, 06:34:22 pm »
How about a set of components that handle specific os events and properties, like windows transparency or other more elusive events.
It would really be nice to skip those nasty ifdefs (they don't look good and i don't think they make the code more readable either), besides i doubt everyone knows every platform, i personally didn't even see a mac in real life, and linux ... (don't have the courage, but i do like open source)
Is something like this doable ?

PS excuse my poor english

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
RE: specific os properties
« Reply #1 on: July 09, 2006, 01:59:58 am »
Yes, sure. It was discussed on the mailling list that the prefered way to implement this is to implement SetWindowRgn as it is on windows api on to be located on lclintf unit. This way Delphi apps using this API will also work on gtk and qt.

It is also necessary to implement the TRegion class on every important widgetset.

There is a bug report about it here: http://www.freepascal.org/mantis/view.php?id=1804

Anonymous

  • Guest
RE: specific os properties
« Reply #2 on: July 09, 2006, 11:11:12 am »
Actually i was thinking of a component like applicationproperties but that's even better.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
RE: specific os properties
« Reply #3 on: July 09, 2006, 09:06:40 pm »
Take a look at the unit LCLIntf. There are various Windows API calls there that are implemented on every every widgetset (of course they are not implemented on windows, they just redirect the call to windows api there).

 

TinyPortal © 2005-2018