Aos usuário da GTWVW

Projeto [x]Harbour - Compilador de código aberto compatível com o Clipper.

Moderador: Moderadores

Avatar do usuário
Itamar M. Lins Jr.
Administrador
Administrador
Mensagens: 7929
Registrado em: 30 Mai 2007 11:31
Localização: Ilheus Bahia
Curtiu: 1 vez

Aos usuário da GTWVW

Mensagem por Itamar M. Lins Jr. »

Ola!
O Viktor Szakats fez algumas correções na WVW.
2014-07-15 20:28 UTC+0200 Viktor Szakats (vszakats users.noreply.github.com)
* extras/gtwvw/gtwvwd.c
! fixed typo in param number
see: https://groups.google.com/d/msg/harbour ... -n0rU-8UMJ

* extras/gtwvw/hbgtwvw.h
* cleanup

Código: Selecionar todos

Hello,

I think WVW_SetIcon() function has a bug when only an icon filename is provided.

Usage: WVW_SetIcon( nWinNum, nIcon, cIcon )

Module: gtwvwd.c
Line: 8173

-      hb_retptr( ( void * ) hb_gt_wvwSetWindowIconFromFile( usWinNum, HB_PARSTRDEF( 1, &hImageName, NULL ) ) );
+      hb_retptr( ( void * ) hb_gt_wvwSetWindowIconFromFile( usWinNum, HB_PARSTRDEF( 2, &hImageName, NULL ) ) );

Regards
Ash


HB_FUNC( WVW_SETICON )
{
   UINT usWinNum = WVW_WHICH_WINDOW;
   if( HB_ISNUM( 2 ) || HB_ISCHAR( 3 ) )
      hb_retptr( ( void * ) hb_gt_wvwSetWindowIcon( usWinNum, hb_parni( 2 ), hb_parc( 3 ) ) );
   else
   {
      void * hImageName;
      hb_retptr( ( void * ) hb_gt_wvwSetWindowIconFromFile( usWinNum, HB_PARSTRDEF( 1, &hImageName, NULL ) ) );
      hb_strfree( hImageName );
   }
}

Código: Selecionar todos

2014-03-21 12:38 UTC+0100 Viktor Szakats (vszakats users.noreply.github.com)

  * extras/gtwvw/wvwcheck.c
  * extras/gtwvw/wvwfuncs.c
  * extras/gtwvw/wvwpush.c
  * extras/gtwvw/wvwstbar.c
    ! unlock internal CODEBLOCK checks to allow SYMBOL types
Saudações,
Itamar M. Lins Jr.
Saudações,
Itamar M. Lins Jr.
Responder