Página 1 de 1

Atualizações Hwgui 25/08/2023

Enviado: 25 Ago 2023 08:12
por Itamar M. Lins Jr.
Olá!
Hwgui faz desenhos agora, triângulos, círculos, e outros.

Código: Selecionar todos

2023-08-25 12:52 UTC+0300 Alexander Kresin <alex@belacy.ru>
  * source\gtk\hpanel.prg
    * HPanel(): Hide(), Show() methods added, as in winapi version

2023-08-25 11:10 UTC+0300 Alexander Kresin <alex@belacy.ru>
  * utils/tutorial/tutor_eng.xml
    * Module added "A replacement for a colorized tab" to "Advanced using of controls" section

2023-08-25 09:34 UTC+0300 Alexander Kresin <alex@belacy.ru>
  * source\gtk\hedit.prg
  * source\winapi\hedit.prg
    ! Fixes

2023-08-24 20:07 UTC+0300 Alexander Kresin <alex@belacy.ru>
  * source\gtk\draw.c
    ! Fixes
  * utils/tutorial/tutor_eng.xml
    * Module updated "Drawing on the board"

2023-08-24 17:00 UTC+0300 Alexander Kresin <alex@belacy.ru>
  * source\gtk\draw.c
  * source\winapi\draw.c
    * hwg_CircleSector( hDC, xc, yc, radius, iAngleStart, iAngle [, hPen] )
      hwg_CircleSector_Filled( hDC, xc, yc, radius, iAngleStart, iAngle  [, hPen | lPen] [, hBrush] ) added
  * utils/tutorial/tutor_eng.xml
    * Module updated "Drawing on the board"
  * include/hwgextern.ch
    Requests for new functions added

2023-08-24 13:20 UTC+0300 Alexander Kresin <alex@belacy.ru>
  * source\gtk\draw.c
    * Some internal changes to make drawing more compatible with winapi version logic
    * hwg_Triangle( hDC, x1, y1, x2, y2 [, hPen] ),
      hwg_Triangle_Filled( hDC, x1, y1, x2, y2 [, hPen [, hBrush]] ) added
  * source\winapi\draw.c
      hwg_Triangle(), hwg_Triangle_Filled() added
  * utils/tutorial/tutor_eng.xml
    * Module updated "Drawing on the board"
  * include/hwgextern.ch
    Requests for new functions added

2023-08-23 20:54 UTC+0300 Alexander Kresin <alex@belacy.ru>
  * source\gtk\draw.c
    * Synhronized with winapi changes
  * utils/tutorial/tutor_eng.xml
    * Module updated "Drawing on the board"

2023-08-23 17:06 UTC+0300 Alexander Kresin <alex@belacy.ru>
  * source\winapi\draw.c
    * Few drawing functions modified:
      hwg_Rectangle( hDC, x1, y1, x2, y2 [, hPen] )
      hwg_Ellipse( hDC, x1, y1, x2, y2 [, hPen] )
      hwg_Roundrect( hDC, x1, y1, x2, y2, iRadius [, hPen] )
      hwg_Rectangle_Filled( hDC, x1, y1, x2, y2 [, hPen [, hBrush]] )
      hwg_Ellipse_Filled( hDC, x1, y1, x2, y2 [, hPen [, hBrush]] )
      hwg_Roundrect_Filled( hDC, x1, y1, x2, y2, iRadius [, hPen [, hBrush]] )
  * source\winapi\hbrowse.prg
    ! Small fix, provided by Andrey Tarasov
  * utils/tutorial/tutor_eng.xml
    * Module updated "Drawing on the board"
Captura de tela 2023-08-25 082949.png
Saudações,
Itamar M. Lins Jr.

Atualizações Hwgui 25/08/2023

Enviado: 03 Set 2023 19:54
por alxsts
Olá!

Pelo que sei, há muito tempo a HwGUI tem esta capacidade: Drawing functions.

Mas este componente Board eu não conhecia.

Atualizações Hwgui 25/08/2023

Enviado: 03 Set 2023 21:17
por JoséQuintas
alxsts escreveu:Mas este componente Board eu não conhecia.
Esse é novo.
Dá pra dizer que HBOARD é um controle do usuário, pra fazer o que quiser.
Pode substituir vários outros, apenas com a adição dos desenhos diferentes.
E é o que vém sendo feito.
Uma vez se tratando apenas de desenhos, foi possível padronizar pra Windows e Linux.

Foi dito que isso começou por causa do Windows 10.
Na prática não é isso.
Faz tempo que comento dos problemas em telas 4k.
Pelo jeito a API Windows está sendo abandonada, e não tem atualização.
Nem sei por enquanto tempo o que existe hoje vai continuar funcionando.
Se estão matando computadores, o que dizer de software.

Nota:
Desenhar na tela é diferente de desenhar no controle.
Um traço na tela é eventual, prepara, desenha, finaliza.
No controle é diferente, prepara, faz tudo que precisa fazer, e só depois finaliza, senão ficaria lento demais.