Atualizações Hwgui 12-08-2026

Projeto HwGui - Biblioteca visual para Harbour/xHarbour

Moderador: Moderadores

Avatar do usuário
Itamar M. Lins Jr.
Administrador
Administrador
Mensagens: 8281
Registrado em: 30 Mai 2007 11:31
Localização: Ilheus Bahia
Curtiu: 7 vezes
Curtiram: 2 vezes

Atualizações Hwgui 12-08-2026

Mensagem por Itamar M. Lins Jr. »

Olá!
Coisas primárias mesmo.
Navegação dentro dos controles da DIALOG.
Leiaute das colunas no browse.
E não tinha as DUAS barras SCROLL no EDIT MULTLINE e BROWSE.
Falta OBEDECER ir até o final do DBF/ARRAY, o "arrastar" do cursor da barra VERTICAL até o final do Browse.(TODO/Para fazer)

Código: Selecionar todos

2026-08-12 01:36 UTC-0300 Itamar Lins <itamarlins at gmail.com>
    * source/gtk/control.c
      ! HWG_CREATEEDIT(): Fixed missing scrollbars in multi-line edit controls
        (ES_MULTILINE) by embedding GtkTextView inside a GtkScrolledWindow container.
      ! HWG_CREATEEDIT(): Added check for WS_HSCROLL to dynamically toggle
        GTK_WRAP_NONE / GTK_WRAP_WORD_CHAR wrap modes.
      ! HWG_CREATEEDIT(): Implemented support for WS_HSCROLL and WS_VSCROLL style
        flags to enforce permanent scrollbar visibility using GTK_POLICY_ALWAYS.
      ! HWG_CREATEEDIT(): Replaced gtk_widget_show() with gtk_widget_show_all()
        on the scrolled window container to prevent rendering issues with the
        internal text buffer.

2026-08-11 03:01 UTC-0300 Itamar Lins <itamarlins at gmail.com>
* source/gtk/hbrowse.prg
      - METHOD Rebuild(): Refactored column width rendering for GTK2.
        Replaced legacy metrics calculation with an alphabet-based average
        width string measurement. Implemented dynamic width padding thresholds
        to strictly respect short fields (<= 2), custom counter-padding for
        Date types ("D") to handle century offsets, and enforced a minimum
        14px right margin on text columns to prevent vertical line clipping.

2026-08-11 03:01 UTC-0300 Itamar Lins <itamarlins at gmail.com>
    * source/gtk/hbrowse.prg
      - METHOD Rebuild(): Fixed column width calculation in Linux (GTK2).
        customized evaluation for Date types ("D")
        to respect 'nColLen' (handling SET CENTURY ON/OFF) without truncation.

2026-08-11 02:01 UTC-0300 Itamar Lins <itamarlins at gmail.com>
    * source/gtk/hbrowse.prg
      - METHOD Rebuild(): Fixed column width calculation in Linux (GTK2).
        Replaced the inaccurate 'arr[2]' metric with a real character width
        average by measuring the full alphabet. This ensures 'Length' is
        strictly respected across all column sizes (from Length 2 to 60)
        without distortion, achieving exact parity with the Win32 layout.

2026-08-09 21:02 UTC-0300 Itamar Lins <itamarlins at gmail.com>
    * cross/common.prg:
      - Fix Ctrl+C GTK2 PICTURE "@R !!.!!!.!!!/!!!!-99"
      - METHOD UnTransform( cBuffer ) CLASS HPicture
        GTK Linux fix: Force strict character type conversion when
        cBuffer is passed as NIL, numeric, logical, or as a widget
        object (e.g., during Ctrl+C/DOCOPY clipboard events). Prevents
        Harbour runtime error BASE/1110 (SUBSTR parameter error).

2026-08-09 12:04 UTC-0300 Itamar Lins <itamarlins at gmail.com>
    * source/gtk/control.c
      - Added 'hwg_button_key_press' and 'hwg_button_focus_out' callbacks
        for BS_AUTO3STATE and BS_AUTORADIOBUTTON.
      - Fixed GTK2 focus trap issue on CheckBox/Radio components where the
        TAB key would loop focus back to the top of the form. The focus
        now respects the chronological HwGUI layout creation order by
        programmatically scanning the container children list.
      - Included <gdk/gdkkeysyms.h> for proper keyboard constant mappings.
Saudações,
Itamar M. Lins Jr.
Responder