Page 1 of 1

TPanel

PostPosted: Mon Sep 08, 2014 7:02 pm
by cnavarro
Es posible que la definicion del comando sea errónea? (Fivewin.ch)
Ahora mismo es:
Code: Select all  Expand view

#xcommand @ <nRow>, <nCol> PANEL [ <oPnl> ] ;
             [ SIZE <nWidth>, <nHeight> ] ;
             [ <of: OF, WINDOW, DIALOG > <oWnd> ] ;
             [ <design: DESIGN> ] ;
       => ;
          [ <oPnl> := ] TPanel():New( <nRow>, <nCol>, <nWidth> + <nCol> - 1,;
             <nHeight> + <nRow> - 1, <oWnd>, <.design.> )
 

y debería ser
Code: Select all  Expand view

#xcommand @ <nRow>, <nCol> PANEL [ <oPnl> ] ;
             [ SIZE <nWidth>, <nHeight> ] ;
             [ <of: OF, WINDOW, DIALOG > <oWnd> ] ;
             [ <design: DESIGN> ] ;
       => ;
          [ <oPnl> := ] TPanel():New( <nRow>, <nCol>,  <nHeight> + <nRow> - 1,;
                             <nWidth> + <nCol> - 1,  <oWnd>, <.design.> )

 


según la definicion de la clase

Code: Select all  Expand view

METHOD New( nTop, nLeft, nBottom, nRight, oWnd ) CONSTRUCTOR
 

Re: TPanel

PostPosted: Tue Sep 09, 2014 6:43 am
by Antonio Linares
Cristobal,

Tienes toda la razón. Es un bug en la definición del comando. Muchas gracias! :-)