Hi,

i'm working on a bigger lazarus project running as a plugin and have the task 
to modify the carbon interface so that one can create a TForm within a given 
parent window comming from the host. The TForm.CreateParented function seems to 
be not functional yet for carbon interface. And it seems that MacOS does not 
have a simple call to nest windows. 

To solve that I'm thinking about a special treatment in procedure  
CarbonWindow.CreateWindow(const AParams: TCreateParams);  that does not create 
a new window but using the hosts windowref (passing thru the AParams) to set 
the tforms window reference to the hosts one. This seems to work quite ok 
unless the host does not do additional painting in the window. And that is the 
case in my host app. The better solution would be use CreateUserPaneControl and 
using HIViewAddSubView to add the pane to the window. But how I would tell LCL 
that this is the painting target, not the window itself?

Are there any thurther ideas or given solutions from your side?

Thanks for any hint,
best wishes
freq



--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to