hi,
i´m still a Newbie under FiveWin and did not know that TControl have Method to change Style.
will it work with Listview as i have not found any Listview_Macro
i now use this HB_FUNC() for TGrid()
HB_FUNC( LV_CHANGEEXTENDEDSTYLE ){ #ifndef _WIN64 HWND hWnd = ( HWND ) hb ...
Search found 27 matches: bor
Searched query: bor
- Tue Oct 18, 2022 10:15 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: bOr / nOr : how to "add" Constante under FiveWin
- Replies: 8
- Views: 696
- Tue Oct 18, 2022 9:05 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: bOr / nOr : how to "add" Constante under FiveWin
- Replies: 8
- Views: 696
Re: bOr / nOr : how to "add" Constante under FiveWin
Am I write in my understanding the you are developing a new class TGRID using ListView. For it to work with FWH Windows and dialogs, we have to derive the class from TControl.
CLASS TGrid FROM TControl
TControl is derived from TWinndow.
So the new TGrid class already has all methods of TControl ...
CLASS TGrid FROM TControl
TControl is derived from TWinndow.
So the new TGrid class already has all methods of TControl ...
- Tue Oct 18, 2022 8:47 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: bOr / nOr : how to "add" Constante under FiveWin
- Replies: 8
- Views: 696
Re: bOr / nOr : how to "add" Constante under FiveWin
If you make a class as derived from TWindow class (or better TControl class)
We can use Parent method:
This does everything that is needed.
We can use Parent method:
Code: Select all | Expand
oOurWnd:WinStyle( nNewStyle, lOnOff )
// .t. to add new style
// .f. to remove style, if already exists
This does everything that is needed.
- Tue Oct 18, 2022 8:21 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: bOr / nOr : how to "add" Constante under FiveWin
- Replies: 8
- Views: 696
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:
nExistingStyle := GetWindowLong( ::hWnd, GWL_STYLE )if lAnd( ...
nStyle := GetWindowLong( ::hWnd, GWL_STYLE )SetWindowLong( ::hWnd, GWL_STYLE, nAnd( nStyle, nNot( nRemveStyle ) ) )
Another way:
nExistingStyle := GetWindowLong( ::hWnd, GWL_STYLE )if lAnd( ...
- Tue Oct 18, 2022 8:07 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: bOr / nOr : how to "add" Constante under FiveWin
- Replies: 8
- Views: 696
Re: bOr / nOr : how to "add" Constante under FiveWin
hi,
i want to "remove" Style
nStyle := nAndNot(::nStyle,LVS_ICON )
and add new Style
nStyle := nOr(nStyle,nView) SetWindowLong(::hLv , GWL_STYLE , nStyle )
but i can´t find nAndNot() in c:\fwh\source\function\or.c
how to "remove" Style under FiveWin
i want to "remove" Style
nStyle := nAndNot(::nStyle,LVS_ICON )
and add new Style
nStyle := nOr(nStyle,nView) SetWindowLong(::hLv , GWL_STYLE , nStyle )
but i can´t find nAndNot() in c:\fwh\source\function\or.c
how to "remove" Style under FiveWin
- Tue Oct 18, 2022 1:27 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: bOr / nOr : how to "add" Constante under FiveWin
- Replies: 8
- Views: 696
Re: bOr / nOr : how to "add" Constante under FiveWin
hi,
i wonder ...
#define LVCF_FMT 0x01#define LVCF_SUBITEM 0x08#define LVCF_TEXT 0x04#define LVCF_WIDTH 0x02PROCEDURE TESTLOCAL nTest1,nTest2 nTest1 := nor(LVCF_FMT,LVCF_WIDTH,LVCF_TEXT,LVCF_SUBITEM) nTest2 := LVCF_FMT + LVCF_WIDTH + LVCF_TEXT + LVCF_SUBITEM msgInfo(STR(nTest1) ...
i wonder ...
#define LVCF_FMT 0x01#define LVCF_SUBITEM 0x08#define LVCF_TEXT 0x04#define LVCF_WIDTH 0x02PROCEDURE TESTLOCAL nTest1,nTest2 nTest1 := nor(LVCF_FMT,LVCF_WIDTH,LVCF_TEXT,LVCF_SUBITEM) nTest2 := LVCF_FMT + LVCF_WIDTH + LVCF_TEXT + LVCF_SUBITEM msgInfo(STR(nTest1) ...
- Mon Oct 17, 2022 11:00 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: bOr / nOr : how to "add" Constante under FiveWin
- Replies: 8
- Views: 696
Re: bOr / nOr : how to "add" Constante under FiveWin
For flags we better use OR not +
OR vs +
1 OR 2 = 3
1 + 2 = 3 // OK
1 OR 1 = 1
1 + 1 = 2 // NOT OK
3 OR 6 = 7 ( binary 011 OR 110 = 111 )
3 + 6 = 9 // NOT OK
Ways to use "OR"
( a | b | c ...) // clang
nOr( a, b, ... ) // FWH function
NUMOR( a, b, .. ) // CT function
HB_BITOR( a, b ...
OR vs +
1 OR 2 = 3
1 + 2 = 3 // OK
1 OR 1 = 1
1 + 1 = 2 // NOT OK
3 OR 6 = 7 ( binary 011 OR 110 = 111 )
3 + 6 = 9 // NOT OK
Ways to use "OR"
( a | b | c ...) // clang
nOr( a, b, ... ) // FWH function
NUMOR( a, b, .. ) // CT function
HB_BITOR( a, b ...
- Mon Oct 17, 2022 6:44 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: bOr / nOr : how to "add" Constante under FiveWin
- Replies: 8
- Views: 696
Re: bOr / nOr : how to "add" Constante under FiveWin
Dear Jimmy,
FWH also provides a function nOr() you can use the same way. Also you can use Harbour's own function hb_bitOr()
> ::oLVCol:mask := LVCF_FMT + LVCF_WIDTH + LVCF_TEXT + LVCF_SUBITEM
You can't use it that way as OR is a different process from adding those values
> p.s. can use use hbxpp ...
FWH also provides a function nOr() you can use the same way. Also you can use Harbour's own function hb_bitOr()
> ::oLVCol:mask := LVCF_FMT + LVCF_WIDTH + LVCF_TEXT + LVCF_SUBITEM
You can't use it that way as OR is a different process from adding those values
> p.s. can use use hbxpp ...
- Mon Oct 17, 2022 5:53 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: bOr / nOr : how to "add" Constante under FiveWin
- Replies: 8
- Views: 696
bOr / nOr : how to "add" Constante under FiveWin
hi,
to set different Constante under Xbase++ i use
::oLVCol:mask := nOr( LVCF_FMT, LVCF_WIDTH , LVCF_TEXT , LVCF_SUBITEM )
i know i can "add" Constante this Way
::oLVCol:mask := LVCF_FMT + LVCF_WIDTH + LVCF_TEXT + LVCF_SUBITEM
but i like to know how under FiveWin
p.s. can use use ...
to set different Constante under Xbase++ i use
::oLVCol:mask := nOr( LVCF_FMT, LVCF_WIDTH , LVCF_TEXT , LVCF_SUBITEM )
i know i can "add" Constante this Way
::oLVCol:mask := LVCF_FMT + LVCF_WIDTH + LVCF_TEXT + LVCF_SUBITEM
but i like to know how under FiveWin
p.s. can use use ...
- Mon Aug 01, 2016 7:57 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Using Resource Files with Microsoft resource compiler?
- Replies: 4
- Views: 1080
Re: Using Resource Files with Microsoft resource compiler?
Perry Nichols wrote:how do you identify borland specific resources?
Search for the string "bor" inside your RC files.
EMG
- Thu Mar 21, 2013 5:10 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: O.T. - xHarbour
- Replies: 5
- Views: 1325
Re: O.T. - xHarbour
total de archivos a comprimir, muestra en una Listbox como en XBACKUP LITE By Carlos vargas.
zlib_bor.lib, también no la tengo
salu2
zlib_bor.lib, también no la tengo
salu2
- Thu Mar 21, 2013 3:36 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: O.T. - xHarbour
- Replies: 5
- Views: 1325
Re: O.T. - xHarbour
Amplio pregunta;
1) la zlib_bor.lib, no la tengo. No obstante con la zlib sola e podido crear un ejecutable y comprime. Es determinante zlib_bor?
2) Mi intención es mostrar el avance mediante 2 meter. Uno que muestra el avance en bytes del archivo a comprimir/descomprimir y el segundo meter que ...
1) la zlib_bor.lib, no la tengo. No obstante con la zlib sola e podido crear un ejecutable y comprime. Es determinante zlib_bor?
2) Mi intención es mostrar el avance mediante 2 meter. Uno que muestra el avance en bytes del archivo a comprimir/descomprimir y el segundo meter que ...
- Thu Mar 21, 2013 1:45 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: O.T. - xHarbour
- Replies: 5
- Views: 1325
Re: O.T. - xHarbour
... nbsp; GaugeDisplay( aGauge ) Hb_ZIPFILE('test33.zip',aFiles,8,{|cFile,nPos| GaugeUpdate(aGauge,nPos/nLen)},,'hello')Return Nil
Library is zlib.lib and zlib_bor.lib For Borland Compilers Library is zlib.lib zlib_ms.lib for MSVC compilers
Library is zlib.lib and zlib_bor.lib For Borland Compilers Library is zlib.lib zlib_ms.lib for MSVC compilers
- Sat Dec 12, 2009 12:27 am
- Forum: FiveWin para CA-Clipper
- Topic: COMO QUITO EL VSCROLL DEL LISTBOX??
- Replies: 11
- Views: 4458
Re: COMO QUITO EL VSCROLL DEL LISTBOX??
Yessica,
Puede ser que hayas usado un control propio de Borland en ese diálogo y que no estés cargando la DLL de Borland (BWCC32.DLL) y que por eso falle.
Revisa ese diálogo como texto (show as text en el workshop) y comprueba si algún control empieza por BOR...
Puede ser que hayas usado un control propio de Borland en ese diálogo y que no estés cargando la DLL de Borland (BWCC32.DLL) y que por eso falle.
Revisa ese diálogo como texto (show as text en el workshop) y comprueba si algún control empieza por BOR...
- Wed Aug 27, 2008 7:44 am
- Forum: Utilities / Utilidades
- Topic: Boris Pekic - NG's archive
- Replies: 27
- Views: 103893
Fivewin Classes
... Just a general question. Is anyone thinking about or perhaps want to collaborate on a FiveWin Class for XML-
1. format/write
2. read in as data
3. convert to HTML
4. display as FiveWin tree-view
5. sub-class for ...
1. format/write
2. read in as data
3. convert to HTML
4. display as FiveWin tree-view
5. sub-class for ...