He intentado sin éxito realizar dos grupos en un TRibbonBar del ancho total del TRibbonBar uno debajo de otro
1.- Si defino los TRBGroup() mediante comando con fila, columna y su correspondiente ancho y alto, al definir el segundo, simplemente, copiando el código anterior y modificando solo su fila para que aparezca debajo del anterior me da un error en la clase, que adjunto:
- Code: Select all Expand view
Time from start: 0 hours 0 mins 2 secs
Error occurred at: 05/05/2013, 21:04:24
Error description: Error BASE/1004 Message not found: NIL:NGROUPSEPARATION
Args:
[ 1] = U
Stack Calls
===========
Called from: => __ERRRT_SBASE( 0 )
Called from: ../../../tobject.prg => NIL:ERROR( 0 )
Called from: ../../../tobject.prg => (b)HBOBJECT( 0 )
Called from: ../../../tobject.prg => NIL:MSGNOTFOUND( 0 )
Called from: ../../../tobject.prg => NIL:NGROUPSEPARATION( 0 )
Called from: .\source\classes\TRBGROUP.PRG => TRBGROUP:CALPOS( 862 )
Called from: .\source\classes\TRBGROUP.PRG => TRBGROUP:PAINT( 537 )
Called from: .\source\classes\TRBGROUP.PRG => (b)TRBGROUP( 97 )
Called from: .\source\classes\TRBGROUP.PRG => TRBGROUP:DISPLAY( 0 )
Called from: .\source\classes\TRIBBON.PRG => (b)TRIBBONBAR_RESIZE( 1288 )
Called from: => AEVAL( 0 )
Called from: .\source\classes\TRIBBON.PRG => TRIBBONBAR:RESIZE( 1288 )
Called from: .\source\classes\TRIBBON.PRG => TRIBBONBAR:SETOPTION( 1146 )
Called from: .\source\classes\TRIBBON.PRG => TRIBBONBAR:LBUTTONDOWN( 1029 )
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1687 )
Called from: .\source\classes\TRIBBON.PRG => TRIBBONBAR:HANDLEEVENT( 1182 )
Called from: .\source\classes\WINDOW.PRG => _FWH( 3159 )
Called from: => WINRUN( 0 )
Called from: .\source\classes\WINDOW.PRG => TMDIFRAME:ACTIVATE( 980 )
Called from: Prueba.prg => MAIN( 309 )
2.- Si los defino mediante el Metodo ADDGroup de la clase TRibbonBar, no me respeta el ancho de los grupos que defino y me los realiza poniendo el ancho por defecto, muy pequeños y uno al lado del otro. He intentado mediante SetSize modificar sus dimensiones sin resultado.
3.- Por otra parte he intentado hacerlo creando el primero mediante comando y el segundo mediante ADDGroup() y, en este caso, el primero me lo pinta sin respetar el ancho definido en el comando, muy pequeño, igual que el anterior caso, y el segundo debajo y a su derecha con un ancho que no es el que se define en el ADDGroup y con un alto que calcula pero sin llegar a ocupar todo el TRibbonBar.
He de decir que si solo defino un Group mediante comando me lo pinta correctamente ocupando todo el ancho del TRibbon
Que estoy haciendo mal?
Gracias anticipadas
FWH 12.03 + Harbour + BCC 5.82