Recent

Author Topic: fpGUI Toolkit v1.2 release  (Read 11144 times)

bee

  • Sr. Member
  • ****
  • Posts: 393
Re: fpGUI Toolkit v1.2 release
« Reply #15 on: November 21, 2014, 03:19:18 pm »
@graeme: Is there a plan to support Cocoa? :)
-Bee-

A long time pascal lover.

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: fpGUI Toolkit v1.2 release
« Reply #16 on: November 25, 2014, 07:15:45 pm »
@graeme: Is there a plan to support Cocoa? :)
Funny you mention that. I actually took a look at what would be needed to officiall support OSX (Cocoa and Carbon) instead of via the X11 support in OSX. Man was I confused!! :-D  I don't know much about OSX API's so it is going to take a while, but I definitely have OSX it my sights.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: fpGUI Toolkit v1.2 release
« Reply #17 on: November 25, 2014, 07:24:26 pm »
Code: [Select]
function    KfpgWidget.CreateCanvas: TfpgCanvasBase;
    begin
      result:=TAgg2D.create(self);
    end;
now I can use aggpas drawing on my custom widget! :))

I haven't tried myself, but instead of editing fpg_widget or fpg_main, why not simply compile fpGUI without AGGCanvas enabled, then in the unit where you define your own widgets (eg: KfpgWidget as shown above) you add Agg2D to the uses clause, then override CreateCanvas() like you did before.

In theory it should result in the same thing without having local mods of fpg_widget or fpg_main.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

vkhoa

  • New Member
  • *
  • Posts: 47
Re: fpGUI Toolkit v1.2 release
« Reply #18 on: May 26, 2015, 08:38:31 am »
Code: [Select]
function    KfpgWidget.CreateCanvas: TfpgCanvasBase;
    begin
      result:=TAgg2D.create(self);
    end;
now I can use aggpas drawing on my custom widget! :))

I haven't tried myself, but instead of editing fpg_widget or fpg_main, why not simply compile fpGUI without AGGCanvas enabled, then in the unit where you define your own widgets (eg: KfpgWidget as shown above) you add Agg2D to the uses clause, then override CreateCanvas() like you did before.

In theory it should result in the same thing without having local mods of fpg_widget or fpg_main.
It's so simple! But I couldn't think out at that time. Thanks:)

 

TinyPortal © 2005-2018