Search found 273 matches: nstyle

Return to advanced search

Re: Como revertir ::nStyle = nOr( ::nStyle, ES_READONLY )

You can use the above code to Toggle ReadOnly status during runtime. This code is tested.

From the next version, we have provided DATA lReadOnly. We can toggle this at runtime with oEdit:lReadOnly := .T. or .F..
by nageswaragunupudi
Tue Mar 26, 2024 4:43 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Como revertir ::nStyle = nOr( ::nStyle, ES_READONLY )
Replies: 5
Views: 1067

Re: Como revertir ::nStyle = nOr( ::nStyle, ES_READONLY )

Code: Select all  Expand view

#define EM_SETREADONLY          0x00CF

//
//

     If( oEdit:WinStyle( ES_READONLY ), oEdit:SendMsg( EM_SETREADONLY, 0 ), ;
         oEdit:SendMsg( EM_SETREADONLY, 1 ) ) }
 
by nageswaragunupudi
Mon Mar 25, 2024 5:21 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Como revertir ::nStyle = nOr( ::nStyle, ES_READONLY )
Replies: 5
Views: 1067

Re: Como revertir ::nStyle = nOr( ::nStyle, ES_READONLY )

Carlos, ¿es posible publicar un ejemplo completo para probar, por favor?

Gracias.

Regards, saludos.
by karinha
Mon Mar 25, 2024 2:37 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Como revertir ::nStyle = nOr( ::nStyle, ES_READONLY )
Replies: 5
Views: 1067

Re: Como revertir ::nStyle = nOr( ::nStyle, ES_READONLY )

Carlos, Prueba con: oEdit:WinStyle( ES_READONLY, .F. ) // ó .T. si necesitas volver a aplicarlo Gracias Antonio, Pero no ha funcionado, permitía editar el texto tanto con .F. como con .T.; le he aplicado: oEdit:WinStyle( 2048 /* ES_READONLY */ , .F. ) 2048 lo he encontrado en winapi.ch A ver si se ...
by FiveWiDi
Mon Mar 25, 2024 1:57 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Como revertir ::nStyle = nOr( ::nStyle, ES_READONLY )
Replies: 5
Views: 1067

Re: Como revertir ::nStyle = nOr( ::nStyle, ES_READONLY )

Carlos,

Prueba con:

oEdit:WinStyle( ES_READONLY, .F. ) // ó .T. si necesitas volver a aplicarlo
by Antonio Linares
Mon Mar 25, 2024 11:26 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Como revertir ::nStyle = nOr( ::nStyle, ES_READONLY )
Replies: 5
Views: 1067

Como revertir ::nStyle = nOr( ::nStyle, ES_READONLY )

Hola a todos,

Veo que en la lógica del control TEDIT está este código:

::nStyle = nOr( ::nStyle, ES_READONLY )

¿Cómo se puede revertir este código en tiempo de ejecución y si es necesario volverlo a aplicar?

Muchas gracias,
by FiveWiDi
Mon Mar 25, 2024 10:50 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Como revertir ::nStyle = nOr( ::nStyle, ES_READONLY )
Replies: 5
Views: 1067

Re: ButtonBmp TABSTOP

... oBtn[3] PROMPT "&Three" OF oDlg PIXEL SIZE 50,30 ACTION MsgInfo("Three")           oBtn[2]:nStyle:= nOR(WS_CHILD, WS_VISIBLE)    ACTIVATE DIALOG oDlg CENTEREDRETURN NIL Hi Carlos, Your example works great but if i put this solution ...
by wartiaga
Fri Jan 05, 2024 11:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ButtonBmp TABSTOP
Replies: 18
Views: 2753

Re: New FTDN October/Octubre 2023 (FWH 23.10)

... cImage ) Para añadir cualquier imagenm no sólo mapas de bits e iconos. * Clase TListView: (source\classes\tlistvie.prg) - Nuevo método SetStyle( nStyle ) Por favor, revisa el código fuente prg para conocer la lista de estilos. * ListView samples: (1) listvie1.prg revisado (2) listvie2.prg implementación ...
by Antonio Linares
Sun Dec 03, 2023 4:46 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN October/Octubre 2023 (FWH 23.10)
Replies: 1
Views: 3881

New FTDN October/Octubre 2023 (FWH 23.10)

... New Method AddImage( cImage ) To add any image, not only bitmaps and icons. * TListView class: (source\classes\tlistvie.prg) New Method SetStyle( nStyle ) Refer prg source for the list of styles. * ListView: Samples: (1) revised litvie1.prg amd new sample (2) listvie2.prg for Unicode implementation ...
by Antonio Linares
Thu Nov 02, 2023 9:53 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN October/Octubre 2023 (FWH 23.10)
Replies: 1
Views: 3881

Re: Child OF oWnd

... 4294903408}, {CCAPTION, }, {CVARNAME, oSayActive}, {NID, 102}, {TWINDOW:NTOP, 864}, {TWINDOW:NLEFT, 10}, {NBOTTOM, 893}, {NRIGHT, 649.00}, {NSTYLE, 1342177280}, {NCLRPANE, 16777215}, {NCLRTEXT, 0}, {ACONTROLS, {}}, {OBRUSH, {{HBRUSH, 9437200}, {HBITMAP, 0}, {HBMPORGL, 0}, {NCOUNT, 6}, {NRGBCOLOR, ...
by Jimmy
Thu Nov 10, 2022 5:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Child OF oWnd
Replies: 7
Views: 344

TOPMOST

hi, i want to create a Window which are "on TOP" of all other and will "stay" like MsgInfo() --- in Help Dialog <nStyle> An optional DialogBox style. There are several samples in the SAMPLES\ subdirectory showing you how to manipulate this value. Windows: <nStyle> ...
by Jimmy
Sat Nov 05, 2022 5:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TOPMOST
Replies: 7
Views: 340

Re: bOr / nOr : how to "add" Constante under FiveWin

nStyle := nAnd( ::nStyle, nNot( LVS_ICON ) ) nStyle := GetWindowLong( ::hWnd, GWL_STYLE )SetWindowLong( ::hWnd, GWL_STYLE, nAnd( nStyle, nNot( nRemveStyle ) ) )  Another way: ...
by nageswaragunupudi
Tue Oct 18, 2022 8:21 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: bOr / nOr : how to "add" Constante under FiveWin
Replies: 8
Views: 405

Re: Xbrowse Check/uncheck all

... the dialog oLbxMesi:=TXbrCheck():New(132, 5, 80, 110, oDlg) // ????????????? not create the xbrowse on my ccordinates oLbxMesi:HasBorder(.f.) // nStyle(WS_NOBORDER) oLbxMesi:setarray(aMesi) oLbxMesi:SetMultiSelectCol() oLbxMesi:aCols[1]:cHeader := i18n("Mesi") oLbxMesi:aCols[1]:nWidth ...
by Silvio.Falconi
Sat May 21, 2022 9:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse Check/uncheck all
Replies: 5
Views: 441

Re: Errores OLE en TEXCELSCRIPT

... ,.F. , , , 7 , , , ,1) //METHOD Say( nRow, nCol, xValue , cFont , nSize , lBold , lItalic ,lUnderLine, nAlign, nColor, nFondo , nOrien , nStyle , cFormat ) CLASS TExcelScript Como que "explota" el ole y el error sale en cualquier parte, adentro de un do while que recorre una ...
by puenteda
Thu Feb 24, 2022 5:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Errores OLE en TEXCELSCRIPT
Replies: 9
Views: 1172

Re: Borde plano en custom control

Gracias por la contestación. En la clase original de Paco García el estilo es: ::nStyle = nOR( WS_CHILD, WS_VISIBLE, WS_CLIPSIBLINGS, WS_CLIPCHILDREN, WS_TABSTOP, WS_VSCROLL, WS_BORDER ) Probando a quitar el WS_BORDER me queda el control ... sin el borde. De esta ...
by José Luis Sánchez
Sun Dec 19, 2021 3:27 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Borde plano en custom control
Replies: 11
Views: 1241
Next

Return to advanced search