Search found 69 matches: gwl

Return to advanced search

Re: Estilo de control

Prueba asi:

MsgInfo( lAnd( GetWindowLong( hWnd, GWL_STYLE ), WS_BORDER ) )
by Antonio Linares
Wed Aug 21, 2013 5:40 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Estilo de control (Solucionado)
Replies: 5
Views: 989

Re: DEFINE WINDOW MDI with NOSYSMENU?

Dutch,

Once you create your MDICHILD window, do this:

#define GWL_STYLE -16

SetWindowLong( oWndChild:hWnd, GWL_STYLE, nXor( GetWindowLong( oWndChild:hWnd, GWL_STYLE ), WS_SYSMENU ) )
by Antonio Linares
Tue Jul 02, 2013 7:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DEFINE WINDOW MDI with NOSYSMENU?
Replies: 1
Views: 554

Re: Borde de TBar

Buenas noches

He puesto:

#define GWL_STYLE -16

Es correcto?
Efectivamente, me quita el Borde, pero tambien me borra los botones

Se me olvida alguna cosa?
Gracias por tu interés y tiempo
Saludos
by cnavarro
Fri May 31, 2013 8:26 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Borde de TBar
Replies: 10
Views: 3511

New FTDN April/Abril 2013 (FWH 13.04)

April 2013 ========== * Enhancement: Enhanced vmh.prg on C Compiler path settings, and support for debug mode. * New: functions FW_GREATEST(...) and FW_LEAST(...). Similar to well known SQL functions GREATEST and LEAST, these functions return greatest or lowest non-nil value in a list of values. The...
by Antonio Linares
Wed May 01, 2013 6:21 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN April/Abril 2013 (FWH 13.04)
Replies: 2
Views: 3502

Re: BUG: COMBOBOX with style CBS_DROPDOWN

From what moment on i can use GetWindowLong( ::hWnd, GWL_STYLE )->(::hWnd is existent)? Can we transfer the definition from the ::oGet in method init()?
by byte-one
Mon Apr 15, 2013 9:15 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: BUG: COMBOBOX with style CBS_DROPDOWN
Replies: 45
Views: 9319

Re: BUG: COMBOBOX with style CBS_DROPDOWN

Günther, See these defines: #define CBS_DROPDOWN 0x0002 #define CBS_DROPDOWNLIST 0x0003 So you could use: nAnd( GetWindowLong( ::hWnd, GWL_STYLE ), CBS_DROPDOWNLIST ) == CBS_DROPDOWNLIST Don't use CBS_DROPDOWN in the above line, because CBS_DROPDOWN is contained in CBS_DROPDOWNLIST: CBS_DROPDOWN ==&...
by Antonio Linares
Sun Apr 14, 2013 9:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: BUG: COMBOBOX with style CBS_DROPDOWN
Replies: 45
Views: 9319

Re: Como se crea una CLASE para dibujar líneas.

con el permiso del maestro mercado * ============================================================================ * CLASS TSLines Version 6.0 Mar/1/2008 * Author: Manuel Mercado * Freeware, you can freely use this class just by respecting the authorïs name. * ========================================...
by QAZWSX2K
Tue May 25, 2010 7:16 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Como se crea una CLASE para dibujar líneas.
Replies: 8
Views: 1772

Re: button con 2 renglones

Listo... Para separar las líneas usar chr(10) en vez de CRLF (el cual es chr(13)+chr(10)) Si no usas rc: include "Fivewin.ch" #define BS_MULTILINE 0x2000 #define GWL_STYLE -16 Function Test() Local oDlg, oBtn DEFINE DIALOG oDlg RESNAME "DIALOG_1" REDEFINE BUTTON oBtn ID 10 OF oDl...
by César E. Lozada
Fri May 14, 2010 2:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: button con 2 renglones
Replies: 4
Views: 1241

Re: Funcion para Agregar/Remover STYLES a un control in Run-Time

saludos hernan:: algun ejemplo simple de como aplicar la funcion.. GRACIAS Hola gracias a todos, pues es demasiado simple: Supongamos que tenemos un control que tenemos que QUITAR o AGREGAR EL TAB_STOP en tiempo de ejecucion, en funcion de una variable del aplicativo en cuestion. ChangeStyleWindow(...
by Hernan Diego Ceccarelli
Mon Jan 25, 2010 2:49 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Funcion para Agregar/Remover STYLES a un control in Run-Time
Replies: 13
Views: 2444

Re: GRID ON RPREVIEW

Marcello, if you try to insert an control it is not transparent , it not run ok why ? sample @ 2,1 say osay Prompt "test" of oWnd size 40,100 DESIGN TRANSPARENT or @ 2,1 say osay Prompt "test" of oWnd size 40,100 DESIGN oSay:ltransparent:=.t. I try to insert : if ::lTransparent S...
by Silvio
Fri Jan 15, 2010 8:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: GRID ON RPREVIEW
Replies: 11
Views: 2633

Re: Control ID en un diálogo

Hola ICO coloca estos define, seguro los necesitaras #define GW_HWNDNEXT 2 #define GW_CHILD 5 #define GWL_ID (-12) GW_CHILD es un "flag" que usa la funcion GetWindow, por eso el prefijo (GW) http://msdn.microsoft.com/en-us/library/ms633515(VS.85).aspx ...
by Daniel Garcia-Gil
Thu Jan 14, 2010 6:00 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Control ID en un diálogo
Replies: 10
Views: 1798

Funcion para Agregar/Remover STYLES a un control in Run-Time

#define GWL_STYLE -16 Aca les mando esta funcion, espero les sirva :) :D Es MUY util ehh :) //--------------------------------------------------------------------------------------------------//FUNCTION ChangeStyleWindow( hoWnd, naStyle, nStyleType, lAdd )   local aStyles:= {}, n, ...
by Hernan Diego Ceccarelli
Thu Jan 14, 2010 3:58 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Funcion para Agregar/Remover STYLES a un control in Run-Time
Replies: 13
Views: 2444

Re: COMBOBOX alineado a la derecha

Manuel, Como te indica Marcelo, prueba con: SetWindowLong( oComboBox:oGet:hWnd, GWL_STYLE, nOr( GetWindowLong( oComboBox:oGet:hWnd, GWL_STYLE ), ES_RIGHT ) ) Debes hacerlo una vez el combobox tenga un hWnd válido (en caso de usar un diálogo, desde la claúsula ON INIT): ACTIVATE DIALOG oDlg ON INIT ...
by Antonio Linares
Tue Jan 12, 2010 5:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: COMBOBOX alineado a la derecha
Replies: 3
Views: 651

RibbonBar ALT key

Hello Antonio, I changed the method in TRibbonBar and added a class TXPanel. But I must do something wrong. If I press the ALT key I don’t see the panel. Would you be so kind to post a working sample. Thanks in advance Otto Otto, We are working on a Method KeybMode() that first of all may show those...
by Otto
Tue Jan 12, 2010 9:18 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: RibbonBar ALT key
Replies: 10
Views: 1859

Re: Control a paradas de tabulador

Hola Fernando: A través de recursos es fácil porque lo defino con el Pelles C; pero mediante codigo no logro hacerlo. Si es en DIALOG, después de definir el control say: oSay:nStyle := nAnd( oSay:nStyle, nNot( WS_TABSTOP ) ) Si es en WINDOW: #define GWL_STYLE -16 SetWindowLong( oSay:hWnd, GWL_STYLE,...
by mmercado
Fri Nov 20, 2009 1:08 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Control a paradas de tabulador
Replies: 11
Views: 2062
PreviousNext

Return to advanced search