Page 1 of 5

Menus tipo office 2003 y XP

Posted: Mon Jan 08, 2007 3:05 pm
by Arturo Tamayo Daza
Aqui les dejo las fuentes para crear menus tipo office 2003 y Xp, basado en las fuentes originales de Fivewin

Pueden descargar de www.quark-costos.com

Felices fiestas

Saludos

Arturo Tamayo Daza

Image

Posted: Mon Jan 08, 2007 9:00 pm
by Ruben Fernandez
Arturo:

Funciona espectacularmente!!!!

Muchas Gracias

Ruebn Fernandez.
FWH, Harbour, Borland

Posted: Mon Jan 08, 2007 9:02 pm
by Alfredo Arteaga
Excelente!!!, gracias por la aportación.

Posted: Tue Jan 09, 2007 9:58 am
by Silvio
This is a good idea but .....
Paco's Menu is the best menu control Xp office
U can set from one to 14 style type menus

Posted: Tue Jan 09, 2007 10:33 am
by Maurilio Viana
Silvio wrote:This is a good idea but .....
Paco's Menu is the best menu control Xp office
U can set from one to 14 style type menus
Silvio,

Paco's menu have a lot of styles etc etc but... isn't free and the source code isn't published...
This Arturo's menu is very nice and the source is provided then we can change and enhance it to turn very so good like Paco's menu.

Regards
Maurilio

Posted: Tue Jan 09, 2007 11:18 am
by areang
Hi Mr. Maurilio !

>>This Arturo's menu is very nice and the source is provided then we can >>change and enhance it to turn very so good like Paco's menu.

How to get this source code ?
I can't understand spanish on that site ( www.quark-costos.com )

Regards
Areang

Posted: Tue Jan 09, 2007 1:45 pm
by Rossine
Olá Arturo,

Parabéns pela excelente classe :D Com isto nossos sistemas ficarão com um visual mais profissional.

Ao executar TESTMENU.EXE me deparei com estes dois bug´s, isto quando uso o teclado:

http://br.geocities.com/qiinformatica2000/menuxper.PNG

E outro seria, SETA PARA CIMA e SETA PARA BAIXO
é quando passo encima de um SEPARATOR, a proxima opção não é selecionada, preciso teclar duas vezes para poder selecionar a opção.

Teria como corrigir este bugs ?

Obrigado e congratulations,

Rossine.

Posted: Tue Jan 09, 2007 2:43 pm
by horacio
Arturo

Excelente esta clase. Pero tengo un inconveniente. Cuando compilo con xHarbour me dá el siguiente error.
Error: Unresolved external '_hb_stack ' referenced from gradfill.obj
Alguna idea ?? Muchas gracias

Posted: Tue Jan 09, 2007 2:44 pm
by Baxajaun
Hi Areang,

first you must register to download in

http://www.quark-costos.com/index.php?o ... =registers

Later, you can download the source from:

http://www.quark-costos.com/index.php?o ... info&id=15

Arturo, very nice and great job my friend !!!!

Best regards,

Felix

Posted: Tue Jan 09, 2007 2:46 pm
by Patricio Avalos Aguirre
Al compilar Menus.C, me arroja este error

Code: Select all

Compiling...
c:\borland\bcc55\bin\bcc32 -M -c -v -Ic:\harbour\include MENUS.C
RMAKE 1.5  Copyright (c) 1989-1995 Computer Associates International, Inc.
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
MENUS.C:
Error E2141 MENUS.C 224: Declaration syntax error
*** 1 errors in Compile ***
Error RMAKE/R2001  Exit 1: 'c:\borland\bcc55\bin\bcc32 -M -c -v -Ic:\harbour\inc
lude MENUS.C'
Presione una tecla para continuar . . .
aquí esta como compilo

Code: Select all

  c:\harbour\bin\harbour $< /O$@ /a /w /es1 /n /p /gc /ic:\harbour\include

.c.obj:
   c:\borland\bcc55\bin\bcc32 -M -c -v -Ic:\harbour\include $<

Code: Select all

/*
#ifdef __HARBOUR__
   CLIPPER MENUDRAWITEM( PARAMS ) // ( pDrawItemStruct, cPrompt, lTop, hBitmap )
#else
   CLIPPER MENUDRAWIT( PARAMS ) // EM( pDrawItemStruct, cPrompt, lTop, hBitmap )
#endif
*/
Y aqui esta la linea 224

Code: Select all

HARBOUR HB_FUN_ATMENUDRAWITEM( PARAMS ) // ( pDrawItemStruct, cPrompt, lTop, hBitmap,lSeparator,acolor )
{
   LPDRAWITEMSTRUCT lpdis = ( LPDRAWITEMSTRUCT ) _parnl( 1 );
   LPSTR szPrompt = _parc( 2 );
   BOOL bTab = bStrAt( 9, szPrompt );
   WORD wLen;

Saludos
Patricio

Posted: Tue Jan 09, 2007 8:42 pm
by Rossine
Olá Pessoal,
E outro seria, SETA PARA CIMA e SETA PARA BAIXO
é quando passo encima de um SEPARATOR, a proxima opção não é selecionada, preciso teclar duas vezes para poder selecionar a opção.
Para resolver isto eu mudei a linha 348 de MENU.PRG

Code: Select all

nOR( MF_DISABLED, MF_OWNERDRAW, MF_GRAYED ) ,;

para:

nOR( MF_DISABLED, MF_OWNERDRAW, MF_GRAYED, MF_SEPARATOR ) ,;

Agora ficou o problema do paint :cry:

Abraços,

Rossine.

Posted: Tue Jan 09, 2007 10:07 pm
by Rochinha
Amiguinhos

Jo reportei lo seguinte erro:

Em menus POPUP no mostran los SEPARATORs e aparecem

Image

Posted: Tue Jan 09, 2007 11:17 pm
by Arturo Tamayo Daza
ese error es porque estas compilando con el menu.ch original de fivewin, utiliza eñ menu.ch que se incluye el las fuentes

saludos arturo

Posted: Tue Jan 09, 2007 11:52 pm
by Cgallegoa
Arturo, extraordinario aporte.

Millón de gracias y felicidades para el 2077

Saludos, Carlos Gallego

Posted: Wed Jan 10, 2007 1:11 am
by vilian
Ao compilar menus.c encontro o mesmo erro !!!

Code:
Compiling...
c:\borland\bcc55\bin\bcc32 -M -c -v -Ic:\xharbour\include MENUS.C
RMAKE 1.5 Copyright (c) 1989-1995 Computer Associates International, Inc.
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
MENUS.C:
Error E2141 MENUS.C 224: Declaration syntax error
*** 1 errors in Compile ***