fpGUI Interface/es

From Lazarus wiki
Jump to navigationJump to search

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

Consejos específicos de plataformas

Artículos sobre desarrollo de Interfaces

Creamdp tu primera aplicación LCL con fpGUI

Esta es una guía paso a paso para construir tu primera aplicación con el conjunto de widgets de fpGUI:

  1. Descarga la última versión disponible de Lazarus desde subversion y construyelo (no necesariamente si descargas una instantanea precompilada).
  2. Descarga el código fuente de fpGUI desde el repositorio Git de SourceForge.net Git tal como sigue:
    git clone git://git.code.sf.net/p/fpgui/code
  3. Asegúrate de cambiar a la rama maint de fpGUI.
    git checkout maint
  4. Ahora necesitamos que el LCL de Lazarus pueda encontrar el código de fpGUI.
    1. Utilizando Lazarus (trunk)
      • Opción 1)
        Copia el directorio 'src' desde las fuentes de fpGUI a tu directorio Lazarus tal como sigue:

        <fpgui>/src/ ⇒ <lazarus>/lcl/interfaces/fpgui/src/

      • Opción 2)
        Utiliza la función de enlazado simbólico de tu sistema de ficheros para crear un enlace al directorio src de fpGUI de forma que apunte a la dirección correcta en Lazarus.
        Por ejemplo:

        cd /opt/lazarus/lcl/interfaces/fpgui
        ln -s /path/to/fpgui/src src

    2. 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

  5. Now you need to recompile LCL for the LCL-fpGUI widgetset
    1. Using Lazarus (trunk)
      1. Start a new LCL application
      2. 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)
      3. Compile your project!
    2. Using Lazarus 1.0.8 and earlier
      1. Start a new LCL application
      2. 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.
      3. Go to the menu Compiler Options, select fpGUI as the widgetset
      4. Compile your project!

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.

Mapa de recorrido del interface fpGUI

Here: Roadmap#Widgetset_dependent_components

Ver también

  • fpGUI Toolkit
  • fpGUI de forma sencilla ¡ La manera fácil de probar fpGUI y Free Pascal ! Simplemente desempaqueta el archivo descargado y ya tienes un entorno completamente funcional con FPC y fpGUI.