Search found 276 matches: nstyle

Return to advanced search

Re: ListBox Input Field Scrolling........

... ),; oDlg:End(), lOk := .T. } ENDIF * oGet:bValid := bValid * @10,0 BUTTON oBtn PROMPT "" ACTION (oDlg:End(), lOk:=.T. ) OF oDlg oBtn:nStyle := nOr( WS_CHILD, WS_VISIBLE, BS_DEFPUSHBUTTON ) ACTIVATE DIALOG oDlg ; ON INIT (DlgAdjust(oDlg,oGet,oBtnAction,aDim,cHType), ; If(iHelp,GetBitMap(oGet,1,WHlp,nWidth,"16_F3"),)) ...
by RiazKhan
Thu Aug 22, 2024 4:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ListBox Input Field Scrolling........
Replies: 5
Views: 1267

Re: centrar mensaje en statusbar

... Habría usar el estilo SBS_CENTERALIGN al crear el control. Para eso habría que modificar la clase TStatusBar así: #define SBS_CENTERALIGN 0x0004 ::nStyle = nOR( WS_CHILD, WS_VISIBLE, SBS_CENTERALIGN ) Pruébalo y a ver si funciona como deseas. Probaste con ? set message of _oWnd to cMensajeMenu ...
by Antonio Linares
Mon Jun 24, 2024 8:37 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: centrar mensaje en statusbar
Replies: 4
Views: 414

Re: Position of the text in the checkbox

... BS_CENTER BS_RIGHT * Vertical Alignment Constant BS_TOP BS_VCENTER BS_BOTTOM * To Show Text Left side of Checkbox (Default Right) BS_LEFTTEXT oCb:nStyle := nOr(WS_CHILD, WS_VISIBLE, BS_AUTOCHECKBOX, WS_TABSTOP,....Either of Options of Your Choice) -Ramesh Babu
by RAMESHBABU
Wed Jun 12, 2024 1:42 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Position of the text in the checkbox
Replies: 2
Views: 373

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: 1469

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

Code: Select all  Expand view  RUN

#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: 1469

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: 1469

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: 1469

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: 1469

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: 1469

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: 4256

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: 4863

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: 4863

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: 508

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: 508

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: 524
Next

Return to advanced search