Ribbon problem with other controls

Ribbon problem with other controls

Postby fraxzi » Tue Sep 22, 2009 7:17 am

Hello guys!

Here's a problem am working:

Image

Prior in clicking 'Here' button of ribbon bar group. normal.

Here when I selected the button 'Here'

Image

This is just a small code that I reproduced to show the problem:

CODE:

Code: Select all  Expand view

#Include 'FiveWin.ch'
#include 'Ribbon.ch'



//--------------------------------------------------------------------------------------------------

PROCEDURE uMain()
 LOCAL aScreen := { GetSysMetrics( 4 ) +  GetSysMetrics( 17 ),;  //height of caption and screen }
                    GetSysMetrics( 16 ),;                        //width of client area
                    GetSysMetrics( 0 ),;                         //width of screen
                    GetSysMetrics( 1 ) }                         //height of screen


 LOCAL oRibbon,;
       oBtn_RR, oBtn_SR,;
       oBtn_RE, oBtn_CH, oBtn_CO,;
       oBtn_RP


 DEFINE WINDOW oMDIFrame TITLE "Ribbon flicker" MDI;
        From 2, 2 To aScreen[1]-2, aScreen[2]-2;
        STYLE nOr( WS_BORDER, WS_SYSMENU, WS_MINIMIZEBOX);
        MENU uBuildMenu()


        DEFINE BRUSH oBrushWin;
               RESOURCE 'Brick'

        DEFINE BRUSH oBrushDlg;
               RESOURCE 'Stone'

        DEFINE RIBBONBAR oRibbon WINDOW oMDIFrame;
               PROMPT 'ONE', 'TWO', 'THREE';
               HEIGHT 112 TOPMARGIN 26


               ADD GROUP oGrp_PUR_N3 RIBBON oRIBBON TO OPTION 1;
                   PROMPT "one.1" width 120

                   @ 05, 10 ADD BUTTON GROUP oGrp_PUR_N3;
                            SIZE 50, 58 PROMPT '&1';
                            SPLITPOPUP ROUND;
                            ACTION msginfo('1.1')

                   @ 05, 62 ADD BUTTON GROUP oGrp_PUR_N3;
                            SIZE 50, 58 PROMPT '&2';
                            SPLITPOPUP ROUND ;
                            ACTION msginfo('1.2')

//-----------------------------------------------------------------------------------------------------------------------------

               ADD GROUP oGrp_INV_N3 RIBBON oRIBBON TO OPTION 2;
                   PROMPT "two.1" width 120


                   @ 05, 10 ADD BUTTON oBtn_RR GROUP oGrp_INV_N3;
                            SIZE 50, 58 PROMPT "&Here";
                            SPLITPOPUP ROUND;
                            ACTION uTest()


                   @ 05, 62 ADD BUTTON oBtn_SR GROUP oGrp_INV_N3;
                            SIZE 50, 58 PROMPT "&2";
                            SPLITPOPUP ROUND ;
                            ACTION msginfo('2.1')


               ADD GROUP oGrp_COS_N3 RIBBON oRIBBON TO OPTION 2;
                   PROMPT "two.2" width 210


                   @ 05,  10 ADD BUTTON oBtn_RE GROUP oGrp_COS_N3;
                             SIZE 50, 58 PROMPT "&1";
                             SPLITPOPUP ROUND;
                             ACTION msginfo('2.1')

                   @ 05,  62 ADD BUTTON oBtn_CH GROUP oGrp_COS_N3;
                             SIZE 70, 58 PROMPT "&2";
                             SPLITPOPUP ROUND ;
                             ACTION msginfo('2.2')

                   @ 05, 133 ADD BUTTON oBtn_CO GROUP oGrp_COS_N3;
                             SIZE 70, 58 PROMPT "&3";
                             SPLITPOPUP ROUND ;
                             ACTION msginfo('2.3')

               ADD GROUP oGrp_INV_RE RIBBON oRIBBON TO OPTION 2;
                   PROMPT "three.3" width 210 BITMAP 'ribbontip'


                   @ 05,  10 ADD BUTTON oBtn_RP GROUP oGrp_INV_RE;
                             SIZE 70, 58 PROMPT "&1";
                             SPLITPOPUP ROUND ;
                             ACTION msginfo('3.1')

//------------------



 ACTIVATE WINDOW oMDIFrame Maximized;
          ON INIT ( oRibbon:SetOption( 2 ) )


RETURN

//--------------------------------------------------------------------------------------------------

STATIC FUNCTION uBuildMenu()
 LOCAL oMenu
 MENU oMenu
 ENDMENU
RETURN( oMenu )


//--------------------------------------------------------------------------------------------------

PROCEDURE uTest()
 LOCAL oWnd, oDlg

      DEFINE WINDOW oWnd TITLE "xBrowse" MDICHILD;
             FROM 0,0 TO 0,0;
             STYLE nOr( WS_SYSMENU, WS_CAPTION, WS_DLGFRAME, WS_CLIPCHILDREN );
             OF oMDIFrame PIXEL


             DEFINE DIALOG oDlg RESOURCE 'DLG_CONTENT';
                    OF oWnd PIXEL

             ACTIVATE DIALOG oDlg NOWAIT;
                      VALID .F.   //no esc-key


      ACTIVATE WINDOW oWnd;
               ON INIT ( oWnd:nHeight := oDlg:nHeight + GetSysMetrics( 4 ),;
                         oWnd:nWidth  := oDlg:nWidth - 2 )


RETURN

//--------------------------------------------------------------------------------------------------
 


RC:
Code: Select all  Expand view

1 24 "WindowsXP.Manifest"

DLG_CONTENT DIALOGEX 0,0,465,319
FONT 10,"Verdana",0,0
STYLE WS_CHILDWINDOW|WS_VISIBLE
BEGIN
  CONTROL "GroupBox",1001,"Button",WS_CHILDWINDOW|WS_VISIBLE|BS_GROUPBOX,13,13,128,56
END
 


:?: :?: :?:

any help Mr. Antonio?
Last edited by fraxzi on Wed Sep 23, 2009 1:00 am, edited 3 times in total.
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: Ribbon problem with other controls

Postby Lautaro » Tue Sep 22, 2009 1:51 pm

Hello Frances,

This sample it's ok, with harbour + fwh9.08 + msvc.

Atte.,

Lautaro Moreira
User avatar
Lautaro
 
Posts: 322
Joined: Fri Oct 07, 2005 2:44 pm
Location: Osorno, Chile

Re: Ribbon problem with other controls

Postby Kleyber » Tue Sep 22, 2009 8:28 pm

Hi Lautaro,

I see that you use Harbour + FWH + MSVC. Can you contact me in private ?I'd like to ask you some things about it. My email is kleyber@tkinformidia.net

Regards,
Kleyber Derick

FWH / xHb / xDevStudio / SQLLIB
User avatar
Kleyber
 
Posts: 581
Joined: Tue Oct 11, 2005 11:28 am
Location: São Luiz, Brasil

Re: Ribbon problem with other controls

Postby Lautaro » Tue Sep 22, 2009 8:42 pm

Hi Kleyber,

I send you a email.

Regards,

Lautaro Moreira
User avatar
Lautaro
 
Posts: 322
Joined: Fri Oct 07, 2005 2:44 pm
Location: Osorno, Chile

Re: Ribbon problem with other controls

Postby lailton.webmaster » Tue Sep 22, 2009 8:49 pm

Kleyber,

meu brother, eu estou fazendo test com harbour e msvc++ e fivewin se tu precisar de ajuda
me mande email ou fale pelo messeger comigo q te passo uns bat´s facil de utilizar.


abraço
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: Ribbon problem with other controls

Postby fraxzi » Wed Sep 23, 2009 12:30 am

Lautaro wrote:Hello Frances,

This sample it's ok, with harbour + fwh9.08 + msvc.

Atte.,

Lautaro Moreira



Hello Lautaro,

Thank you for your test.

I'm using xHB 1.21 + FWH908... Still a problem to me.


Regards,
Frances
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: Ribbon problem with other controls

Postby fraxzi » Wed Sep 23, 2009 1:04 am

Dear all,

If you comment from .RC

Code: Select all  Expand view

1 24 "WindowsXP.Manifest"
 


oRibbon will not flicker or group buttons will not disappear... BUT ComboBox is not showing items...

Ribbons has a problem with themed app?

Mr. Antonio?

-Regards
Frances
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: Ribbon problem with other controls

Postby Kleyber » Wed Sep 23, 2009 5:24 pm

Lautaro wrote:Hi Kleyber,

I send you a email.

Regards,

Lautaro Moreira


Hi Lautaro,

Unfortunately I did not receive your email. please send me to another email: kleyber.ribeiro@grupoferraz.com.br

Thanks,

Kleyber
Kleyber Derick

FWH / xHb / xDevStudio / SQLLIB
User avatar
Kleyber
 
Posts: 581
Joined: Tue Oct 11, 2005 11:28 am
Location: São Luiz, Brasil

Re: Ribbon problem with other controls

Postby Lautaro » Wed Sep 23, 2009 7:21 pm

Hi Kleyber,

I send email again.

Regards,

Lautaro Moreira
User avatar
Lautaro
 
Posts: 322
Joined: Fri Oct 07, 2005 2:44 pm
Location: Osorno, Chile


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 56 guests

cron