HMG 3.4.2 + libs GTWVG + GTWVW

Harbour, MingW related news.

Moderator: Rathinagiri

MICROVOLUTION
Posts: 24
Joined: Sat May 30, 2015 5:15 am

Re: HMG 3.4.2 + libs GTWVG + GTWVW

Post by MICROVOLUTION » Thu Mar 10, 2016 2:17 am

Observação:
Tudo isso que falei anteriormente, é num único .EXE e não vários .EXEs... ok?
Bom,
fiz o teste, num dos módulos, quis implantar o form window da HMG, conforme bloco abaixo:

Code: Select all

static function TELA_ENTRADA ()
     * BCTE1 Inicio
        // DynWinDialog ( 1 , cLabel ) // 2( modal) / 1 (normal)
        
 **********************************************************************************************
 ******** FORMUL†RIO PADRŽO DO WINDOWS PARA HARBOUR 5/3/15W APENAS PARA EFEITO DID†TICO *******
   DEFINE WINDOW Form_1 ;
      AT 0,0 ;
      WIDTH 200 ;
      HEIGHT 200 ;
      MAIN;
      TITLE 'Button Test'

      DEFINE MAIN MENU
              POPUP 'Test'
                ITEM 'Disable button' ACTION Form_1.Button_1.Enabled := .f.
                ITEM 'Enable button'  ACTION Form_1.Button_1.Enabled := .t.
              END POPUP
      END MENU

      @ 70,70 BUTTON Button_1 PICTURE "button.bmp" WIDTH 50 HEIGHT 50 ACTION MsgInfo('Test!')
   END WINDOW
   CENTER WINDOW Form_1
   ACTIVATE WINDOW Form_1
   inkey(0)
   wait 'tela gráfica'
Return
 ******** FORMUL†RIO PADRŽO DO WINDOWS PARA HARBOUR 5/3/15W ***********************************
 **********************************************************************************************
Infelizmente, procedeu os seguintes erros:
Harbour 3.2.0dev (r1509031202)
Copyright (c) 1999-2015, http://harbour-project.org/
C:\MVinfo\MIGRAR\SiCCA\SiCCA3603hmg\sci10000\pci10011.prg(662) Error E0030 Syntax error "syntax error at 'WINDOW'"
C:\MVinfo\MIGRAR\SiCCA\SiCCA3603hmg\sci10000\pci10011.prg(664) Error E0030 Syntax error "syntax error at 'MAIN'"
C:\MVinfo\MIGRAR\SiCCA\SiCCA3603hmg\sci10000\pci10011.prg(665) Error E0030 Syntax error "syntax error at 'Test'"
C:\MVinfo\MIGRAR\SiCCA\SiCCA3603hmg\sci10000\pci10011.prg(666) Error E0030 Syntax error "syntax error at 'Disable button'"
C:\MVinfo\MIGRAR\SiCCA\SiCCA3603hmg\sci10000\pci10011.prg(667) Error E0030 Syntax error "syntax error at 'Enable button'"
C:\MVinfo\MIGRAR\SiCCA\SiCCA3603hmg\sci10000\pci10011.prg(668) Error E0030 Syntax error "syntax error at 'END'"
C:\MVinfo\MIGRAR\SiCCA\SiCCA3603hmg\sci10000\pci10011.prg(669) Error E0030 Syntax error "syntax error at 'END'"
C:\MVinfo\MIGRAR\SiCCA\SiCCA3603hmg\sci10000\pci10011.prg(671) Error E0030 Syntax error "syntax error at '@'"
C:\MVinfo\MIGRAR\SiCCA\SiCCA3603hmg\sci10000\pci10011.prg(672) Error E0030 Syntax error "syntax error at 'END'"
C:\MVinfo\MIGRAR\SiCCA\SiCCA3603hmg\sci10000\pci10011.prg(673) Error E0030 Syntax error "syntax error at 'WINDOW'"
C:\MVinfo\MIGRAR\SiCCA\SiCCA3603hmg\sci10000\pci10011.prg(674) Error E0030 Syntax error "syntax error at 'WINDOW'"
11 errors
Será que tenho que mudar o GT_WVG_DEFAULT para GT_WIN_DEFAULT apenas neste módulo e depois voltar para o GT_WVG_DEFAULT no final do retorno?
grato!

MICROVOLUTION
Posts: 24
Joined: Sat May 30, 2015 5:15 am

Post by MICROVOLUTION » Tue Dec 05, 2017 11:08 am

Good morning, we've been almost 2 years since my last post. What I have learned over time can contribute a "little" only.

The above error was generated by the failure to include the clause at the beginning of .PRG:
#include "hmg.ch" or
#include "minigui.ch"

Just this ... thanks!

Post Reply