Search found 44 matches: getdlgcode

Searched query: getdlgcode

by Antonio Linares
Fri Jan 24, 2025 11:19 am
Forum: FiveWin for Harbour/xHarbour
Topic: Using new Class TDeepSeek for documenting
Replies: 29
Views: 7656

Re: Using new Class TDeepSeek for documenting

... GetDisplayColsWidth(), GetPaintCols(), Eval(), SafeEval(), BrwFitSize(), CancelEdit(), CheckSortCbx(), DelRepos(), DrawLine(), EraseData(), GetDlgCode(), HasBorder(), LButtonDown(), LButtonUp(), MouseMove(), LDblClick(), RButtonDown(), MouseWheel(), HorzLine(), MouseAtHeader(), MouseAtFooter ...
by Antonio Linares
Sat Jan 18, 2025 10:24 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Using new Class TDeepSeek for documenting
Replies: 29
Views: 7656

Re: Using new Class TDeepSeek for documenting

... nMResize`**: Numeric value indicating the type of mouse resizing (e.g., RES_NW, RES_N, etc.).
- **`nDlgCode`**: Numeric value returned by `GetDlgCode()` for default behavior.
- **`oJump`**: Reference to the next control to focus after validation.
- **`l97Look`**: Logical flag indicating whether ...
by Antonio Linares
Fri Jan 17, 2025 10:54 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Using new Class TDeepSeek for documenting
Replies: 29
Views: 7656

Re: Using new Class TDeepSeek for documenting

... can be used to recreate the button programmatically.
- **Parameters:**
- `lDlgUnits`: Whether to use dialog units for coordinates.

6. **`GetDlgCode( nLastKey )`**
- **Description:** Determines the dialog code for the button, which controls how the button interacts with keyboard input ...
by Compuin
Mon May 02, 2016 2:16 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Forma correcta de configurar clase TSBUTTON...alguna ayuda?
Replies: 14
Views: 4756

Re: Forma correcta de configurar clase TSBUTTON...alguna ayuda?

... not declared for
method: FreeBitMaps( nBitMap )'
.\prg\TSBUTTON.PRG(1135) Error E0019 #error: 'Class "TSButton" not declared for
method: GetDlgCode( nLastKey )'
.\prg\TSBUTTON.PRG(1159) Error E0019 #error: 'Class "TSButton" not declared for
method: GetNextClip()'
.\prg\TSBUTTON.PRG(1189 ...
by MOISES
Mon Feb 23, 2015 1:54 pm
Forum: FiveWin para Harbour/xHarbour
Topic: problema con SetFont
Replies: 17
Views: 6480

Re: problema con SetFont

... FijaClrFestivo()
METHOD ColorDia( nDia, aColores )

METHOD Default()

METHOD Destroy()
METHOD MouseMove( nRow, nCol, nKeyFlags )

METHOD GetDlgCode( nLastKey )
METHOD VerAlSalir()
METHOD VerAlEntrar()
METHOD PintarBoton(hDC, nColor, nRow, nCol)
METHOD KeyChar( nKey, nFlags )
METHOD ...
by Antonio Linares
Wed Dec 24, 2014 5:20 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Mejoras para scintilla
Replies: 1040
Views: 1028067

Re: Mejoras para scintilla

Cristobal,

Prueba a hacer:

oSincitilla:nDlgCode = DLGC_WANTALLKEYS

Revisa como está implementado el método:

METHOD GetDlgCode( nLastKey ) CLASS TControl
by Antonio Linares
Mon Oct 20, 2014 3:41 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Capturar tecla ESC y RETURN en TTreeview
Replies: 13
Views: 2386

Re: Capturar tecla ESC y RETURN en TTreeview

... De dejar tu código ahi, obligarias a redefinir HandleEvent(). No es realmente necesario pero es la forma correcta de hacerlo

El método GetDlgCode() es la respuesta a un mensaje que envía Windows para interrogar al control acerca de las teclas que quiere procesar. Al devorlver DLGC ...
by jmartial
Mon Oct 20, 2014 3:07 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Capturar tecla ESC y RETURN en TTreeview
Replies: 13
Views: 2386

Re: Capturar tecla ESC y RETURN en TTreeview

Antonio,

Dime si así sería correcto:

En la definición de los métodos de la clase:

METHOD GetDlgCode( nLastKey ) INLINE DLGC_WANTALLKEYS 

Y así el HandleEvent, y ya captura:

METHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS TTreeView   local oItem  &nbsp ...
by jmartial
Mon Oct 20, 2014 2:54 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Capturar tecla ESC y RETURN en TTreeview
Replies: 13
Views: 2386

Re: Capturar tecla ESC y RETURN en TTreeview

Antonio,

Ese es el principal problema, al pulsar Intro, se recibe nMsg==135

Que según veo, corresponde al define WM_GETDLGCODE. No recibe ni Keydown ni Char.

No sé como habría que hacerlo correctamente para capturar Return y Esc.
by Antonio Linares
Sat Oct 26, 2013 9:44 am
Forum: Off Topic / Otros temas
Topic: "Snap" for Clipper
Replies: 7
Views: 10414

Re: "Snap" for Clipper

... function in ?)
WINDOW.PRG 610 611 622 846 896 901 1364 2382 2402 2418
2463 2540 2962

GETDEVICECAPS() (function in ?)
WINDOW.PRG 896 901

GETDLGCODE() (function in ?)
WINDOW.PRG 614

GETDLGITEM() (function in ?)
WINDOW.PRG 1528

GETDRAWITEM() (function in ?)
WINDOW.PRG 1496 1504 ...
by noe aburto
Mon Sep 23, 2013 1:42 am
Forum: FiveWin para Harbour/xHarbour
Topic: CANCEL en tsbutton 7.0, no funciona
Replies: 3
Views: 1034

Re: CANCEL en tsbutton 7.0, no funciona

... 4 y 7 en el segundo return (x) cambia

version 7 ***************************************************************************************
METHOD GetDlgCode( nLastKey ) CLASS TSButton

If nLastKey > 0 .and. nLastKey == ::nWakeup
::nWakeup := 0
EndIf

If ( ! ::oWnd:lValidating .and. ::lCancel .and ...
by Antonio Linares
Fri Jul 26, 2013 11:55 am
Forum: FiveWin para Harbour/xHarbour
Topic: richedit con tabulador (desde recursos), ¿como?
Replies: 15
Views: 2817

Re: richedit con tabulador (desde recursos), ¿como?

... en google he encontrado que se trata de un error de los controles RichEdit, ya que si se devuelve el valor DLGC_WANTALLKEYS desde el Método GetDlgCode() de TRichEdit, Windows no debería darle el foco a otro control.

La solución usada para saltarse esta limitación es interceptar el mensaje WM ...
by Antonio Linares
Mon Jul 15, 2013 8:16 am
Forum: FiveWin para Harbour/xHarbour
Topic: richedit con tabulador (desde recursos), ¿como?
Replies: 15
Views: 2817

Re: richedit con tabulador (desde recursos), ¿como?

... pregunta a nuestros controles que teclas quieren procesar, y el control solicita las que desea. El método que responde a esta petición es Method GetDlgCode( nLastKey ). Al asignarle un valor a nDlgCode estamos indicando las teclas extraordinarias que queremos.

De todas formas he visto que la Clase ...
by carlos vargas
Wed Jan 18, 2012 7:57 pm
Forum: FiveWin para Harbour/xHarbour
Topic: No responde a ALT + (Letra definida) (Fwh 11.12)
Replies: 11
Views: 4960

Re: No responde a ALT + (Letra definida) (Fwh 11.12)

... los button por btnbmp y ya el dialogo no se cerraba, mi problema estaba en la clase tbutton.

solucion, encontre que la clase button el metodo getdlgcode que recientemente se modifico, necesita otra modificacion esta vez mas personal.
METHOD GetDlgCode( nLastKey ) CLASS TButton ::oWnd ...
by Antonio Linares
Wed Jan 18, 2012 6:09 pm
Forum: FiveWin para Harbour/xHarbour
Topic: No responde a ALT + (Letra definida) (Fwh 11.12)
Replies: 11
Views: 4960

Re: No responde a ALT + (Letra definida) (Fwh 11.12)

Carlos,

El método GetDlgCode() es donde se procesa y se responde al mensaje de Windows WM_GETDLGCODE:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms645425(v=vs.85).aspx

devolver nil en FiveWin es solicitar la acción por defecto del API de Windows. Devolver DLGC ...