RibbonBar en Dialog.... How to ??

Re: RibbonBar en Dialog.... How to ??

Postby Raymundo Islas M. » Mon Apr 26, 2010 10:56 pm

Daniel,

- Antes de probar lo que indicas habia creado el control pero como "TTitle" y nada, despues como "TTITLE" y nada.
quize intentarlo con otro control : RBBTN SAYBUTTON y tampoco, lo que descubri es que si aplico la clausula TRANSPARENT al dialogo no se pinta nada, quitandolo si se muestra.

En este momento si se ve el Title pero el resto de la pantalla se ve "feito" por la falta de transparencia en el resto de los controles.

Saludos
FWH 10.6 + xHarbour + Borland 582
User avatar
Raymundo Islas M.
 
Posts: 592
Joined: Tue Mar 14, 2006 11:34 pm
Location: Acapulco, Gro. MEXICO

Re: RibbonBar en Dialog.... How to ??

Postby Otto » Tue Jun 21, 2011 3:57 pm

Hello Daniel,
when I try the sample I get:

"Not Supported for TDialog"

Thanks in advance
Otto


Code: Select all  Expand view
#include "fivewin.ch"
#include "ribbon.ch"


FUNCTION Main()

  LOCAL oDlg

  DEFINE DIALOG oDlg SIZE 600, 400 PIXEL
 
  ACTIVATE DIALOG oDlg CENTERED;
           ON INIT CreateRibbon( oDlg )
 
RETURN NIL


FUNCTION CreateRibbon( oDlg )
   LOCAL oRib

   DEFINE RIBBONBAR oRib WINDOW oDlg ;
    PROMPT "Test", "test2", "test3";
    HEIGHT 140 TOPMARGIN 36
   
    oRib:Move( 0, 0, oDlg:nWidth, oRib:nHeight )

RETURN NIL
 
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6327
Joined: Fri Oct 07, 2005 7:07 pm

Re: RibbonBar en Dialog.... How to ??

Postby Daniel Garcia-Gil » Tue Jun 21, 2011 8:55 pm

Hello Mr. Otto

you can try suppress the dialog restriction inside TRIBBON.PRG

Code: Select all  Expand view
if !( oWnd:ClassName() $ "TWINDOW,TMDIFRAME,TMDICHILD" )
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: RibbonBar en Dialog.... How to ??

Postby Otto » Wed Jun 22, 2011 7:39 am

Hello Mr. Daniel,
thank you so much. Will this change be in TRibbon class?

Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6327
Joined: Fri Oct 07, 2005 7:07 pm

Re: RibbonBar en Dialog.... How to ??

Postby Daniel Garcia-Gil » Wed Jun 22, 2011 10:21 am

Hello

Yes
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Previous

Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 34 guests