erro em button

Projeto MiniGui - Biblioteca visual para Harbour/xHarbour

Moderador: Moderadores

Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

erro em button

Mensagem por JoséQuintas »

buttonex.png
É uma desgraça quando isso acontece.
Aonde tem .NOT. ?
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

erro em button

Mensagem por JoséQuintas »

resolvido.
Encontrei DEFINE BUTTONEX nesse ch, e acrescentei.
Passou a redimensionar o ícone.

Código: Selecionar todos

#include "i_altsyntax.ch"
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
ivanil
Usuário Nível 3
Usuário Nível 3
Mensagens: 166
Registrado em: 11 Set 2004 15:13
Localização: Florianópolis/SC

erro em button

Mensagem por ivanil »

Esta sobrando o "End buttonex" na função.
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

erro em button

Mensagem por JoséQuintas »

não reparei nisso, ou talvez estivesse na metade da alteração.

E faltou avisar:
Isso foi um teste modificando o DEFINE BUTTONEX pro @ row,col.

Voltei o fonte que estava usando antes.

Código: Selecionar todos

#include "i_altsyntax.ch"
   DEFINE BUTTONEX ( xControl )
      PARENT ( xDlg )
      ROW         nRow
      COL         nCol
      WIDTH       nWidth
      HEIGHT      nHeight
      ICON        cResName
      IMAGEWIDTH  nWidth - 20
      IMAGEHEIGHT nHeight - 20
      CAPTION     cCaption
      ACTION      Eval( bAction )
      FONTNAME    "verdana"
      FONTSIZE    9
      FONTBOLD    .T.
      FONTCOLOR   GRAY
      VERTICAL   .T.
      BACKCOLOR  WHITE
      FLAT       .T.
      NOXPSTYLE  .T.
   END BUTTONEX
Talvez agora eu possa modificar os outros que não tinham funcionado com DEFINE
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
ivanil
Usuário Nível 3
Usuário Nível 3
Mensagens: 166
Registrado em: 11 Set 2004 15:13
Localização: Florianópolis/SC

erro em button

Mensagem por ivanil »

JoséQuintas escreveu:Encontrei DEFINE BUTTONEX nesse ch, e acrescentei.
Tudo que for usar minigui, inclua no topo do módulo #include <hmg.ch>; com o tempo vc pode querer enriquecer o modulo e este include que puseste pode não ser o suficiente e quebrar o código.
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

erro em button

Mensagem por JoséQuintas »

Nos fontes, incluo este ch
Já configura HWGUI, HMGE ou OOHG.
Mas já dá pra limpar um pouco, eliminei muito disso.

Código: Selecionar todos

#ifdef HBMK_HAS_HWGUI
   #include "hwgui.ch"
   #define CODE_HWGUI
   #define CODE_HWGUI_OR_HMGE
#endif
#ifdef HBMK_HAS_HMGE
   #include "hmg.ch"
   #include "i_altsyntax.ch"
   #define CODE_HMGE
   #define CODE_HWGUI_OR_HMGE
   #define CODE_HMGE_OR_OOHG
#endif
#ifdef HBMK_HAS_OOHG
   #include "oohg.ch"
   #define CODE_OOHG
   #define CODE_HMGE_OR_OOHG
#endif
Nem queira saber .... acho que criei uma LIB
Dá pra chamar de QCS - qualquer coisa serve kkk
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Responder