Recent

Author Topic: Custom component (run on windows and linux)  (Read 5380 times)

herux

  • Full Member
  • ***
  • Posts: 102
Custom component (run on windows and linux)
« on: February 19, 2010, 04:45:05 am »
I have a code like this,

Code: [Select]
procedure TCustomComboGrid.CreateParams(var Params: TCreateParams);
begin
  inherited CreateParams(Params);
  with Params do begin
    Style:= Style and not WS_CHILD or WS_POPUP or WS_BORDER;
     ....
  end;
end;

and run well in windows using Delphi
I try to use it in lazarus, but the form does not WS_POPUP as I expected.

any suggestion ?

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2583
Re: Custom component (run on windows and linux)
« Reply #1 on: February 19, 2010, 10:39:17 am »
Only a little part of CreateParams is supported, since it is very windows centric and not really cross platform
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018