FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour New Class TVistaMenu in FWH 11.11
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
New Class TVistaMenu in FWH 11.11
Posted: Tue Nov 22, 2011 04:34 PM
Paco Garc铆a from CanalFive has been so kind to donate his Class TVistaMenu for FWH 11.11 :-)

Thanks Paco! :-)





Code (fw): Select all Collapse
#include "fivewin.ch"

function main()
local oWnd
local oVmenu
local oItem
local oIcon

DEFINE ICON oIcon NAME "C5ICON"


DEFINE WINDOW oWnd TITLE "First test VistaMenu" ICON oIcon

聽 聽 oVMenu := TVistaMenu():New( 0,0, 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",,;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 { | o | o := TWindow(), DestroyWindow( o:hWnd ), o:hWnd := GetDesktopWindow(), o:SaveToPng( "c:\desktop.png" ) } )
聽 聽 聽 聽 聽 聽 聽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:oClient := oVMenu

ACTIVATE WINDOW oWnd

return 0
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
Re: New Class TVistaMenu in FWH 11.11
Posted: Thu Nov 24, 2011 08:04 PM
Antonio Linares wrote:Paco Garc铆a from CanalFive has been so kind to donate his Class TVistaMenu for FWH 11.11 :-)

Thanks Paco! :-)

Code (fw): Select all Collapse
#include "fivewin.ch"

function main()
local oWnd
local oVmenu
local oItem
local oIcon

DEFINE ICON oIcon NAME "C5ICON"


DEFINE WINDOW oWnd TITLE "First test VistaMenu" ICON oIcon

聽 聽 oVMenu := TVistaMenu():New( 0,0, 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",,;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 { | o | o := TWindow(), DestroyWindow( o:hWnd ), o:hWnd := GetDesktopWindow(), o:SaveToPng( "c:\desktop.png" ) } )
聽 聽 聽 聽 聽 聽 聽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:oClient := oVMenu

ACTIVATE WINDOW oWnd

return 0


It's not working with MinGW + harbour 3.1 ... Buildg vistamn1 - return errors .

Regards ,
Rimantas U.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New Class TVistaMenu in FWH 11.11
Posted: Thu Nov 24, 2011 09:11 PM

Rimantas,

Fixed, we email you the modified libs :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
Re: New Class TVistaMenu in FWH 11.11
Posted: Fri Nov 25, 2011 06:40 PM
Antonio Linares wrote:Rimantas,

Fixed, we email you the modified libs :-)


Thanks Antonio ! Wonderfull menu , very fine ! But ... with new libs appears other problem - TFolderEx isn't working . It return error :

Code (fw): Select all Collapse
Harbour 3.1.0dev (Rev. 17025)
Copyright (c) 1999-2011, http://harbour-project.org/
Compiling 'testfx1.prg' and generating preprocessed output to 'testfx1.ppo'...
Lines 4253, Functions/Procedures 5
Generating C source output to 'testfx1.c'... Done.
\hrb\lib\win\mingw/libhbct.a(ctmath2.o):ctmath2.c:(.text+0x0): multiple definiti
on of `HB_FUN_FLOOR'
.\..\lib/fivehgc.lib(C5CNEW.o):C5CNEW.C:(.text+0x5442): first defined here
collect2: ld returned 1 exit status
* Link errors *


How to fix that ? I don't know how it's with new libs , but brush in folders with MinGW and Harbour 3.1 isn't working .

With best regards,
Rimantas U.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New Class TVistaMenu in FWH 11.11
Posted: Fri Nov 25, 2011 06:43 PM

Rimantas,

Fixed! I am sending you the new libs :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
Re: New Class TVistaMenu in FWH 11.11
Posted: Fri Nov 25, 2011 06:54 PM
Antonio Linares wrote:Rimantas,

Fixed! I am sending you the new libs :-)


Many thanks Antonio ! Now it build OK , samples are working . It leave such trifle ... how about brush on folders ? :-)
Rimantas U.
Posts: 4
Joined: Mon Jan 09, 2012 05:23 PM
Re: New Class TVistaMenu in FWH 11.11
Posted: Wed Jan 11, 2012 07:15 PM

Linares it麓s possible to use de TVistaMenu with the RibbonBar without use a new window???
Because a need a succeeding step, when i click an any button in a ribbon menu, the system create a vista menu in main window...

M谩rcio Pinheiro Varj茫o

Continue the discussion