#xcommand_2 para BEACON

Todas las sugerencias, preguntas y aportes que queráis hacer
Responder
Iryna
Mensajes: 9
Registered for: 3 years 4 months
Spain

#xcommand_2 para BEACON

Mensaje por Iryna »

Buenas tardes,

Los #xcommand segunda parte.

Un saludo,

Código: Seleccionar todo

#xcommand BIMAGE <oImg> OF <oParent> DOC <oMain> ;
             [ BACKGROUND <cBackGround> ] ;
             [ BORDER <cStyle>,<nW>,<cColo>,<cBord>,<nRad> ] ;
             [ DISPLAY <cDisplay> ] ;
             [ FLOAT <cFloat> ] ;
             [ HEIGHT <cHeight> ] ;
             [ IMAGEN <cImage> ] ;
             [ KEYSTYLE <cKeyType> , <cKeyStyle>  ] ;
             [ MARGIN <cMargin>, <cU> ] ;
             [ MARGINBOTT <nBott> ] ;
             [ MARGINLEFT <nLeft> ] ;
             [ MARGINRIGHT <nRight> ] ;
             [ MARGINTOP <nTop> ] ;
             [ OPACITY <nOpacity> ] ;
             [ POSITION <cPosition> ] ;
             [ WIDTH <cWidth> ] ;
          => ;
          <oImg>:= TBImage():New( , <oMain>, ,  <oParent> )  ;; 
          WITH OBJECT <oImg> ;;
             [ :SetBackGround( <cBackGround> ) ];;
             [ :SetBorder( <cStyle>,<nW>,<cColo>,<cBord>,<nRad> ) ];;
             [ :SetDisplay( <cDisplay> ) ];;
             [ :SetFloat( <cFloat> ) ];;
             [ :SetHeight( <cHeight> ) ];;
             [ :SetImage( <cImage> ) ];;
             [ :SetKeyStyles( { { <cKeyType> , <cKeyStyle> } } ) ];;
             [ :SetMargin( <cMargin>, <cU> ) ];;
             [ :SetMarginBottom( <nBott> ) ];;
             [ :SetMarginLeft( <nLeft> ) ];;
             [ :SetMarginRight( <nRight> ) ];;
             [ :SetMarginTop( <nTop> ) ];;
             [ :SetOpacity( <nOpacity> ) ];;
             [ :SetPosition( <cPosition> ) ];;
             [ :SetWidth( <cWidth> ) ];;
          END

#xcommand ACTIVATE <oImg> ;
          [ CLASS <cClass> ] ;
          [ ID <cId> ] ;
       => ;
         <oImg>:Activate( [<cClass>], [<cId>] )

Código: Seleccionar todo

#xcommand BSPAN <oSpan> OF <oParent> DOC <oMain> ;
          [ CAPTION <cCaption> ] ;
          [ COLORS <cText>,<cBack> ] ;
          [ FAMFONT <cFont> ] ;
          [ SIZEFONT <nN> ] ;
          [ LINEHEIGHT <nHeight> ] ;
          => ;
          <oSpan>:= TSpan():New( , <oMain>, ,  <oParent> )  ;; 
          WITH OBJECT <oSpan> ;;
             [ :SetCaption( <cCaption> ) ];;
             [ :SetColor( <cText>,<cBack> ) ];;
             [ :SetFamFont( <cFont> ) ];;
             [ :SetSizeFont( <nN> ) ];;
             [ :SetLineHeight( <nHeight> ) ];;
          END

#xcommand ACTIVATE <oSpan> ;
          [ CLASS <cClass> ] ;
          [ ID <cId> ] ;
       => ;
         <oSpan>:Activate( [<cClass>], [<cId>] )

Código: Seleccionar todo

#xcommand BPARAGRAPH <oParg> OF <oParent> DOC <oMain> ;
          [ CAPTION <cCaption> ] ;
          [ COLORS <cText>,<cBack> ] ;
          [ DISPLAY <cDisplay> ] ;
          [ FLOAT <cFloat> ] ;
          [ FAMFONT <cFont> ] ;
          [ HEIGHT <cHeight> ] ;
          [ ICONO <cIcon> ] ;
          [ LINEHEIGHT <nHeight> ] ;
          [ LISTILE <cStile> ] ;
          [ MARGIN <cMargin>, <cU> ] ;
          [ MARGINBOTT <nBott> ] ;
          [ MARGINLEFT <nLeft> ] ;
          [ MARGINRIGHT <nRight> ] ;
          [ MARGINTOP <nTop> ] ;
          [ OPACITY <nOpacity> ] ;
          [ OVERFLOW <cOverFlow> ] ;
          [ PADDBOTTOM <nPbott> ] ;
          [ PADDLEFT <nPleft> ] ;
          [ PADDRIGHT <nPright> ] ;
          [ PADDTOP <nPtop> ] ;
          [ REF <cRef> ] ;
          [ SIZEFONT <nN> ] ;
          [ TEXTALIGN <cAlign> ] ;
          [ TEXTDECO <cDeco> ] ;
          [ WIDTH <cWidth> ] ;
          => ;
          <oParg>:= TParagraph():New( , <oMain>, ,  <oParent> )  ;; 
          WITH OBJECT <oParg> ;;
             [ :SetCaption( <cCaption> ) ];;
             [ :SetColor( <cText>,<cBack> ) ];;
             [ :SetDisplay( <cDisplay> ) ];;
             [ :SetFamFont( <cFont> ) ];;
             [ :SetFloat( <cFloat> ) ];;
             [ :SetHeight( <cHeight> ) ];;
             [ :SetHRef( <cRef> ) ];;
             [ :SetImgIcon( <cIcon> ) ];;
             [ :SetLineHeight( <nHeight> ) ];;
             [ :SetListStyle( <cStile> ) ];;
             [ :SetMargin( <cMargin>, <cU> ) ];;
             [ :SetMarginBottom( <nBott> ) ];;
             [ :SetMarginLeft( <nLeft> ) ];;
             [ :SetMarginRight( <nRight> ) ];;
             [ :SetMarginTop( <nTop> ) ];;
             [ :SetOpacity( <nOpacity> ) ] ;;
             [ :SetOverFlow( <cOverFlow> ) ];;
             [ :SetPaddingBottom( <nPbott> ) ] ;;
             [ :SetPaddingLeft( <nPleft> ) ] ;;
             [ :SetPaddingRight( <nPright> ) ] ;;
             [ :SetPaddingTop( <nPtop> ) ] ;;
             [ :SetSizeFont( <nN> ) ];;
             [ :SetTextAlign( <cAlign> ) ];;
             [ :SetTextDecoration( .T., <cDeco> )  ];;
             [ :SetWidth( <cWidth> ) ];;
          END

#xcommand ACTIVATE <oParg> ;
          [ CLASS <cClass> ] ;
          [ ID <cId> ] ;
       => ;
         <oParg>:Activate( [<cClass>], [<cId>] )
         
#xcommand ENDPARAGRAPH <oParg>;
       => ;                         
           <oParg>:EndParagraph()
Última edición por Iryna el Mar May 25, 2021 7:33 pm, editado 2 veces en total.
"Despacio y buena letra"

Cristobal
Site Admin
Mensajes: 315
Registered for: 3 years 6 months
Spain

Mensaje por Cristobal »

Gracias Iryna, muy bien
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces

Avatar de Usuario
jvtecheto
Mensajes: 56
Registered for: 3 years 5 months
Spain

Mensaje por jvtecheto »

Hola

Muchas gracias Irina por tu trabajo.

Pero... cuando se publique una nueva version de Beacon (.hrb) podrias actualizar tambien el fichero .ch con los xcommands nuevos.?

Saludos.

Jose.
Entusiasta de la programacion y de Harbour, Fivewin en particular.

Iryna
Mensajes: 9
Registered for: 3 years 4 months
Spain

Mensaje por Iryna »

Muchas gracias Jose
"Despacio y buena letra"

Responder