TTabs now uses Office 2007 look - border

TTabs now uses Office 2007 look - border

Postby Otto » Wed Mar 12, 2008 8:51 am

Could someone please tell me how to show the border on the bottom.
Thanks in advance
Otto


Image
User avatar
Otto
 
Posts: 6267
Joined: Fri Oct 07, 2005 7:07 pm

Postby Antonio Linares » Wed Mar 12, 2008 7:48 pm

Otto,

What control do you have below the buttonbar ?

Could you please provide a little and self contained sample to build it here the same way you are doing it ? Thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41882
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Otto » Wed Mar 12, 2008 8:25 pm

Antonio, this is a screenshot from test2007.prg from the Fivewin samples.
Regards,
Otto
User avatar
Otto
 
Posts: 6267
Joined: Fri Oct 07, 2005 7:07 pm

Postby Antonio Linares » Wed Mar 12, 2008 10:27 pm

Otto,

samples\Test2007.prg uses no Tabs. You may have modified it.

Please let us see your changes for it, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41882
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Otto » Wed Mar 12, 2008 11:09 pm

Antonio, here a screenshot from the original test2007.prg.
Regards,
Otto

Image



#include "FiveWin.ch"

static oWnd

function Main()

local oBar, oPopup, oBtn

SetBalloon( .T. ) // Balloon shape required for tooltips

DEFINE WINDOW oWnd TITLE "FWH - Office 2007 look in your ButtonBars, MsgBar and Menus" ;
MENU BuildMenu()

DEFINE BUTTONBAR oBar OF oWnd SIZE 60, 65 2007

DEFINE BUTTON OF oBar ACTION Print() ;
RESOURCE "attach"
DEFINE BUTTON OF oBar ACTION MsgInfo( "Calendar" ) ;
RESOURCE "calendar" PROMPT "Calendar" WHEN .F. TOOLTIP "Calendar"

MENU oPopup POPUP
MENUITEM "One" ACTION MsgInfo( 1 )
MENUITEM "Two" ACTION MsgInfo( 2 )
ENDMENU

DEFINE BUTTON oBtn OF oBar ACTION oBtn:ShowPopup() ;
RESOURCE "people" PROMPT "Clients" GROUP ;
MENU oPopup TOOLTIP "Clients"

DEFINE BUTTON OF oBar ACTION MsgInfo( "Print" ) ;
RESOURCE "print" PROMPT "Print" TOOLTIP "Print"

SET MESSAGE OF oWnd TO "Testing the ButtonBar 2007 Office look" ;
CENTERED CLOCK KEYBOARD 2007

ACTIVATE WINDOW oWnd ;
VALID MsgYesNo( "Do you want to end?" )

return nil

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

function BuildMenu()

local oMenu

MENU oMenu 2007
MENUITEM "&DataBases"
MENU
MENUITEM "&Clients..." FILENAME "..\bitmaps\16x16\favorite.bmp"
MENUITEM "&Report..."
MENU
MENUITEM "&One..." DISABLED
MENUITEM "&Two..." CHECKED
MENUITEM "&Three..." WHEN .F.
ENDMENU
SEPARATOR
MENUITEM "&End" ACTION oWnd:End()
ENDMENU

MENUITEM "Edit" WHEN .F.

oMenu:AddHelp()

MENUITEM "Another item"
ENDMENU

return oMenu

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

function Print()

local oPrn

PRINTER oPrn PREVIEW
PAGE
oPrn:Say( 2, 2, "Hello" )
ENDPAGE
PAGE
oPrn:Say( 2, 2, "Bye" )
ENDPAGE
ENDPRINT

return nil

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

procedure AppSys // XBase++ requirement

return

//----------------------------------------------------------------------------//
User avatar
Otto
 
Posts: 6267
Joined: Fri Oct 07, 2005 7:07 pm

Postby Antonio Linares » Thu Mar 13, 2008 12:08 am

Otto,

There are no tabs in this screenshot.

And there are tabs in your first screenshot. So you have modified Test2007.prg, right ? :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41882
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Otto » Thu Mar 13, 2008 6:27 am

Antonio, the second I made with the unmodified code. But also there the border at the bottom is not shown.
Regards,
Otto
User avatar
Otto
 
Posts: 6267
Joined: Fri Oct 07, 2005 7:07 pm

Postby Antonio Linares » Thu Mar 13, 2008 9:35 am

Otto,

The black line of the border is there. What border do you refer to ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41882
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Otto » Thu Mar 13, 2008 10:13 am

Antonio,
if you don't use dbase syntax it is ok.

//DEFINE BUTTONBAR oBar OF oPanel SIZE 60, 60 2007

oBar := TBar():New( oPanel, 60, 60, .T.,"TOP", )
oBar:l2007 = .T.


Image
User avatar
Otto
 
Posts: 6267
Joined: Fri Oct 07, 2005 7:07 pm

Postby Otto » Fri Mar 14, 2008 7:31 am

Antonio,

sorry, my impression „Bottom border is missing“ is the flat style of the control.
Now is saw that DEFINE BUTTONBAR oBar by default is flat.

Regards,
Otto
User avatar
Otto
 
Posts: 6267
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

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