Recent

Author Topic: The Important FpGUI Widgeset interface developement  (Read 58492 times)

chrnobel

  • Sr. Member
  • ****
  • Posts: 274
Re: The Important FpGUI Widgeset interface developement
« Reply #45 on: January 29, 2014, 06:27:44 pm »

fpGUI uiDesigner is now totally integrable into Lazarus.
A patch is added for Lazarus IDE.
.
.
-4) Apply Lazarus patch[/b]
- Copy /uidesigner_ext/patch/Lazarus/main.pp into /lazarus/ide
- Rebuild the Lazarus IDE.
.
.
Tried to follow your method, but something is wrong with the new main.pp.

The build stop with this error:
/home/cn/udvikling/lazarus/ide/main.pp(10507,32) Error: Identifier not found "GetSyntaxHighlighterCaption"


Fred vS

  • Hero Member
  • *****
  • Posts: 2034
    • StrumPract is the musicians best friend
Re: The Important FpGUI Widgeset interface developement
« Reply #46 on: January 29, 2014, 08:57:45 pm »
Hello Chmobel.

Quote
/home/cn/udvikling/lazarus/ide/main.pp(10507,32) Error: Identifier not found "GetSyntaxHighlighterCaption"

What Lazarus version do you use ?
I use Lazarus 2.0.6 32/64 and FPC 3.2.0 32/64 on Debian 10.2 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs
https://gitlab.com/fredvs

Fred vS

  • Hero Member
  • *****
  • Posts: 2034
    • StrumPract is the musicians best friend
Re: The Important FpGUI Widgeset interface developement
« Reply #47 on: January 29, 2014, 09:16:35 pm »
Yep, indeed, main.pp has changed here too in 1.2 RC 2.

I get that error :

Quote
/usr/share/lazarus/1.2RC2/ide/compiler.pp(33,6) Error: Illegal unit name: Compiler

I will check that (but how to retrieve main.pp of other versions ?).

Thanks to note it.
I use Lazarus 2.0.6 32/64 and FPC 3.2.0 32/64 on Debian 10.2 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs
https://gitlab.com/fredvs

Fred vS

  • Hero Member
  • *****
  • Posts: 2034
    • StrumPract is the musicians best friend
Re: The Important FpGUI Widgeset interface developement
« Reply #48 on: January 29, 2014, 11:03:13 pm »
Hello.

Here in attach, main.pp patched for Lazarus 1.2RC2.

The main.pp in uidesigner_ext is for Lazarus 1.0.14.

I will update the uidesigner_ext package asap.

Thanks
« Last Edit: January 30, 2014, 12:34:56 am by Fred vS »
I use Lazarus 2.0.6 32/64 and FPC 3.2.0 32/64 on Debian 10.2 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs
https://gitlab.com/fredvs

chrnobel

  • Sr. Member
  • ****
  • Posts: 274
Re: The Important FpGUI Widgeset interface developement
« Reply #49 on: January 29, 2014, 11:53:29 pm »
Hello Chmobel.

What Lazarus version do you use ?
1.08

But as I can understand from the following posts, it has to be 1.14 or 1.2?

Regards
Christian

Fred vS

  • Hero Member
  • *****
  • Posts: 2034
    • StrumPract is the musicians best friend
Re: The Important FpGUI Widgeset interface developement
« Reply #50 on: January 30, 2014, 12:41:16 am »
Quote
But as I can understand from the following posts, it has to be 1.14 or 1.2?

You may use all Lazarus version...  ;)

If you give me, in attachment, your original main.pp, i will do the patch for you (and give me your Lazarus version too, so i will add it in uidesigner_ext package...)

To know your Lazarus version, click on Help, then on About Lazarus..

[EDIT] Till now, only patch for Lazarus version 1.0.14 (the official download version) and 1.2RC2 are in package.
« Last Edit: January 30, 2014, 01:00:49 am by Fred vS »
I use Lazarus 2.0.6 32/64 and FPC 3.2.0 32/64 on Debian 10.2 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs
https://gitlab.com/fredvs

chrnobel

  • Sr. Member
  • ****
  • Posts: 274
Re: The Important FpGUI Widgeset interface developement
« Reply #51 on: January 30, 2014, 10:45:53 am »
If you give me, in attachment, your original main.pp, i will do the patch for you (and give me your Lazarus version too, so i will add it in uidesigner_ext package...)
That is very kind of you  :)

It is version 1.08

Regards
Christian

Fred vS

  • Hero Member
  • *****
  • Posts: 2034
    • StrumPract is the musicians best friend
Re: The Important FpGUI Widgeset interface developement
« Reply #52 on: January 30, 2014, 01:32:50 pm »
Hello Christian.

Here, in attach, main.pp for Lazarus v 1.0.8.

If you use it, could you give me the result because i do not have Lazarus 1.0.8 to test it.

Many thanks.
« Last Edit: January 31, 2014, 10:14:35 pm by Fred vS »
I use Lazarus 2.0.6 32/64 and FPC 3.2.0 32/64 on Debian 10.2 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs
https://gitlab.com/fredvs

chrnobel

  • Sr. Member
  • ****
  • Posts: 274
Re: The Important FpGUI Widgeset interface developement
« Reply #53 on: January 30, 2014, 06:18:35 pm »
Hello Christian.

Here, in attach, main.pp for Lazarus v 1.0.8.

If you use it, could you give me the result because i do not have Lazarus 1.0.8 to test it.

Many thanks.
Hi Fred.

Thanks for the new file.

I can compile the IDE now without problems, but when I then open a fpg project, the UI Designer Ext opens, but then stops again immediately.

And then it is not possible to execute it again, and if I do a ps -aux | grep uidesign I can see the process as defunct.

Regards
Christian

Fred vS

  • Hero Member
  • *****
  • Posts: 2034
    • StrumPract is the musicians best friend
Re: The Important FpGUI Widgeset interface developement
« Reply #54 on: January 30, 2014, 09:04:42 pm »
Quote
I can compile the IDE now without problems, but when I then open a fpg project, the UI Designer Ext opens, but then stops again immediately.

OK, i have seen in Lazarus download that version 1.0.8. is still there...

I will download and install it and try the main.pp,

See you later.
I use Lazarus 2.0.6 32/64 and FPC 3.2.0 32/64 on Debian 10.2 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs
https://gitlab.com/fredvs

Fred vS

  • Hero Member
  • *****
  • Posts: 2034
    • StrumPract is the musicians best friend
Re: The Important FpGUI Widgeset interface developement
« Reply #55 on: January 30, 2014, 09:52:11 pm »
@  chrnobel :

I have installed Lazarus version 1.0.8 and compil ide with the main.pp i give in attach.

For me it works like it has to do... :-X

When you have re-compil IDE, close it and reload it, maybe it does not work directly after compil...

Have you enable "Integration into Lazarus" in uidesigner_ext settings ?

You do not have to load uidesigner_ext before loading Lazarus (Open-File in Lazarus will do it..)

What system do you use (Linux 32/64, Windows ?) ?

[EDIT] The uidesigner will be loaded only if the code is fpGUI-type.
So if you load only MyProject.lpi, it will not work.

Have you try to open fpGUITemplate.lpr or fpGUIDirectTemplate.pas in /uidesigner_ext/template ?
« Last Edit: January 30, 2014, 11:29:10 pm by Fred vS »
I use Lazarus 2.0.6 32/64 and FPC 3.2.0 32/64 on Debian 10.2 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs
https://gitlab.com/fredvs

chrnobel

  • Sr. Member
  • ****
  • Posts: 274
Re: The Important FpGUI Widgeset interface developement
« Reply #56 on: January 30, 2014, 11:56:58 pm »

What system do you use (Linux 32/64, Windows ?) ?

[EDIT] The uidesigner will be loaded only if the code is fpGUI-type.
So if you load only MyProject.lpi, it will not work.

Have you try to open fpGUITemplate.lpr or fpGUIDirectTemplate.pas in /uidesigner_ext/template ?
Hi Fred - thanks a lot, I managed to get it to work now.

It seems like I have misunderstood something, as I was trying to open some of the example files from fpGUI, then nothing happens.

But if I open the fpGUITemplate as you suggest, it works.

So maybe a stupid question (I played a little bit with fpGUI a couple of years ago, but otherwise I am newbee with regards to that), what defines the project as fpGUI code?

Btw, I am using Linux 32.

Regards
Christian

Fred vS

  • Hero Member
  • *****
  • Posts: 2034
    • StrumPract is the musicians best friend
Re: The Important FpGUI Widgeset interface developement
« Reply #57 on: January 31, 2014, 12:00:25 am »
Quote
So maybe a stupid question (I played a little bit with fpGUI a couple of years ago, but otherwise I am newbee with regards to that), what defines the project as fpGUI code?

Yep, you have to load, in all fpGUI examples , the *.lpr files ( not the *.lpi ).

You may load first the *.lpi, but then, to load uidesigner, the files with pascal code.

*.lpi files are not pascal type.

[EDIT] uidesigner will try to load form if he find some typicaly fpGUI code, like {@VFD_HEAD_BEGIN: MainForm}  ,   {@VFD_BODY_BEGIN: MainForm} ,   etc...
« Last Edit: January 31, 2014, 12:06:40 am by Fred vS »
I use Lazarus 2.0.6 32/64 and FPC 3.2.0 32/64 on Debian 10.2 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs
https://gitlab.com/fredvs

Fred vS

  • Hero Member
  • *****
  • Posts: 2034
    • StrumPract is the musicians best friend
Re: The Important FpGUI Widgeset interface developement
« Reply #58 on: January 31, 2014, 12:20:25 am »
Quote
( not the *.lpi ).

Hum, i will see if i can do something to load uidesigner of correspondent *.lpr file if you load a *.lpi file.  (ASAP but not now, i have too much work now..  :-X.)
I use Lazarus 2.0.6 32/64 and FPC 3.2.0 32/64 on Debian 10.2 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs
https://gitlab.com/fredvs

chrnobel

  • Sr. Member
  • ****
  • Posts: 274
Re: The Important FpGUI Widgeset interface developement
« Reply #59 on: January 31, 2014, 09:46:56 am »
Quote
( not the *.lpi ).

Hum, i will see if i can do something to load uidesigner of correspondent *.lpr file if you load a *.lpi file.  (ASAP but not now, i have too much work now..  :-X.)
Fair enough, you have been very kind - many thanks for the help.

Now I can open the examples by opening the .lpr file from the File menu (instead of opening the project from the Project menu as one tends to do).

BTW, is it possible to make a form without the title bar?

Regards
Christian

 

TinyPortal © 2005-2018