FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Rebar in XP
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Rebar in XP
Posted: Sun Jun 25, 2017 11:55 AM

I found, that the control "rebar" is not further functioning on XP!
I use rpreview for years in XP. Now (with FWH 17.05) the rebar is not visible on XP.

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Rebar in XP
Posted: Mon Jun 26, 2017 06:42 AM

Please post a screenshot of how it used to look

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: Rebar in XP
Posted: Mon Jun 26, 2017 06:57 AM
Antonio, i have change the line in rpreview.prg
Code (fw): Select all Collapse
lRebar   := ( IsAppThemed() .and. Empty( nStyle ) .and. bUserBtns == nil .and. nBtnW == nil .and. nBtnH == nil )

to
Code (fw): Select all Collapse
lRebar   := .T.

Now you can see, that the rebar is not visible in XP!
Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Rebar in XP
Posted: Tue Jun 27, 2017 02:08 AM

Please provide a small and self contained PRG to test on XP, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: Rebar in XP
Posted: Wed Jun 28, 2017 07:49 AM

It seems, that not rebar is the problem but rather the combination rebar-ttoolbar. Further tests are required.

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: Rebar in XP
Posted: Wed Jun 28, 2017 09:58 AM
I tested this code. DEFINE TOOLBAR is not functioning if the OF <owin> clausula is directed to oReBar!?

Code (fw): Select all Collapse
function Main()
    local oWnd , oReBar , oFactor , nFactor , oBar , oMenu , oImagelist
    DEFINE WINDOW oWnd TITLE "Test ReBar" COLOR CLR_BLACK,CLR_LIGHTGRAY MENU BuildMenu()

    oImageList = TImageList():New()
    oImageList:AddMasked( TBitmap():Define( , "C:\\fwh\bitmaps\16x16\new2.bmp", oWnd ),nRGB( 255, 0, 255 ) )
    oImageList:AddMasked( TBitmap():Define( , "C:\\fwh\bitmaps\16x16\open2.bmp", oWnd ),nRGB( 255, 0, 255 ) )

        oReBar := TReBar():New( oWnd )

    DEFINE TOOLBAR oBar OF oWnd SIZE 25, 25 IMAGELIST oImageList    //functioning
//  DEFINE TOOLBAR oBar OF oBar SIZE 25, 25 IMAGELIST oImageList    //functioning

//  DEFINE TOOLBAR oBar OF oRebar SIZE 25, 25 IMAGELIST oImageList  //NOT! functioning

    oReBar:InsertBand( oBar )
    DEFINE TBBUTTON OF oBar ACTION msginfo("Test 1")
    DEFINE TBSEPARATOR OF oBar
    DEFINE TBBUTTON OF oBar ACTION msginfo("Test 2")
    @ 5, 100 COMBOBOX oFactor VAR nFactor ITEMS { "1", "2", "3", "4", "5", "6", "7", "8", "9" } OF oBar PIXEL SIZE 35,200
    @ 5, 150 SAY "Test" SIZE 45, 15 PIXEL OF oBar
    FixSays( oBar:hWnd, GetStockObject( 0 ) )

    DEFINE STATUSBAR OF oWnd PROMPT "Test"

    ACTIVATE WINDOW oWnd
   oImageList:End()

return nil

function BuildMenu()
local oMenu
  MENU oMenu
      MENUITEM FWString( "Testmenu" )
      MENU
         MENUITEM "Menu 1"
         SEPARATOR
         MENUITEM "Menu 2"
      ENDMENU
  ENDMENU
return oMenu
Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Rebar in XP
Posted: Thu Jun 29, 2017 04:59 AM

Günther,

Those controls are Windows standard classes and they may not accept to be used that way

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: Rebar in XP
Posted: Thu Jun 29, 2017 05:47 PM

I come to the result, that REBARS not functioning as expected! (with grippers, more bands, etc.)
Is there a another class to containing other objects?

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Rebar in XP
Posted: Fri Jun 30, 2017 04:51 AM

> I come to the result, that REBARS not functioning as expected! (with grippers, more bands, etc.)

Please provide a PRG example to test what is not functioning right, thanks

> Is there a another class to containing other objects?

Most controls can contain other controls

Please review TBar or TPanel

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: Rebar in XP
Posted: Fri Jun 30, 2017 07:58 AM
I have tested with this code. You can switch REBAR on or off with the #define REBAR. But no bands are visible (WIN 10)
Code (fw): Select all Collapse
#define REBAR

function Main()
    local oWnd , oReBar , oFactor , nFactor , oBar , oMenu , oImagelist , oBar2
    DEFINE WINDOW oWnd TITLE "Test ReBar" COLOR CLR_BLACK,CLR_LIGHTGRAY MENU BuildMenu()

    oImageList = TImageList():New()
    oImageList:AddMasked( TBitmap():Define( , "C:\\fwh\bitmaps\16x16\new2.bmp", oWnd ),nRGB( 255, 0, 255 ) )
    oImageList:AddMasked( TBitmap():Define( , "C:\\fwh\bitmaps\16x16\open2.bmp", oWnd ),nRGB( 255, 0, 255 ) )

#ifdef REBAR
        oReBar := TReBar():New( oWnd )
#endif
    DEFINE TOOLBAR oBar OF oBar SIZE 25, 25 IMAGELIST oImageList
    DEFINE TBBUTTON OF oBar ACTION msginfo("Test 1")
    DEFINE TBSEPARATOR OF oBar
    DEFINE TBBUTTON OF oBar ACTION msginfo("Test 2")
    @ 5, 100 COMBOBOX oFactor VAR nFactor ITEMS { "1", "2", "3", "4", "5", "6", "7", "8", "9" } OF oBar PIXEL SIZE 35,200
    @ 5, 150 SAY "Test" SIZE 45, 15 PIXEL OF oBar
    FixSays( oBar:hWnd, GetStockObject( 0 ) )
#ifdef REBAR
    oReBar:InsertBand( oBar,"1" )

    DEFINE TOOLBAR oBar2 OF oBar2 SIZE 25, 25 IMAGELIST oImageList
    DEFINE TBBUTTON OF oBar2 ACTION msginfo("Test 1")
    oReBar:InsertBand( oBar2,"2" )
#endif

    DEFINE STATUSBAR OF oWnd PROMPT "Test"
    ACTIVATE WINDOW oWnd
   oImageList:End()

return nil

function BuildMenu()
local oMenu
  MENU oMenu
      MENUITEM FWString( "Testmenu" )
      MENU
         MENUITEM "Menu 1"
         SEPARATOR
         MENUITEM "Menu 2"
      ENDMENU
  ENDMENU
return oMenu
Regards,
Günther
---------------------------------
office@byte-one.com

Continue the discussion