FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour explorerBar and Vistamenu together ?
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
explorerBar and Vistamenu together ?
Posted: Sat Feb 09, 2013 09:55 PM
it is possible a main window ( with Menu,buttonbar ) with explorerBar at left and vistamenu at right ?

test

Code (fw): Select all Collapse
 function Main()

   local oWnd, oExBar, oPanel1, oPanel2, oPanel3, oPanel4
   local bClick := { | o | MsgInfo( o:GetText() ) }
      
   DEFINE WINDOW oWnd TITLE "FWH Class TExplorerBar" MDI


   oWnd:SetSize( 350, 600 )

   oExBar = TExplorerBar():New()

   oPanel1 = oExBar:AddPanel( "One", "..\bitmaps\32x32\people.bmp" )
   oPanel1:lSpecial = .T.
   oPanel1:AddLink( "First item", bClick, "..\bitmaps\16x16\additem.bmp" )
   oPanel1:AddLink( "Second item", bClick, "..\bitmaps\16x16\copy.bmp" )
      
   oPanel2 = oExBar:AddPanel( "Two", "..\bitmaps\32x32\case.bmp" )
   oPanel2:AddLink( "First item", bClick, "..\bitmaps\16x16\adddbf.bmp" )
   oPanel2:AddLink( "Second item", bClick, "..\bitmaps\16x16\delete0.bmp" )
   oPanel2:AddLink( "Third item", bClick, "..\bitmaps\16x16\envelope.bmp" )
   oPanel2:AddLink( "Fourth item", bClick, "..\bitmaps\16x16\copy.bmp" )

   oPanel3 = oExBar:AddPanel( "Three", "..\bitmaps\32x32\graphics.bmp" )
   oPanel3:AddLink( "First item", bClick, "..\bitmaps\16x16\adddbf.bmp" )
   oPanel3:AddLink( "Second item", bClick, "..\bitmaps\16x16\delete0.bmp" )
   oPanel3:AddLink( "Third item", bClick, "..\bitmaps\16x16\envelope.bmp" )
   
   oPanel4 = oExBar:AddPanel( "Four" )
   oPanel4:AddLink( "First item", bClick, "..\bitmaps\16x16\additem.bmp" )
   oPanel4:AddLink( "Second item", bClick, "..\bitmaps\16x16\copy.bmp" )



   oVMenu := TVistaMenu():New( 0,oExBar:nWidth-50, 100, 100, oWnd )
    oVMenu:nColumns := 1
    oVMenu:nType := 2

    oItem := oVMenu:AddItem( "Sistema y mantenimiento ", ".\..\bitmaps\pngs\image1.png" )
             oItem:AddItem( "Empezar a trabajar con windows",,;
                            { || MsgInfo( "Sistema y mantenimiento" ) } )
             oItem:AddItem( "Hacer una copia de seguridad del equipo" )
             oItem:AddItem( "Item 1 Item 1" )
             oItem:AddItem( "ItemItem2 ItemItem2" )
             oItem:AddItem( "ItemItemItem3 ItemItemItem3" )



         oWnd:oRight := oVMenu



  oWnd:oLeft = oExBar

   ACTIVATE WINDOW oWnd

return nil
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 389
Joined: Wed Nov 29, 2006 01:51 PM
Re: explorerBar and Vistamenu together ?
Posted: Sun Feb 10, 2013 02:39 AM

Silvio,

VistaMenu NO funciona con MDI

Salu2, Ariel.

Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: explorerBar and Vistamenu together ?
Posted: Sun Feb 10, 2013 05:54 PM

and window normal ?

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 2064
Joined: Fri Jan 06, 2006 09:28 PM
Re: explorerBar and Vistamenu together ?
Posted: Sun Feb 10, 2013 08:21 PM

En windows trabaja sin problema, en MDI no lo he probado, mira sample vistamn1.prg, saludos... :shock:

Dios no est谩 muerto...



Gracias a mi Dios ante todo!
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: explorerBar and Vistamenu together ?
Posted: Sun Feb 10, 2013 09:02 PM
SORRY joseluisysturiz and Ariel

WHY YOU NOT READ THE QUESTION BEFORE TO ANSWER ?

I asked a test with explorerBar and Vistamenu together into a Main Window ....
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: explorerBar and Vistamenu together ?
Posted: Sun Feb 10, 2013 10:26 PM

Silvio

they only tried to help you, please be more low with your actitud, Every day, more people simply do not read your questions.

whats is the problem with your code? for me look fine may be you have a internal logic problem...

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: explorerBar and Vistamenu together ?
Posted: Sun Feb 10, 2013 11:49 PM
Silvio,

It is just a quick test :



Code (fw): Select all Collapse
#include "FiveWin.ch"
#include "ribbon.ch"
#include "xbrowse.ch"

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

function Main()

聽 聽local oWnd, oExBar, oPanel1, oPanel2, oPanel3, oPanel4
聽 聽local bClick := { | o | MsgInfo( o:GetText() ) }
聽 聽local uVar, oBrw, oVMenu
聽 聽local aArray := { {"one",time(),DATE()},;
聽 聽 聽 聽 聽 聽 聽 聽 聽 {"two",time(),DATE()},;
聽 聽 聽 聽 聽 聽 聽 聽 聽 {"three",time(),DATE()},;
聽 聽 聽 聽 聽 聽 聽 聽 聽 {"four",time(),DATE()},;
聽 聽 聽 聽 聽 聽 聽 聽 聽 {"five",time(),DATE()} }
聽 聽 聽 
聽 聽DEFINE WINDOW oWnd TITLE "FWH Class TExplorerBar" MDI
聽 聽
// oWnd:SetSize( 350, 600 )
// 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽    聽 聽聽nTop, 聽nLeft, 聽nWidth, 聽nHeight
聽 聽oExBar = TExplorerBar():New(0, 聽 聽 0 , 聽 聽500, 聽 聽 聽 聽 200, oWnd )

聽 聽oPanel1 = oExBar:AddPanel( "One", "..\bitmaps\32x32\people.bmp" )
聽 聽oPanel1:lSpecial = .T.
聽 聽oPanel1:AddLink( "First item", bClick, "..\bitmaps\16x16\additem.bmp" )
聽 聽oPanel1:AddLink( "Second item", bClick, "..\bitmaps\16x16\copy.bmp" )
聽 聽 聽 
聽 聽oPanel2 = oExBar:AddPanel( "Two", "..\bitmaps\32x32\case.bmp", 200 )
聽 聽@ 40,10 say "This a say" of oPanel2 transparent pixel
聽 聽@ 60,10 radio uVar prompt "This a radio" of oPanel2 pixel size 100, 25
聽 聽@ 90, 10 COMBOBOX uVar ITEMS { "one", "two", "three" } of oPanel2 size 100, 100 pixel
聽 聽@ 120, 10 RBBTN PROMPT "Ribbon Btn" of oPanel2 pixel size 100, 25 border transparent 
聽 聽@ 160, 10 btnbmp PROMPT "BtnBmp" of oPanel2 pixel size 100, 25 border 2007
聽 聽@ 40, 120 xbrowse oBrw columns {1,2,3} array aArray of oPanel2 聽pixel size 180, 150
聽 聽oBrw:CreateFromCode()


oVMenu := TVistaMenu():New( 0, oWnd:nWidth , 500, 800, oWnd )
聽 聽 oVMenu:nColumns := 1
聽 聽 oVMenu:nType := 2

聽 聽 聽oItem := oVMenu:AddItem( "Sistema y mantenimiento ", ".\..\bitmaps\pngs\image1.png" )
聽 聽 聽 聽 聽 聽 聽oItem:AddItem( "Empezar a trabajar con windows",,;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 { || MsgInfo( "Sistema y mantenimiento" ) } )
聽 聽 聽 聽 聽 聽 聽oItem:AddItem( "Hacer una copia de seguridad del equipo" )
聽 聽 聽 聽 聽 聽 聽oItem:AddItem( "Item 1 Item 1" )
聽 聽 聽 聽 聽 聽 聽oItem:AddItem( "ItemItem2 ItemItem2" )
聽 聽 聽 聽 聽 聽 聽oItem:AddItem( "ItemItemItem3 ItemItemItem3" )

聽 聽 oItem := oVMenu:AddItem( "Seguridad", ".\..\bitmaps\pngs\image2.png" )
聽 聽 聽 聽 聽 聽 聽oItem:AddItem( "Buscar actualizaciones" )
聽 聽 聽 聽 聽 聽 聽oItem:AddItem( "Dejar pasar un programa a trav茅s de Firewall de Windows" )

聽 聽 oItem := oVMenu:AddItem( "Redes e Internet", ".\..\bitmaps\pngs\image3.png" )
聽 聽 oItem:lEnable := .f.
聽 聽 聽 聽 聽 聽 聽oItem:AddItem( "Ver el estado y las tareas de red" )
聽 聽 聽 聽 聽 聽 聽oItem:AddItem( "Configurar el uso compartido de archivos" )

聽 聽 oItem := oVMenu:AddItem( "Hardware y sonido", ".\..\bitmaps\pngs\image4.png" )
聽 聽 聽 聽 聽 聽 聽oItem:AddItem( "Reproducir un CD u otros archivos multimedia autom谩ticamente" )
聽 聽 聽 聽 聽 聽 聽oItem:AddItem( "Impresora" )
聽 聽 聽 聽 聽 聽 聽oItem:AddItem( "Mouse" )

聽 聽 oItem := oVMenu:AddItem( "Programas", ".\..\bitmaps\pngs\image5.png" )
聽 聽 聽 聽 聽 聽 聽oItem:AddItem( "Desinstalar un programa" )
聽 聽 聽 聽 聽 聽 聽oItem:AddItem( "Cambiar programas de inicio" )

聽 聽 oItem := oVMenu:AddItem( "Equipo portatil", ".\..\bitmaps\pngs\image6.png" )
聽 聽 聽 聽 聽 聽 聽oItem:AddItem( "Cambiar la configuraci贸n de la bateria" )
聽 聽 聽 聽 聽 聽 聽oItem:AddItem( "Ajustar parametros de configuraci贸n de movilidad de uso frecuente" )

聽 聽 oItem := oVMenu:AddItem( "Cuentas de usuario", ".\..\bitmaps\pngs\image7.png" )
聽 聽 聽 聽 聽 聽 聽oItem:AddItem( "Cambiar tipo de cuenta" )

聽 聽 oItem := oVMenu:AddItem( "Opciones adicionales", ".\..\bitmaps\pngs\image12.png" )

聽 聽 oItem := oVMenu:AddItem( "Apariencia y personalizaci贸n", ".\..\bitmaps\pngs\image8.png" )
聽 聽 聽 聽 聽 聽 聽oItem:AddItem( "Cambiar fondo de escritorio" )
聽 聽 聽 聽 聽 聽 聽oItem:AddItem( "Cambiar la combinaci贸n de colores" )
聽 聽 聽 聽 聽 聽 聽oItem:AddItem( "Ajustar la resoluci贸n de pantalla" )

聽 聽 oItem := oVMenu:AddItem( "Reloj, idioma y regi贸n", ".\..\bitmaps\pngs\image9.png" )
聽 聽 聽 聽 聽 聽 聽oItem:AddItem( "Cambiar teclados u otros m茅todos de entrada" )
聽 聽 聽 聽 聽 聽 聽oItem:AddItem( "Cambiar el idioma para mostrar" )

聽 聽 oItem := oVMenu:AddItem( "Accesibilidad", ".\..\bitmaps\pngs\image10.png" )
聽 聽 聽 聽 聽 聽 聽oItem:AddItem( "Permitir que Windows sugiera parametros de configuraci贸n" )
聽 聽 聽 聽 聽 聽 聽oItem:AddItem( "Optimizar la presentaci贸n visual" )


聽 聽 聽 聽 oWnd:oRight := oVMenu



聽 oWnd:oLeft = oExBar


聽 聽ACTIVATE WINDOW oWnd MAXIMIZED

return nil


Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: explorerBar and Vistamenu together ?
Posted: Mon Feb 11, 2013 08:22 AM

1.when you press to maximized I see a space gray on the middle of the window
2. when I size the window I see the vistamenu go bach the explorerbar

the same errors I have on my test!!!!

I add also a splitter

@ 0, oExBar:nwidth+2 SPLITTER oSplit ;
VERTICAL _3DLOOK ;
PREVIOUS CONTROLS oExBar ;
HINDS CONTROLSoVMenu;
SIZE 4, oWnd:nHeight PIXEL ;
OF oWnd
SetParent( oSplit:hWnd, oWnd:hWnd )

ACTIVATE WINDOW oWnd MAXIMIZED

return nil
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: explorerBar and Vistamenu together ? R I S O L V E
Posted: Mon Feb 11, 2013 08:54 AM
R I S O L V E D


ONLY WHEN i RESIZE HE WINDOW ONLY THE eXPLORER IS RIGHT WHILE THE OVMENU RUN BAD


Code (fw): Select all Collapse
 
    #include "FiveWin.ch"
    #include "ribbon.ch"
    #include "xbrowse.ch"
    #include "Splitter.ch"


    Static oWnd,oVMenu,oExBar

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

    function Main()

       local oPanel1, oPanel2, oPanel3, oPanel4,oSplit
       local bClick := { | o | MsgInfo( o:GetText() ) }
       local uVar, oBrw
       local aArray := { {"one",time(),DATE()},;
                      {"two",time(),DATE()},;
                      {"three",time(),DATE()},;
                      {"four",time(),DATE()},;
                      {"five",time(),DATE()} }

       DEFINE WINDOW oWnd TITLE "FWH Class TExplorerBar" MDI


       oExBar = TExplorerBar():New(0,     0 ,    300,         200, oWnd )

       oPanel1 = oExBar:AddPanel( "One", "..\bitmaps\32x32\people.bmp" )
       oPanel1:lSpecial = .T.
       oPanel1:AddLink( "First item", bClick, "..\bitmaps\16x16\additem.bmp" )
       oPanel1:AddLink( "Second item", bClick, "..\bitmaps\16x16\copy.bmp" )

       oPanel2 = oExBar:AddPanel( "Two", "..\bitmaps\32x32\case.bmp", 200 )
       @ 40,10 say "This a say" of oPanel2 transparent pixel
       @ 60,10 radio uVar prompt "This a radio" of oPanel2 pixel size 100, 25
       @ 90, 10 COMBOBOX uVar ITEMS { "one", "two", "three" } of oPanel2 size 100, 100 pixel
       @ 120, 10 RBBTN PROMPT "Ribbon Btn" of oPanel2 pixel size 100, 25 border transparent
       @ 160, 10 btnbmp PROMPT "BtnBmp" of oPanel2 pixel size 100, 25 border 2007
       @ 40, 120 xbrowse oBrw columns {1,2,3} array aArray of oPanel2  pixel size 180, 150
       oBrw:CreateFromCode()


      oWnd:oLeft = oExBar






      ACTIVATE WINDOW oWnd MAXIMIZED;
      ON INIT (BuildVista( oWnd,oExBar))
    /*  ON RESIZE( oVmenu:=oWnd:nWidth-300,;
                oVmenu:=oWnd:nHeight,;
                oVmenu:refresh())
                                  */
      return nil



Function BuildVista()



        oVMenu := TVistaMenu():New( 0, oExBar:nwidth+4 , oWnd:nWidth-300, oWnd:nHeight, oWnd )
        oVMenu:nColumns := 1
        oVMenu:nType := 2

         oItem := oVMenu:AddItem( "Sistema y mantenimiento ", ".\..\bitmaps\pngs\image1.png" )
                 oItem:AddItem( "Empezar a trabajar con windows",,;
                                { || MsgInfo( "Sistema y mantenimiento" ) } )
                 oItem:AddItem( "Hacer una copia de seguridad del equipo" )
                 oItem:AddItem( "Item 1 Item 1" )
                 oItem:AddItem( "ItemItem2 ItemItem2" )
                 oItem:AddItem( "ItemItemItem3 ItemItemItem3" )

        oItem := oVMenu:AddItem( "Seguridad", ".\..\bitmaps\pngs\image2.png" )
                 oItem:AddItem( "Buscar actualizaciones" )
                 oItem:AddItem( "Dejar pasar un programa a trav茅s de Firewall de Windows" )

        oItem := oVMenu:AddItem( "Redes e Internet", ".\..\bitmaps\pngs\image3.png" )
        oItem:lEnable := .f.
                 oItem:AddItem( "Ver el estado y las tareas de red" )
                 oItem:AddItem( "Configurar el uso compartido de archivos" )

        oItem := oVMenu:AddItem( "Hardware y sonido", ".\..\bitmaps\pngs\image4.png" )
                 oItem:AddItem( "Reproducir un CD u otros archivos multimedia autom谩ticamente" )
                 oItem:AddItem( "Impresora" )
                 oItem:AddItem( "Mouse" )

        oItem := oVMenu:AddItem( "Programas", ".\..\bitmaps\pngs\image5.png" )
                 oItem:AddItem( "Desinstalar un programa" )
                 oItem:AddItem( "Cambiar programas de inicio" )

        oItem := oVMenu:AddItem( "Equipo portatil", ".\..\bitmaps\pngs\image6.png" )
                 oItem:AddItem( "Cambiar la configuraci贸n de la bateria" )
                 oItem:AddItem( "Ajustar parametros de configuraci贸n de movilidad de uso frecuente" )

        oItem := oVMenu:AddItem( "Cuentas de usuario", ".\..\bitmaps\pngs\image7.png" )
                 oItem:AddItem( "Cambiar tipo de cuenta" )

        oItem := oVMenu:AddItem( "Opciones adicionales", ".\..\bitmaps\pngs\image12.png" )

        oItem := oVMenu:AddItem( "Apariencia y personalizaci贸n", ".\..\bitmaps\pngs\image8.png" )
                 oItem:AddItem( "Cambiar fondo de escritorio" )
                 oItem:AddItem( "Cambiar la combinaci贸n de colores" )
                 oItem:AddItem( "Ajustar la resoluci贸n de pantalla" )

        oItem := oVMenu:AddItem( "Reloj, idioma y regi贸n", ".\..\bitmaps\pngs\image9.png" )
                 oItem:AddItem( "Cambiar teclados u otros m茅todos de entrada" )
                 oItem:AddItem( "Cambiar el idioma para mostrar" )

        oItem := oVMenu:AddItem( "Accesibilidad", ".\..\bitmaps\pngs\image10.png" )
                 oItem:AddItem( "Permitir que Windows sugiera parametros de configuraci贸n" )
                 oItem:AddItem( "Optimizar la presentaci贸n visual" )


           oWnd:oRight := oVMenu



        @ 0, oExBar:nwidth+2 SPLITTER oSplit ;
      VERTICAL _3DLOOK ;
      PREVIOUS CONTROLS oExBar ;
      HINDS CONTROLS oVMenu;
      SIZE 4, oWnd:nHeight  PIXEL ;
      OF oWnd
      SetParent( oSplit:hWnd, oWnd:hWnd )


     return nil
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 389
Joined: Wed Nov 29, 2006 01:51 PM
Re: explorerBar and Vistamenu together ?
Posted: Mon Feb 11, 2013 11:04 AM

Silvio.

The truth that with attitudes like yours the desires extract of answering you, is incredible that on trying to help yourself you ill-treat the persons with your answers, it is not that we do not read the messages, simply we answer you what we know, which we do not know do not answer it, I hope that you change your terrible attitude.

Regards.

Posts: 310
Joined: Sun Jan 08, 2006 10:09 PM
Re: explorerBar and Vistamenu together ?
Posted: Mon Feb 11, 2013 11:49 AM
Silvio.

The truth that with attitudes like yours the desires extract of answering you, is incredible that on trying to help yourself you ill-treat the persons with your answers, it is not that we do not read the messages, simply we answer you what we know, which we do not know do not answer it, I hope that you change your terrible attitude.

Regards.


I Agree. Politeness is worldwide.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: explorerBar and Vistamenu together ?
Posted: Mon Feb 11, 2013 01:56 PM

+1

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 2064
Joined: Fri Jan 06, 2006 09:28 PM
Re: explorerBar and Vistamenu together ?
Posted: Mon Feb 11, 2013 03:18 PM
Silvio.Falconi wrote:SORRY joseluisysturiz and Ariel

WHY YOU NOT READ THE QUESTION BEFORE TO ANSWER ?

I asked a test with explorerBar and Vistamenu together into a Main Window ....


Silvio, the next question type, "which have no knowledge answer below mine, thanks." I do not speak English, so I use google translator, but they will understand the message. Case Closed.
Dios no est谩 muerto...



Gracias a mi Dios ante todo!
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: explorerBar and Vistamenu together ?
Posted: Mon Feb 11, 2013 06:06 PM
Dear Antonio,
Dear Daniel,
Dear Ariel

Sorry,

I asked if was possible have a windows with explorerBar and Vista menu together in a window main

Ariel answered me first " VistaMenu NO funciona con MDI"
Jos猫Luis answered me "in windows trabaja sin problema, en MDI no lo he probado, mira sample vistamn1.prg, saludos""

But I asked only if it was possible a window with ExplorerBAr and Vistamenu and Not only Vistamenu control in a Window...

Perhaps I have a logic problem as sad Daniel or I could be also terrible attitudes

Eh Eh Eh .... it is sure !!!!

The Truly .....Someone does not read well my questions, and not knowing how to respond tries to answer my questions with other arguments, without realizing that the subject was indeed another

and then this someone says I have terrible attitudes, perhaps also a personal foul

I humbly ask you to forgive me if I have angered some of you but it was not my intentions!!!!!
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion