topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
please help FWH setup | Dear Sirs,
I am trying to install FWH, but, faced following error message.
I was trying Alert.prg as it is.
There was "uuid.lib" in test.mak, but, the error message was asking "uuid.lib"
[color=#FF0040:7whh5b9n] error message[/color:7whh5b9n]
D:\fwh\makes\bormake>d:\harbour\bc5\bin\make -ftest.mak
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
echo off
echo d:\harbour\bc5\lib\c0w32.obj + > b32.bc
echo obj\alert.obj obj\one.obj obj\two.obj, + >> b32.bc
echo alert.exe, + >> b32.bc
echo alert.map, + >> b32.bc
echo d:\fwh\lib\FiveH.lib d:\fwh\lib\FiveHC.lib + >> b32.bc
echo d:\harbour\lib\hbrtl.lib + >> b32.bc
echo d:\harbour\lib\hbvm.lib + >> b32.bc
echo d:\harbour\lib\gtgui.lib + >> b32.bc
echo d:\harbour\lib\hblang.lib + >> b32.bc
echo d:\harbour\lib\hbmacro.lib + >> b32.bc
echo d:\harbour\lib\hbrdd.lib + >> b32.bc
echo d:\harbour\lib\rddntx.lib + >> b32.bc
echo d:\harbour\lib\rddcdx.lib + >> b32.bc
echo d:\harbour\lib\rddfpt.lib + >> b32.bc
echo d:\harbour\lib\hbsix.lib + >> b32.bc
echo d:\harbour\lib\hbdebug.lib + >> b32.bc
echo d:\harbour\lib\hbcommon.lib + >> b32.bc
echo d:\harbour\lib\hbpp.lib + >> b32.bc
echo d:\harbour\lib\hbwin.lib + >> b32.bc
echo d:\harbour\lib\hbcpage.lib + >> b32.bc
echo d:\harbour\lib\hbct.lib + >> b32.bc
rem Uncomment these two lines to use Advantage RDD
rem echo d:\harbour\lib\rddads.lib + >> b32.bc
rem echo d:\harbour\lib\Ace32.lib + >> b32.bc
echo d:\harbour\bc5\lib\cw32.lib + >> b32.bc
echo d:\harbour\bc5\lib\import32.lib + >> b32.bc
echo d:\harbour\bc5\lib\uuid.lib + >> b32.bc <---------------------------
echo d:\harbour\bc5\lib\psdk\odbc32.lib + >> b32.bc
echo d:\harbour\bc5\lib\psdk\nddeapi.lib + >> b32.bc
echo d:\harbour\bc5\lib\psdk\iphlpapi.lib + >> b32.bc
echo d:\harbour\bc5\lib\psdk\msimg32.lib + >> b32.bc
echo d:\harbour\bc5\lib\psdk\rasapi32.lib, >> b32.bc
IF EXIST Alert.res echo Alert.res >> b32.bc
d:\harbour\bc5\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Fatal: Unable to open file 'UUID.LIB'
** error 2 ** deleting Alert.exe
[color=#FF0040:7whh5b9n] Test.mak[/color:7whh5b9n]
#Borland make sample, (c) FiveTech Software 2005-2009
HBDIR=d:\harbour
BCDIR=d:\harbour\bc5
FWDIR=d:\fwh
#change these paths as needed
.path.OBJ = .\obj
.path.PRG = .\
.path.CH = $(FWDIR)\include;$(HBDIR)\include;$(BCDIR)\include
.path.C = .\c
.path.rc = .\rc
#important: Use Uppercase for filenames extensions, in the next two rules!
PRG = \
alert.PRG \
one.PRG
C = \
two.C
PROJECT : Alert.exe
Alert.exe : $(PRG:.PRG=.OBJ) $(C:.C=.OBJ) Alert.res
echo off
echo $(BCDIR)\lib\c0w32.obj + > b32.bc
echo obj\alert.obj obj\one.obj obj\two.obj, + >> b32.bc
echo alert.exe, + >> b32.bc
echo alert.map, + >> b32.bc
echo $(FWDIR)\lib\FiveH.lib $(FWDIR)\lib\FiveHC.lib + >> b32.bc
echo $(HBDIR)\lib\hbrtl.lib + >> b32.bc
echo $(HBDIR)\lib\hbvm.lib + >> b32.bc
echo $(HBDIR)\lib\gtgui.lib + >> b32.bc
echo $(HBDIR)\lib\hblang.lib + >> b32.bc
echo $(HBDIR)\lib\hbmacro.lib + >> b32.bc
echo $(HBDIR)\lib\hbrdd.lib + >> b32.bc
echo $(HBDIR)\lib\rddntx.lib + >> b32.bc
echo $(HBDIR)\lib\rddcdx.lib + >> b32.bc
echo $(HBDIR)\lib\rddfpt.lib + >> b32.bc
echo $(HBDIR)\lib\hbsix.lib + >> b32.bc
echo $(HBDIR)\lib\hbdebug.lib + >> b32.bc
echo $(HBDIR)\lib\hbcommon.lib + >> b32.bc
echo $(HBDIR)\lib\hbpp.lib + >> b32.bc
echo $(HBDIR)\lib\hbwin.lib + >> b32.bc
echo $(HBDIR)\lib\hbcpage.lib + >> b32.bc
echo $(HBDIR)\lib\hbct.lib + >> b32.bc
rem Uncomment these two lines to use Advantage RDD
rem echo $(HBDIR)\lib\rddads.lib + >> b32.bc
rem echo $(HBDIR)\lib\Ace32.lib + >> b32.bc
echo $(BCDIR)\lib\cw32.lib + >> b32.bc
echo $(BCDIR)\lib\import32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\odbc32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\nddeapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\iphlpapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\msimg32.lib + >> b32.bc
echo $(BCDIR)\lib\uuid.lib + >> b32.bc <<---------------------------------------uuid.lib already inserted.
echo $(BCDIR)\lib\psdk\rasapi32.lib, >> b32.bc
IF EXIST Alert.res echo Alert.res >> b32.bc
$(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
del b32.bc
.PRG.OBJ:
$(HBDIR)\bin\harbour $< /L /N /W /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include
$(BCDIR)\bin\bcc32 -c -tWM -I$(HBDIR)\include -oobj\$& obj\$&.c
.C.OBJ:
echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp
echo -I$(HBDIR)\include;$(FWDIR)\include >> tmp
$(BCDIR)\bin\bcc32 -oobj\$& @tmp $&.c
del tmp
Alert.res : Alert.rc
$(BCDIR)\bin\brc32.exe -r Alert.rc |
please help FWH setup | Kim,
Please copy uuid.lib to the folder where you are building your EXE |
please help FWH setup | Kim
I believe you need to modify or create the file Bcc32.Cfg that is in your Borland\Bccxxx\Bin folder .. you will need to modify the path for your installation.
Rick Lipkin
Bcc32.Cfg
[code=fw:164kye4h]<div class="fw" id="{CB}" style="font-family: monospace;"><br />-I<span style="color: #ff0000;">"C:<span style="color: #000000;">\B</span>orland<span style="color: #000000;">\B</span>CC582<span style="color: #000000;">\i</span>nclude"</span><br />-L<span style="color: #ff0000;">"C:<span style="color: #000000;">\B</span>orland<span style="color: #000000;">\B</span>CC582<span style="color: #000000;">\l</span>ib;C:<span style="color: #000000;">\B</span>orland<span style="color: #000000;">\B</span>CC582<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\p</span>sdk"</span><br />-lj<span style="color: #ff0000;">"C:<span style="color: #000000;">\B</span>orland<span style="color: #000000;">\B</span>CC582<span style="color: #000000;">\l</span>ib;C:<span style="color: #000000;">\B</span>orland<span style="color: #000000;">\B</span>CC82<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\p</span>sdk"</span><br /> </div>[/code:164kye4h] |
please help FWH setup | Please modify your make file to use these libs:
echo $(BCDIR)\lib\cw32.lib + >> b32.bc
echo $(BCDIR)\lib\uuid.lib + >> b32.bc
echo $(BCDIR)\lib\import32.lib + >> b32.bc
echo $(BCDIR)\lib\ws2_32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\odbc32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\nddeapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\iphlpapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\msimg32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\psapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\rasapi32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\gdiplus.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\shell32.lib, >> b32.bc |
please help FWH setup | And these from Harbour:
echo $(HBDIR)\hbwin.lib + >> b32.bc
echo $(HBDIR)\gtgui.lib + >> b32.bc
echo $(HBDIR)\hbrtl.lib + >> b32.bc
echo $(HBDIR)\hbvm.lib + >> b32.bc
echo $(HBDIR)\hblang.lib + >> b32.bc
echo $(HBDIR)\hbmacro.lib + >> b32.bc
echo $(HBDIR)\hbrdd.lib + >> b32.bc
echo $(HBDIR)\rddntx.lib + >> b32.bc
echo $(HBDIR)\rddcdx.lib + >> b32.bc
echo $(HBDIR)\rddfpt.lib + >> b32.bc
echo $(HBDIR)\hbsix.lib + >> b32.bc
echo $(HBDIR)\hbdebug.lib + >> b32.bc
echo $(HBDIR)\hbcommon.lib + >> b32.bc
echo $(HBDIR)\hbpp.lib + >> b32.bc
echo $(HBDIR)\hbcpage.lib + >> b32.bc
echo $(HBDIR)\hbcplr.lib + >> b32.bc
echo $(HBDIR)\hbct.lib + >> b32.bc
echo $(HBDIR)\hbpcre.lib + >> b32.bc
echo $(HBDIR)\xhb.lib + >> b32.bc
echo $(HBDIR)\hbziparc.lib + >> b32.bc
echo $(HBDIR)\hbmzip.lib + >> b32.bc
echo $(HBDIR)\hbzlib.lib + >> b32.bc
echo $(HBDIR)\minizip.lib + >> b32.bc
echo $(HBDIR)\png.lib + >> b32.bc
echo $(HBDIR)\hbusrrdd.lib + >> b32.bc |
please help FWH setup | <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Antonio Linares,Rick Lipkin,..!
Thanks so much for your advices,..
After correcting bcc32.cfg and ilink32.cfg ,
The "uuid.lib" matters was solved..
[color=#FF0040:16f1basm]But, another error happened, on next step.[/color:16f1basm]
d:\harbour\bc5\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external '_HB_FUN_CTOT' referenced from D:\FWH\LIB\FIVEH.LIB|VALBLANK
Error: Unresolved external '_HB_FUN_HB_COMPILEFROMBUF' referenced from D:\FWH\LIB\FIVEH.LIB|HARBOUR
Error: Unresolved external '_HB_FUN_TOLEAUTO' referenced from D:\FWH\LIB\FIVEH.LIB|HARBOUR
Error: Unresolved external '_HB_FUN_HHASKEY' referenced from D:\FWH\LIB\FIVEH.LIB|FWDECODE
Error: Unresolved external '_HB_FUN_ANSITOWIDE' referenced from D:\FWH\LIB\FIVEH.LIB|TGET
Error: Unresolved external 'GdipFree' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipCloneImage' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipAlloc' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipDisposeImage' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipDeleteGraphics' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipCreateBitmapFromStreamICM' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipCreateBitmapFromStream' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipGetImageWidth' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipGetImageHeight' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipCreateBitmapFromScan0' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipGetImagePixelFormat' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipBitmapLockBits' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipBitmapUnlockBits' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipGetImageGraphicsContext' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipDrawImageRectI' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipCloneBrush' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipDeleteBrush' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipCreateSolidFill' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipFillRectangleI' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipSaveImageToFile' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external '_HB_FUN_TTOS' referenced from D:\FWH\LIB\FIVEH.LIB|PRV2PDF
Error: Unresolved external '_HB_FUN_DATETIME' referenced from D:\FWH\LIB\FIVEH.LIB|PRV2PDF
Error: Unresolved external '_HB_FUN___BREAKBLOCK' referenced from D:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_GETACTIVEOBJECT' referenced from D:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_CREATEOBJECT' referenced from D:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_GETFILESINZIP' referenced from D:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_UNZIPOPEN' referenced from D:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_UNZIPFILEFIRST' referenced from D:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_UNZIPFILEINFO' referenced from D:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_UNZIPFILEOPEN' referenced from D:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_UNZIPFILEREAD' referenced from D:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_UNZIPFILECLOSE' referenced from D:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_UNZIPFILENEXT' referenced from D:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_UNZIPCLOSE' referenced from D:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external 'SHCreateDirectoryExA' referenced from D:\FWH\LIB\FIVEHC.LIB|MKDIR
Error: Unresolved external '_HB_FUN_HSETCASEMATCH' referenced from D:\FWH\LIB\FIVEH.LIB|TRECSET
Error: Unresolved external '_HB_FUN_HGETCASEMATCH' referenced from D:\FWH\LIB\FIVEH.LIB|TRECSET
Error: Unresolved external '_HB_FUN_STRTOHEX' referenced from D:\FWH\LIB\FIVEH.LIB|TRECSET
Error: Unresolved external '_HB_FUN_HB_ENUMINDEX' referenced from D:\FWH\LIB\FIVEH.LIB|DATAROW
Error: Unresolved external '_HB_FUN_HB_FUNCPTR' referenced from D:\FWH\LIB\FIVEH.LIB|ADOFUNCS
Error: Unresolved external '_HB_FUN_HB_EXEC' referenced from D:\FWH\LIB\FIVEH.LIB|ADOFUNCS
Error: Unresolved external '_HB_FUN_HEVAL' referenced from D:\FWH\LIB\FIVEH.LIB|XBROWSE
Error: Unresolved external '_HB_FUN_HB_DECODE' referenced from D:\FWH\LIB\FIVEH.LIB|XBROWSE
Error: Unresolved external '_HB_FUN_WILDMATCH' referenced from D:\FWH\LIB\FIVEH.LIB|XBROWSE
Error: Unresolved external '_HB_FUN_NUMTOHEX' referenced from D:\FWH\LIB\FIVEH.LIB|XBROWSE
Error: Unresolved external '_HB_FUN_HEXTOSTR' referenced from D:\FWH\LIB\FIVEH.LIB|XBROWSE
Error: Unresolved external 'GdipCreateHBITMAPFromBitmap' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipSetSmoothingMode' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipDrawLine' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipFillRectangle' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipDrawRectangle' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipFillEllipse' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipDrawEllipse' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipDrawArc' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipDrawPath' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipCreateFromHDC' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipSetPageUnit' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipDrawImageI' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipSetPenWidth' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipSetPenMode' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipSetPenColor' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipDeletePen' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipCreatePen1' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipSetPenLineCap197819' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdiplusStartup' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdiplusShutdown' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipAddPathLineI' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipAddPathRectangleI' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipAddPathArcI' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipClosePathFigure' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipDeletePath' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipCreatePath' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipCreateBitmapFromHBITMAP' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipImageRotateFlip' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipBitmapGetPixel' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipBitmapSetPixel' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipGetImageThumbnail' referenced from D:\FWH\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external '_HB_FUN_NOTIFY' referenced from D:\FWH\LIB\FIVEH.LIB|WINDOW
** error 2 ** deleting Alert.exe
D:\fwh\makes\bormake>
What shall I do?
Thanks always for supports from unknown neighbors!! |
please help FWH setup | Thanks so much!, Antonio Linares...
Fivewin starts working...
I am able to exercise your advice on KTOpenAPI.dll connection...
<!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Thanks !! |
please help FWH setup | Very good! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
png and buttonbar | But the file png are not supported on buttonbar ?
I have this problem
[img:1q74esyp]https://i.postimg.cc/v8jdfpR3/bu.png[/img:1q74esyp] |
png and buttonbar | Silvio,
I noticed a bad quality using png
[img:1ex8e73i]http://www.pflegeplus.com/Images/Btnbar10.jpg[/img:1ex8e73i]
regards
Uwe <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> |
png and buttonbar | Png file is supported on buttonbar.
But, Mr. Uwe's observation that the quality is very bad is correct. Thanks for pointing out. While we will fix this issue in the next version, we request you to use this workaround for the present.
Add CLAUSE "GDIP" to the definition of buttonbar.
Example:
[code=fw:ck1z46j0]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">64</span>,<span style="color: #000000;">64</span> <span style="color: #000000;">2007</span> GDIP<br /> </div>[/code:ck1z46j0] |
png and buttonbar | thanks |
png and buttonbar | Muchas gracias por el dato <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> |
png files on bmp | I must insert png transparent on a big bmp
can have a sample please |
png files on bmp | Do You want to know just a way how to do it,
or do You need a solution inside Your Application ?
To insert a PNG-File You can use [color=#FF0000:3ab8gtun]Pixelformer[/color:3ab8gtun].
1. Select < File > = < Import > open the [color=#FF0000:3ab8gtun]PNG[/color:3ab8gtun]-File ( be sure, the Background is shown transparent )
2. From the menu < Edit > => < Select all > => again < Edit > => < Copy >
3. Select < File > => < Import > open the [color=#FF0000:3ab8gtun]BMP[/color:3ab8gtun]-File
4. Select < Edit > => < Paste >
The PNG-File is shown on Top of the BMP-File.
5. Select the Move-Tool to adjust the PNG-File
6. Select < File > => < Export > ( to the Format You need )
[img:3ab8gtun]http://www.pflegeplus.com/pictures/insertpng.jpg[/img:3ab8gtun]
Best regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> |
png files on bmp | I must insert and show symbols on my class Tsection YOU can see on a old topic of this week
I need this class to show section of images
and Now I must insert on each images symbols : I wish have png files
[b:1wkznfxs]this in buttonbar[/b:1wkznfxs]
DEFINE BUTTON OF oBar Resource "btn22" tooltip "New symbol" NOBORDER ;
ACTION (oSymbol:=cGetFile( "*.png", "Select a file" ),Inser_Symbol( oSection, oSymbol))
....
[b:1wkznfxs]the function [/b:1wkznfxs]
FUNCTION Inser_Symbol( oSection, cbmpfile )
local oBmpSymbol
if File( cBmpFile )
hDC:= oSection:oBmp:getdc() // on class Tsection I insert a BMP ( with white backgroud) and on Tsection this part is called [b:1wkznfxs]oBmp[/b:1wkznfxs]
define bitmap oBmpSymbol filename cBmpFile
PaintTransparent( hDC, oBmpSymbol:hBitmap, 1, 2 ) //your function found on this forum
oBmpSymbol:bRClicked = { | nRow, nCol | LabelInspect_Img( oBmpSymbol, nRow, nCol ) }
oBmpSymbol:SetFocus()
endif
return nil
but it make error alloc zero
thanks |
png windows 8 | Dejo un enlace donde se pueden bajar este tipo de imágenes estilo windows 8.
<!-- m --><a class="postlink" href="http://icons8.com/">http://icons8.com/</a><!-- m --> |
png windows 8 | Horacio,
gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
podrian subir un ejemplo de xbrowse/mariadb/resource? | Podrían por favor subir un ejmplo (asi sea de un par de lineas) de como hacer para mostrar en un xbrowser creado por RESOURCE usando MARIADB? porque estoy querriendo migrar desde TDolphin y no encuenttro un ejemplo, todos hacen creando el xbrowse desde codigo. gracias |
podrian subir un ejemplo de xbrowse/mariadb/resource? | Please note that XBrowse command syntax is EXACTLY THE SAME whether you use Dolphin Query, TMySql Query, FWH RowSet, ADO RecordSet, DBF alias, TDatabase object, Array, Hash or anything,
If you have created XBrowse using command syntax for one, use the same syntax for any other datasource.
Difference between creating xbrowse from source / resource:
SOURCE:
[code=fw:i5302xi7]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ row, col <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> w,h <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> DATASOURCE <oQry/oRs/<span style="color: #0000ff;">Alias</span>/Array/...... > ;<br /> COLUMNS ..<br /> ...<br /><br /> </div>[/code:i5302xi7]
RESOURCE:
[code=fw:i5302xi7]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">ID</span> <id> <span style="color: #0000ff;">OF</span> oDlg ;<br /> DATASOURCE <oQry/oRs/<span style="color: #0000ff;">Alias</span>/Array/...... > ;<br /> COLUMNS ..<br /> ...<br /> </div>[/code:i5302xi7] |
podrian subir un ejemplo de xbrowse/mariadb/resource? | Hello
This XBROWSE / DATASOURCE doesn't work for Eagle1
Please advise |
poll: version of Harbour Fivewin and Linker | Hello,
I think it will be very interesting and useful for Fivetech to know what are the versions are used.
In my case:
Harbour 3.1.0
FW 11.11
Borland C++ 5.82
Thanks. |
poll: version of Harbour Fivewin and Linker | Ukservice,
Maybe everybody should add his/her versions in his/her signature, like I always do.
So everybody always knows everything. |
poll: version of Harbour Fivewin and Linker | Thank you Michel.
But also I feel that not many users are using latest FWH. |
poll: version of Harbour Fivewin and Linker | Otto ... great idea ... and I will make that addition. It makes it helpful for people to see that when viewing suggestions.
For production work I use:
FWH 11.09 with xHarbour/xCC.
I am transitioning to FWH 11.11 with Harbour 3.0 stable release and MSVC 2010. I have a few issues yet to workout and then it will be my normal build tool. |
poll: version of Harbour Fivewin and Linker | FWxH 8.02 xHarbour 1.10 BCC 5.5
Wanting to update to newest FW version... |
poll: version of Harbour Fivewin and Linker | Hello
i'm moving to MSVC, already using Harbour |
poll: version of Harbour Fivewin and Linker | using fwh 0809 (aug 2009)
Borland bcc55
Borland workshop. |
poll: version of Harbour Fivewin and Linker | harbour 3.0
fwh 1104
Borland bcc55
Borland workshop
Shuming Wang |
poll: version of Harbour Fivewin and Linker | Harbour 3 y Bcc63
Testing
Harbour 3 Mingw
Harbour 3 MVC2010 |
poll: version of Harbour Fivewin and Linker | Hola
Fwh June 2011
Harbour 3.1
BCC 6.3
I will try MSVC with Fwh 122012 -
Best regards. |
poner color a control GET con campo MEMO? (SOLUCIONADO) | Amigos del foro:
En la versión FWH0810 con el siguiente código le pongo color a un control GET
con campo MEMO
[code=fw:14zk8v08]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> aGets<span style="color: #000000;">[</span><span style="color: #000000;">13</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bGotFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> := <span style="color: #000000;">{</span>|o| o:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span>RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span>,RGB<span style="color: #000000;">(</span><span style="color: #000000;">197</span>,<span style="color: #000000;">205</span>,<span style="color: #000000;">255</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> aGets<span style="color: #000000;">[</span><span style="color: #000000;">13</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bLostFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> := <span style="color: #000000;">{</span>|o| o:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span>RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span>,RGB<span style="color: #000000;">(</span><span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">255</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> </div>[/code:14zk8v08]
Pero en la versión FWH1412 ya no funciona, cómo puedo ponerle color
al control GET con campo MEMO??
Saludos |
poner color a control GET con campo MEMO? (SOLUCIONADO) | Olá Amigo,
Tente:
redefine Get aoGetsBem[04] var aDadosBem[04] MEMO id 204 of oFld:aDialogs[6] when( !lSai_0012 .and. lEditaBem ) update COLORS nRgb(0,0,220),nRgb(253,252,213)
aoGetsBem[04]:bLostFocus := { || aoGetsBem[04]:SetColor( CLR_BLACK, CLR_WHITE) }
aoGetsBem[04]:bGotFocus := { || aoGetsBem[04]:SetColor( CLR_BLACK, nRGB( 255,255,45 )), aoGetsBem[04]:setsel(0,0), aoGetsBas[12]:setpos(0) }
aoGetsBem[04]:cToolTip := 'Informe a Descrição do BEM (Ex: Imóvel na Rua São Paulo, 23 - Bairro Centro)'
Um abraço,
Alexandre Pereira |
poner color a control GET con campo MEMO? (SOLUCIONADO) | Alexandre:
Muito obrigado, tudo bem!
Um abraço |
poner un meter en un dbeval() | Hola foro,
Pues eso, como puedo poner un meter dentro de un dbeval(), asi tengo mi funcion
(oDPac)->( DbEval( {|| IF(!Empty(Field->C_Grade),;
IF(nPos:=Ascan(aGrade,Field->C_Grade)==0,;
AADD(aGrade,Field->C_Grade),),) } ) )
lo unico que quiero es llevar el procentajde de registros leidos y en cual registro va, ya que es una base muy grande
gracias
Paco |
poner un meter en un dbeval() | Francisco,
Puedes usar la función MsgMeter() de FWH, revisa samples\TestMmt.prg
El código fuente de MsgMeter() está en source\function\MsgMeter.prg |
poner un meter en un dbeval() | gracias antonio, le echare el vistazo
salu2
paco |
pop up Outlook send email window | Any Outlook user here knows how to popup the Outlook send email dialog programmatically ?
thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
pop up Outlook send email window | Antonio,
Can this code help you?[code=fw:36twcdmr]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">TRY</span><br /> GetActiveObject<span style="color: #000000;">(</span><span style="color: #ff0000;">"Outlook.Application"</span><span style="color: #000000;">)</span><br />CATCH<br /> ShellExecute<span style="color: #000000;">(</span>,<span style="color: #ff0000;">"Open"</span>,<span style="color: #ff0000;">"Outlook"</span>,,,<span style="color: #000000;">3</span><span style="color: #000000;">)</span><br />END<br /><span style="color: #00C800;">TRY</span><br /> oOutLook := TOleAuto<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Outlook.Application"</span><span style="color: #000000;">)</span><br /> oNameSpace := oOutlook:<span style="color: #000000;">GetNameSpace</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"MAPI"</span><span style="color: #000000;">)</span><br /> EmSend := .T.<br />CATCH<br /> EmSend := .F.<br />END<br /><br /><span style="color: #00C800;">IF</span> EmSend<br /><br /> <span style="color: #00C800;">TRY</span><br /> oMail := oOutLook:<span style="color: #000000;">CreateItem</span><span style="color: #000000;">(</span>olMailItem<span style="color: #000000;">)</span><br /> EmSend := .T.<br /> CATCH<br /> <span style="color: #00C800;">TRY</span><br /> oMail := oOutLook:<span style="color: #000000;">CreateItem</span><span style="color: #000000;">(</span>olMailItem<span style="color: #000000;">)</span><br /> EmSend := .T.<br /> CATCH<br /> EmSend := .F.<br /> END<br /> END<br /><br /> <span style="color: #00C800;">IF</span> EmSend<br /> oMail:<span style="color: #0000ff;">Subject</span> := cSubJect<br /> oMail:<span style="color: #000000;">Body</span> := FmText<br /> dEmail := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">FOR</span> i=<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">(</span>cEmail<span style="color: #000000;">)</span> <span style="color: #B900B9;">// cEmail = list of e-mail addresses in one variable</span><br /> SplitsEm := ALLTRIM<span style="color: #000000;">(</span>cEmail<span style="color: #000000;">[</span>i<span style="color: #000000;">]</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> <span style="color: #00C800;">AT</span><span style="color: #000000;">(</span><span style="color: #ff0000;">";"</span>,SplitsEm<span style="color: #000000;">)</span> <> <span style="color: #000000;">0</span><br /> EmSplits := ALLTRIM<span style="color: #000000;">(</span><span style="color: #0000ff;">LEFT</span><span style="color: #000000;">(</span>SplitsEm,<span style="color: #00C800;">AT</span><span style="color: #000000;">(</span><span style="color: #ff0000;">";"</span>,SplitsEm<span style="color: #000000;">)</span><span style="color: #000000;">-1</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> Aadd<span style="color: #000000;">(</span>dEmail,EmSplits<span style="color: #000000;">)</span><br /> SplitsEm := ALLTRIM<span style="color: #000000;">(</span><span style="color: #0000ff;">RIGHT</span><span style="color: #000000;">(</span>SplitsEm,LEN<span style="color: #000000;">(</span>SplitsEm<span style="color: #000000;">)</span>-<span style="color: #00C800;">AT</span><span style="color: #000000;">(</span><span style="color: #ff0000;">";"</span>,SplitsEm<span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDDO</span><br /> <span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">(</span>SplitsEm<span style="color: #000000;">)</span><br /> Aadd<span style="color: #000000;">(</span>dEmail,SplitsEm<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">NEXT</span><br /> <span style="color: #00C800;">TRY</span><br /> <span style="color: #00C800;">FOR</span> i=<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">(</span>dEmail<span style="color: #000000;">)</span><br /> oMail:<span style="color: #000000;">Recipients</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span>dEmail<span style="color: #000000;">[</span>i<span style="color: #000000;">]</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">NEXT</span><br /> CATCH<br /> MsgAlert<span style="color: #000000;">(</span><span style="color: #ff0000;">"An error occured in one of the e-mail addresses !!!"</span>+CHR<span style="color: #000000;">(</span><span style="color: #000000;">13</span><span style="color: #000000;">)</span>+CHR<span style="color: #000000;">(</span><span style="color: #000000;">13</span><span style="color: #000000;">)</span>+<span style="color: #ff0000;">"Check and try again."</span>,<span style="color: #ff0000;">"Be careful"</span><span style="color: #000000;">)</span><br /> EmSend := .F.<br /> EmAlert := .F.<br /> END<br /> <span style="color: #00C800;">IF</span> EmSend<br /> <span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">(</span>TabCC<span style="color: #000000;">)</span> ; oMail:<span style="color: #000000;">CC</span> := TabCC ; <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">(</span>TabBCC<span style="color: #000000;">)</span> ; oMail:<span style="color: #000000;">BCC</span> := TabBCC ; <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">TRY</span><br /> <span style="color: #00C800;">FOR</span> i=<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">(</span>TabBijl<span style="color: #000000;">)</span><br /> oMail:<span style="color: #000000;">Attachments</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span>TabBijl<span style="color: #000000;">[</span>i<span style="color: #000000;">]</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">NEXT</span><br /> EmSend := .T.<br /> CATCH<br /> <span style="color: #00C800;">TRY</span><br /> <span style="color: #00C800;">FOR</span> i=<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">(</span>TabBijl<span style="color: #000000;">)</span><br /> oMail:<span style="color: #000000;">Attachments</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span>TabBijl<span style="color: #000000;">[</span>i<span style="color: #000000;">]</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">NEXT</span><br /> EmSend := .T.<br /> CATCH<br /> EmSend := .F.<br /> END<br /> END<br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> <span style="color: #00C800;">IF</span> EmSend<br /> oMail:<span style="color: #000000;">Save</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> !cRchtStr .AND. US->UOUTLSHW<br /> <span style="color: #00C800;">TRY</span><br /> oMail:<span style="color: #00C800;">DisPlay</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// to display a e-mail in Outlook before it is send.</span><br /> CATCH<br /> <span style="color: #00C800;">TRY</span><br /> oMail:<span style="color: #00C800;">Display</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> CATCH<br /> EmSend := .F.<br /> END<br /> END<br /> <span style="color: #00C800;">ELSE</span><br /> <span style="color: #00C800;">TRY</span><br /> oMail:<span style="color: #000000;">Send</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> CATCH<br /> <span style="color: #00C800;">TRY</span><br /> oMail:<span style="color: #000000;">Send</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> CATCH<br /> EmSend := .F.<br /> END<br /> END<br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">ENDIF</span></div>[/code:36twcdmr] |
pop up Outlook send email window | Not sure exactly what you want but this is a sample send mail routine.
[code=fw:2574lkxf]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> Email<span style="color: #000000;">(</span> cTo, aFiles <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oOutlook, oEmail<br /> <span style="color: #00C800;">local</span> oMyAttachments, nNoAttachments<br /> <span style="color: #00C800;">local</span> cSubject<br /> <span style="color: #00C800;">local</span> cBody<br /> <span style="color: #00C800;">local</span> cHtml<br /> <span style="color: #00C800;">local</span> cTextColor := <span style="color: #ff0000;">"004000"</span><br /> <span style="color: #00C800;">local</span> cTextName := <span style="color: #ff0000;">"Times New Roman"</span><br /> <span style="color: #00C800;">if</span> aFiles == <span style="color: #00C800;">nil</span><br /> aFiles := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">endif</span><br /> oOutlook = CREATEOBJECT<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Outlook.Application"</span> <span style="color: #000000;">)</span><br /> oEMail = oOutlook:<span style="color: #000000;">CreateItem</span><span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// #define olMailItem 0</span><br /> <span style="color: #00C800;">If</span> valtype<span style="color: #000000;">(</span> oEMail <span style="color: #000000;">)</span> != <span style="color: #ff0000;">"O"</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"There is no active inspector."</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> <span style="color: #00C800;">endif</span><br /> oEMail:<span style="color: #000000;">Recipients</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> cTo <span style="color: #000000;">)</span><br /> oEmail:<span style="color: #000000;">BodyFormat</span> := <span style="color: #000000;">2</span> <span style="color: #B900B9;">// olFormatHTML : 2: olFormatPlain : 1: olFormatRichText : 3</span><br /> cSubject := <span style="color: #ff0000;">'Test Document'</span><br /><br /> <span style="color: #B900B9;">// Attachments</span><br /> <span style="color: #00C800;">for</span> nCounter := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">(</span> aFiles <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> file<span style="color: #000000;">(</span> aFiles<span style="color: #000000;">[</span> nCounter <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">// oMail:Attachments:Add( cFilePath+cFileName, olByValue, 1, cFileName )</span><br /> oEMail:<span style="color: #000000;">Attachments</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> aFiles<span style="color: #000000;">[</span> nCounter <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">next</span><br /><br /> cHtml := <span style="color: #000000;">[</span><html lang=<span style="color: #ff0000;">"en"</span>><span style="color: #000000;">]</span>+CRLF<br /> cHtml += <span style="color: #000000;">[</span><head><span style="color: #000000;">]</span>+CRLF<br /> cHtml += <span style="color: #000000;">[</span><meta http-equiv=<span style="color: #ff0000;">"Content-Language"</span> content=<span style="color: #ff0000;">"en-us"</span>><span style="color: #000000;">]</span>+CRLF<br /> cHtml += <span style="color: #000000;">[</span><meta http-equiv=<span style="color: #ff0000;">"Content-Type"</span> content=<span style="color: #ff0000;">"text/html; charset=windows-1252"</span>><span style="color: #000000;">]</span>+CRLF<br /> cHtml += <span style="color: #000000;">[</span><title><span style="color: #000000;">]</span>+<span style="color: #ff0000;">'Test Sending Email'</span>+<span style="color: #000000;">[</span></title><span style="color: #000000;">]</span>+CRLF<br /> cHtml += <span style="color: #000000;">[</span></head><span style="color: #000000;">]</span>+CRLF<br /> cHtml += <span style="color: #000000;">[</span><body><span style="color: #000000;">]</span>+CRLF<br /> cHtml += <span style="color: #000000;">[</span><basefont face=<span style="color: #ff0000;">"]+cTextName+[,arial, verdana, courier"</span> <span style="color: #0000ff;">size</span>=<span style="color: #ff0000;">"2"</span> <span style="color: #0000ff;">color</span>=<span style="color: #ff0000;">"#]+cTextColor+["</span>><span style="color: #000000;">]</span>+CRLF<br /> cHtml += <span style="color: #000000;">[</span><br><span style="color: #000000;">]</span>+CRLF<br /><br /> cHtml += <span style="color: #000000;">[</span>All body goes here<span style="color: #000000;">]</span>+CRLF<br /><br /> cHtml += <span style="color: #000000;">[</span><br> </body><span style="color: #000000;">]</span>+CRLF<br /> cHtml += <span style="color: #000000;">[</span></html><span style="color: #000000;">]</span><br /><br /> <span style="color: #B900B9;">// oMail:HTMLBody = MEMOREAD( "test.htm" )</span><br /> oEMail:<span style="color: #000000;">HTMLBody</span> := cHtml<br /> oEMail:<span style="color: #00C800;">Display</span> = .T.<br /> oEMail := <span style="color: #00C800;">nil</span><br /> oOutlook := <span style="color: #00C800;">nil</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:2574lkxf] |
pop up Outlook send email window | If Outlook is installed, and I use this MAPI function, the email dialog from Outlook pops up for editing and final Send:
FUNCTION SendMAPIMail2( MailTo, cSndFile, cText, cSubj )
LOCAL oMail
DEFINE MAIL oMail ;
SUBJECT cSubj ;
TEXT cText ;
FILES cSndFile, cSndFile ;
FROM USER ;
TO MailTo
ACTIVATE MAIL oMail
RETURN( .t. ) |
pop up Outlook send email window | Guys,
But now another question.
How do you get received e-mails into your FWH-application? |
pop up Outlook send email window | Thank you so much! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
For now, I think this is what I was looking for:
// oMail:Save() maybe
oMail:Display() |
pop up Outlook send email window | <!-- m --><a class="postlink" href="http://www.afterlogic.com/mailbee/objects">http://www.afterlogic.com/mailbee/objects</a><!-- m -->
I use it since a long time |
pop up Outlook send email window | Uwe,
many thanks for the info.
You all know that I don't enjoy using third party products beside FWH, if possible <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
pop up Outlook send email window | [url:1thlz4hz]http://msdn.microsoft.com/en-us/library/ff861853.aspx[/url:1thlz4hz] |
pop up Outlook send email window | I always get an error here:
oMail:Recipients:Add( "[email protected]" )
but
oMail:Subject = "test"
works fine
Any hints ? thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
pop up Outlook send email window | Antonio,
that's strange. It looks like the corrent syntax:
[url:3s1uujbz]http://msdn.microsoft.com/en-us/library/office/ff866751(v=office.15).aspx[/url:3s1uujbz]
EMG |
pop up Outlook send email window | Enrico,
Could you try it there using Harbour ? |
pop up Outlook send email window | Antonio,
yes, I get the same error with both Harbour and xHarbour. <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( -->
EMG |
pop up Outlook send email window | <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( -->
Any other user could confirm this ?
Thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
pop up Outlook send email window | Hi Antonio
This works fine with Harbour
[code=fw:1zcw3dtr]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">function</span> fnEmail<span style="color: #000000;">(</span>cTo,cSentBy,cEmailHeader,cEmailNotes,cPdf<span style="color: #000000;">)</span><br />oOutLook := TOleAuto<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Outlook.Application"</span><span style="color: #000000;">)</span><br />oMailItem := oOutLook:<span style="color: #000000;">Invoke</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"CreateItem"</span>, <span style="color: #000000;">0</span><span style="color: #000000;">)</span> <br />oMailitem:<span style="color: #0000ff;">to</span>:=cTo<br />oMailItem:<span style="color: #000000;">Recipients</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"[email protected]"</span> <span style="color: #000000;">)</span><br />oMailitem:<span style="color: #000000;">CC</span>:= cSentBy<br />oMailItem:<span style="color: #0000ff;">Subject</span> := cEmailHeader<br />oMailItem:<span style="color: #000000;">Body</span> := cEmailNotes<br /><span style="color: #00C800;">if</span> ! empty<span style="color: #000000;">(</span>cPdf<span style="color: #000000;">)</span><br /> oMailItem:<span style="color: #000000;">Attachments</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span>cPdf<span style="color: #000000;">)</span><br /><span style="color: #00C800;">endif</span><br />oMailItem:<span style="color: #00C800;">display</span><span style="color: #000000;">(</span>.T.<span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span><span style="color: #000000;">(</span><span style="color: #00C800;">nil</span><span style="color: #000000;">)</span><br /> </div>[/code:1zcw3dtr]
cheers
Colin |
pop up Outlook send email window | Colin,
Thanks for the code.
Could you please test it to check if it does not error there ?
many thanks |
pop up Outlook send email window | It could be great if we could do this with Harbour but it seems as it is not supported:
[url:bh5qz51f]http://zeering.com/LoadAnswers.aspx?q=Generate-new-message-in-Outlook-and-display-as-modal[/url:bh5qz51f] |
pop up Outlook send email window | Ok, the recipients error it may be related to the Outlook used version <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
So it is not a Harbour issue!
good <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) --> |
pop up msg***() | -Clipper53, blinker4, windowsxp
Probleme sur windows terminal server 2003 le logiciel fontionne mais aucun popup n'apparait exemple : msginfo(), msgyesno() ect.
avez-vous une solution
merci pour votre aide |
pop up msg***() | Les messages n'apparaissent plus (msginfo, msgalert etc.)
je travaille avec la version fw7.1
le logiciel fonction avec xp mais non avec window terminal server 2003 (ca fonctionnait avant) |
popolate a combobox | I have an archive dbf with two character fields:
GEMATERIA 40 CR
GEPCLAVE 45 CR
I use this for a tree selection for categories and subcategories :
[img:cx32bk18]http://www.iispascalcomiforti.it/wp-content/uploads/2016/12/cate.jpg[/img:cx32bk18]
Now I wish create two combobox the first must show only the main category field (gemateria) and the second the subcategories of the main category
How I can make it ?
I tried this test ( but it is wong because I not Know how reload the subcategories of the category selected)
[code=fw:cx32bk18]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><br /><span style="color: #00C800;">Function</span> Test_combo<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> aLins := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">Local</span> aMars := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">Local</span> oDlgCombo,oMar,oLin<br /><br /><br /> <span style="color: #00C800;">Local</span> nBottom := <span style="color: #000000;">14.2</span><br /> <span style="color: #00C800;">Local</span> nRight := <span style="color: #000000;">55</span><br /> <span style="color: #00C800;">Local</span> nWidth := <span style="color: #0000ff;">Max</span><span style="color: #000000;">(</span> nRight * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> nHeight := nBottom * DLG_CHARPIX_H<br /><br /> AAdd<span style="color: #000000;">(</span>aLins,<span style="color: #ff0000;">"<Tutte>"</span><span style="color: #000000;">)</span><br /> AAdd<span style="color: #000000;">(</span>aMars,<span style="color: #ff0000;">"<Tutte>"</span><span style="color: #000000;">)</span><br /><br /><br /> USE GRUENT <span style="color: #0000ff;">ALIAS</span> GE<br /> <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> UPPER<span style="color: #000000;">(</span>GE->GEMATERIA<span style="color: #000000;">)</span>+UPPER<span style="color: #000000;">(</span>GE->GEPCLAVE<span style="color: #000000;">)</span> TAG GE01 <span style="color: #00C800;">FOR</span> !Deleted<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> UPPER<span style="color: #000000;">(</span>GE->GEMATERIA<span style="color: #000000;">)</span> TAG GE02 <span style="color: #00C800;">FOR</span> <span style="color: #000000;">(</span><span style="color: #000000;">(</span>!DELETED<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> UPPER<span style="color: #000000;">(</span>GE->GEPCLAVE<span style="color: #000000;">)</span> TAG GE03 <span style="color: #00C800;">FOR</span> <span style="color: #000000;">(</span><span style="color: #000000;">(</span>!DELETED<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> GE-><span style="color: #000000;">(</span>DbSetOrder<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /> GE-><span style="color: #000000;">(</span>DbGotop<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> !GE-><span style="color: #000000;">(</span>EoF<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> Rtrim<span style="color: #000000;">(</span>GE->GEPClave<span style="color: #000000;">)</span> == <span style="color: #ff0000;">""</span><br /> <span style="color: #00C800;">IF</span> AScan<span style="color: #000000;">(</span>aLins,GE->GEMATERIA <span style="color: #000000;">)</span>=<span style="color: #000000;">0</span><br /> AAdd<span style="color: #000000;">(</span>aLins,GE->GEMATERIA<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">ELSE</span><br /> AAdd<span style="color: #000000;">(</span>aMars,<span style="color: #000000;">(</span>GE->GEPCLAVE<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /> GE-><span style="color: #000000;">(</span>DbSkip<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDDO</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlgCombo ;<br /> <span style="color: #0000ff;">TITLE</span><span style="color: #ff0000;">"test combo"</span> ;<br /> <span style="color: #0000ff;">SIZE</span> nWidth, nHeight <span style="color: #0000ff;">PIXEL</span> ;<br /> <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">(</span> DS_MODALFRAME, WS_POPUP, WS_CAPTION, <span style="color: #000000;">4</span> <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">12</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Categoria :"</span> <span style="color: #0000ff;">OF</span> oDlgCombo <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">90</span>, <span style="color: #000000;">12</span><br /> @ <span style="color: #000000;">24</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"SottoCategoria :"</span> <span style="color: #0000ff;">OF</span> oDlgCombo <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">90</span>, <span style="color: #000000;">12</span><br /><br /> @ <span style="color: #000000;">10</span>, <span style="color: #000000;">55</span> <span style="color: #0000ff;">COMBOBOX</span> oLin <span style="color: #0000ff;">ITEMS</span> aLins <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">90</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">OF</span> oDlgCombo <span style="color: #0000ff;">PIXEL</span><br /> @ <span style="color: #000000;">22</span>, <span style="color: #000000;">55</span> <span style="color: #0000ff;">COMBOBOX</span> oMar <span style="color: #0000ff;">ITEMS</span> aMars <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">90</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">OF</span> oDlgCombo <span style="color: #0000ff;">PIXEL</span><br /><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlgcombo <span style="color: #0000ff;">CENTERED</span><br /><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:cx32bk18] |
popolate a combobox | RESOLVED !!! |
popup groups en la RibbonBar en FWH 9.12 | Hemos publicado una versión revisada de FWH 9.12 que muestra popup groups cuando estan comprimidos <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[img:1orvjoic]http://img163.imageshack.us/img163/8646/94767405.png[/img:1orvjoic] |
popup groups en la RibbonBar en FWH 9.12 | Sombras arrojadas añadidas en los popup groups <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[img:3pu6d7al]http://img136.imageshack.us/img136/9432/46184288.png[/img:3pu6d7al]
Hemos publicado una nueva revisión de FWH 9.12 con estos cambios |
popup groups in FWH 9.12 RibbonBar | We have published a revised FWH 9.12 that shows popup groups when they get shrinked <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[img:3v0mpd0f]http://img163.imageshack.us/img163/8646/94767405.png[/img:3v0mpd0f] |
popup groups in FWH 9.12 RibbonBar | Hi Antonio,
Compiling with revised 9.12 it gives an error like below.
[code=fw:t17aiu70]<div class="fw" id="{CB}" style="font-family: monospace;">xLINK: <span style="color: #000000;">error</span>: <span style="color: #000000;">Unresolved</span> external symbol <span style="color: #ff0000;">'_TreeView_SetCheckState referenced from Fivehcm.lib(TREEVIEW.obj)'</span>.<br /><br />xLINK: <span style="color: #000000;">error</span>: <span style="color: #000000;">Unresolved</span> external symbol <span style="color: #ff0000;">'_TreeView_GetCheckState referenced from Fivehcm.lib(TREEVIEW.obj)'</span>.</div>[/code:t17aiu70] |
popup groups in FWH 9.12 RibbonBar | Hakan,
We are going to publish a new revised 9.12 in some minutes that should be ok <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
popup groups in FWH 9.12 RibbonBar | Added drop shadows to popup groups <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[img:aqchcv32]http://img136.imageshack.us/img136/9432/46184288.png[/img:aqchcv32]
We have just published a revised 9.12 with these changes |
popup groups in FWH 9.12 RibbonBar | Hello Antonio,
If I click on a button of a popup I get following error.
Best regards,
Otto
[code=fw:t85iozpg]<div class="fw" id="{CB}" style="font-family: monospace;">Lines <span style="color: #000000;">205</span>, Functions/Procedures <span style="color: #000000;">5</span><br />Generating C source output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'ribbon2.c'</span>...<br />Done.<br />Borland C++ <span style="color: #000000;">5.5</span><span style="color: #000000;">.1</span> <span style="color: #00C800;">for</span> Win32 Copyright <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> <span style="color: #000000;">1993</span>, <span style="color: #000000;">2000</span> Borland<br />C:\FWH\samples\ribbon2.c:<br /><span style="color: #000000;">Turbo</span> Incremental Link <span style="color: #000000;">5.00</span> Copyright <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> <span style="color: #000000;">1997</span>, <span style="color: #000000;">2000</span> Borland<br />* Application successfully built *<br /><br />Unrecoverable error <span style="color: #000000;">9003</span>: <span style="color: #000000;">Too</span> many recursive error handler calls<br />Called <span style="color: #0000ff;">from</span> END<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br />Called <span style="color: #0000ff;">from</span> POPUPGROUP<span style="color: #000000;">(</span><span style="color: #000000;">807</span><span style="color: #000000;">)</span><br />Called <span style="color: #0000ff;">from</span> TWINDOW<span style="color: #000000;">(</span><span style="color: #000000;">448</span><span style="color: #000000;">)</span><br />Called rom MAIN<span style="color: #000000;">(</span><span style="color: #000000;">92</span><span style="color: #000000;">)</span><br /> </div>[/code:t85iozpg] |
popup groups in FWH 9.12 RibbonBar | Otto,
We are uploading a new 9.12 build that fixes that error <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
It will be ready in 5 mins or so... |
popup groups in FWH 9.12 RibbonBar | After the fix, when I click on the button on dropdown, the program is quitting silently. ( Win XP SP2 ) |
popup groups in FWH 9.12 RibbonBar | Rao,
Please check for a created error.log file. Here on Windows 7 is working fine:
Clicking on the "fill" button:
[img:3l89h79f]http://img189.imageshack.us/img189/5198/37792349.png[/img:3l89h79f] |
popup groups in FWH 9.12 RibbonBar | Hi Antonio,
My problem is not solved. I have just downloaded the fwh 9.12.
I had the same problem before and you solved the problem in this thread [url:3vm6m3n5]http://forums.fivetechsupport.com/viewtopic.php?f=3&t=13110&p=66753&hilit=_TreeView_SetCheckState#p66753[/url:3vm6m3n5]
Thanks in advance. |
popup groups in FWH 9.12 RibbonBar | Hakan,
There is a new FWH 9.12 build that should work fine this time, thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
popup groups in FWH 9.12 RibbonBar | Thanks Antonio,
It works OK now. |
popup groups in FWH 9.12 RibbonBar | Hi Antonio,
I got this error now. Is it related to previous error?
Thanks,
[code=fw:1t9gffbg]<div class="fw" id="{CB}" style="font-family: monospace;">xLINK: <span style="color: #000000;">error</span>: <span style="color: #000000;">Unresolved</span> external symbol <span style="color: #ff0000;">'_TreeView_SetItemState referenced from Fivehcm.lib(TREEVIEW.obj)'</span>.</div>[/code:1t9gffbg] |
popup groups in FWH 9.12 RibbonBar | Hakan,
We have just emailed you a modified FiveHCM.lib.
We rebuilt the library on a different computer where there was a wrong MSVC header file and thus the bug came in again. Now it is ok <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
popup on Listview class | I made the popup menu for Listview
I hope Antonio insert it on new release of this class
[b:2q22t6i6]add new defines[/b:2q22t6i6]
[code=fw:2q22t6i6]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#define</span> LVS_ICON <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> LVS_SMALLICON <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> LVS_LIST <span style="color: #000000;">3</span><br /><br /> </div>[/code:2q22t6i6]
[b:2q22t6i6]add new data[/b:2q22t6i6]
[code=fw:2q22t6i6]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">DATA</span> lPopUp</div>[/code:2q22t6i6]
[b:2q22t6i6]add new method[/b:2q22t6i6]
METHOD PopMenu( nRow, nCol, nKey )
[b:2q22t6i6]add lpopup on new and define method [/b:2q22t6i6]
default lPopUp := .F.
and
::lPopUp = lPopUp
add these lines on Paint Method
[code=fw:2q22t6i6]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">lPopUp</span><br /> ::<span style="color: #000000;">bRCliCked</span> := <span style="color: #000000;">{</span>| nRow, nCol, nKey | ::<span style="color: #000000;">PopMenu</span><span style="color: #000000;">(</span> nRow, nCol, nKey <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> <span style="color: #00C800;">ENDIF</span></div>[/code:2q22t6i6]
[b:2q22t6i6]Popup method [/b:2q22t6i6]
[code=fw:2q22t6i6]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> PopMenu<span style="color: #000000;">(</span> nRow, nCol, nKey <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TListView<br /> <span style="color: #00C800;">LOCAL</span> oPopup<br /> <span style="color: #00C800;">Local</span> oLv := <span style="color: #00C800;">self</span><br /><br /> <span style="color: #0000ff;">MENU</span> oPopUp <span style="color: #0000ff;">POPUP</span><br /><br /> <span style="color: #00C800;">if</span> WndMain<span style="color: #000000;">(</span><span style="color: #000000;">)</span> != <span style="color: #00C800;">nil</span> .and. WndMain<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">oMenu</span> != <span style="color: #00C800;">nil</span> .and. WndMain<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">oMenu</span>:<span style="color: #000000;">l2010</span><br /> oPopUp:<span style="color: #000000;">l2010</span> := .t.<br /> <span style="color: #00C800;">else</span><br /> oPopUp:<span style="color: #000000;">l2007</span> := .t.<br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Big Icons"</span> <span style="color: #0000ff;">Action</span> SetWindowLong<span style="color: #000000;">(</span> oLv:<span style="color: #000000;">hWnd</span>, <span style="color: #000000;">-16</span>, nOR<span style="color: #000000;">(</span> WS_CHILD, WS_VISIBLE, WS_TABSTOP, LVS_ICON <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Small Icons"</span> <span style="color: #0000ff;">Action</span> SetWindowLong<span style="color: #000000;">(</span> oLv:<span style="color: #000000;">hWnd</span>, <span style="color: #000000;">-16</span>, nOR<span style="color: #000000;">(</span> WS_CHILD, WS_VISIBLE, WS_TABSTOP, LVS_SMALLICON <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"List"</span> <span style="color: #0000ff;">Action</span> SetWindowLong<span style="color: #000000;">(</span> oLv:<span style="color: #000000;">hWnd</span>, <span style="color: #000000;">-16</span>, nOR<span style="color: #000000;">(</span> WS_CHILD, WS_VISIBLE, WS_TABSTOP, LVS_LIST <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #0000ff;">ENDMENU</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">POPUP</span> oPopup <span style="color: #0000ff;">OF</span> <span style="color: #00C800;">Self</span> <span style="color: #00C800;">AT</span> nRow, nCol<br /><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">(</span><span style="color: #00C800;">Nil</span><span style="color: #000000;">)</span><br /><br /><br /> </div>[/code:2q22t6i6] |
popup on Listview class | Dear Antonino or Antonio...
the big icons and list run ok
the samll icons not run (I not see icons on listview but only the captions ) |
popup on Listview class | You should create 2 imageListes, one for big icons and one for small icons, like:
[code=fw:1i9dnlx0]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">LOCAL</span> oImageListBig := TImageList<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">32</span>,<span style="color: #000000;">32</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> oImageListSmall := TImageList<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">16</span>,<span style="color: #000000;">16</span><span style="color: #000000;">)</span></div>[/code:1i9dnlx0]
Then call
[code=fw:1i9dnlx0]<div class="fw" id="{CB}" style="font-family: monospace;">oList:<span style="color: #000000;">SetImageList</span><span style="color: #000000;">(</span>oImageListBig ,<span style="color: #000000;">0</span><span style="color: #000000;">)</span><br />oList:<span style="color: #000000;">SetImageList</span><span style="color: #000000;">(</span>oImageListSmall,<span style="color: #000000;">1</span> <span style="color: #000000;">)</span></div>[/code:1i9dnlx0]
Regards,
Antonino |
popup on Listview class | not run
test.prg
[code=fw:1z2w18sb]<div class="fw" id="{CB}" style="font-family: monospace;"> <br /><br /> # include <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><br /><br /><span style="color: #00D7D7;">#define</span> LVS_ICON <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> LVS_SMALLICON <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> LVS_LIST <span style="color: #000000;">3</span><br /><br /> <span style="color: #00C800;">static</span> oList<br /> <span style="color: #00C800;">static</span> oImageList<br /> <span style="color: #00C800;">static</span> oImageListBig<br /> <span style="color: #00C800;">static</span> oImageListSmall<br /><br /> <span style="color: #00C800;">Function</span> test<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> oDlg<br /> <span style="color: #00C800;">local</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span><br /> <span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">Dialog</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">400</span>,<span style="color: #000000;">400</span><br /><br /><br /><br /> @ <span style="color: #000000;">1</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">button</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">" delete item"</span> <span style="color: #0000ff;">action</span> <span style="color: #00C800;">nil</span><br /> @ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">button</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">" rename item"</span> <span style="color: #0000ff;">action</span> <span style="color: #00C800;">nil</span><br /><br /><br /> @ <span style="color: #000000;">8</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">button</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"Big"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">action</span> give_type<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">8</span>,<span style="color: #000000;">18</span> <span style="color: #0000ff;">button</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"Small"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">action</span> give_type<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">8</span>,<span style="color: #000000;">25</span> <span style="color: #0000ff;">button</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"List"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">25</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">action</span> <span style="color: #00C800;">nil</span><br /><br /><br /> <span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">dialog</span> oDlg;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> Crealistview<span style="color: #000000;">(</span>oDlg<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> <span style="color: #B900B9;">//----------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> give_type<span style="color: #000000;">(</span>n<span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">Do</span> <span style="color: #00C800;">Case</span><br /> <span style="color: #00C800;">case</span> n=<span style="color: #000000;">1</span><br /> oList:<span style="color: #000000;">SetImageList</span><span style="color: #000000;">(</span>oImageListBig ,<span style="color: #000000;">1</span><span style="color: #000000;">)</span><br /> oList:<span style="color: #000000;">SetImageList</span><span style="color: #000000;">(</span>oImageListSmall,<span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">case</span> n=<span style="color: #000000;">2</span><br /> oList:<span style="color: #000000;">SetImageList</span><span style="color: #000000;">(</span>oImageListBig ,<span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> oList:<span style="color: #000000;">SetImageList</span><span style="color: #000000;">(</span>oImageListSmall,<span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endcase</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /> <br /> <span style="color: #B900B9;">//----------------------------------------------------------------------//</span><br /><br /><br /> <span style="color: #00C800;">Function</span> Crealistview<span style="color: #000000;">(</span>oDlg<span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">Local</span> nOption := <span style="color: #000000;">1</span><br /> <span style="color: #00C800;">local</span> bAction:= <span style="color: #000000;">{</span> | nOption | Optionfile<span style="color: #000000;">(</span> oList <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /><br /><br /> oImageList := TImageList<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">32</span>,<span style="color: #000000;">32</span><span style="color: #000000;">)</span><br /> oImageList:<span style="color: #000000;">hImageList</span> := Fix<span style="color: #000000;">(</span><span style="color: #000000;">32</span>,<span style="color: #000000;">32</span><span style="color: #000000;">)</span><br /><br /> oImageListBig := TImageList<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">32</span>,<span style="color: #000000;">32</span><span style="color: #000000;">)</span><br /> oImageListBig:<span style="color: #000000;">hImageList</span> := Fix<span style="color: #000000;">(</span><span style="color: #000000;">32</span>,<span style="color: #000000;">32</span><span style="color: #000000;">)</span><br /><br /> oImageListSmall := TImageList<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">16</span>,<span style="color: #000000;">16</span><span style="color: #000000;">)</span><br /> oImageListSmall:<span style="color: #000000;">hImageList</span> := Fix<span style="color: #000000;">(</span><span style="color: #000000;">16</span>,<span style="color: #000000;">16</span><span style="color: #000000;">)</span><br /><br /><br /> oList := TListView<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span>oDlg:<span style="color: #000000;">nHeight</span><span style="color: #000000;">-300</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">{</span><span style="color: #000000;">}</span>,bAction, oDlg, ,,.T., .F., oDlg:<span style="color: #000000;">nwidth</span><span style="color: #000000;">-25</span>,<span style="color: #000000;">150</span>, <span style="color: #000000;">)</span><br /> oList:<span style="color: #000000;">SetImageList</span><span style="color: #000000;">(</span>oImageList<span style="color: #000000;">)</span><br /><br /><br /><br /> <span style="color: #B900B9;">// toglie il dotted</span><br /> oList:<span style="color: #000000;">WinStyle</span><span style="color: #000000;">(</span><span style="color: #B900B9;">/*LVS_SINGLESEL*/</span><span style="color: #000000;">4</span>,.T.<span style="color: #000000;">)</span><br /> oList:<span style="color: #000000;">lPopUp</span>:= .f.<br /><br /><br /><br /><br /><br /><br /> DragAcceptFiles<span style="color: #000000;">(</span> oList:<span style="color: #000000;">hWnd</span>, .T. <span style="color: #000000;">)</span><br /> oList:<span style="color: #000000;">bDropFiles</span> = <span style="color: #000000;">{</span>|nRow,nCol,aFiles| Drop<span style="color: #000000;">(</span>oList,oImageList,nRow,nCol,aFiles<span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><br /><br /><br /> Procedure Drop<span style="color: #000000;">(</span>oList,oImageList, nRow,nCol,aFiles<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> cFile, nImage, oItem<br /> <span style="color: #00C800;">for</span> each cFile in aFiles<br /> nImage := Icon_Read<span style="color: #000000;">(</span>cFile<span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">//MSgInfo(cFile + STR(GetLastError()))</span><br /> <span style="color: #B900B9;">//Aggiungi_record(cFile)</span><br /> nImage := <span style="color: #0000ff;">max</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span>,ILADDICON<span style="color: #000000;">(</span> oImageList:<span style="color: #000000;">hImageList</span>, nImage <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> DestroyIcon<span style="color: #000000;">(</span>nImage<span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">// oList:InsertItem(nImage, cFile, 0)</span><br /> oItem = TListViewItem<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oList <span style="color: #000000;">)</span><br /> oItem:<span style="color: #000000;">cText</span> = cFile<br /> oItem:<span style="color: #000000;">nImage</span> = nImage<br /> oItem:<span style="color: #000000;">Create</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">return</span><br /><br /><br /><br /><br /><br /> <span style="color: #00C800;">function</span> Optionfile<span style="color: #000000;">(</span>oList<span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">Local</span> nfile:= oList:<span style="color: #000000;">nOption</span><br /><br /> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span>str<span style="color: #000000;">(</span>oList:<span style="color: #000000;">nOption</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span> oList:<span style="color: #000000;">aItems</span><span style="color: #000000;">[</span>nFile<span style="color: #000000;">]</span>:<span style="color: #000000;">cText</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><br /> <span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /> <span style="color: #00D7D7;">#include</span> <windows.h><br /> <span style="color: #00D7D7;">#include</span> <hbapi.h><br /> <span style="color: #00D7D7;">#include</span> <CommCtrl.h><br /><br /> <span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> FIX <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> typedef HIMAGELIST <span style="color: #000000;">(</span> __stdcall * PIMAGELIST_CREATE <span style="color: #000000;">)</span> <span style="color: #000000;">(</span> int cx, int cy,<br /> UINT flags, int cInitial, int cGrow <span style="color: #000000;">)</span>;<br /> <span style="color: #00C800;">static</span> PIMAGELIST_CREATE pImageList_Create = <span style="color: #00C800;">NULL</span>;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> pImageList_Create == <span style="color: #00C800;">NULL</span> <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> HMODULE hDLL = LoadLibrary<span style="color: #000000;">(</span> <span style="color: #ff0000;">"comctl32.dll"</span> <span style="color: #000000;">)</span>;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> hDLL <span style="color: #000000;">)</span><br /> pImageList_Create = <span style="color: #000000;">(</span> PIMAGELIST_CREATE <span style="color: #000000;">)</span> GetProcAddress<span style="color: #000000;">(</span> hDLL, <span style="color: #ff0000;">"ImageList_Create"</span> <span style="color: #000000;">)</span>;<br /> FreeLibrary<span style="color: #000000;">(</span>hDLL<span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span><br /><br /> #ifndef _WIN64<br /> hb_retnl<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> LONG <span style="color: #000000;">)</span> pImageList_Create<span style="color: #000000;">(</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>, hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>,<br /> ILC_MASK | ILC_COLOR32, <span style="color: #000000;">0</span>, <span style="color: #000000;">50</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> #else<br /> hb_retnll<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> LONGLONG <span style="color: #000000;">)</span> pImageList_Create<span style="color: #000000;">(</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>, hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>,<br /> ILC_MASK | ILC_COLOR32, <span style="color: #000000;">0</span>, <span style="color: #000000;">50</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> #endif<br /> <span style="color: #000000;">}</span><br /><br /><br /> <span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> LVDELETEITEM <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> #ifndef _WIN64<br /> HWND hWnd = <span style="color: #000000;">(</span> HWND <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /> #else<br /> HWND hWnd = <span style="color: #000000;">(</span> HWND <span style="color: #000000;">)</span> hb_parnll<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /> #endif<br /><br /> ListView_DeleteItem<span style="color: #000000;">(</span> hWnd, hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span><br /><br /><br /> <span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> LVSETITEMTEXT <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> LV_ITEM _ms_lvi;<br /><br /> #ifndef _WIN64<br /> HWND hWnd = <span style="color: #000000;">(</span> HWND <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /> #else<br /> HWND hWnd = <span style="color: #000000;">(</span> HWND <span style="color: #000000;">)</span> hb_parnll<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /> #endif<br /><br /> _ms_lvi.iSubItem = hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">3</span> <span style="color: #000000;">)</span>;<br /> _ms_lvi.pszText = <span style="color: #000000;">(</span> char * <span style="color: #000000;">)</span> hb_parc<span style="color: #000000;">(</span> <span style="color: #000000;">4</span> <span style="color: #000000;">)</span>;<br /><br /> SendMessage<span style="color: #000000;">(</span> hWnd, LVM_SETITEMTEXT, hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">(</span> LPARAM <span style="color: #000000;">)</span> <span style="color: #000000;">(</span> LV_ITEM * <span style="color: #000000;">)</span> &_ms_lvi <span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /><br /> </div>[/code:1z2w18sb] |
popup on Listview class | Antonio changed HB_FUNC( ILCREATE ) inside imagelis.c to create 32bit image lst.
[code=c:30v5v9ce]<div class="c" id="{CB}" style="font-family: monospace;">HB_FUNC<span style="color: #66cc66;">(</span> ILCREATE <span style="color: #66cc66;">)</span><br /><span style="color: #66cc66;">{</span> <br /> InitImageList<span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>;<br /> <br /> <span style="color: #339933;">#ifndef _WIN64</span><br /> <span style="color: #808080; font-style: italic;">// ILC_COLORDDB | ILC_MASK</span><br /> hb_retnl<span style="color: #66cc66;">(</span> <span style="color: #66cc66;">(</span> <span style="color: #993333;">LONG</span> <span style="color: #66cc66;">)</span> pImageList_Create<span style="color: #66cc66;">(</span> hb_parnl<span style="color: #66cc66;">(</span> <span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">)</span>, hb_parnl<span style="color: #66cc66;">(</span> <span style="color: #cc66cc;">2</span> <span style="color: #66cc66;">)</span>,<br /> ILC_MASK | ILC_COLOR32, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">50</span> <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>;<br /> <span style="color: #339933;">#else </span><br /> hb_retnll<span style="color: #66cc66;">(</span> <span style="color: #66cc66;">(</span> LONGLONG <span style="color: #66cc66;">)</span> pImageList_Create<span style="color: #66cc66;">(</span> hb_parnl<span style="color: #66cc66;">(</span> <span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">)</span>, hb_parnl<span style="color: #66cc66;">(</span> <span style="color: #cc66cc;">2</span> <span style="color: #66cc66;">)</span>,<br /> ILC_MASK | ILC_COLOR32, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">50</span> <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>;<br /> <span style="color: #339933;">#endif</span><br /><span style="color: #66cc66;">}</span></div>[/code:30v5v9ce]
If you dont' have the latest FiveWin you can add:
[code=fw:30v5v9ce]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">LOCAL</span> oImageListBig := TImageList<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">32</span>,<span style="color: #000000;">32</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> oImageListSmall := TImageList<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">16</span>,<span style="color: #000000;">16</span><span style="color: #000000;">)</span><br />oImageListBig:<span style="color: #000000;">hImageList</span> := Fix<span style="color: #000000;">(</span><span style="color: #000000;">32</span>,<span style="color: #000000;">32</span><span style="color: #000000;">)</span><br />oImageListSmall:<span style="color: #000000;">hImageList</span> := Fix<span style="color: #000000;">(</span><span style="color: #000000;">16</span>,<span style="color: #000000;">16</span><span style="color: #000000;">)</span></div>[/code:30v5v9ce]
Regards,
Antonino |
popup on Listview class | but not run ok
I change imagelist.c
I have the fwh Rel.jannuary with last listview modified from Antonio
the code
[code=fw:23r1mh55]<div class="fw" id="{CB}" style="font-family: monospace;"> <br /># include <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><br /><br /> <span style="color: #00D7D7;">#define</span> LVS_ICON <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> LVS_SMALLICON <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> LVS_LIST <span style="color: #000000;">3</span><br /><br /> <span style="color: #00C800;">static</span> oList<br /> <span style="color: #00C800;">static</span> oImageList<br /> <span style="color: #00C800;">static</span> oImageListBig<br /> <span style="color: #00C800;">static</span> oImageListSmall<br /><br /> <span style="color: #00C800;">Function</span> test<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> oDlg<br /> <span style="color: #00C800;">local</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span><br /> <span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">Dialog</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">400</span>,<span style="color: #000000;">400</span><br /><br /><br /><br /> @ <span style="color: #000000;">1</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">button</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">" delete item"</span> <span style="color: #0000ff;">action</span> <span style="color: #00C800;">nil</span><br /> @ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">button</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">" rename item"</span> <span style="color: #0000ff;">action</span> <span style="color: #00C800;">nil</span><br /><br /><br /> @ <span style="color: #000000;">8</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">button</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"Big"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">action</span> give_type<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">8</span>,<span style="color: #000000;">18</span> <span style="color: #0000ff;">button</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"Small"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">action</span> give_type<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">8</span>,<span style="color: #000000;">25</span> <span style="color: #0000ff;">button</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"List"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">25</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">action</span> <span style="color: #00C800;">nil</span><br /><br /><br /> <span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">dialog</span> oDlg;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> Crealistview<span style="color: #000000;">(</span>oDlg<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> <span style="color: #B900B9;">//----------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> give_type<span style="color: #000000;">(</span>n<span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">Do</span> <span style="color: #00C800;">Case</span><br /> <span style="color: #00C800;">case</span> n=<span style="color: #000000;">1</span><br /> oList:<span style="color: #000000;">SetImageList</span><span style="color: #000000;">(</span>oImageListBig ,<span style="color: #000000;">1</span><span style="color: #000000;">)</span><br /> oList:<span style="color: #000000;">SetImageList</span><span style="color: #000000;">(</span>oImageListSmall,<span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">case</span> n=<span style="color: #000000;">2</span><br /> oList:<span style="color: #000000;">SetImageList</span><span style="color: #000000;">(</span>oImageListBig ,<span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> oList:<span style="color: #000000;">SetImageList</span><span style="color: #000000;">(</span>oImageListSmall,<span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endcase</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /> <br /> <span style="color: #B900B9;">//----------------------------------------------------------------------//</span><br /><br /><br /> <span style="color: #00C800;">Function</span> Crealistview<span style="color: #000000;">(</span>oDlg<span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">Local</span> nOption := <span style="color: #000000;">1</span><br /> <span style="color: #00C800;">local</span> bAction:= <span style="color: #000000;">{</span> | nOption | Optionfile<span style="color: #000000;">(</span> oList <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /><br /><br /> oImageList := TImageList<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">32</span>,<span style="color: #000000;">32</span><span style="color: #000000;">)</span><br /> oImageList:<span style="color: #000000;">hImageList</span> := Fix<span style="color: #000000;">(</span><span style="color: #000000;">32</span>,<span style="color: #000000;">32</span><span style="color: #000000;">)</span><br /><br /> oImageListBig := TImageList<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">32</span>,<span style="color: #000000;">32</span><span style="color: #000000;">)</span><br /> oImageListBig:<span style="color: #000000;">hImageList</span> := Fix<span style="color: #000000;">(</span><span style="color: #000000;">32</span>,<span style="color: #000000;">32</span><span style="color: #000000;">)</span><br /><br /> oImageListSmall := TImageList<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">16</span>,<span style="color: #000000;">16</span><span style="color: #000000;">)</span><br /> oImageListSmall:<span style="color: #000000;">hImageList</span> := Fix<span style="color: #000000;">(</span><span style="color: #000000;">16</span>,<span style="color: #000000;">16</span><span style="color: #000000;">)</span><br /><br /><br /> oList := TListView<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span>oDlg:<span style="color: #000000;">nHeight</span><span style="color: #000000;">-300</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">{</span><span style="color: #000000;">}</span>,bAction, oDlg, ,,.T., .F., oDlg:<span style="color: #000000;">nwidth</span><span style="color: #000000;">-25</span>,<span style="color: #000000;">150</span>, <span style="color: #000000;">)</span><br /> oList:<span style="color: #000000;">SetImageList</span><span style="color: #000000;">(</span>oImageList<span style="color: #000000;">)</span><br /><br /><br /><br /> <span style="color: #B900B9;">// toglie il dotted</span><br /> oList:<span style="color: #000000;">WinStyle</span><span style="color: #000000;">(</span><span style="color: #B900B9;">/*LVS_SINGLESEL*/</span><span style="color: #000000;">4</span>,.T.<span style="color: #000000;">)</span><br /> oList:<span style="color: #000000;">lPopUp</span>:= .f.<br /><br /><br /><br /><br /><br /><br /> DragAcceptFiles<span style="color: #000000;">(</span> oList:<span style="color: #000000;">hWnd</span>, .T. <span style="color: #000000;">)</span><br /> oList:<span style="color: #000000;">bDropFiles</span> = <span style="color: #000000;">{</span>|nRow,nCol,aFiles| Drop<span style="color: #000000;">(</span>oList,oImageList,nRow,nCol,aFiles<span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><br /><br /><br /> Procedure Drop<span style="color: #000000;">(</span>oList,oImageList, nRow,nCol,aFiles<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> cFile, nImage, oItem<br /> <span style="color: #00C800;">for</span> each cFile in aFiles<br /> nImage := Icon_Read<span style="color: #000000;">(</span>cFile<span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">//MSgInfo(cFile + STR(GetLastError()))</span><br /> <span style="color: #B900B9;">//Aggiungi_record(cFile)</span><br /> nImage := <span style="color: #0000ff;">max</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span>,ILADDICON<span style="color: #000000;">(</span> oImageList:<span style="color: #000000;">hImageList</span>, nImage <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> DestroyIcon<span style="color: #000000;">(</span>nImage<span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">// oList:InsertItem(nImage, cFile, 0)</span><br /> oItem = TListViewItem<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oList <span style="color: #000000;">)</span><br /> oItem:<span style="color: #000000;">cText</span> = cFile<br /> oItem:<span style="color: #000000;">nImage</span> = nImage<br /> oItem:<span style="color: #000000;">Create</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">return</span><br /><br /><br /><br /><br /><br /> <span style="color: #00C800;">function</span> Optionfile<span style="color: #000000;">(</span>oList<span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">Local</span> nfile:= oList:<span style="color: #000000;">nOption</span><br /><br /> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span>str<span style="color: #000000;">(</span>oList:<span style="color: #000000;">nOption</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span> oList:<span style="color: #000000;">aItems</span><span style="color: #000000;">[</span>nFile<span style="color: #000000;">]</span>:<span style="color: #000000;">cText</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><br /> <span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /> <span style="color: #00D7D7;">#include</span> <windows.h><br /> <span style="color: #00D7D7;">#include</span> <hbapi.h><br /> <span style="color: #00D7D7;">#include</span> <CommCtrl.h><br /><br /> <span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> FIX <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> typedef HIMAGELIST <span style="color: #000000;">(</span> __stdcall * PIMAGELIST_CREATE <span style="color: #000000;">)</span> <span style="color: #000000;">(</span> int cx, int cy,<br /> UINT flags, int cInitial, int cGrow <span style="color: #000000;">)</span>;<br /> <span style="color: #00C800;">static</span> PIMAGELIST_CREATE pImageList_Create = <span style="color: #00C800;">NULL</span>;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> pImageList_Create == <span style="color: #00C800;">NULL</span> <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> HMODULE hDLL = LoadLibrary<span style="color: #000000;">(</span> <span style="color: #ff0000;">"comctl32.dll"</span> <span style="color: #000000;">)</span>;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> hDLL <span style="color: #000000;">)</span><br /> pImageList_Create = <span style="color: #000000;">(</span> PIMAGELIST_CREATE <span style="color: #000000;">)</span> GetProcAddress<span style="color: #000000;">(</span> hDLL, <span style="color: #ff0000;">"ImageList_Create"</span> <span style="color: #000000;">)</span>;<br /> FreeLibrary<span style="color: #000000;">(</span>hDLL<span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span><br /><br /> #ifndef _WIN64<br /> hb_retnl<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> LONG <span style="color: #000000;">)</span> pImageList_Create<span style="color: #000000;">(</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>, hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>,<br /> ILC_MASK | ILC_COLOR32, <span style="color: #000000;">0</span>, <span style="color: #000000;">50</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> #else<br /> hb_retnll<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> LONGLONG <span style="color: #000000;">)</span> pImageList_Create<span style="color: #000000;">(</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>, hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>,<br /> ILC_MASK | ILC_COLOR32, <span style="color: #000000;">0</span>, <span style="color: #000000;">50</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> #endif<br /> <span style="color: #000000;">}</span><br /><br /><br /> <span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> LVDELETEITEM <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> #ifndef _WIN64<br /> HWND hWnd = <span style="color: #000000;">(</span> HWND <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /> #else<br /> HWND hWnd = <span style="color: #000000;">(</span> HWND <span style="color: #000000;">)</span> hb_parnll<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /> #endif<br /><br /> ListView_DeleteItem<span style="color: #000000;">(</span> hWnd, hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span><br /><br /><br /> <span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> LVSETITEMTEXT <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> LV_ITEM _ms_lvi;<br /><br /> #ifndef _WIN64<br /> HWND hWnd = <span style="color: #000000;">(</span> HWND <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /> #else<br /> HWND hWnd = <span style="color: #000000;">(</span> HWND <span style="color: #000000;">)</span> hb_parnll<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /> #endif<br /><br /> _ms_lvi.iSubItem = hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">3</span> <span style="color: #000000;">)</span>;<br /> _ms_lvi.pszText = <span style="color: #000000;">(</span> char * <span style="color: #000000;">)</span> hb_parc<span style="color: #000000;">(</span> <span style="color: #000000;">4</span> <span style="color: #000000;">)</span>;<br /><br /> SendMessage<span style="color: #000000;">(</span> hWnd, LVM_SETITEMTEXT, hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">(</span> LPARAM <span style="color: #000000;">)</span> <span style="color: #000000;">(</span> LV_ITEM * <span style="color: #000000;">)</span> &_ms_lvi <span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /><br /> </div>[/code:23r1mh55] |
popup on Listview class | hi,
You are a little confused, the number as second parameter in SetImageList is the type of the list, and it can be setted one time only.
Maybe this code is more clear, add this at begin of file:
[code=fw:pr7qbyf2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#define</span> LVSIL_NORMAL <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> LVSIL_SMALL <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> LVSIL_STATE <span style="color: #000000;">2</span></div>[/code:pr7qbyf2]
then:
[code=fw:pr7qbyf2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Function</span> Crealistview<span style="color: #000000;">(</span>oDlg<span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">Local</span> nOption := <span style="color: #000000;">1</span><br /> <span style="color: #00C800;">local</span> bAction:= <span style="color: #000000;">{</span> | nOption | Optionfile<span style="color: #000000;">(</span> oList <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /> oImageListBig := TImageList<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">32</span>,<span style="color: #000000;">32</span><span style="color: #000000;">)</span><br /> oImageListBig:<span style="color: #000000;">hImageList</span> := Fix<span style="color: #000000;">(</span><span style="color: #000000;">32</span>,<span style="color: #000000;">32</span><span style="color: #000000;">)</span><br /><br /> oImageListSmall := TImageList<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">16</span>,<span style="color: #000000;">16</span><span style="color: #000000;">)</span><br /> oImageListSmall:<span style="color: #000000;">hImageList</span> := Fix<span style="color: #000000;">(</span><span style="color: #000000;">16</span>,<span style="color: #000000;">16</span><span style="color: #000000;">)</span><br /><br /><br /> oList := TListView<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span>oDlg:<span style="color: #000000;">nHeight</span><span style="color: #000000;">-300</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">{</span><span style="color: #000000;">}</span>,bAction, oDlg, ,,.T., .F., oDlg:<span style="color: #000000;">nwidth</span><span style="color: #000000;">-25</span>,<span style="color: #000000;">150</span>, <span style="color: #000000;">)</span><br /> oList:<span style="color: #000000;">SetImageList</span><span style="color: #000000;">(</span>oImageListBig, LVSIL_NORMAL<span style="color: #000000;">)</span><br /> oList:<span style="color: #000000;">SetImageList</span><span style="color: #000000;">(</span>oImageListSmall, LVSIL_SMALL<span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #B900B9;">// toglie il dotted</span><br /> oList:<span style="color: #000000;">WinStyle</span><span style="color: #000000;">(</span><span style="color: #B900B9;">/*LVS_SINGLESEL*/</span><span style="color: #000000;">4</span>,.T.<span style="color: #000000;">)</span><br /> oList:<span style="color: #000000;">lPopUp</span>:= .f.<br /><br /><br /><br /><br /><br /><br /> DragAcceptFiles<span style="color: #000000;">(</span> oList:<span style="color: #000000;">hWnd</span>, .T. <span style="color: #000000;">)</span><br /> oList:<span style="color: #000000;">bDropFiles</span> = <span style="color: #000000;">{</span>|nRow,nCol,aFiles| Drop<span style="color: #000000;">(</span>oList,oImageList,nRow,nCol,aFiles<span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:pr7qbyf2]
change Drop procedure too:
[code=fw:pr7qbyf2]<div class="fw" id="{CB}" style="font-family: monospace;"> Procedure Drop<span style="color: #000000;">(</span>oList,oImageList, nRow,nCol,aFiles<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> cFile, nImage, oItem<br /> <span style="color: #00C800;">for</span> each cFile in aFiles<br /> nImage := Icon_Read<span style="color: #000000;">(</span>cFile<span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">//MSgInfo(cFile + STR(GetLastError()))</span><br /> <span style="color: #B900B9;">//Aggiungi_record(cFile)</span><br /> ILADDICON<span style="color: #000000;">(</span> oImageListSmall:<span style="color: #000000;">hImageList</span>, nImage <span style="color: #000000;">)</span><br /> nImage := <span style="color: #0000ff;">max</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span>,ILADDICON<span style="color: #000000;">(</span> oImageListBig:<span style="color: #000000;">hImageList</span>, nImage <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> DestroyIcon<span style="color: #000000;">(</span>nImage<span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">// oList:InsertItem(nImage, cFile, 0)</span><br /> oItem = TListViewItem<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oList <span style="color: #000000;">)</span><br /> oItem:<span style="color: #000000;">cText</span> = cFile<br /> oItem:<span style="color: #000000;">nImage</span> = nImage<br /> oItem:<span style="color: #000000;">Create</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">return</span></div>[/code:pr7qbyf2]
here complete code:
[code=fw:pr7qbyf2]<div class="fw" id="{CB}" style="font-family: monospace;"> <br /># include <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> LVSIL_NORMAL <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> LVSIL_SMALL <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> LVSIL_STATE <span style="color: #000000;">2</span><br /><br /> <span style="color: #00D7D7;">#define</span> LVS_ICON <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> LVS_SMALLICON <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> LVS_LIST <span style="color: #000000;">3</span><br /><br /> <span style="color: #00C800;">static</span> oList<br /> <span style="color: #00C800;">static</span> oImageListBig<br /> <span style="color: #00C800;">static</span> oImageListSmall<br /><br /> <span style="color: #00C800;">Function</span> test<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> oDlg<br /> <span style="color: #00C800;">local</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span><br /> <span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">Dialog</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">400</span>,<span style="color: #000000;">400</span><br /><br /><br /><br /> @ <span style="color: #000000;">1</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">button</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">" delete item"</span> <span style="color: #0000ff;">action</span> <span style="color: #00C800;">nil</span><br /> @ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">button</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">" rename item"</span> <span style="color: #0000ff;">action</span> <span style="color: #00C800;">nil</span><br /><br /><br /> @ <span style="color: #000000;">8</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">button</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"Big"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">action</span> SetWindowLong<span style="color: #000000;">(</span> oList:<span style="color: #000000;">hWnd</span>, <span style="color: #000000;">-16</span>, nOR<span style="color: #000000;">(</span> WS_CHILD, WS_VISIBLE, WS_TABSTOP, LVS_ICON <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">8</span>,<span style="color: #000000;">18</span> <span style="color: #0000ff;">button</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"Small"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">action</span> SetWindowLong<span style="color: #000000;">(</span> oList:<span style="color: #000000;">hWnd</span>, <span style="color: #000000;">-16</span>, nOR<span style="color: #000000;">(</span> WS_CHILD, WS_VISIBLE, WS_TABSTOP, LVS_SMALLICON <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">8</span>,<span style="color: #000000;">25</span> <span style="color: #0000ff;">button</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"List"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">25</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">action</span> SetWindowLong<span style="color: #000000;">(</span> oList:<span style="color: #000000;">hWnd</span>, <span style="color: #000000;">-16</span>, nOR<span style="color: #000000;">(</span> WS_CHILD, WS_VISIBLE, WS_TABSTOP, LVS_LIST <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">dialog</span> oDlg;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> Crealistview<span style="color: #000000;">(</span>oDlg<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> <span style="color: #B900B9;">//----------------------------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span> give_type<span style="color: #000000;">(</span>n<span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">Do</span> <span style="color: #00C800;">Case</span><br /> <span style="color: #00C800;">case</span> n=<span style="color: #000000;">1</span><br /> oList:<span style="color: #000000;">SetImageList</span><span style="color: #000000;">(</span>oImageListBig ,<span style="color: #000000;">1</span><span style="color: #000000;">)</span><br /> oList:<span style="color: #000000;">SetImageList</span><span style="color: #000000;">(</span>oImageListSmall,<span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">case</span> n=<span style="color: #000000;">2</span><br /> oList:<span style="color: #000000;">SetImageList</span><span style="color: #000000;">(</span>oImageListBig ,<span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> oList:<span style="color: #000000;">SetImageList</span><span style="color: #000000;">(</span>oImageListSmall,<span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endcase</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /> <span style="color: #00C800;">Function</span> Crealistview<span style="color: #000000;">(</span>oDlg<span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">Local</span> nOption := <span style="color: #000000;">1</span><br /> <span style="color: #00C800;">local</span> bAction:= <span style="color: #000000;">{</span> | nOption | Optionfile<span style="color: #000000;">(</span> oList <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /> oImageListBig := TImageList<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">32</span>,<span style="color: #000000;">32</span><span style="color: #000000;">)</span><br /> oImageListBig:<span style="color: #000000;">hImageList</span> := Fix<span style="color: #000000;">(</span><span style="color: #000000;">32</span>,<span style="color: #000000;">32</span><span style="color: #000000;">)</span><br /><br /> oImageListSmall := TImageList<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">16</span>,<span style="color: #000000;">16</span><span style="color: #000000;">)</span><br /> oImageListSmall:<span style="color: #000000;">hImageList</span> := Fix<span style="color: #000000;">(</span><span style="color: #000000;">16</span>,<span style="color: #000000;">16</span><span style="color: #000000;">)</span><br /><br /><br /> oList := TListView<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span>oDlg:<span style="color: #000000;">nHeight</span><span style="color: #000000;">-300</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">{</span><span style="color: #000000;">}</span>,bAction, oDlg, ,,.T., .F., oDlg:<span style="color: #000000;">nwidth</span><span style="color: #000000;">-25</span>,<span style="color: #000000;">150</span>, <span style="color: #000000;">)</span><br /> oList:<span style="color: #000000;">SetImageList</span><span style="color: #000000;">(</span>oImageListBig,LVSIL_NORMAL<span style="color: #000000;">)</span><br /> oList:<span style="color: #000000;">SetImageList</span><span style="color: #000000;">(</span>oImageListSmall,LVSIL_SMALL<span style="color: #000000;">)</span><br /><br /><br /><br /> <span style="color: #B900B9;">// toglie il dotted</span><br /> oList:<span style="color: #000000;">WinStyle</span><span style="color: #000000;">(</span><span style="color: #B900B9;">/*LVS_SINGLESEL*/</span><span style="color: #000000;">4</span>,.T.<span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">//oList:lPopUp:= .f.</span><br /><br /><br /><br /><br /><br /><br /> DragAcceptFiles<span style="color: #000000;">(</span> oList:<span style="color: #000000;">hWnd</span>, .T. <span style="color: #000000;">)</span><br /> oList:<span style="color: #000000;">bDropFiles</span> = <span style="color: #000000;">{</span>|nRow,nCol,aFiles| Drop<span style="color: #000000;">(</span>oList,<span style="color: #00C800;">nil</span>,nRow,nCol,aFiles<span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><br /><br /><br /> Procedure Drop<span style="color: #000000;">(</span>oList,oImageList, nRow,nCol,aFiles<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> cFile, nImage, oItem, imgIdx<br /> <span style="color: #00C800;">for</span> each cFile in aFiles<br /> nImage := Icon_Read<span style="color: #000000;">(</span>cFile<span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">//MSgInfo(cFile + STR(GetLastError()))</span><br /> <span style="color: #B900B9;">//Aggiungi_record(cFile)</span><br /> ILADDICON<span style="color: #000000;">(</span> oImageListSmall:<span style="color: #000000;">hImageList</span>, nImage <span style="color: #000000;">)</span><br /> nImage := <span style="color: #0000ff;">max</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span>,ILADDICON<span style="color: #000000;">(</span> oImageListBig:<span style="color: #000000;">hImageList</span>, nImage <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> DestroyIcon<span style="color: #000000;">(</span>nImage<span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">// oList:InsertItem(nImage, cFile, 0)</span><br /> oItem = TListViewItem<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oList <span style="color: #000000;">)</span><br /> oItem:<span style="color: #000000;">cText</span> = cFile<br /> oItem:<span style="color: #000000;">nImage</span> = nImage<br /> oItem:<span style="color: #000000;">Create</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">return</span><br /><br /><br /><br /><br /><br /> <span style="color: #00C800;">function</span> Optionfile<span style="color: #000000;">(</span>oList<span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">Local</span> nfile:= oList:<span style="color: #000000;">nOption</span><br /><br /> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span>str<span style="color: #000000;">(</span>oList:<span style="color: #000000;">nOption</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span> oList:<span style="color: #000000;">aItems</span><span style="color: #000000;">[</span>nFile<span style="color: #000000;">]</span>:<span style="color: #000000;">cText</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><br /> <span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /> <span style="color: #00D7D7;">#include</span> <windows.h><br /> <span style="color: #00D7D7;">#include</span> <hbapi.h><br /> <span style="color: #00D7D7;">#include</span> <CommCtrl.h><br /><br /> <span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> FIX <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> typedef HIMAGELIST <span style="color: #000000;">(</span> __stdcall * PIMAGELIST_CREATE <span style="color: #000000;">)</span> <span style="color: #000000;">(</span> int cx, int cy,<br /> UINT flags, int cInitial, int cGrow <span style="color: #000000;">)</span>;<br /> <span style="color: #00C800;">static</span> PIMAGELIST_CREATE pImageList_Create = <span style="color: #00C800;">NULL</span>;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> pImageList_Create == <span style="color: #00C800;">NULL</span> <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> HMODULE hDLL = LoadLibrary<span style="color: #000000;">(</span> <span style="color: #ff0000;">"comctl32.dll"</span> <span style="color: #000000;">)</span>;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> hDLL <span style="color: #000000;">)</span><br /> pImageList_Create = <span style="color: #000000;">(</span> PIMAGELIST_CREATE <span style="color: #000000;">)</span> GetProcAddress<span style="color: #000000;">(</span> hDLL, <span style="color: #ff0000;">"ImageList_Create"</span> <span style="color: #000000;">)</span>;<br /> FreeLibrary<span style="color: #000000;">(</span>hDLL<span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span><br /><br /> #ifndef _WIN64<br /> hb_retnl<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> LONG <span style="color: #000000;">)</span> pImageList_Create<span style="color: #000000;">(</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>, hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>,<br /> ILC_MASK | ILC_COLOR32, <span style="color: #000000;">0</span>, <span style="color: #000000;">50</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> #else<br /> hb_retnll<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> LONGLONG <span style="color: #000000;">)</span> pImageList_Create<span style="color: #000000;">(</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>, hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>,<br /> ILC_MASK | ILC_COLOR32, <span style="color: #000000;">0</span>, <span style="color: #000000;">50</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> #endif<br /> <span style="color: #000000;">}</span><br /><br /><br /> <span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> LVDELETEITEM <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> #ifndef _WIN64<br /> HWND hWnd = <span style="color: #000000;">(</span> HWND <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /> #else<br /> HWND hWnd = <span style="color: #000000;">(</span> HWND <span style="color: #000000;">)</span> hb_parnll<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /> #endif<br /><br /> ListView_DeleteItem<span style="color: #000000;">(</span> hWnd, hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span><br /><br /><br /> <span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> LVSETITEMTEXT <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> LV_ITEM _ms_lvi;<br /><br /> #ifndef _WIN64<br /> HWND hWnd = <span style="color: #000000;">(</span> HWND <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /> #else<br /> HWND hWnd = <span style="color: #000000;">(</span> HWND <span style="color: #000000;">)</span> hb_parnll<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /> #endif<br /><br /> _ms_lvi.iSubItem = hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">3</span> <span style="color: #000000;">)</span>;<br /> _ms_lvi.pszText = <span style="color: #000000;">(</span> char * <span style="color: #000000;">)</span> hb_parc<span style="color: #000000;">(</span> <span style="color: #000000;">4</span> <span style="color: #000000;">)</span>;<br /><br /> SendMessage<span style="color: #000000;">(</span> hWnd, LVM_SETITEMTEXT, hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">(</span> LPARAM <span style="color: #000000;">)</span> <span style="color: #000000;">(</span> LV_ITEM * <span style="color: #000000;">)</span> &_ms_lvi <span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /><br /> </div>[/code:pr7qbyf2] |
popup on Listview class | thank now run ok
only when select the small icons is activated the dotted box |
popup on Listview class | <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> the code in <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=1867&hilit=LVS_LIST#p7899">viewtopic.php?f=3&t=1867&hilit=LVS_LIST#p7899</a><!-- l --> is not correct.
You can:
[code=fw:wq9ple4e]<div class="fw" id="{CB}" style="font-family: monospace;">@ <span style="color: #000000;">8</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">button</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"Big"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">action</span> oList:<span style="color: #000000;">WinStyle</span><span style="color: #000000;">(</span>LVS_LIST, .F.<span style="color: #000000;">)</span><br />@ <span style="color: #000000;">8</span>,<span style="color: #000000;">18</span> <span style="color: #0000ff;">button</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"Small"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">action</span> <span style="color: #000000;">(</span>oList:<span style="color: #000000;">WinStyle</span><span style="color: #000000;">(</span>LVS_LIST, .F.<span style="color: #000000;">)</span>, oList:<span style="color: #000000;">WinStyle</span><span style="color: #000000;">(</span>LVS_SMALLICON, .T.<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br />@ <span style="color: #000000;">8</span>,<span style="color: #000000;">25</span> <span style="color: #0000ff;">button</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"List"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">25</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">action</span> oList:<span style="color: #000000;">WinStyle</span><span style="color: #000000;">(</span>LVS_LIST, .T.<span style="color: #000000;">)</span></div>[/code:wq9ple4e]
Or better:
[code=fw:wq9ple4e]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#define</span> LV_VIEW_ICON 0x0000<br /><span style="color: #00D7D7;">#define</span> LV_VIEW_DETAILS 0x0001<br /><span style="color: #00D7D7;">#define</span> LV_VIEW_SMALLICON 0x0002<br /><span style="color: #00D7D7;">#define</span> LV_VIEW_LIST 0x0003<br /><span style="color: #00D7D7;">#define</span> LV_VIEW_TILE 0x0004<br /><span style="color: #00D7D7;">#define</span> LV_VIEW_MAX 0x0004<br /><br /><span style="color: #00D7D7;">#define</span> LVM_FIRST 0x1000 <span style="color: #B900B9;">// ListView messages</span><br /><span style="color: #00D7D7;">#define</span> LVM_SETVIEW <span style="color: #000000;">(</span>LVM_FIRST + <span style="color: #000000;">142</span><span style="color: #000000;">)</span></div>[/code:wq9ple4e]
then:
[code=fw:wq9ple4e]<div class="fw" id="{CB}" style="font-family: monospace;">@ <span style="color: #000000;">8</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">button</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"Big"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">action</span> oList:<span style="color: #000000;">SendMsg</span><span style="color: #000000;">(</span>LVM_SETVIEW, LV_VIEW_ICON, <span style="color: #000000;">0</span><span style="color: #000000;">)</span><br />@ <span style="color: #000000;">8</span>,<span style="color: #000000;">18</span> <span style="color: #0000ff;">button</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"Small"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">action</span> oList:<span style="color: #000000;">SendMsg</span><span style="color: #000000;">(</span>LVM_SETVIEW, LV_VIEW_SMALLICON, <span style="color: #000000;">0</span><span style="color: #000000;">)</span><br />@ <span style="color: #000000;">8</span>,<span style="color: #000000;">25</span> <span style="color: #0000ff;">button</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"List"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">25</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">action</span> oList:<span style="color: #000000;">SendMsg</span><span style="color: #000000;">(</span>LVM_SETVIEW, LV_VIEW_LIST, <span style="color: #000000;">0</span><span style="color: #000000;">)</span></div>[/code:wq9ple4e]
but in this case "[url=https://msdn.microsoft.com/en-us/library/windows/desktop/bb761220(v=vs.85).aspx:wq9ple4e]you must provide a manifest specifying Comctl32.dll version 6.0[/url:wq9ple4e]".
Regards,
Antonino
PS. theoretically you can do:
[code=fw:wq9ple4e]<div class="fw" id="{CB}" style="font-family: monospace;">@ <span style="color: #000000;">8</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">button</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"Big"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">action</span> SetWindowLong<span style="color: #000000;">(</span> oList:<span style="color: #000000;">hWnd</span>, <span style="color: #000000;">-16</span>, nOR<span style="color: #000000;">(</span> WS_CHILD, WS_VISIBLE, WS_TABSTOP, LVS_ICON,<span style="color: #B900B9;">/*LVS_SINGLESEL*/</span><span style="color: #000000;">4</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br />@ <span style="color: #000000;">8</span>,<span style="color: #000000;">18</span> <span style="color: #0000ff;">button</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"Small"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">action</span> SetWindowLong<span style="color: #000000;">(</span> oList:<span style="color: #000000;">hWnd</span>, <span style="color: #000000;">-16</span>, nOR<span style="color: #000000;">(</span> WS_CHILD, WS_VISIBLE, WS_TABSTOP, LVS_SMALLICON,<span style="color: #B900B9;">/*LVS_SINGLESEL*/</span><span style="color: #000000;">4</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br />@ <span style="color: #000000;">8</span>,<span style="color: #000000;">25</span> <span style="color: #0000ff;">button</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"List"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">25</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">action</span> SetWindowLong<span style="color: #000000;">(</span> oList:<span style="color: #000000;">hWnd</span>, <span style="color: #000000;">-16</span>, nOR<span style="color: #000000;">(</span> WS_CHILD, WS_VISIBLE, WS_TABSTOP, LVS_LIST,<span style="color: #B900B9;">/*LVS_SINGLESEL*/</span><span style="color: #000000;">4</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span></div>[/code:wq9ple4e] |
popup on Listview class | Antonino,
Many thanks for your great help <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
popup on Listview class | for the version of bcc and fwh I have seem run ok only these lines
@ 8,10 button obtn[3] prompt "Big" SIZE 35,10 action SetWindowLong( oList:hWnd, -16, nOR( WS_CHILD, WS_VISIBLE, WS_TABSTOP, LVS_ICON,/*LVS_SINGLESEL*/4 ) )
@ 8,18 button obtn[4] prompt "Small" SIZE 35,10 action SetWindowLong( oList:hWnd, -16, nOR( WS_CHILD, WS_VISIBLE, WS_TABSTOP, LVS_SMALLICON,/*LVS_SINGLESEL*/4 ) )
@ 8,25 button obtn[5] prompt "List" SIZE 25,10 action SetWindowLong( oList:hWnd, -16, nOR( WS_CHILD, WS_VISIBLE, WS_TABSTOP, LVS_LIST,/*LVS_SINGLESEL*/4 ) )
I don't why ... |
popupbrowse | Es una interesante posibilidad utilizar el popupbrowse, pero he notado que en mi caso tengo dificultades para que funcione debidamente en una ventana y no en una dialog, quizá porque haya algo que no esté tomando en cuenta.
Podrían por favor chequear este código?
Son dos ejemplos uno con dialog y otro con ventana no ha sido modificado mas que lo estrictamente necesario en el código, verán que (o al menos a mi me pasa) en el caso de la ventana, no se abre el browse y en el caso de la dialog funciona perfectamente.
Pueden probar estos dos ejemplos simplemente comentando y descomentándo, deje comentado el que no funciona, es decir el de la ventana.
Otra pregunta....
Como hago para seleccionar el dato de que columna del browse quiero que coloque en el get?
Gracias desde ya por vuestra ayuda.
[code=fw:1j5cbs5x]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> maindialog<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oDlg, oGet, cVar, aItems<br /><br /> aItems:=<span style="color: #000000;">{</span> <span style="color: #000000;">{</span><span style="color: #ff0000;">"Vaca"</span>, <span style="color: #ff0000;">"Va"</span>, <span style="color: #ff0000;">"Hereford"</span>, <span style="color: #000000;">2</span><span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span><span style="color: #ff0000;">"Novillo"</span>, <span style="color: #ff0000;">"Nov"</span>, <span style="color: #ff0000;">"Angus"</span>, <span style="color: #000000;">2</span><span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span><span style="color: #ff0000;">"Vaquillona"</span>, <span style="color: #ff0000;">"Vaq"</span>, <span style="color: #ff0000;">"Holando"</span>, <span style="color: #000000;">2</span><span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span><span style="color: #ff0000;">"Toro"</span>, <span style="color: #ff0000;">"To"</span>, <span style="color: #ff0000;">"Cruza"</span>, <span style="color: #000000;">2</span><span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">70</span><br /> @ <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cVar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">22</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> PopupBrowse<span style="color: #000000;">(</span> aItems, oGet, <span style="color: #000000;">{</span> || .t. <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">Pixel</span><br /> oGet:<span style="color: #000000;">bKeyDown</span> := <span style="color: #000000;">{</span> | nKey | <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nKey == VK_F4, PopupBrowse<span style="color: #000000;">(</span> aItems, oGet, <span style="color: #000000;">{</span> || .t. <span style="color: #000000;">}</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">Center</span><br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">/*<br />function mainwindow()<br /> local oWnd, oGet, cVar, aItems<br /><br /> aItems:={ {"Vaca", "Va", "Hereford", 2}, ;<br /> {"Novillo", "Nov", "Angus", 2}, ;<br /> {"Vaquillona", "Vaq", "Holando", 2}, ;<br /> {"Toro", "To", "Cruza", 2} }<br /><br /> DEFINE WINDOW oWnd FROM 0,0 to 200, 200<br /> @ 50, 50 GET oGet VAR cVar SIZE 200, 22 OF oWnd ACTION PopupBrowse( aItems, oGet, { || .t. } ) Pixel<br /> oGet:bKeyDown := { | nKey | If( nKey == VK_F4, PopupBrowse( aItems, oGet, { || .t. } ), ) } <br /> ACTIVATE WINDOW oWnd Center<br /> <br />return nil<br />*/</span><br /> </div>[/code:1j5cbs5x] |
popupbrowse | Creo esta segun lo revisado por mi hasta ahora para funcion con GET en DLG, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> |
popupbrowse | Muchas gracias por tu comentario, José Luis, sip, parece que si, me pregunto si funcionarían gets de estas características en controles como la ribbon....
Como podría hacer que devuelva el valor de una celda específica de la fila? |
popupbrowse | José,
Esta nueva función PopupBrowse() ha sido probada por el momento en GETs en diálogos y en XBrowses en diálogos.
Aún no había sido probada en ventanas.
En la próxima versión de FWH 16.08, se incluye un ejemplo completo de facturación en samples\yunus.prg que usa
la función PopupBrowse() desde GETs y desde el xbrowse.
Hemos modificado la función para que admita un nuevo parámetro que indica la columna del browse de la cual
queremos el valor. Por defecto se toma el valor 1. Tu ejemplo queda asi:
... ACTION PopupBrowse( aItems, oGet,, 2 ) |
popupbrowse | La función PopupBrowse() funciona tambien con el alias seleccionado, por lo que es
idónea para seleccionar un campo de una DBF ó recordset con SQL:
[code=fw:r322culo]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oDlg, oGet, cVar<br /><br /> USE Customer<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">70</span><br /> @ <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cVar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> Customer-><span style="color: #000000;">(</span> PopupBrowse<span style="color: #000000;">(</span> <span style="color: #00C800;">nil</span>, oGet <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">Pixel</span><br /> oGet:<span style="color: #000000;">bKeyDown</span> := <span style="color: #000000;">{</span> | nKey | <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nKey == VK_F4, Customer-><span style="color: #000000;">(</span> PopupBrowse<span style="color: #000000;">(</span> <span style="color: #00C800;">nil</span>, oGet <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">Center</span><br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:r322culo]
[img:r322culo]https://bitbucket.org/fivetech/screenshots/downloads/popupbrowse2.JPG[/img:r322culo] |
popupbrowse | Excelente Antonio!! sería bueno agregar esta funcionalidad para usar en controles como ribbon y en ventanas <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Me parece excelente esta mejora, ya que descubrí esta funcionalidad a través de este post pues no había notado que estaba en mi versión, y me parece excelente. |
popupbrowse | la función PopupBrowse() ya funciona correctamente en ventanas:
Esta versión mejorada se incluye en FWH 16.08
[code=fw:nrp71pu0]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oGet, c := space<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oWnd<br /><br /> USE STATES<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /> @ <span style="color: #000000;">20</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> c <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">24</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oWnd ;<br /> <span style="color: #0000ff;">ACTION</span> PopupBrowse<span style="color: #000000;">(</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oGet <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">60</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"OK"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">40</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oWnd<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:nrp71pu0]
[img:nrp71pu0]https://bitbucket.org/fivetech/screenshots/downloads/popupbrowse3.JPG[/img:nrp71pu0] |
popupbrowse | Esta es la forma de usar la función PopupBrowse() con un GET que use una cierta claúsula VALID:
This is the way to combine the use of function PopupBrowse() with the VALID of a GET:
[code=fw:1w40aq0s]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oGet, c := Space<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oDlg<br /><br /> USE STATES<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg TRUEPIXEL<br /><br /> @ <span style="color: #000000;">20</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> c <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">24</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">ACTION</span> PopupBrowse<span style="color: #000000;">(</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oGet <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">VALID</span> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> oGet:<span style="color: #000000;">Cargo</span> == <span style="color: #00C800;">nil</span>, <span style="color: #000000;">(</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Valid"</span> <span style="color: #000000;">)</span>, .T. <span style="color: #000000;">)</span>, .F. <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">60</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"OK"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">40</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:1w40aq0s] |
popupbrowse | [quote="Antonio Linares":1diibx09]la función PopupBrowse() ya funciona correctamente en ventanas:
Esta versión mejorada se incluye en FWH 16.08
[/quote:1diibx09]
Espléndido Antonio, estaré pendiente de su lanzamiento <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> |
popupbrowse | Antonio, algun sample de como usarse en un xBrowse.? gracias, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> |
popupbrowse | Jose Luis,
[code=fw:hw8nhniy]<div class="fw" id="{CB}" style="font-family: monospace;"> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">nEditType</span> = EDIT_BUTTON<br /> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">bEditBlock</span> = ;<br /> <span style="color: #000000;">{</span> | nRow, nCol, oCol, nKey | Items-><span style="color: #000000;">(</span> PopupBrowse<span style="color: #000000;">(</span> <span style="color: #00C800;">nil</span>, oCol:<span style="color: #000000;">oBtnElip</span>, bInit <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span></div>[/code:hw8nhniy]
bInit se define asi:
[code=fw:hw8nhniy]<div class="fw" id="{CB}" style="font-family: monospace;"> bInit = <span style="color: #000000;">{</span> | oBrwItems | oBrwItems:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">bValid</span> := ;<br /> <span style="color: #000000;">{</span> || oBrw:<span style="color: #000000;">Code</span>:<span style="color: #000000;">Value</span> := oWndItems:<span style="color: #000000;">oClient</span>:<span style="color: #000000;">Code</span>:<span style="color: #000000;">Value</span>,;<br /> oBrw:<span style="color: #0000ff;">Name</span>:<span style="color: #000000;">Value</span> := oWndItems:<span style="color: #000000;">oClient</span>:<span style="color: #0000ff;">Name</span>:<span style="color: #000000;">Value</span>,;<br /> oBrw:<span style="color: #000000;">Units</span>:<span style="color: #000000;">Value</span> := <span style="color: #000000;">1</span>,;<br /> oBrw:<span style="color: #000000;">Price</span>:<span style="color: #000000;">Value</span> := oWndItems:<span style="color: #000000;">oClient</span>:<span style="color: #000000;">Price</span>:<span style="color: #000000;">Value</span>, .T. <span style="color: #000000;">}</span> <span style="color: #000000;">}</span></div>[/code:hw8nhniy]
Tenemos planes de soportar un parámetro extra que seria el browse entero a usar, por lo que
se podria configurar totalmente a gusto del programador.
[img:hw8nhniy]https://bitbucket.org/fivetech/screenshots/downloads/popupbrowse4.JPG[/img:hw8nhniy]
En FWH 16.08 proporcionamos una completa aplicación de facturación (samples\yunus.prg) que usa este código |
popupbrowse | [quote="Antonio Linares":84j9rkso]Jose Luis,
[code=fw:84j9rkso]<div class="fw" id="{CB}" style="font-family: monospace;"> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">nEditType</span> = EDIT_BUTTON<br /> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">bEditBlock</span> = ;<br /> <span style="color: #000000;">{</span> | nRow, nCol, oCol, nKey | Items-><span style="color: #000000;">(</span> PopupBrowse<span style="color: #000000;">(</span> <span style="color: #00C800;">nil</span>, oCol:<span style="color: #000000;">oBtnElip</span>, bInit <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span></div>[/code:84j9rkso]
[img:84j9rkso]https://bitbucket.org/fivetech/screenshots/downloads/popupbrowse4.JPG[/img:84j9rkso]
En FWH 16.08 proporcionamos una completa aplicación de facturación (samples\yunus.prg) que usa este código[/quote:84j9rkso]
Muchas gracias Antonio por tu rapida respuesta, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> |
popupbrowse | Jose Luis,
Revisa mi respuesta porque la he editado después de escribirla <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
popupbrowse | [quote="Antonio Linares":1ggll0hs]Jose Luis,
Revisa mi respuesta porque la he editado después de escribirla <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:1ggll0hs]
Listo Antonio, revisada de nuevo tu respuesta. gracias, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> |
popupmenu | Can you change the height of the menuitems of a popup menu?Thanks in advanceOtto |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.