Codejock RibbonBar first tests
Re: Codejock RibbonBar first tests
Hello Antonio,
the link where I downloaded the demo is:
http://www.codejock.com/downloads/
then:
ActiveX / COM
All Versions of Visual Studio
You get version 13.0.0!!!
Best regards,
Otto
the link where I downloaded the demo is:
http://www.codejock.com/downloads/
then:
ActiveX / COM
All Versions of Visual Studio
You get version 13.0.0!!!
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
********************************************************************
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Codejock RibbonBar first tests
Lailton,
Oh, I see. That creates the rounded button! Thanks!
Oh, I see. That creates the rounded button! Thanks!
Code: Select all
oRb = oAct:Do( "AddRibbonBar", "fwh" )
oSysButton = oRb:AddSystemButton()
-
- Posts: 603
- Joined: Sun May 04, 2008 8:44 pm
Re: Codejock RibbonBar first tests
Code: Select all
#include "FiveWin.ch"
#define xtpControlError 0
#define xtpControlButton 1
#define xtpControlPopup 2
#define xtpControlButtonPopup 3
#define xtpControlSplitButtonPopup 4
#define xtpControlComboBox 5
#define xtpControlEdit 6
#define xtpControlCustom 7
#define xtpControlLabel 8
#define xtpControlCheckBox 9
#define xtpControlGallery 10
#define xtpControlRadioButton 11
#define xtpImageNormal 0
#define xtpImageDisabled 1
#define xtpImageHot 2
#define xtpImageChecked 3
#define xtpImagePressed 4
function Main()
local oWnd, oAct, oRb, oTabFiles, oTabEdit, oTabBuild, oIcons
local oGroup1, oGroup2, oButton1, oButton2, aButtons := {}
local oButton3, oButton4, oBmp1, oBmp2, oBmp3
local oStatusBar, oToolTipContext
DEFINE WINDOW oWnd
obmp1 := TBitmap():Define( , "..\bitmaps\16x16\new2.bmp", oWnd )
obmp2 := TBitmap():Define( , "..\bitmaps\16x16\open2.bmp", oWnd )
obmp3 := TBitmap():Define( , "..\bitmaps\alphabmp\explorer.bmp", oWnd )
oAct := TActiveX():New( oWnd, "Codejock.CommandBarsFrame.12.1.1", 0, 0, 0, 0 )
//@ 0, 0 ACTIVEX oAct PROGID "Codejock.CommandBarsFrame.12.1.1" OF oWnd
oAct:bOnEvent = { | cEvent, aParams, pParams | RibbonBarEvent( cEvent, aParams, pParams, aButtons ) }
oAct:Do( "AttachToWindow", oWnd:hWnd )
oAct:Do( "EnableOffice2007Frame", .T. )
oAct:Do( "VisualTheme", .T. )
// ToolTipContext - Richard
oToolTipContext := TOleAuto():New( ActXPdisp( oAct:hActiveX ) )
oToolTipContext := oToolTipContext:ToolTipContext()
oToolTipContext:Style = 5 && xtpToolTipOffice2007
oToolTipContext:ShowTitleAndDescription( .T., 0 )
oToolTipContext:ShowImage( .T., 10000 )
oToolTipContext:SetMargin( 2, 2, 2, 2 )
oToolTipContext:MaxTipWidth = 180
// StatusBar-Richard
oStatusBar := TOleAuto():New( ActXPdisp( oAct:hActiveX ) )
oStatusBar:StatusBar:Visible = .T.
oStatusBar:StatusBar:AddPane( 0 )
oStatusBar:StatusBar:AddPane( 59137 )
oStatusBar:StatusBar:AddPane( 59138 )
oStatusBar:StatusBar:AddPane( 59139 )
oStatusBar:StatusBar:IdleText = "FWH support Codejock RibbonBar"
oIcons := oAct:Do( "icons" )
oIcons:AddBitmap( oBmp1:hBitmap,1,xtpImageNormal,.f. )
oIcons:AddBitmap( oBmp2:hBitmap,2,xtpImageNormal,.f. )
oIcons:AddBitmap( oBmp3:hBitmap,3,xtpImageNormal,.t. ) // 4th param, Bool to Alpha Channel Support
oIcons:LoadBitmap( "..\bitmaps\32x32\edit.bmp",4, xtpImageNormal)
//oAct:Hide()
oRb = oAct:Do( "AddRibbonBar", "fwh" )
// Sysbutton - Lailton
Sbutton:=oRb:AddSystemButton()
Sbutton:IconId( 2 )
nCmb := Sbutton:Commandbar
Controls := nCmb:Controls
Controls:Add(1,1,"Menu item 1",1)
Controls:Add(1,1,"Menu item 2",1)
oTabFiles = oRb:InsertTab( 0, "&Files" )
oTabEdit = oRb:InsertTab( 1, "&Edit" )
oTabBuild = oRb:InsertTab( 2, "&Build" )
oGroup1 = oTabFiles:Groups:AddGroup( "Test 1", 0 )
oGroup1:ShowOptionButton = .T.
oGroup2 = oTabFiles:Groups:AddGroup( "Test 2", 1 )
oButton1 = oGroup1:Add( xtpControlButton, 2, "First" )
oButton2 = oGroup1:Add( xtpControlButton, 1, "Second" )
oButton3 = oGroup2:Add( xtpControlButton, 4, NIL )
oButton4 = oGroup2:Add( xtpControlButton, 3, NIL )
oButton4:SetIconSize( 64,64 )
oButton4:Width = 70
oButton4:Height = 70
AAdd( aButtons, oButton1 )
AAdd( aButtons, oButton2 )
oButton1:Caption = "FiveWin power!"
oButton1:TooltipText = "Ribbonbar for FWH"
ACTIVATE WINDOW oWnd
return nil
function RibbonBarEvent( cEvent, aParams, pParams, aButtons )
do case
case cEvent == "Execute" .and. Len( aButtons ) > 0
do case
case aButtons[ 1 ]:hObj == aParams[ 1 ]
MsgInfo( "Button 1" )
case aButtons[ 2 ]:hObj == aParams[ 1 ]
MsgInfo( "Button 2" )
endcase
endcase
return nil
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Codejock RibbonBar first tests
Lailton,
Thanks so much! It looks really nice
Thanks so much! It looks really nice
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Codejock RibbonBar first tests
Richard, Lailton,
Is there a way to have small bitmaps in between the rounded button and the dropdown menu ?
Is there a way to have small bitmaps in between the rounded button and the dropdown menu ?
-
- Posts: 603
- Joined: Sun May 04, 2008 8:44 pm
Re: Codejock RibbonBar first tests
long way antonio very possibilities
Last edited by lailton.webmaster on Wed Apr 01, 2009 12:33 pm, edited 1 time in total.
- RAMESHBABU
- Posts: 591
- Joined: Fri Oct 21, 2005 5:54 am
- Location: Secunderabad (T.S), India
Re: Codejock RibbonBar first tests
Dear Mr.Antonio,
I could not resist my self to congratulate you to take our FWH to the new horizons.
Now almost our FWH is ready to welcome the developers from other development
environments to migrate.
Regards,
- Ramesh Babu P
I could not resist my self to congratulate you to take our FWH to the new horizons.
Now almost our FWH is ready to welcome the developers from other development
environments to migrate.
Regards,
- Ramesh Babu P
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Codejock RibbonBar first tests
Ramesh,
Thanks for your kind words
With the help of all of us, we can build great things
Thanks for your kind words
With the help of all of us, we can build great things
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Codejock RibbonBar first tests
Lailton,
I mean these small buttons:
The screenshot is from Windows 7 MsPaint
I mean these small buttons:
The screenshot is from Windows 7 MsPaint
-
- Posts: 603
- Joined: Sun May 04, 2008 8:44 pm
- richard-service
- Posts: 583
- Joined: Tue Oct 16, 2007 8:57 am
- Location: New Taipei City, Taiwan
- Contact:
Re: Codejock RibbonBar first tests
Add system ball Button and Menu
Regards,
Richard
Regards,
Richard
Regards,
Richard
Harbour 3.2.0dev (r1904111533)/xHarbour 1.2.3 Intl. (SimpLex) (Build 20180818) => Borland C++ v7.4
xHarbour 0.99.71 (SimpLex) => Borland C++ v5.5
MySQL v5.7 /ADS v12
Harbour 3.2.0dev (r1603181642) => Borland C++ v7.4 64bit
Richard
Harbour 3.2.0dev (r1904111533)/xHarbour 1.2.3 Intl. (SimpLex) (Build 20180818) => Borland C++ v7.4
xHarbour 0.99.71 (SimpLex) => Borland C++ v5.5
MySQL v5.7 /ADS v12
Harbour 3.2.0dev (r1603181642) => Borland C++ v7.4 64bit
- richard-service
- Posts: 583
- Joined: Tue Oct 16, 2007 8:57 am
- Location: New Taipei City, Taiwan
- Contact:
Re: Codejock RibbonBar first tests
Add QuickAccessControls
Regards,
Richard
Regards,
Richard
Regards,
Richard
Harbour 3.2.0dev (r1904111533)/xHarbour 1.2.3 Intl. (SimpLex) (Build 20180818) => Borland C++ v7.4
xHarbour 0.99.71 (SimpLex) => Borland C++ v5.5
MySQL v5.7 /ADS v12
Harbour 3.2.0dev (r1603181642) => Borland C++ v7.4 64bit
Richard
Harbour 3.2.0dev (r1904111533)/xHarbour 1.2.3 Intl. (SimpLex) (Build 20180818) => Borland C++ v7.4
xHarbour 0.99.71 (SimpLex) => Borland C++ v5.5
MySQL v5.7 /ADS v12
Harbour 3.2.0dev (r1603181642) => Borland C++ v7.4 64bit
Re: Codejock RibbonBar first tests
Richard,
Would you be so kind to show to code you are doing this ? As Antonio and the others are doing, in order to everybody knows how to do this.
TIA
Would you be so kind to show to code you are doing this ? As Antonio and the others are doing, in order to everybody knows how to do this.
TIA
Kleyber Derick
FWH / xHb / xDevStudio / SQLLIB
FWH / xHb / xDevStudio / SQLLIB
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Codejock RibbonBar first tests
Richard,
Would you mind to share the source code ? thanks
Would you mind to share the source code ? thanks
- richard-service
- Posts: 583
- Joined: Tue Oct 16, 2007 8:57 am
- Location: New Taipei City, Taiwan
- Contact:
Re: Codejock RibbonBar first tests
No problem. I will share source code. Please wait.Antonio Linares wrote:Richard,
Would you mind to share the source code ? thanks
Regards,
Richard
Regards,
Richard
Harbour 3.2.0dev (r1904111533)/xHarbour 1.2.3 Intl. (SimpLex) (Build 20180818) => Borland C++ v7.4
xHarbour 0.99.71 (SimpLex) => Borland C++ v5.5
MySQL v5.7 /ADS v12
Harbour 3.2.0dev (r1603181642) => Borland C++ v7.4 64bit
Richard
Harbour 3.2.0dev (r1904111533)/xHarbour 1.2.3 Intl. (SimpLex) (Build 20180818) => Borland C++ v7.4
xHarbour 0.99.71 (SimpLex) => Borland C++ v5.5
MySQL v5.7 /ADS v12
Harbour 3.2.0dev (r1603181642) => Borland C++ v7.4 64bit