Difference between revisions of "fpGUI Interface/es"
From Free Pascal wiki
Jump to navigationJump to searchLine 9: | Line 9: | ||
{{Other Interfaces/es}} | {{Other Interfaces/es}} | ||
− | == | + | ==Creating your first LCL application with fpGUI== |
− | + | This is a step-by-step guide to build your first application with the fpGUI widgetset | |
− | + | # Download the latest Lazarus from subversion and build it (not necessary if you downloaded a pre-compiled snapshot) | |
− | + | # Download fpGUI source code from the SourceForge.net Git repository as follows: | |
− | + | #:<pre>git clone git://git.code.sf.net/p/fpgui/code</pre> | |
− | + | # Make sure you switch the the '''maint''' branch of fpGUI. | |
− | + | #:<pre>git checkout maint</pre> | |
− | + | # Now we need to make the Lazarus LCL find the fpGUI code. | |
− | + | ##'''Using Lazarus (trunk)''' | |
− | : | + | ##*Option 1) |
− | + | ##*:Copy the 'src' directory from the fpGUI sources into your Lazarus directory as follows:<br/><br/> | |
− | + | ##*:<fpgui>/src/ ⇒ <lazarus>/lcl/interfaces/fpgui/src/ | |
− | + | ##*:<br/> | |
− | + | ##*Option 2) | |
− | + | ##*:Use your file system's symbolic linking function to create a link the fpGUI '''src''' directory, to the correct location in Lazarus. | |
− | : | + | ##*:For example:<br/><br/> |
− | + | ##*:cd /opt/lazarus/lcl/interfaces/fpgui | |
− | + | ##*:ln -s /path/to/fpgui/src src | |
− | + | ##*:<br/> | |
− | + | ##'''Using Lazarus 1.0.8 and earlier''' | |
− | + | ##*Option 1) | |
− | + | ##:Supported on all platforms. Copy two directories and one file from the downloaded '''fpgui''' to '''lazarus'''<br/><br/> | |
− | + | ##:<fpGUI dir>/src/gui ⇒ lazarus/lcl/interfaces/fpgui/gui | |
− | + | ##:<fpGUI dir>/src/corelib ⇒ lazarus/lcl/interfaces/fpgui/corelib | |
+ | ##:<fpGUI dir>/src/VERSION_FILE.inc ⇒ lazarus/lcl/interfaces/fpgui/VERSION_FILE.inc | ||
+ | ##:<br/> | ||
+ | ##*Option 2) | ||
+ | ##:Linux or any other Unix type platforms. Create symbolic links from the fpGUI's '''corelib''', '''gui''' directories and VERSION_FILE.inc to the Lazarus LCL directory as follows:<br/><br/> | ||
+ | ##:ln -s <fpGUI dir>/src/gui lazarus/lcl/interfaces/fpgui/gui | ||
+ | ##:ln -s <fpGUI dir>/src/corelib lazarus/lcl/interfaces/fpgui/corelib | ||
+ | ##:ln -s <fpGUI dir>/src/VERSION_FILE.inc lazarus/lcl/interfaces/fpgui/VERSION_FILE.inc | ||
+ | ##:<br/> | ||
+ | #Now you need to recompile LCL for the LCL-fpGUI widgetset | ||
+ | ##'''Using Lazarus (trunk)''' | ||
+ | ###Start a new LCL application | ||
+ | ###Tell it to use the LCL-fpGUI widgeset by using the '''Additions and Overrides''' dialog. This can be found by selecting "Project Options -> Compiler Options -> Additions and Overrides". You can use the drop-down button menus in that dialog to define the following IDE Macros, or type them in by hand. For the '''fpGUIPlatform''' macro, only define one, dependent on the platform you are compiling for. | ||
+ | ###*define IDE Macro: '''LCLWidgetType := fpgui''' | ||
+ | ###*define IDE Macro: '''fpGUIPlatform := gdi'''<span style="margin-left: 100px;">(for Windows)</span> | ||
+ | ###*define IDE Macro: '''fpGUIPlatform := x11'''<span style="margin-left: 100px;">(for Linux/FreeBSD)</span> | ||
+ | ###Compile your project! | ||
+ | ##'''Using Lazarus 1.0.8 and earlier''' | ||
+ | ###Start a new LCL application | ||
+ | ###Open Lazarus, open the menu "Tools -> Configure Build Lazarus", select all options to None and LCL to Build+Clean, select fpGUI widgetset and rebuild it. | ||
+ | ###Go to the menu Compiler Options, select '''fpGUI''' as the widgetset | ||
+ | ###Compile your project! | ||
== Detalles de implementación == | == Detalles de implementación == |
Revision as of 09:20, 31 March 2017
│
Deutsch (de) │
English (en) │
español (es) │
français (fr) │
Introducción
fpGUI es un widgetset escrito completamente en Object Pascal. Enlaza directamente con el sistema subyacente de windows, y por tanto evita la necesidad de más librerias externas. Se puede encontrar información adicional en su sitio web: http://fpgui.sourceforge.net
Otras Interfaces
- Lazarus known issues (things that will never be fixed) - Una lista de problemas de compatibilidad de interfaz.
- Win32/64 Interface - la interfaz winapi para Windows 95/98/Me/2K/XP/Vista, pero no para CE.
- Windows CE Interface - Para Pocket PC y Smartphones.
- Carbon Interface - La interfaz carbon para macOS.
- Cocoa Interface - La interfaz cocoa para macOS.
- Interfaz Qt - La interfaz Qt4 para *nix, macOS y las PDA basadas en linux.
- GTK1 Interface - gtk1 para *nix, macOS (X11), Windows.
- GTK2 Interface - gtk2 para *nix, macOS (X11), Windows.
- GTK3 Interface - gtk3 para *nix, macOS (X11), Windows.
- fpGUI Interface - Un conjunto de elementos gráficos completamente escrito en Object Pascal', basados en la libería fpGUI con un kit de utilidades para plataforma cruzada..
- Custom Drawn Interface - Un backend (parte no visible frente al frontend que el la parte que si vemos) LCL de plataforma cruzada, escrito completamente en Object Pascal dentro de Lazarus. El interface Lazarus para Android.
Consejos específicos de plataformas
- Windows Programming Tips - Consejos de programación para escritorios Windows.
- Linux Programming Tips - Como ejecutar tareas de programación particulares en Linux.
- macOS Programming Tips - Instalación de Lazarus, utilides de interés, mandatos Unix y más.....
- WinCE Programming Tips - Utilizando la API telephone, enviando SMSes, y más ...
- Android Programming - Para smartphones Android y tabletas.
- iPhone/iPod development - Sobre como utilizar Object Pascal y diseñar aplicaciones iOS.
Artículos sobre desarrollo de Interfaces
- Las interioridades de carbon - Si quieres ayudar a mejorar la interfaz carbon.
- Notas de desarrollo winCE - Para Pocket PC y Smartphones.
- Añadiendo una nueva interfaz - Cómo añadir un nuevo conjunto de artefactos gráficos.
- Defines de la LCL - Elegir la mejores opciones para compilar la LCL.
- Las interioridades de la LCL - Algo de información sobre el funcionamiento interno de la LCL.
- Cocoa Internals - Algo de información sobre el funcionamiento interno del widgetset de Cocoa.
Creating your first LCL application with fpGUI
This is a step-by-step guide to build your first application with the fpGUI widgetset
- Download the latest Lazarus from subversion and build it (not necessary if you downloaded a pre-compiled snapshot)
- Download fpGUI source code from the SourceForge.net Git repository as follows:
git clone git://git.code.sf.net/p/fpgui/code
- Make sure you switch the the maint branch of fpGUI.
git checkout maint
- Now we need to make the Lazarus LCL find the fpGUI code.
- Using Lazarus (trunk)
- Option 1)
- Copy the 'src' directory from the fpGUI sources into your Lazarus directory as follows:
- <fpgui>/src/ ⇒ <lazarus>/lcl/interfaces/fpgui/src/
- Copy the 'src' directory from the fpGUI sources into your Lazarus directory as follows:
- Option 2)
- Use your file system's symbolic linking function to create a link the fpGUI src directory, to the correct location in Lazarus.
- For example:
- cd /opt/lazarus/lcl/interfaces/fpgui
- ln -s /path/to/fpgui/src src
- Option 1)
- Using Lazarus 1.0.8 and earlier
- Option 1)
- Supported on all platforms. Copy two directories and one file from the downloaded fpgui to lazarus
- <fpGUI dir>/src/gui ⇒ lazarus/lcl/interfaces/fpgui/gui
- <fpGUI dir>/src/corelib ⇒ lazarus/lcl/interfaces/fpgui/corelib
- <fpGUI dir>/src/VERSION_FILE.inc ⇒ lazarus/lcl/interfaces/fpgui/VERSION_FILE.inc
- Option 2)
- Linux or any other Unix type platforms. Create symbolic links from the fpGUI's corelib, gui directories and VERSION_FILE.inc to the Lazarus LCL directory as follows:
- ln -s <fpGUI dir>/src/gui lazarus/lcl/interfaces/fpgui/gui
- ln -s <fpGUI dir>/src/corelib lazarus/lcl/interfaces/fpgui/corelib
- ln -s <fpGUI dir>/src/VERSION_FILE.inc lazarus/lcl/interfaces/fpgui/VERSION_FILE.inc
- Using Lazarus (trunk)
- Now you need to recompile LCL for the LCL-fpGUI widgetset
- Using Lazarus (trunk)
- Start a new LCL application
- Tell it to use the LCL-fpGUI widgeset by using the Additions and Overrides dialog. This can be found by selecting "Project Options -> Compiler Options -> Additions and Overrides". You can use the drop-down button menus in that dialog to define the following IDE Macros, or type them in by hand. For the fpGUIPlatform macro, only define one, dependent on the platform you are compiling for.
- define IDE Macro: LCLWidgetType := fpgui
- define IDE Macro: fpGUIPlatform := gdi(for Windows)
- define IDE Macro: fpGUIPlatform := x11(for Linux/FreeBSD)
- Compile your project!
- Using Lazarus 1.0.8 and earlier
- Start a new LCL application
- Open Lazarus, open the menu "Tools -> Configure Build Lazarus", select all options to None and LCL to Build+Clean, select fpGUI widgetset and rebuild it.
- Go to the menu Compiler Options, select fpGUI as the widgetset
- Compile your project!
- Using Lazarus (trunk)
Detalles de implementación
Mapa de Componentes
Esta es una tabla que indica que controles PFGUI se utilizan para construir cada LCL.
LCL Control | FPGUI Control | Comments |
---|---|---|
TPageControl | TfpgPageControl | - |
TButton | TfpgButton | - |
TBitBtn | TfpgButton | La clase de pulsador estandar de fpGUI soporta imágenes. |
TSpeedButton | TfpgButton | La clase de pulsador estandar de fpGUI soporta imágenes, vista plana, etc. |