Dear All,
I encountered a problem with the TREBAR class on Windows XP with the latest version of Fivewin.
I know that Windows XP is an outdated operating system but unfortunately I still have clients who use it.
To check the problem, simply compile rebars.prg file in the samples folder.
Tools used:
Fivewin 19.09
Borland 5.82
Can someone help me ?
Thanks
Massimo
I encountered a problem with the TREBAR class on Windows XP with the latest version of Fivewin.
I know that Windows XP is an outdated operating system but unfortunately I still have clients who use it.
To check the problem, simply compile rebars.prg file in the samples folder.
#include "FiveWin.ch"
function Main()
聽 聽local oWnd, oReBar, oToolBar, oPanel, oBtn1, oFolder, oToolBar2
聽 聽local oImageList, oHand
聽 聽DEFINE WINDOW oWnd TITLE "Testing rebars and toolbars" ;
聽 聽 聽 MENU BuildMenu()
聽 聽DEFINE CURSOR oHand RESOURCE "hand"
聽 聽oReBar = TReBar():New( oWnd )
聽 聽oPanel := TPanel():New( 0, 0, 75, 300, oReBar )
聽 聽oImageList = TImageList():New()
聽 聽oImageList:AddMasked( TBitmap():Define( , "..\bitmaps\16x16\new2.bmp", oWnd ),;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽nRGB( 255, 0, 255 ) ) 聽 聽
聽 聽oImageList:AddMasked( TBitmap():Define( , "..\bitmaps\16x16\open2.bmp", oWnd ),;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽nRGB( 255, 0, 255 ) ) 聽 聽
聽 聽
聽 聽oImageList:Add( TBitmap():Define( , "..\bitmaps\16x16\icon.bmp", oWnd ),;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽TBitmap():Define( , "..\bitmaps\16x16\icoMask.bmp", oWnd ) )
聽 聽oToolBar = TToolBar():New( oPanel, 33, 33, oImageList )
聽 聽oToolBar:nLeft = 5
聽 聽oToolBar:AddButton( { || MsgInfo( "New" ) }, "New" ) // , "new file" )
聽 聽oToolBar:AddButton( { || MsgInfo( "Open" ) }, "Open" )
聽 聽oToolBar:AddButton( { || MsgInfo( "three" ) }, "three" )
聽 聽oToolBar:AddSeparator()
聽 聽oToolBar:AddButton( { || MsgInfo( "four" ) }, "four" )
聽 聽oToolBar:oCursor = oHand
聽 聽oReBar:InsertBand( oPanel )
聽 聽@ 10, 2 FOLDER oFolder PROMPTS "One", "Two", "Three" SIZE 400, 62
聽 聽oToolBar2 = TToolBar():New( oFolder:aDialogs[ 1 ],,, oImageList )
聽 聽oToolBar2:AddButton( { || MsgInfo( "pointer" ) }, "pointer" )
聽 聽oToolBar2:AddSeparator()
聽 聽oToolBar2:AddButton( ,"label" )
聽 聽oToolBar2:AddButton( ,"button" )
聽 聽oReBar:InsertBand( oFolder )
聽 聽DEFINE STATUSBAR OF oWnd PROMPT "Rebars and Toolbars test"
聽 聽ACTIVATE WINDOW oWnd MAXIMIZED
聽 聽
聽 聽oImageList:End()
return nil
FUNCTION BuildMenu()
聽 聽LOCAL oMenu
聽 聽MENU oMenu
聽 聽 聽 MENUITEM "&File"
聽 聽 聽 MENU
聽 聽 聽 聽 聽MENUITEM "&New..." ACTION MsgInfo( "Hello" )
聽 聽 聽 ENDMENU
聽 聽ENDMENU
RETURN oMenu// Add this to your resources RC file
#ifndef __64__
聽 聽1 24 ".\WinXP\WindowsXP.Manifest"
#endif
#ifdef __64__
聽 聽1 24 "WinXP/WindowsXP.Manifest64"
#endif
Hand 聽 聽 CURSOR .\..\cursors\Hand.curTools used:
Fivewin 19.09
Borland 5.82
Can someone help me ?
Thanks
Massimo



