Forum > General

Library with graphical exported procedures...

(1/1)

Fred vS:
Hello.  ;)

The goal is to have a library with those properties =>

- graphical exported procedures.
- classical no graphic exported procedures/functions.
- can execute his own methods in his own form, like a independent graphical application.
- can give focus back to main application and verse.
- main application can use all exported procedures.
- library must be native or Java-native.

Here solution using fpGUI widgetset =>

Video of the beast in action =>
https://sites.google.com/site/designerext/test_export_bidirect.mp4

And here source + binaries (linux 64 bit) =>
https://sites.google.com/site/designerext/testgraoutlibthread.zip

Fre;D

taazz:
ok a couple of questions
1) what is this graphical exported proedures? what graphics have to do with the export process?
2) Who can not execute his own methods any where he wants and what kind of help to do you offer to him what are the problems addressed?
3) Errm since when is the role of the library to control the focus of anything? Again what is the exact problem addressed?
4) if a function is exported why any application would not be able to use it be it main secondary or even a sub process that requires an other application to work.
5) erm now you lost me what is java-native and what it has to do with FPC or lazarus?

The rest did not bother to look, if the points given do not make sense then the solution presented is irrelevant for my development.

Fred vS:

--- Quote ---ok a couple of questions
1) what is this graphical exported proedures? what graphics have to do with the export process?
2) Who can not execute his own methods any where he wants and what kind of help to do you offer to him what are the problems addressed?
3) Errm since when is the role of the library to control the focus of anything? Again what is the exact problem addressed?
4) if a function is exported why any application would not be able to use it be it main secondary or even a sub process that requires an other application to work.
5) erm now you lost me what is java-native and what it has to do with FPC or lazarus?

The rest did not bother to look, if the points given do not make sense then the solution presented is irrelevant for my development.
--- End quote ---

First of all, thanks to give attention to this tip.

The idea is to use fpc and his library-feature to be accessible to foreign languages (and to Pascal too, of course).
And mainly Java... (fpc can create Java-native libraries)


--- Quote ---1) what is this graphical exported proedures? what graphics have to do with the export process?
--- End quote ---
That library is able to produce graphical result ("graphical exported methods"), like a graphical program does.


--- Quote ---2) Who can not execute his own methods any where he wants and what kind of help to do you offer to him what are the problems addressed?
--- End quote ---
Hum, sorry, this one i do not understand... :-[


--- Quote ---3) Errm since when is the role of the library to control the focus of anything? Again what is the exact problem addressed?
--- End quote ---
Since now  ;)  =>  Because the library has a graphical-main procedure, for example a form with some buttons, it is important that the library can keep control, to respond to button.click.


--- Quote ---4) if a function is exported why any application would not be able to use it be it main secondary or even a sub process that requires an other application to work.
--- End quote ---
Aaargh, same as 2)


--- Quote ---5) erm now you lost me what is java-native and what it has to do with FPC or lazarus?
--- End quote ---
It is the goal => You create a "hyper simple" Java-application, with only few methods.
That Java application will load your "graphical exported native Java library", run main-graphical-proc (in fact a  fpcGUI application inside a thread) and Java application can still interface (if needed) with the main-graphical-proc (via other exported methods), even if Java application is also graphical (using native Java widget, for example).
[EDIT] If your main program does not need to have focus after running main-graphic-proc, the code is even simpler.


Fred vS:

--- Quote ---what it has to do with FPC or lazarus?
--- End quote ---

Ooops, i forgot to note also this => Take a concrete example => Lazarus project.

Lazarus uses LCL widgetset. You may not mix in code different widgetset, for example Gtk + Qt or Gtk + fpGUI.
With that "graphical-output-library" you can...

Navigation

[0] Message Index

Go to full version