topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
moving to MSVC 32 bits
|
[quote="Antonio Linares":1vugeir5]Lucas,
In FWH\makes\vs2010_make.zip you have a make file for MS VC 2010.
Its quite simple to adapt it to build a library <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:1vugeir5]
Hi Antonio !
Can you send to me this zip ? I have Fwh 11.12 and here it's msmake.zip in \makes folder. I want to try VC with Fwh ...
With best regards and thanks in advance ! Rimantas
|
moving to MSVC 32 bits
|
Rimantas,
Already sent to your email
|
moving to MSVC 32 bits
|
[quote="Antonio Linares":29qq1z55]Rimantas,
Already sent to your email[/quote:29qq1z55]
Many thanks to you Antonio !
Problems ... <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> . Reviewing mak file , I found that :
SDKDIR="c:\Program Files\Microsoft SDKs\Windows\v7.0A"
echo $(SDKDIR)\lib\kernel32.lib >> msvc.tmp
I was in surprise , that mine downloaded VS2010_express install do not installed SDK . In mine case is only one folder ( \VS10\SDK\v3.5\Bin ) and empty ... May you direct link from which I can download true VS2010 express ?
With best regards !
P.S.: Now I found that this instalation is for trial ( 30 days ) ... <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
|
moving to MSVC 32 bits
|
Rimantas,
[url:2duqbrkr]http://www.microsoft.com/visualstudio/eng/products/visual-studio-2010-express[/url:2duqbrkr]
|
moving to MSVC 32 bits
|
Rimantas,
The express version is free, but you have to register to obtain a free key code.
It works very good.
|
moving to MSVC 32 bits
|
[quote="lucasdebeltran":2ufmr6a3]Rimantas,
The express version is free, but you have to register to obtain a free key code.
It works very good.[/quote:2ufmr6a3]
Thanks for the answer Lucas ! It's good news .. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> . So maybe I did not true choice - from mine search and Antonio direct it's the same . I directed to dowload Visual C++ 2010 Express . Now repeated instalation . In mine case D:\VS10 folder - no any SDK file ( kernel32.lib , user32.lib ) . Can't understand what I'm doing bad ... <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
|
moving to MSVC 32 bits
|
Antonio
Is this the product to download ?
Visual Studio 2010 Express All-in-One ISO
Tia
Richard
|
moving to MSVC 32 bits
|
Hello,
Please, use this link:
<!-- m --><a class="postlink" href="http://go.microsoft.com/?linkid=9709949">http://go.microsoft.com/?linkid=9709949</a><!-- m -->
It worked fine for me.
In fact, applications compiled with MSVC 2010 seems to be faster, particularry on painting.
Hope it helps.
|
moving to MSVC 32 bits
|
A few comments here.
1) Do not use FWH 11.12 ! Its time to upgrade. Antonio made a lot of updates in 2012 that related to MSVC, so you should get the current version !
2) There are other threads on this topic. In one I posted the UE Studio settings ( for their make file system ). I use that and it works very well, and is quite quick.
3) Generally your code should work fine, but there may be a few issues, especially with 3rd party products. You will want to post specific questions if you run into problems.
I have a VERY substantial app built with FWH / Harbour 3 / MSVC 2010. I only have one problem with that build which I need to work on with Antonio. Otherwise everything is now working beautifully.
Tim
|
moving to MSVC 32 bits
|
Timm,
Did you notice an increase on speed?.
Thanks.
|
moving to MSVC 32 bits
|
[quote="lucasdebeltran":27qg68bn]Hello,
Please, use this link:
<!-- m --><a class="postlink" href="http://go.microsoft.com/?linkid=9709949">http://go.microsoft.com/?linkid=9709949</a><!-- m -->
It worked fine for me.
In fact, applications compiled with MSVC 2010 seems to be faster, particularry on painting.
Hope it helps.[/quote:27qg68bn]
Thanks Lucas . It's the same package . I found SDK folder . Thought I directed install to D:\VS10 folder , SDK libs it writed to "C:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib" . Now I'll try to build application ...
With best regards !
|
moving to MSVC 32 bits
|
[quote="TimStone":xd1w3ndg]A few comments here.
1) Do not use FWH 11.12 ! Its time to upgrade. Antonio made a lot of updates in 2012 that related to MSVC, so you should get the current version !
2) There are other threads on this topic. In one I posted the UE Studio settings ( for their make file system ). I use that and it works very well, and is quite quick.
3) Generally your code should work fine, but there may be a few issues, especially with 3rd party products. You will want to post specific questions if you run into problems.
I have a VERY substantial app built with FWH / Harbour 3 / MSVC 2010. I only have one problem with that build which I need to work on with Antonio. Otherwise everything is now working beautifully.
Tim[/quote:xd1w3ndg]
Thanks for your advice , Tim . I'll try MsVC with own old version and then will be seems what to do in future . Though Harbour + MinGW too is good ... <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
|
moving to MSVC 32 bits
|
I haven't done speed tests. However, it may be a bit faster.
My main reason for moving to MSVC was compatibility. I have an old xHarbour build that I use still for my distributed product. I stopped paying for upgrades because there simply weren't any. There is so much new development in Windows and I feel it is good to use the newer tools.
I have Visual Studio 2012 but have not tried it yet with my builds.
The biggest issue is identifying all of the libraries that need to be used with the applications.
Tim
|
moving to MSVC 32 bits
|
[quote="lucasdebeltran":106sthl3]
It worked fine for me.
In fact, applications compiled with MSVC 2010 seems to be faster, particularry on painting.
[/quote:106sthl3]
Lucas , can you provide some help to me ? I installed VS 2010 Studio express , from Antonio get make files . Here it's mine first mak with VC ++ 2010 :
[code=fw:106sthl3]<div class="fw" id="{CB}" style="font-family: monospace;"><br />#Microsoft VS2010 make sample, <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> FiveTech Software <span style="color: #000000;">2010</span><br /><br />VCDIR=D:\VS10\VC<br />SDKDIR=<span style="color: #ff0000;">"C:<span style="color: #000000;">\P</span>rogram Files<span style="color: #000000;">\M</span>icrosoft SDKs<span style="color: #000000;">\W</span>indows<span style="color: #000000;">\v</span>7.0A"</span><br />HBDIR=D:\a\hrbm<br />FWDIR=D:\a\fwh<br /><br />.SUFFIXES: .prg .c .obj .rc .res<br /><br />engel.exe : <span style="color: #000000;">engel</span>.obj func.obj func_dsg.obj func_dt.obj texcels.obj tarray.obj engel.res<br /> echo engel.obj func.obj func_dsg.obj func_dt.obj texcels.obj tarray.obj > msvc.tmp<br /><br /> echo $<span style="color: #000000;">(</span>FWDIR<span style="color: #000000;">)</span>\lib\FiveH32.lib $<span style="color: #000000;">(</span>FWDIR<span style="color: #000000;">)</span>\lib\FiveHC32.lib >> msvc.tmp<br /><br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbrtl.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbvm.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\gtgui.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hblang.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbmacro.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbrdd.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\rddntx.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\rddcdx.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\rddfpt.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbsix.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbdebug.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbcommon.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbpp.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbwin.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbcplr.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\xhb.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbpcre.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbct.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbcpage.lib >> msvc.tmp<br /><br /> echo $<span style="color: #000000;">(</span>SDKDIR<span style="color: #000000;">)</span>\lib\kernel32.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>SDKDIR<span style="color: #000000;">)</span>\lib\user32.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>SDKDIR<span style="color: #000000;">)</span>\lib\gdi32.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>SDKDIR<span style="color: #000000;">)</span>\lib\winspool.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>SDKDIR<span style="color: #000000;">)</span>\lib\comctl32.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>SDKDIR<span style="color: #000000;">)</span>\lib\comdlg32.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>SDKDIR<span style="color: #000000;">)</span>\lib\advapi32.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>SDKDIR<span style="color: #000000;">)</span>\lib\shell32.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>SDKDIR<span style="color: #000000;">)</span>\lib\ole32.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>SDKDIR<span style="color: #000000;">)</span>\lib\oleaut32.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>SDKDIR<span style="color: #000000;">)</span>\lib\uuid.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>SDKDIR<span style="color: #000000;">)</span>\lib\odbc32.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>SDKDIR<span style="color: #000000;">)</span>\lib\odbccp32.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>SDKDIR<span style="color: #000000;">)</span>\lib\iphlpapi.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>SDKDIR<span style="color: #000000;">)</span>\lib\mpr.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>SDKDIR<span style="color: #000000;">)</span>\lib\version.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>SDKDIR<span style="color: #000000;">)</span>\lib\wsock32.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>SDKDIR<span style="color: #000000;">)</span>\lib\msimg32.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>SDKDIR<span style="color: #000000;">)</span>\lib\oledlg.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>SDKDIR<span style="color: #000000;">)</span>\lib\psapi.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>SDKDIR<span style="color: #000000;">)</span>\lib\gdiplus.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>SDKDIR<span style="color: #000000;">)</span>\lib\winmm.lib >> msvc.tmp<br /><br /> <span style="color: #00C800;">IF</span> EXIST engel.res echo engel.res >> msvc.tmp<br /><br /> SET LIB=$<span style="color: #000000;">(</span>VCDIR<span style="color: #000000;">)</span>\lib<br /> $<span style="color: #000000;">(</span>VCDIR<span style="color: #000000;">)</span>\bin\link @msvc.tmp /nologo /subsystem:<span style="color: #000000;">windows</span> /force:<span style="color: #000000;">multiple</span> /NODEFAULTLIB:<span style="color: #000000;">libc</span> > link.log<br /> @type link.log<br /> @del engel.c<br /> @del func.c<br /> @del func_dsg.c<br /> @del func_dt.c <br /> @del texcels.c <br /> @del tarray.c<br /> @del msvc.tmp<br /><br />engel.obj : <span style="color: #000000;">engel</span>.c<br />func.obj : <span style="color: #000000;">func</span>.c<br />func_dsg.obj : <span style="color: #000000;">func_dsg</span>.c<br />func_dt.obj : <span style="color: #000000;">func_dt</span>.c<br />texcels.obj : <span style="color: #000000;">texcels</span>.c<br />tarray.obj : <span style="color: #000000;">tarray</span>.c<br /><br />engel.c : <span style="color: #000000;">engel</span>.prg<br />func.c : <span style="color: #000000;">func</span>.prg<br />func_dsg.c : <span style="color: #000000;">func_dsg</span>.prg<br />func_dt.c : <span style="color: #000000;">func_dt</span>.prg<br />texcels.c : <span style="color: #000000;">texcels</span>.prg<br />tarray.c : <span style="color: #000000;">tarray</span>.prg<br /><br />engel.res : <span style="color: #000000;">engel</span>.rc<br /> $<span style="color: #000000;">(</span>VCDIR<span style="color: #000000;">)</span>\bin\rc.exe -r -d__FLAT__ engel.rc <br /><br />.prg.c:<br /> $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\bin\harbour $< /n /i$<span style="color: #000000;">(</span>FWDIR<span style="color: #000000;">)</span>\include;$<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\include<br /><br />.c.obj:<br /> $<span style="color: #000000;">(</span>VCDIR<span style="color: #000000;">)</span>\bin\cl.exe -c -TP -W3 -I$<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\include -I$<span style="color: #000000;">(</span>SDKDIR<span style="color: #000000;">)</span>\include -I$<span style="color: #000000;">(</span>VCDIR<span style="color: #000000;">)</span>\include $<<br /><br /> </div>[/code:106sthl3]
At first was error with cl.exe . I found that it's needfull to run VC ++ env.vars bat file . OK , run to cmd , run env. vars bat , run own make ( D:\VS10\VC\bin\nmake -fgo2.mak ) . Now I'm getting error with link - nmake fatal error U1077 : '\VS10\VC\bin\link' return code 0x460 . Can't understand - I alreday run vars bat . What I must to do also ? And maybe exist other solution with that enviroments vars ? It's very undoubt - it must run with cmd box .
Added :
I didn't noticed link log - maybe problem it's here :
[code=fw:106sthl3]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> Creating <span style="color: #0000ff;">library</span> engel.lib and object engel.<span style="color: #0000ff;">exp</span><br />engel.obj : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_TMYSQLSERVER<br />engel.obj : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_TVISTAMENU<br />FiveH32.lib<span style="color: #000000;">(</span>HELP32.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_FREELIBRARY<br />FiveH32.lib<span style="color: #000000;">(</span>PRV2PDF.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_FREELIBRARY<br />FiveH32.lib<span style="color: #000000;">(</span>TMETAFIL.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_FREELIBRARY<br />FiveH32.lib<span style="color: #000000;">(</span>HARBOUR.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_FREELIBRARY referenced in <span style="color: #00C800;">function</span> _HB_FUN_OLEGETPROPERTY<br />FiveH32.lib<span style="color: #000000;">(</span>GETTASKS.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_FREELIBRARY<br />FiveH32.lib<span style="color: #000000;">(</span>INI.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_FREELIBRARY<br />FiveH32.lib<span style="color: #000000;">(</span><span style="color: #0000ff;">IMAGE</span>.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_FREELIBRARY<br />FiveH32.lib<span style="color: #000000;">(</span><span style="color: #0000ff;">DIALOG</span>.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_FREELIBRARY<br />FiveH32.lib<span style="color: #000000;">(</span><span style="color: #0000ff;">WINDOW</span>.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_FREELIBRARY<br />FiveH32.lib<span style="color: #000000;">(</span>FILENAME.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_FREELIBRARY<br />FiveH32.lib<span style="color: #000000;">(</span>SHELLAPI.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_FREELIBRARY<br />FiveH32.lib<span style="color: #000000;">(</span>HELP32.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_LOADLIBRARY<br />FiveH32.lib<span style="color: #000000;">(</span>PRV2PDF.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_LOADLIBRARY<br />FiveH32.lib<span style="color: #000000;">(</span>TMETAFIL.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_LOADLIBRARY<br />FiveH32.lib<span style="color: #000000;">(</span>HARBOUR.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_LOADLIBRARY<br />FiveH32.lib<span style="color: #000000;">(</span>GETTASKS.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_LOADLIBRARY<br />FiveH32.lib<span style="color: #000000;">(</span>INI.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_LOADLIBRARY<br />FiveH32.lib<span style="color: #000000;">(</span><span style="color: #0000ff;">IMAGE</span>.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_LOADLIBRARY<br />FiveH32.lib<span style="color: #000000;">(</span><span style="color: #0000ff;">DIALOG</span>.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_LOADLIBRARY<br />FiveH32.lib<span style="color: #000000;">(</span><span style="color: #0000ff;">WINDOW</span>.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_LOADLIBRARY<br />FiveH32.lib<span style="color: #000000;">(</span>FILENAME.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_LOADLIBRARY referenced in <span style="color: #00C800;">function</span> _HB_FUN_CFILESUBDIR<br />FiveH32.lib<span style="color: #000000;">(</span>SHELLAPI.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_LOADLIBRARY<br />FiveH32.lib<span style="color: #000000;">(</span><span style="color: #0000ff;">WINDOW</span>.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol _HB_FUN_XFREEPROC<br />engel.exe : <span style="color: #000000;">fatal</span> error LNK1120: <span style="color: #000000;">5</span> unresolved externals<br /> </div>[/code:106sthl3]
Added again : how to build libmysql.lib from dll ? At first it must me created def file - how ? Manually ? Can any share with info ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
With best regards !
|
moving to MSVC 32 bits
|
Rimatas,
Errors at Five32 are due to you are using and old FWH version. I don´t get those errors with latest builds.
And the errors at engel.obj are because you are not linking TMYSQLSERVER function/class and TVISTAMENU. Latest, TVISTAMENU, is from Canal5 and included in Fivewin, maybe you made your own class or it is not included by mistake in your current FW version.
Maybe the fastest way to solve such problems, appart from TMYSQLSERVER, is updating your FWH version.
Regards,
|
moving to MSVC 32 bits
|
[quote="lucasdebeltran":2q7mpu1k]Rimatas,
Errors at Five32 are due to you are using and old FWH version. I don´t get those errors with latest builds.
And the errors at engel.obj are because you are not linking TMYSQLSERVER function/class and TVISTAMENU. Latest, TVISTAMENU, is from Canal5 and included in Fivewin, maybe you made your own class or it is not included by mistake in your current FW version.
Maybe the fastest way to solve such problems, appart from TMYSQLSERVER, is updating your FWH version.
Regards,[/quote:2q7mpu1k]
So Antonio sold to me a very buggy product ... <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> . TVistaMenu alreday existed in mine version . Maybe you know how to build libmysql lib from dll ? And how you are directing VC ++ vars ?
|
moving to MSVC 32 bits
|
Rimatas,
I set up the enviroment variables in vcvars in the system enviroment at Control Panel.
To create the lib:
impdef.exe mydll.def mydll.dll
lib.exe /def:mydll.def /out:mydll.def
The problem at your FWH build was that no one were using msvc 2010. Due to Timm Stone´s interest, Antonio reacted very quickly and professional as usual and updated and make it fully compilant. It is important to keep the product updated to get latest changes.
Hope it helps.
|
moving to MSVC 32 bits
|
[quote="lucasdebeltran":2sl2wvll]
I set up the enviroment variables in vcvars in the system enviroment at Control Panel.
To create the lib:
impdef.exe mydll.def mydll.dll
lib.exe /def:mydll.def /out:mydll.def
The problem at your FWH build was that no one were using msvc 2010. Due to Timm Stone´s interest, Antonio reacted very quickly and professional as usual and updated and make it fully compilant. It is important to keep the product updated to get latest changes.
[/quote:2sl2wvll]
Many thanks to you , Lucas ! <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
|
moving to MSVC 32 bits
|
Rimantas,
Microsoft delivers updates for Windows constantly, does that mean that Windows is buggy ? Not in my opinion, simply that a product can be enhanced and improved. The problem is not that there are bugs, the problem is that they may not get solved <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
We publish new builds every month since years, I think that shows a great commitment to deliver updates that enhance FWH constantly and a very fast response to solve bugs <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
moving to MSVC 32 bits
|
[quote="Antonio Linares":38124lt2]Rimantas,
Microsoft delivers updates for Windows constantly, does that mean that Windows is buggy ? Not in my opinion, simply that a product can be enhanced and improved. The problem is not that there are bugs, the problem is that they may not get solved <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
We publish new builds every month since years, I think that shows a great commitment to deliver updates that enhance FWH constantly and a very fast response to solve bugs <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:38124lt2]
Antonio, excuse for me if I unsightly joked ... <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> . It's all right , your efforts are very valuables and FiveWin very fine . I love it .. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
|
moving to MSVC 32 bits
|
Antonio,
With FW 13.02 and MSVC 2010 I get those warnings at link.
Please, how can be avoided?.
[code=fw:1bbj803l]<div class="fw" id="{CB}" style="font-family: monospace;">fivehc32.lib<span style="color: #000000;">(</span>DRIVES.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">warning</span> LNK4006: _HB_FUN_GETCURDIR ya se definió en amedida_fivewinmsvc.lib<span style="color: #000000;">(</span>varios.obj<span style="color: #000000;">)</span>; segunda definición omitida<br />fiveh32.lib<span style="color: #000000;">(</span>HARBOUR.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">warning</span> LNK4006: _HB_FUN_LOADLIB32 ya se definió en fivehc32.lib<span style="color: #000000;">(</span>CALDLL32.obj<span style="color: #000000;">)</span>; segunda definición omitida<br />fiveh32.lib<span style="color: #000000;">(</span>HARBOUR.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">warning</span> LNK4006: _HB_FUN_FREELIB32 ya se definió en fivehc32.lib<span style="color: #000000;">(</span>CALDLL32.obj<span style="color: #000000;">)</span>; segunda definición omitida<br />fiveh32.lib<span style="color: #000000;">(</span>WININET.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">warning</span> LNK4006: _HB_FUN_INTERNETOPEN ya se definió en ftp.obj; segunda definición omitida<br />fiveh32.lib<span style="color: #000000;">(</span>WININET.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">warning</span> LNK4006: _HB_FUN_INTERNETCONNECT ya se definió en ftp.obj; segunda definición omitida<br />fiveh32.lib<span style="color: #000000;">(</span>WININET.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">warning</span> LNK4006: _HB_FUN_INTERNETCLOSEHANDLE ya se definió en ftp.obj; segunda definición omitida<br />fiveh32.lib<span style="color: #000000;">(</span>WININET.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">warning</span> LNK4006: _HB_FUN_FTPOPENFILE ya se definió en ftp.obj; segunda definición omitida<br />fiveh32.lib<span style="color: #000000;">(</span>WININET.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">warning</span> LNK4006: _HB_FUN_INTERNETWRITEFILE ya se definió en ftp.obj; segunda definición omitida<br />fiveh32.lib<span style="color: #000000;">(</span>WININET.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">warning</span> LNK4006: _HB_FUN_INTERNETREADFILE ya se definió en ftp.obj; segunda definición omitida<br />hbrtl.lib<span style="color: #000000;">(</span>dirdrive.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">warning</span> LNK4006: _HB_FUN_DISKCHANGE ya se definió en fivehc32.lib<span style="color: #000000;">(</span>DISK.obj<span style="color: #000000;">)</span>; segunda definición omitida<br />hbct.lib<span style="color: #000000;">(</span>disk.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">warning</span> LNK4006: _HB_FUN_DRIVETYPE ya se definió en fivehc32.lib<span style="color: #000000;">(</span>C5CNEW.obj<span style="color: #000000;">)</span>; segunda definición omitida<br />hbct.lib<span style="color: #000000;">(</span>files.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">warning</span> LNK4006: _HB_FUN_DELETEFILE ya se definió en fivehc32.lib<span style="color: #000000;">(</span>C5CNEW.obj<span style="color: #000000;">)</span>; segunda definición omitida<br />c5taskmsvc.lib<span style="color: #000000;">(</span>vmenu.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">warning</span> LNK4006: _HB_FUN_DEGRADASO ya se definió en fivehc32.lib<span style="color: #000000;">(</span>C5CNEW.obj<span style="color: #000000;">)</span>; segunda definición omitida<br /> Creando biblioteca gestionmsvc.lib y objeto gestionmsvc.<span style="color: #0000ff;">exp</span><br />gestionmsvc.exe : <span style="color: #000000;">warning</span> LNK4088: <span style="color: #000000;">la</span> imagen se está generando debido a la opción /FORCE; quizá la imagen no se pueda ejecutar<br /> </div>[/code:1bbj803l]
Also, please when you have time build new Harbour build for MSVC 2010. I tried myself but some libs, such as hbwin.lib, where not created. I don´t know why.
Thank you very much.
|
moving to MSVC 32 bits
|
Lucas,
On each warning, you get a description that explains what is going on:
fivehc32.lib(DRIVES.obj) : warning LNK4006: _HB_FUN_GETCURDIR ya se definió en amedida_fivewinmsvc.lib(varios.obj); segunda definición omitida
function GetCurDir() is duplicated in both drives.c and in varios.c (or OBJ). You can not have duplicates. Don't use the /FORCE clause, instead remove each duplicated function.
|
moving to MSVC 32 bits
|
Antonio,
Thank you very much. Appart from that sample, the rest are in Fivewin´s libs.
For example:
fiveh32.lib(HARBOUR.obj) : warning LNK4006: _HB_FUN_LOADLIB32 ya se definió en fivehc32.lib(CALDLL32.obj); segunda definición omitida
fiveh32.lib(HARBOUR.obj) : warning LNK4006: _HB_FUN_FREELIB32 ya se definió en fivehc32.lib(CALDLL32.obj); segunda definición omitida
Please, could you fix it?.
Also, having a C function like HB_FUNC( INTERNETOPEN2 ), how can I declare such function as static?.
Thank you very much.
|
moving to MSVC 32 bits
|
Lucas,
These functions are duplicated in ftp.prg or ftp.c. There is no ftp.* in FWH neither in Harbour, unless I miss something:
fiveh32.lib(WININET.obj) : warning LNK4006: _HB_FUN_INTERNETOPEN ya se definió en ftp.obj; segunda definición omitida
fiveh32.lib(WININET.obj) : warning LNK4006: _HB_FUN_INTERNETCONNECT ya se definió en ftp.obj; segunda definición omitida
fiveh32.lib(WININET.obj) : warning LNK4006: _HB_FUN_INTERNETCLOSEHANDLE ya se definió en ftp.obj; segunda definición omitida
fiveh32.lib(WININET.obj) : warning LNK4006: _HB_FUN_FTPOPENFILE ya se definió en ftp.obj; segunda definición omitida
fiveh32.lib(WININET.obj) : warning LNK4006: _HB_FUN_INTERNETWRITEFILE ya se definió en ftp.obj; segunda definición omitida
fiveh32.lib(WININET.obj) : warning LNK4006: _HB_FUN_INTERNETREADFILE ya se definió en ftp.obj; segunda definición omitida
|
moving to MSVC 32 bits
|
Lucas,
Removed function DiskChange() from FWH. We use now Harbour's DiskChange() <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
moving to MSVC 32 bits
|
Antonio,
Thank you.
FTP.c is a patch for previous FWH, but now it is not needed.
There are still pending:
[code=fw:sud8vmh9]<div class="fw" id="{CB}" style="font-family: monospace;"><br />fiveh32.lib<span style="color: #000000;">(</span>HARBOUR.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">warning</span> LNK4006: _HB_FUN_LOADLIB32 ya se definió en fivehc32.lib<span style="color: #000000;">(</span>CALDLL32.obj<span style="color: #000000;">)</span>; segunda definición omitida<br /><br />fiveh32.lib<span style="color: #000000;">(</span>HARBOUR.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">warning</span> LNK4006: _HB_FUN_FREELIB32 ya se definió en fivehc32.lib<span style="color: #000000;">(</span>CALDLL32.obj<span style="color: #000000;">)</span>; segunda definición omitida<br /><br />hbrtl.lib<span style="color: #000000;">(</span>dirdrive.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">warning</span> LNK4006: _HB_FUN_DISKCHANGE ya se definió en fivehc32.lib<span style="color: #000000;">(</span>DISK.obj<span style="color: #000000;">)</span>; segunda definición omitida<br /><br />hbct.lib<span style="color: #000000;">(</span>disk.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">warning</span> LNK4006: _HB_FUN_DRIVETYPE ya se definió en fivehc32.lib<span style="color: #000000;">(</span>C5CNEW.obj<span style="color: #000000;">)</span>; segunda definición omitida<br /><br />hbct.lib<span style="color: #000000;">(</span>files.obj<span style="color: #000000;">)</span> : <span style="color: #000000;">warning</span> LNK4006: _HB_FUN_DELETEFILE ya se definió en fivehc32.lib<span style="color: #000000;">(</span>C5CNEW.obj<span style="color: #000000;">)</span>; segunda definición omitida<br /><br /> </div>[/code:sud8vmh9]
Antonio, how can I declare a static C function, for, for example, HB_FUNC( DELETEFILE )?.
Also, for your information RESALLFREE() function is not available for MSVC?.
Thank you very much for your attention and quick reply as always;).
|
moving to MSVC 32 bits
|
Lucas,
static HB_FUNC( DELETEFILE )
|
moving to MSVC 32 bits
|
Antonio,
When I remove /FORCE I can´t link due to error:
FIVEHC32.lib(C5CNEW.obj) : error LNK2005: _HB_FUN_DRIVETYPE already defined in HBCT.lib(disk.obj)
|
moving to MSVC 32 bits
|
André,
You can keep using /FORCE by now. but in next FWH build, we will remove function DriveType() from FWH and use the one from Harbour's hbct.lib <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
moving to MSVC 32 bits
|
OK thanks.
|
moving to MSVC 32 bits
|
Antonio,
Just for revision. Those are duplicate warnings:
[quote:3trai0ot]fiveh32.lib(HARBOUR.obj) : warning LNK4006: _HB_FUN_LOADLIB32 ya se definió en fivehc32.lib(CALDLL32.obj); segunda definición omitida
fiveh32.lib(HARBOUR.obj) : warning LNK4006: _HB_FUN_FREELIB32 ya se definió en fivehc32.lib(CALDLL32.obj); segunda definición omitida
hbrtl.lib(dirdrive.obj) : warning LNK4006: _HB_FUN_DISKCHANGE ya se definió en fivehc32.lib(DISK.obj); segunda definición omitida
hbct.lib(disk.obj) : warning LNK4006: _HB_FUN_DRIVETYPE ya se definió en fivehc32.lib(C5CNEW.obj); segunda definición omitida
hbct.lib(files.obj) : warning LNK4006: _HB_FUN_DELETEFILE ya se definió en fivehc32.lib(C5CNEW.obj); segunda definición omitida
[/quote:3trai0ot]
Thank you for your assistance with MSVC 2010. It seems to be working very good. Also, I think there is an increase on speed. Do you think is it possible?.
Also, why ResAllFree() function is not available under MSVC libs?.
Thank you very much.
|
moving to MSVC 32 bits
|
Lucas,
[quote:ails9lab]I think there is an increase on speed. Do you think is it possible?[/quote:ails9lab]
No <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
C compilers are just translators to highly optimized assembler code, and the resulting assembler is quite similar for all of them. And nothing can't run faster than assembler <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
moving to MSVC 32 bits
|
Antonio,
I got another one to remove from FWH:
FIVEHC32.lib(STRTOKEN.obj) : warning LNK4006: _HB_FUN_STRTOKEN already defined in HBMISC.lib(stringsx.obj); second definition ignored
|
moving to MSVC 32 bits
|
André,
We should not remove that one, as StrToken() is a long time used function in FWH, unless they behave exactly the same...
|
mp3-tags
|
Hi,
Is there a way to read the mp3-tags, like 'Artist' or 'Song' via FWH like this program [url:2ijv7fsd]https://www.mp3tag.de/en/[/url:2ijv7fsd] does?
|
mp3-tags
|
did you see this <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=37664&p=225135&hilit=mp3#p225135">viewtopic.php?f=3&t=37664&p=225135&hilit=mp3#p225135</a><!-- l --> ?
|
mp3-tags
|
Thank you, I will check it.
|
msctls_progress32
|
Estimados,
Esa clase tengo entendido es para hacer una barra de progreso en 3D, existe algun ejemplo?
|
msctls_progress32
|
samples\TestProg.prg
|
msctls_progress32
|
Antonio,
Pero para tener un progress con estilo XP, o sea, que no sea tan chato. me explico?
|
msctls_progress32
|
Gustavo,
Hoy por hoy, Windows Mobile no soporta los "temas" de XP, por lo que las barras de progreso se ven tal cual las muestra el ejemplo. Se podría simular los temas de Xp en Pocket PC, pero eso implicaría reescribir bastantes controles propios de Windows Mobile.
|
msg erro classe TDBOdbc()
|
Ola pessoal, to quase terminando um programa de conversao de SQLServer para DBF ou vice versa. Estou usando Harbour 41.0, fwh 2.4, BCC 5.5.
O programa abaixo esta funcionando perfeitamente, mas quando a função seek() é ativada da a mansagem "Seek operations are not allowed on SELECT statements", nao sei pq esta dando esta mensagem , pq nao da erro algum. agradeço as ajudas.
Parte do codigo abaixo:
l_ope3:=TOdbc():New(l_odb,"","") //Itens
l_tait=TDBOdbc():New("SELECT * FROM "+"SD1010 ORDER BY d1_doc+d1_emissao",l_ope3,3,"SEL_003")
l_notnum="123456"
l_notdde="20091101"
l_tait:seek(l_notnum+l_notdde,.f.)
l_tait:end()
[img]c:\tempo\mfw.gif[/img]
|
msg erro classe TDBOdbc()
|
Es preferible que uses ADO en vez de ODBC, que Microsoft ya desaconsejo su uso hace tiempo.
En estos foros tienes muchos ejemplos de como usar ADO <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
msgAlert se comporta independiente
|
Hola a todos, esperando que se encuentren muy bien,
Tengo establecido un tiempo maximo en mi aplicacion para que el usuario este inactivo, es decir sin ejecutar nada en la PC, es decir sin tocar el teclado ni el raton. Si esto sucede, aparece un msgAlert() indicando que el tiempo se ha cumplido y la sesion expiró, hasta ahi todo bien, como se muestra en la imagen:
[url:3epo50ws]https://datanet.space/fw/aw1.jpg[/url:3epo50ws]
El problema se presenta cuando la aplicacion esta minimizada. Al vencerse el tiempo, el msgalert() y la ventana se muestran independientes, y al querer maximizar, solo se levanta aquella en que se haga click.
Lo que quiero es que al hacer click bien sea en el msgAlert() o en la ventana, ambos se levanten. Ace dejo un video para graficar lo que sucede.
[url:3epo50ws]https://datanet.space/fw/Aw3.mp4[/url:3epo50ws]
Otra cosa es que para controlar el tiempo, uso la funcion sysIdleSecs() pero la misma controla todo el equipo y quisiera que funcionara solo dentro de mi aplicacion si es posible. Es decir, si se minimiza la aplicacion y el usuario se va por decir a word y tarda alli mas de el tiempo establecido, ese tiempo mi sistema no lo toma en cuenta, es decir no se cierra, solo se cierra cuando el usuario no hace absolutamente nada en la PC.
Alguna idea de como hacerlo u otra forma que funcione como quiero?
|
msgAlert se comporta independiente
|
[code=fw:37sdpmvm]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// tinativo.prg - By William Adami</span><br /><span style="color: #B900B9;">// exemplo do uso da classe Tinativo</span><br /><span style="color: #B900B9;">// Apos um tempo de inatividade do mouse</span><br /><span style="color: #B900B9;">// e do teclado chama uma funcao qualquer.</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> oWnd<br /><br /><span style="color: #B900B9;">//************</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> nTempo_espera, cNome_funcao, lTimercontinua<br /><br /> <span style="color: #B900B9;">// Tempo a ser esperado ate chamar a funcao</span><br /> <span style="color: #B900B9;">// -> 1 hora tem 3600 segundos.</span><br /> nTempo_espera := <span style="color: #000000;">10</span> <span style="color: #B900B9;">// segundos. </span><br /><br /> <span style="color: #B900B9;">// nome da funcao a ser chamada quando</span><br /> <span style="color: #B900B9;">// chegar no tempo de espera</span><br /> cNome_funcao := <span style="color: #ff0000;">"LOGOFF()"</span> <br /> <span style="color: #B900B9;">// se apos executar a funcao , continua</span><br /> <span style="color: #B900B9;">// monitorando a inatividade do mouse e teclado.</span><br /> lTimercontinua := .F.<br /><br /> <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">window</span> oWnd <span style="color: #0000ff;">title</span> <span style="color: #ff0000;">"Teste de teclado e mouse"</span><br /><br /> <span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">window</span> oWnd ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> tinativo<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">(</span> nTempo_espera, cNome_funcao, lTimerContinua <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> LOGOFF<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">// msgalert( "AQUI ENTRA SUA FUNCAO DE LOGOFF !", "AVISO" )</span><br /><br /> <span style="color: #00C800;">IF</span> MsgYesNo<span style="color: #000000;">(</span> OemToAnsi<span style="color: #000000;">(</span> <span style="color: #ff0000;">"ATEN€ÇO USUµRIO: "</span> <span style="color: #000000;">)</span>+CRLF+ ;<br /> OemToAnsi<span style="color: #000000;">(</span> <span style="color: #ff0000;">"PROTEJA OS BANCOS DE DADOS DO PROGRAMA."</span> <span style="color: #000000;">)</span>+CRLF+ ;<br /> OemToAnsi<span style="color: #000000;">(</span> <span style="color: #ff0000;">"SE NÇO ESTIVER USANDO O WINORCAM.EXE, "</span> <span style="color: #000000;">)</span>+CRLF+ ;<br /> OemToAnsi<span style="color: #000000;">(</span> <span style="color: #ff0000;">"DESLIGUE-O PARA NÇO CORRER RISCOS. "</span> <span style="color: #000000;">)</span>+CRLF+ ;<br /> OemToAnsi<span style="color: #000000;">(</span> <span style="color: #ff0000;">"POSSO DESLIGAR O PROGRAMA? <S> ou <N>??"</span> <span style="color: #000000;">)</span>, ;<br /> OemToAnsi<span style="color: #000000;">(</span> <span style="color: #ff0000;">"AVISO PARA DESLIGAR O WINORCAM.EXE... "</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">//--Fecha o Programa Definitivamente</span><br /> LIBERA_TUDO<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// ESTA EM WINORCAM.PRG</span><br /><br /> <span style="color: #B900B9;">// QUIT</span><br /><br /> <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// tinativo.prg</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">CLASS</span> TINATIVO<br /><br /> <span style="color: #00C800;">DATA</span> nTimeInpAntes<br /> <span style="color: #00C800;">DATA</span> nTimeInpDepois<br /> <span style="color: #00C800;">DATA</span> cTimeAtu<br /> <span style="color: #00C800;">DATA</span> nTempo<br /> <span style="color: #00C800;">DATA</span> oTimerTime<br /> <span style="color: #00C800;">DATA</span> cFunc<br /> <span style="color: #00C800;">DATA</span> lContinuar<br /><br /> <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">NEW</span><span style="color: #000000;">(</span> nTime, cFuncao, lContinua <span style="color: #000000;">)</span> CONSTRUCTOR<br /><br /> <span style="color: #00C800;">METHOD</span> ver_tempo<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">new</span><span style="color: #000000;">(</span> ntime, cFuncao, lContinua <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TINATIVO<br /><br /> ::<span style="color: #000000;">cfunc</span> := cfuncao<br /> ::<span style="color: #000000;">ntempo</span> := ntime<br /> ::<span style="color: #000000;">lContinuar</span> := lContinua<br /> ::<span style="color: #000000;">oTimerTime</span> := TTimer<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;">1000</span>, <span style="color: #000000;">{</span> || ::<span style="color: #000000;">VER_TEMPO</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">oTimerTime</span>:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">cTimeAtu</span> := time<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">nTimeInpAntes</span> := getInputState<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// 0 = erro</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">self</span><br /><br /><span style="color: #00C800;">METHOD</span> VER_TEMPO <span style="color: #00C800;">CLASS</span> TINATIVO<br /><br /> <span style="color: #00C800;">LOCAL</span> AUX<br /><br /> ::<span style="color: #000000;">nTimeInpDepois</span> := getInputState<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">IF</span> <span style="color: #000000;">(</span> ::<span style="color: #000000;">nTimeInpDepois</span> - ::<span style="color: #000000;">nTimeInpAntes</span> <span style="color: #000000;">)</span> > <span style="color: #000000;">0</span><br /><br /> ::<span style="color: #000000;">nTimeInpAntes</span> := getInputState<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> ::<span style="color: #000000;">cTimeAtu</span> := time<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">ENDIF</span><br /><br /><br /> <span style="color: #00C800;">IF</span> <span style="color: #000000;">(</span> CONVTIME<span style="color: #000000;">(</span> time<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> - CONVTIME<span style="color: #000000;">(</span> ::<span style="color: #000000;">cTimeAtu</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> > ::<span style="color: #000000;">ntempo</span><br /><br /> ::<span style="color: #000000;">oTimerTime</span>:<span style="color: #000000;">DeActivate</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> aux := ::<span style="color: #000000;">cfunc</span><br /> <br /> <span style="color: #B900B9;">// aqui executa a funcao</span><br /><br /> &aux<br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lContinuar</span><br /><br /> ::<span style="color: #000000;">oTimerTime</span>:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">cTimeAtu</span> := time<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">ENDIF</span><br /><br /><br /> <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> CONVTIME<span style="color: #000000;">(</span> ZZ <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> Z<br /><br /> Z := <span style="color: #000000;">(</span> VAL<span style="color: #000000;">(</span> <span style="color: #0000ff;">LEFT</span><span style="color: #000000;">(</span>ZZ,<span style="color: #000000;">2</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> * <span style="color: #000000;">360</span> <span style="color: #000000;">)</span> + <span style="color: #000000;">(</span> VAL<span style="color: #000000;">(</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span>ZZ,<span style="color: #000000;">4</span>,<span style="color: #000000;">2</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> * <span style="color: #000000;">60</span> <span style="color: #000000;">)</span> + ;<br /> VAL<span style="color: #000000;">(</span> <span style="color: #0000ff;">RIGHT</span><span style="color: #000000;">(</span> ZZ,<span style="color: #000000;">2</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span> Z<br /><br /><span style="color: #B900B9;">//*----------------------------------------------------------------------</span><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><span style="color: #00D7D7;">#define</span> _WIN32_WINNT 0x0500<br /><span style="color: #00D7D7;">#define</span> WINVER 0x0500<br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"windows.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapi.h"</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> GETINPUTSTATE <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br />LASTINPUTINFO lpi;<br />lpi.cbSize = sizeof<span style="color: #000000;">(</span>LASTINPUTINFO<span style="color: #000000;">)</span>;<br /><span style="color: #00C800;">if</span> <span style="color: #000000;">(</span>!GetLastInputInfo<span style="color: #000000;">(</span>&lpi<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br />hb_retni<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br />hb_retni<span style="color: #000000;">(</span>lpi.dwTime<span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /> <br /><span style="color: #B900B9;">// FIN / END</span><br /> </div>[/code:37sdpmvm]
Regards, saludos.
|
msgAlert se comporta independiente
|
Hola, es el comportamiento normal de una dialogo con respecto a la ventana. Se me ocurre que cuando el tiempo expira verificaría el estado de la ventana, si está minimizada la maximizaría y después mostraría el MsgAlert.
Saludos
|
msgAlert se comporta independiente
|
[quote="horacio":12fjs9hd]Hola, es el comportamiento normal de una dialogo con respecto a la ventana. Se me ocurre que cuando el tiempo expira verificaría el estado de la ventana, si está minimizada la maximizaría y después mostraría el MsgAlert.
Saludos[/quote:12fjs9hd]
Hola Horacio! saludos!
Excelente ! se ve una solución Simple y que debería funcionar a la primera...
Voy a aplicarlo y te comento,
Gracias !!
|
msgAlert se comporta independiente
|
[quote="horacio":2ms1oq98]Hola, es el comportamiento normal de una dialogo con respecto a la ventana. Se me ocurre que cuando el tiempo expira verificaría el estado de la ventana, si está minimizada la maximizaría y después mostraría el MsgAlert.
Saludos[/quote:2ms1oq98]
Listo amigo, funcionó de lujo!
Muchas Gracias !!
Un abrazo!
Joao, probé el TINACTIVO , funciona exactamente igual al sysIdleSecs() , toma en cuenta el tiempo inactivo de todo el equipo, no de mi aplicacion.
Gracias por tu generosa ayuda de siempre!
|
msgAlert se comporta independiente
|
José, como funciona este sysIdleSecs() ? Puedes hacer un pequeño ejemplo, por favor?
Gracias.
Regards, saludos.
|
msgAlert se comporta independiente
|
[quote="karinha":13ytk1je]José, como funciona este sysIdleSecs() ? Puedes hacer un pequeño ejemplo, por favor?
Gracias.
Regards, saludos.[/quote:13ytk1je]
Seguro que si amigo mio, el fin de semana preparo algo sencillo y lo dejo por acá !!
|
msgAlert se comporta independiente
|
Me alegro!, Abrazo.
|
msgInfo SetFont
|
Is it possible to set a font to a msgInfo.
Thanks in advance
Otto
|
msgInfo SetFont
|
FW msgbox and other msg* functions in turn call Windows MessageBox API function, which in turn uses system fonts set by user.
|
msgInfo SetFont
|
Otto
This is my collection of MyMsg... functions. Without testing.
[code=fw:1ineaja8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">////////////////////////////////////////////</span><br /><span style="color: #B900B9;">// MyMessages.Prg</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// A collection of messages functions</span><br /><span style="color: #B900B9;">/////////////////////////////////////////////////////</span><br />*<br /><span style="color: #00D7D7;">#INCLUDE</span> <span style="color: #ff0000;">"FiveWin.CH"</span><br />#xcommand <span style="color: #00C800;">DEFAULT</span> <v1> <span style="color: #0000ff;">TO</span> <x1> <span style="color: #000000;">[</span>, <vn> <span style="color: #0000ff;">TO</span> <xn> <span style="color: #000000;">]</span> ;<br /> => ;<br /> <span style="color: #00C800;">IF</span> <v1> == <span style="color: #00C800;">NIL</span> ; <v1> := <x1> ; END ;<br /> <span style="color: #000000;">[</span>; <span style="color: #00C800;">IF</span> <vn> == <span style="color: #00C800;">NIL</span> ; <vn> := <xn> ; END <span style="color: #000000;">]</span><br /><br />*<br />*<br /><span style="color: #B900B9;">/* Standard icon resource IDs */</span><br /><span style="color: #00D7D7;">#define</span> IDI_APPLICATION <span style="color: #000000;">32512</span><br /><span style="color: #00D7D7;">#define</span> IDI_HAND <span style="color: #000000;">32513</span><br /><span style="color: #00D7D7;">#define</span> IDI_QUESTION <span style="color: #000000;">32514</span><br /><span style="color: #00D7D7;">#define</span> IDI_EXCLAMATION <span style="color: #000000;">32515</span><br /><span style="color: #00D7D7;">#define</span> IDI_INFORMATION <span style="color: #000000;">32516</span><br /><span style="color: #00D7D7;">#define</span> IDI_WIN <span style="color: #000000;">32517</span><br /><br /><span style="color: #00D7D7;">#define</span> COLOR_BTNFACE <span style="color: #000000;">15</span><br /><br />#ifdef __CLIPPER__<br /> <span style="color: #00D7D7;">#define</span> EM_SETSEL <span style="color: #000000;">(</span>WM_USER<span style="color: #000000;">+1</span><span style="color: #000000;">)</span><br />#else<br /> <span style="color: #00D7D7;">#define</span> EM_SETSEL <span style="color: #000000;">177</span><br />#endif<br /><br />*<br /><span style="color: #00D7D7;">#Define</span> TIPO_MSGINFO <span style="color: #ff0000;">"1"</span><br /><span style="color: #00D7D7;">#Define</span> TIPO_MSGRUN <span style="color: #ff0000;">"2"</span><br /><span style="color: #00D7D7;">#Define</span> TIPO_ALERT <span style="color: #ff0000;">"3"</span><br /><span style="color: #00D7D7;">#Define</span> TIPO_MSGYESNO <span style="color: #ff0000;">"4"</span><br /><span style="color: #00D7D7;">#Define</span> TIPO_MSGNOYES <span style="color: #ff0000;">"5"</span><br />*<br /><span style="color: #00D7D7;">#Define</span> LISTA_ICONOS_EN_EJECUTABLE Upper<span style="color: #000000;">(</span><span style="color: #ff0000;">"ProgIco"</span><span style="color: #000000;">)</span><br />*<br /><span style="color: #B900B9;">//-------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">CLASS</span> TMsg<br /><br /> <span style="color: #00C800;">DATA</span> cTipo<br /><br /> <span style="color: #00C800;">DATA</span> cTitle<br /> <span style="color: #00C800;">DATA</span> cMsg<br /><br /> <span style="color: #00C800;">DATA</span> oFont<br /> <span style="color: #00C800;">DATA</span> oFontBtn<br /> <span style="color: #00C800;">DATA</span> lFontInterno HIDDEN<br /> <span style="color: #00C800;">DATA</span> xIcon<br /> <span style="color: #00C800;">DATA</span> aOptions<br /><br /> <span style="color: #00C800;">DATA</span> oDlg<br /> <span style="color: #00C800;">DATA</span> lModal HIDDEN<br /><br /> <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Activate</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> DlgInit HIDDEN<br /> <span style="color: #00C800;">DATA</span> nDefault<br /><br /> <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">Default</span> HIDDEN<br /> <span style="color: #00C800;">DATA</span> oPrompt<br /><br /> <span style="color: #00C800;">DATA</span> lTerminar <span style="color: #0000ff;">INIT</span> .F.<br /> <span style="color: #00C800;">DATA</span> nStyle<br /> <span style="color: #00C800;">DATA</span> oIcon<br /><br /> <span style="color: #00C800;">DATA</span> lBtnCancelar <span style="color: #0000ff;">INIT</span> .F. HIDDEN<br /> <span style="color: #00C800;">DATA</span> bActionCancelar <span style="color: #0000ff;">INIT</span> <span style="color: #00C800;">NIL</span> HIDDEN<br /><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><br /><br /><br /><span style="color: #B900B9;">////////////////////////////////////////////////////////////</span><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span>cTipo<span style="color: #000000;">)</span><br /><span style="color: #00C800;">IF</span> Empty<span style="color: #000000;">(</span>cTipo<span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Falta cTipo"</span>, cTipo<span style="color: #000000;">)</span><br /><span style="color: #00C800;">ENDIF</span><br /><br />::<span style="color: #000000;">cTipo</span> := cTipo<br />::<span style="color: #00C800;">Default</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span><br /><br /><br /><span style="color: #B900B9;">///////////////////////////////////////</span><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">Default</span><br /><br /><span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br /> <span style="color: #00C800;">CASE</span> ::<span style="color: #000000;">cTipo</span> == TIPO_MSGINFO<br /> <span style="color: #00C800;">DEFAULT</span> ::<span style="color: #000000;">aOptions</span>:= <span style="color: #000000;">{</span><span style="color: #ff0000;">"&Aceptar"</span><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">DEFAULT</span> ::<span style="color: #000000;">xIcon</span>:= IDI_INFORMATION<br /> <span style="color: #00C800;">CASE</span> ::<span style="color: #000000;">cTipo</span> == TIPO_MSGYESNO<br /> <span style="color: #00C800;">DEFAULT</span> ::<span style="color: #000000;">aOptions</span>:= <span style="color: #000000;">{</span>oemtoansi<span style="color: #000000;">(</span><span style="color: #ff0000;">"&Yes"</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"&No"</span><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">DEFAULT</span> ::<span style="color: #000000;">xIcon</span>:= IDI_QUESTION<br /> <span style="color: #00C800;">DEFAULT</span> ::<span style="color: #000000;">nDefault</span>:= <span style="color: #000000;">1</span><br /><br /> <span style="color: #00C800;">CASE</span> ::<span style="color: #000000;">cTipo</span> == TIPO_MSGNOYES<br /> <span style="color: #00C800;">DEFAULT</span> ::<span style="color: #000000;">aOptions</span>:= <span style="color: #000000;">{</span>oemtoansi<span style="color: #000000;">(</span><span style="color: #ff0000;">"&Yes"</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"&No"</span><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">DEFAULT</span> ::<span style="color: #000000;">xIcon</span>:= IDI_QUESTION<br /> <span style="color: #00C800;">DEFAULT</span> ::<span style="color: #000000;">nDefault</span>:= <span style="color: #000000;">2</span><br /><br /> <span style="color: #00C800;">CASE</span> ::<span style="color: #000000;">cTipo</span> == TIPO_MSGRUN<br /> <span style="color: #00C800;">DEFAULT</span> ::<span style="color: #000000;">xIcon</span>:= IDI_WIN<br /><br /> <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">lBtnCancelar</span><br /> <span style="color: #00C800;">IF</span> Empty<span style="color: #000000;">(</span>::<span style="color: #000000;">aOptions</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">aOptions</span>:= <span style="color: #000000;">{</span>oemtoansi<span style="color: #000000;">(</span><span style="color: #ff0000;">"&Cancel"</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">ENDCASE</span><br /><br /><span style="color: #00C800;">DEFAULT</span> ::<span style="color: #000000;">aOptions</span>:= <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /><span style="color: #00C800;">DEFAULT</span> ::<span style="color: #000000;">cTitle</span>:= OemToAnsi<span style="color: #000000;">(</span><span style="color: #ff0000;">"Attention"</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">DEFAULT</span> ::<span style="color: #000000;">cMsg</span> := OemToAnsi<span style="color: #000000;">(</span><span style="color: #ff0000;">"Attention message"</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">DEFAULT</span> ::<span style="color: #000000;">lFontInterno</span>:= .f.<br /><span style="color: #00C800;">DEFAULT</span> ::<span style="color: #000000;">nDefault</span>:= <span style="color: #000000;">1</span><br />*<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />*<br /><span style="color: #B900B9;">//-------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Activate</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">Local</span> oPorError:= <span style="color: #00C800;">Self</span><br /><span style="color: #00C800;">Local</span> oFlash<br /><br />::<span style="color: #00C800;">Default</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><br /><span style="color: #00C800;">IF</span> ValType<span style="color: #000000;">(</span>::<span style="color: #000000;">cTitle</span><span style="color: #000000;">)</span> != <span style="color: #ff0000;">"C"</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Wrong title"</span>, ::<span style="color: #000000;">cTitle</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">IF</span> ::<span style="color: #000000;">oFont</span> == <span style="color: #00C800;">NIL</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> ::<span style="color: #000000;">oFont</span> <span style="color: #0000ff;">NAME</span> GetSysFont<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">-14</span><br /> ::<span style="color: #000000;">lFontInterno</span>:= .t.<br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">IF</span> ::<span style="color: #000000;">oFontBtn</span> == <span style="color: #00C800;">NIL</span><br /> ::<span style="color: #000000;">oFontBtn</span>:= ::<span style="color: #000000;">oFont</span><br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">IF</span> ::<span style="color: #000000;">xIcon</span> == <span style="color: #00C800;">NIL</span><br /> <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">cTipo</span> == TIPO_ALERT<br /> <span style="color: #00C800;">IF</span> Len<span style="color: #000000;">(</span>::<span style="color: #000000;">aOptions</span><span style="color: #000000;">)</span> > <span style="color: #000000;">1</span><br /> ::<span style="color: #000000;">xIcon</span>:= IDI_QUESTION<br /> <span style="color: #00C800;">ELSE</span><br /> ::<span style="color: #000000;">xIcon</span>:= IDI_EXCLAMATION<br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">ENDIF</span><br /><br /><br /><br /><span style="color: #00C800;">IF</span> Empty<span style="color: #000000;">(</span>::<span style="color: #000000;">aOptions</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">cTipo</span> $ TIPO_ALERT+ TIPO_MSGYESNO+ TIPO_MSGNOYES<br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Missing aOptions"</span>, ::<span style="color: #000000;">aOptions</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">ENDIF</span><br />::<span style="color: #000000;">lModal</span>:= !<span style="color: #000000;">(</span>::<span style="color: #000000;">cTipo</span> $ TIPO_MSGRUN<span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">IF</span> !::<span style="color: #000000;">lModal</span><br /><br /> <span style="color: #00D7D7;">#Define</span> STYLE_CAPTION WS_CAPTION<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> ::<span style="color: #000000;">oDlg</span> <span style="color: #0000ff;">TITLE</span> ::<span style="color: #000000;">cTitle</span> <span style="color: #0000ff;">FONT</span> ::<span style="color: #000000;">oFont</span> ; <br /> <span style="color: #0000ff;">STYLE</span> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span>::<span style="color: #000000;">nStyle</span> != <span style="color: #00C800;">NIL</span>, ::<span style="color: #000000;">nStyle</span>, STYLE_CAPTION<span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">ELSE</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> ::<span style="color: #000000;">oDlg</span> <span style="color: #0000ff;">TITLE</span> ::<span style="color: #000000;">cTitle</span> <span style="color: #0000ff;">FONT</span> ::<span style="color: #000000;">oFont</span><br /><span style="color: #00C800;">ENDIF</span><br />::<span style="color: #000000;">oDlg</span>:<span style="color: #000000;">Cargo</span> := <span style="color: #000000;">0</span><br />::<span style="color: #000000;">oDlg</span>:<span style="color: #000000;">lHelpIcon</span> := .f.<br /><br /><span style="color: #00C800;">IF</span> !::<span style="color: #000000;">lModal</span><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> ::<span style="color: #000000;">oDlg</span> ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">(</span>oPorError:<span style="color: #000000;">DlgInit</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">NOWAIT</span> ;<br /> <span style="color: #0000ff;">VALID</span> oPorError:<span style="color: #000000;">lTerminar</span><br /><br /> SysRefresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// Important</span><br /><span style="color: #00C800;">ELSE</span><br /><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> ::<span style="color: #000000;">oDlg</span> ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">(</span>;<br /> oPorError:<span style="color: #000000;">DlgInit</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,;<br /> <span style="color: #00C800;">NIL</span>; <br /> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> oFlash != <span style="color: #00C800;">NIL</span><br /> oFlash:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oFlash:= <span style="color: #00C800;">NIL</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">ENDIF</span><br /><br /><br /><span style="color: #00C800;">IF</span> ::<span style="color: #000000;">lFontInterno</span><br /> ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> ::<span style="color: #000000;">oDlg</span>:<span style="color: #000000;">Cargo</span><br /><br /><br /><br /><span style="color: #B900B9;">//-----------------------------------------------------------------//</span><br /><span style="color: #00C800;">METHOD</span> DlgInit<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">Local</span> oGet:= <span style="color: #00C800;">nil</span>, oBtn, oIcon<br /> <span style="color: #00C800;">Local</span> cSay, cLine<br /> <span style="color: #00C800;">Local</span> nMaxWidth, nMaxHeight, nWidth, nHeight, nLines, nFor<br /> <span style="color: #00C800;">Local</span> nBtnWidth, nBtnOffset, nBtnHeight, nBtnLength<br /> <span style="color: #00C800;">Local</span> lHScroll, lVScroll<br /> <span style="color: #00C800;">Local</span> aBotones:= <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">Local</span> hBmp<br /><br /> <span style="color: #00C800;">Local</span> nEspecial<br /><br /><br /> <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">(</span> ::<span style="color: #000000;">cMsg</span> <span style="color: #000000;">)</span> != <span style="color: #ff0000;">"C"</span><br /> ::<span style="color: #000000;">cMsg</span> = cValToChar<span style="color: #000000;">(</span> ::<span style="color: #000000;">cMsg</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><br /> cSay := <span style="color: #ff0000;">""</span><br /> nMaxWidth := <span style="color: #000000;">0</span><br /> nMaxHeight := <span style="color: #000000;">0</span><br /> nLines := MlCount<span style="color: #000000;">(</span>::<span style="color: #000000;">cMsg</span>, <span style="color: #000000;">254</span><span style="color: #000000;">)</span><br /> lHScroll := .f.<br /> lVScroll := .f.<br /><br /> <span style="color: #00C800;">FOR</span> nFor := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nLines<br /> cLine := Trim<span style="color: #000000;">(</span>Memoline<span style="color: #000000;">(</span>::<span style="color: #000000;">cMsg</span>, <span style="color: #000000;">254</span>, nFor<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> cSay += cLine+CRLF<br /> nMaxHeight += ::<span style="color: #000000;">oDlg</span>:<span style="color: #000000;">nGetChrHeight</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> nMaxWidth := <span style="color: #0000ff;">Max</span><span style="color: #000000;">(</span>nMaxWidth, ::<span style="color: #000000;">oDlg</span>:<span style="color: #000000;">GetWidth</span><span style="color: #000000;">(</span>cLine, ::<span style="color: #000000;">oFont</span><span style="color: #000000;">)</span><span style="color: #000000;">+10</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">NEXT</span><br /> <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">xIcon</span> != <span style="color: #00C800;">Nil</span><br /> <span style="color: #00C800;">IF</span> Valtype<span style="color: #000000;">(</span>::<span style="color: #000000;">xIcon</span><span style="color: #000000;">)</span> == <span style="color: #ff0000;">"C"</span> .AND.;<br /> ! <span style="color: #000000;">(</span>Upper<span style="color: #000000;">(</span>::<span style="color: #000000;">xIcon</span><span style="color: #000000;">)</span> $ LISTA_ICONOS_EN_EJECUTABLE<span style="color: #000000;">)</span> <span style="color: #B900B9;">// They are in .exe</span><br /> <span style="color: #00C800;">IF</span> File<span style="color: #000000;">(</span>::<span style="color: #000000;">xIcon</span><span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">20</span>/<span style="color: #000000;">14</span>, <span style="color: #000000;">18</span>/<span style="color: #000000;">8</span> <span style="color: #0000ff;">ICON</span> ::<span style="color: #000000;">oIcon</span> FILE ::<span style="color: #000000;">xIcon</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oDlg</span><br /> <span style="color: #00C800;">ELSE</span><br /> @ <span style="color: #000000;">20</span>/<span style="color: #000000;">14</span>, <span style="color: #000000;">18</span>/<span style="color: #000000;">8</span> <span style="color: #0000ff;">ICON</span> ::<span style="color: #000000;">oIcon</span> <span style="color: #0000ff;">RESOURCE</span> ::<span style="color: #000000;">xIcon</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oDlg</span><br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">ELSE</span><br /> @ <span style="color: #000000;">20</span>/<span style="color: #000000;">14</span>, <span style="color: #000000;">18</span>/<span style="color: #000000;">8</span> <span style="color: #0000ff;">ICON</span> ::<span style="color: #000000;">oIcon</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oDlg</span><br /> <span style="color: #00C800;">IF</span> ValType<span style="color: #000000;">(</span>::<span style="color: #000000;">xIcon</span><span style="color: #000000;">)</span> == <span style="color: #ff0000;">"N"</span><br /> ::<span style="color: #000000;">oIcon</span>:<span style="color: #000000;">hIcon</span> := LoadIcon<span style="color: #000000;">(</span><span style="color: #000000;">0</span>, ::<span style="color: #000000;">xIcon</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ELSE</span><br /> ::<span style="color: #000000;">oIcon</span>:<span style="color: #000000;">hIcon</span> := LoadIcon<span style="color: #000000;">(</span>GetInstance<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"ProgIco"</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">ELSE</span><br /> @ <span style="color: #000000;">20</span>/<span style="color: #000000;">14</span>, <span style="color: #000000;">18</span>/<span style="color: #000000;">8</span> <span style="color: #0000ff;">ICON</span> ::<span style="color: #000000;">oIcon</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oDlg</span><br /> ::<span style="color: #000000;">oIcon</span>:<span style="color: #000000;">hIcon</span> := LoadIcon<span style="color: #000000;">(</span><span style="color: #000000;">0</span>, IDI_EXCLAMATION<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> nWidth := nMaxWidth<br /> nHeight := nMaxHeight<br /><br /> <span style="color: #00C800;">if</span> nHeight > <span style="color: #000000;">400</span><br /> nHeight := <span style="color: #000000;">400</span><br /> lVScroll := .t.<br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00D7D7;">#Define</span> NUEVO_WIDTH <span style="color: #000000;">800</span><br /> <span style="color: #00C800;">if</span> nWidth > NUEVO_WIDTH<br /> nWidth := NUEVO_WIDTH<br /> lHScroll := .t.<br /> lVScroll := .t.<br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> lVScroll<br /> nHeight := <span style="color: #0000ff;">Max</span><span style="color: #000000;">(</span><span style="color: #000000;">100</span>, nHeight<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br /> <span style="color: #00C800;">CASE</span> lHScroll .and. lVScroll<br /> @ <span style="color: #000000;">25</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cSay <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oDlg</span> READONLY MEMO;<br /> <span style="color: #0000ff;">SIZE</span> nWidth, nHeight <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> ::<span style="color: #000000;">oFont</span> ;<br /> <span style="color: #0000ff;">COLOR</span> <span style="color: #00C800;">NIL</span>, GetSysColor<span style="color: #000000;">(</span> COLOR_BTNFACE <span style="color: #000000;">)</span> ;<br /> NOBORDER <span style="color: #0000ff;">HSCROLL</span><br /> <span style="color: #00C800;">CASE</span> lHScroll .and. !lVScroll<br /> @ <span style="color: #000000;">25</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cSay <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oDlg</span> READONLY MEMO;<br /> <span style="color: #0000ff;">SIZE</span> nWidth, nHeight <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> ::<span style="color: #000000;">oFont</span> ;<br /> <span style="color: #0000ff;">COLOR</span> <span style="color: #00C800;">NIL</span>, GetSysColor<span style="color: #000000;">(</span> COLOR_BTNFACE <span style="color: #000000;">)</span> ;<br /> NOBORDER <span style="color: #0000ff;">HSCROLL</span> NO <span style="color: #0000ff;">VSCROLL</span><br /> <span style="color: #00C800;">CASE</span> !lHScroll .and. lVScroll<br /> @ <span style="color: #000000;">25</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cSay <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oDlg</span> READONLY MEMO;<br /> <span style="color: #0000ff;">SIZE</span> nWidth, nHeight <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> ::<span style="color: #000000;">oFont</span> ;<br /> <span style="color: #0000ff;">COLOR</span> <span style="color: #00C800;">NIL</span>, GetSysColor<span style="color: #000000;">(</span> COLOR_BTNFACE <span style="color: #000000;">)</span> ;<br /> NOBORDER<br /> <span style="color: #00C800;">OTHERWISE</span><br /> @ <span style="color: #000000;">25</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cSay <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oDlg</span> READONLY MEMO;<br /> <span style="color: #0000ff;">SIZE</span> nWidth, nHeight <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> ::<span style="color: #000000;">oFont</span> ;<br /> <span style="color: #0000ff;">COLOR</span> <span style="color: #00C800;">NIL</span>, GetSysColor<span style="color: #000000;">(</span> COLOR_BTNFACE <span style="color: #000000;">)</span> ;<br /> NOBORDER NO <span style="color: #0000ff;">VSCROLL</span><br /> END <span style="color: #00C800;">CASE</span><br /><br /> <span style="color: #00C800;">IF</span> oGet != <span style="color: #00C800;">NIL</span><br /> oGet:<span style="color: #000000;">bMMoved</span> := <span style="color: #000000;">{</span>|| DestroyCaret<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> oGet:<span style="color: #000000;">bGotFocus</span> := <span style="color: #000000;">{</span>|| PostMessage<span style="color: #000000;">(</span>oGet:<span style="color: #000000;">hWnd</span>, EM_SETSEL, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /><br /> nMaxWidth := <span style="color: #0000ff;">Max</span><span style="color: #000000;">(</span>nWidth + <span style="color: #000000;">80</span>, ::<span style="color: #000000;">oDlg</span>:<span style="color: #000000;">GetWidth</span><span style="color: #000000;">(</span>::<span style="color: #000000;">cTitle</span><span style="color: #000000;">)</span> + <span style="color: #000000;">30</span><span style="color: #000000;">)</span><br /><br /><br /> nBtnWidth := <span style="color: #000000;">50</span><br /><br /> <span style="color: #00C800;">FOR</span> nFor := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> len<span style="color: #000000;">(</span>::<span style="color: #000000;">aOptions</span><span style="color: #000000;">)</span><br /> nBtnWidth := <span style="color: #0000ff;">Max</span><span style="color: #000000;">(</span>nBtnWidth, ::<span style="color: #000000;">oDlg</span>:<span style="color: #000000;">GetWidth</span><span style="color: #000000;">(</span>::<span style="color: #000000;">aOptions</span><span style="color: #000000;">[</span>nFor<span style="color: #000000;">]</span>, ::<span style="color: #000000;">oFontBtn</span><span style="color: #000000;">)</span><span style="color: #000000;">+50</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">NEXT</span><br /><br /><br /><br /> nBtnHeight := <span style="color: #0000ff;">Max</span><span style="color: #000000;">(</span>nHeight, <span style="color: #000000;">20</span><span style="color: #000000;">)</span> + <span style="color: #000000;">50</span><br /> <span style="color: #00D7D7;">#Define</span> LARGO_BOTON <span style="color: #000000;">(</span><span style="color: #000000;">(</span>::<span style="color: #000000;">oFontBtn</span>:<span style="color: #000000;">nHeight</span><span style="color: #000000;">)</span>* <span style="color: #000000;">1.7</span><span style="color: #000000;">)</span><br /> nMaxHeight:= LARGO_BOTON+ nBtnHeight<br /> nMaxHeight+= <span style="color: #000000;">40</span><br /> <span style="color: #00C800;">IF</span> Empty<span style="color: #000000;">(</span>::<span style="color: #000000;">aOptions</span><span style="color: #000000;">)</span><br /> nMaxHeight:= nBtnHeight+ <span style="color: #000000;">30</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /><br /> nBtnLength := <span style="color: #000000;">(</span>len<span style="color: #000000;">(</span>::<span style="color: #000000;">aOptions</span><span style="color: #000000;">)</span> * nBtnWidth<span style="color: #000000;">)</span> + <span style="color: #000000;">(</span> <span style="color: #000000;">(</span>len<span style="color: #000000;">(</span>::<span style="color: #000000;">aOptions</span><span style="color: #000000;">)</span> + <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> * <span style="color: #000000;">7</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> nBtnLength > nMaxWidth<br /> nMaxWidth := nBtnLength + <span style="color: #000000;">10</span><br /> <span style="color: #00C800;">endif</span><br /><br /> nBtnOffset := <span style="color: #000000;">(</span>nMaxWidth - <span style="color: #000000;">(</span>len<span style="color: #000000;">(</span>::<span style="color: #000000;">aOptions</span><span style="color: #000000;">)</span>*nBtnWidth<span style="color: #000000;">)</span> - <span style="color: #000000;">(</span>len<span style="color: #000000;">(</span>::<span style="color: #000000;">aOptions</span><span style="color: #000000;">)</span><span style="color: #000000;">+2</span>*<span style="color: #000000;">7</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> / <span style="color: #000000;">2</span><br /><br /><br /> <span style="color: #00C800;">FOR</span> nFor := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> len<span style="color: #000000;">(</span>::<span style="color: #000000;">aOptions</span><span style="color: #000000;">)</span><br /> nEspecial:= <span style="color: #000000;">0</span><br /> @ nBtnHeight,;<br /> nEspecial+ nBtnOffset + <span style="color: #000000;">(</span>nBtnWidth*<span style="color: #000000;">(</span>nFor<span style="color: #000000;">-1</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> + <span style="color: #000000;">(</span><span style="color: #000000;">(</span>nFor<span style="color: #000000;">-1</span><span style="color: #000000;">)</span>*<span style="color: #000000;">7</span><span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> ::<span style="color: #000000;">aOptions</span><span style="color: #000000;">[</span>nFor<span style="color: #000000;">]</span> ;<br /> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> nBtnWidth, LARGO_BOTON ;<br /> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oDlg</span> <span style="color: #0000ff;">FONT</span> ::<span style="color: #000000;">oFontBtn</span><br /> oBtn:<span style="color: #000000;">bAction</span> := GenBlock<span style="color: #000000;">(</span> ::<span style="color: #000000;">oDlg</span>, nFor, ::<span style="color: #000000;">cTitle</span>, ::<span style="color: #000000;">bActionCancelar</span><span style="color: #000000;">)</span><br /><br /> Aadd<span style="color: #000000;">(</span>aBotones, oBtn<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">NEXT</span> nFor<br /><br /> <span style="color: #00D7D7;">#Define</span> ULT_ <span style="color: #000000;">(</span>Len<span style="color: #000000;">(</span>::<span style="color: #000000;">aOptions</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> Len<span style="color: #000000;">(</span>::<span style="color: #000000;">aOptions</span><span style="color: #000000;">)</span> > <span style="color: #000000;">1</span><br /> aBotones<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bLostFocus</span>:=;<br /><span style="color: #000000;">{</span>|| <span style="color: #00C800;">If</span><span style="color: #000000;">(</span><span style="color: #000000;">(</span>GetFocus<span style="color: #000000;">(</span><span style="color: #000000;">)</span> == oGet:<span style="color: #000000;">hWnd</span> .OR. GetFocus<span style="color: #000000;">(</span><span style="color: #000000;">)</span> == ::<span style="color: #000000;">oIcon</span>:<span style="color: #000000;">hWnd</span><span style="color: #000000;">)</span> .AND. <span style="color: #000000;">(</span>GetKeyState<span style="color: #000000;">(</span>VK_LEFT<span style="color: #000000;">)</span> .OR. GetKeyState<span style="color: #000000;">(</span>VK_UP<span style="color: #000000;">)</span><span style="color: #000000;">)</span>,;<br /> <span style="color: #000000;">(</span> ForceFocus<span style="color: #000000;">(</span>aBotones<span style="color: #000000;">[</span>ULT_<span style="color: #000000;">]</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>, <span style="color: #00C800;">nil</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /><br /> aBotones<span style="color: #000000;">[</span>ULT_<span style="color: #000000;">]</span>:<span style="color: #000000;">bLostFocus</span>:=;<br /><span style="color: #000000;">{</span>|| <span style="color: #00C800;">If</span><span style="color: #000000;">(</span><span style="color: #000000;">(</span>GetFocus<span style="color: #000000;">(</span><span style="color: #000000;">)</span> == oGet:<span style="color: #000000;">hWnd</span> .OR. GetFocus<span style="color: #000000;">(</span><span style="color: #000000;">)</span> == ::<span style="color: #000000;">oIcon</span>:<span style="color: #000000;">hWnd</span><span style="color: #000000;">)</span> .AND. <span style="color: #000000;">(</span>GetKeyState<span style="color: #000000;">(</span>VK_RIGHT<span style="color: #000000;">)</span> .OR. GetKeyState<span style="color: #000000;">(</span>VK_DOWN<span style="color: #000000;">)</span><span style="color: #000000;">)</span>,;<br /> <span style="color: #000000;">(</span> ForceFocus<span style="color: #000000;">(</span>aBotones<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>,;<br /> <span style="color: #00C800;">NIL</span>;<br /> <span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">IF</span> !Empty<span style="color: #000000;">(</span>::<span style="color: #000000;">aOptions</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">oDlg</span>:<span style="color: #000000;">bStart</span> := <span style="color: #000000;">{</span>|| ::<span style="color: #000000;">oDlg</span>:<span style="color: #000000;">aControls</span><span style="color: #000000;">[</span>::<span style="color: #000000;">nDefault</span>+ <span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /><br /> *<br /> *<br /> <span style="color: #00D7D7;">#Define</span> BOTTOM_MARGEN <span style="color: #000000;">20</span><br /> DlgSetSize<span style="color: #000000;">(</span>::<span style="color: #000000;">oDlg</span>, <span style="color: #000000;">10</span>, BOTTOM_MARGEN<span style="color: #000000;">)</span><br /> WndCenter<span style="color: #000000;">(</span>::<span style="color: #000000;">oDlg</span>:<span style="color: #000000;">hWnd</span><span style="color: #000000;">)</span><br /><br /> ::<span style="color: #000000;">oPrompt</span>:= oGet<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">//-----------------------------------------------------------------//</span><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> GenBlock<span style="color: #000000;">(</span>oDlg, nElem, cTitle, bActionCancelar<span style="color: #000000;">)</span><br /><span style="color: #00D7D7;">#Define</span> NORMAL_ <span style="color: #000000;">(</span>oDlg:<span style="color: #000000;">Cargo</span> := nElem, oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><span style="color: #00D7D7;">#Define</span> ACTION_CANCELAR <span style="color: #00C800;">If</span><span style="color: #000000;">(</span>bActionCancelar == <span style="color: #00C800;">NIL</span>, <span style="color: #00C800;">NIL</span>, Eval<span style="color: #000000;">(</span>bActionCancelar<span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">{</span> || ACTION_CANCELAR, NORMAL_ <span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />*<br />*<br /><span style="color: #B900B9;">////////////////////////////////////////</span><br /><span style="color: #00C800;">FUNCTION</span> MyMsgInfo<span style="color: #000000;">(</span>cMsg, cTitle<span style="color: #000000;">)</span> <br /><span style="color: #00C800;">Local</span> oMsg<br /><span style="color: #00C800;">Local</span> oFont, oFontBtn<br /><br />*<br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> GetSysFont<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">-18</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontBtn <span style="color: #0000ff;">NAME</span> GetSysFont<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">-15</span> <br />*<br />oMsg:= TMsg<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span>TIPO_MSGINFO<span style="color: #000000;">)</span><br />oMsg:<span style="color: #000000;">cMsg</span> := cMsg<br />oMsg:<span style="color: #000000;">cTitle</span>:= cTitle<br />omsg:<span style="color: #000000;">oFont</span>:= oFont<br />omsg:<span style="color: #000000;">oFontBtn</span>:= oFontBtn<br />*<br />oMsg:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oFont:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />*<br />*<br /><span style="color: #B900B9;">//-------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">FUNCTION</span> MyAlert<span style="color: #000000;">(</span>cMsg, aOptions, cTitle, nDefault, xIcon<span style="color: #000000;">)</span><br /><span style="color: #00C800;">Local</span> oMsg<br /><span style="color: #00C800;">Local</span> oFont, oFontBtn<br /><span style="color: #00C800;">Local</span> nOpcion<br />*<br />*<br /><span style="color: #00C800;">DEFAULT</span> aOptions:= <span style="color: #000000;">{</span><span style="color: #ff0000;">"Ok"</span><span style="color: #000000;">}</span><br />*<br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> GetSysFont<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">-18</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontBtn <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Courier"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">-15</span> <br />oMsg:= TMsg<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span>TIPO_ALERT<span style="color: #000000;">)</span><br /><br />oMsg:<span style="color: #000000;">cMsg</span> := cMsg<br />oMsg:<span style="color: #000000;">cTitle</span>:= cTitle<br />oMsg:<span style="color: #000000;">aOptions</span>:= aOptions<br />omsg:<span style="color: #000000;">oFont</span>:= oFont<br />omsg:<span style="color: #000000;">oFontBtn</span>:= oFontBtn<br />oMsg:<span style="color: #000000;">nDefault</span>:= nDefault<br />*<br />oMsg:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />nOpcion:= oMsg:<span style="color: #000000;">oDlg</span>:<span style="color: #000000;">Cargo</span><br />oFont:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oFontBtn:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span> nOpcion<br />*<br />*<br />*<br /><span style="color: #B900B9;">//-------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">FUNCTION</span> MyMsgYesNoBis<span style="color: #000000;">(</span>cMsg, cTitle, lDefaultYes<span style="color: #000000;">)</span><br /><span style="color: #00C800;">Local</span> l<br />*<br /><span style="color: #00C800;">DEFAULT</span> lDefaultYes:= .t.<br />*<br /><span style="color: #00C800;">IF</span> lDefaultYes<br /> l:= MyMsgYesNo<span style="color: #000000;">(</span>cMsg, cTitle<span style="color: #000000;">)</span><br /><span style="color: #00C800;">ELSE</span><br /> l:= MyMsgNoYes<span style="color: #000000;">(</span>cMsg, cTitle<span style="color: #000000;">)</span><br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span> l<br />*<br /><span style="color: #B900B9;">//-------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">FUNCTION</span> MyMsgYesNo<span style="color: #000000;">(</span>cMsg, cTitle<span style="color: #000000;">)</span><br /><span style="color: #00C800;">Local</span> oMsg<br /><span style="color: #00C800;">Local</span> oFont, oFontBtn<br /><span style="color: #00C800;">Local</span> nOpcion<br />*<br />*<br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> GetSysFont<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">-18</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontBtn <span style="color: #0000ff;">NAME</span> GetSysFont<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">-15</span><br />*<br />*<br />oMsg:= TMsg<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span>TIPO_MSGYESNO<span style="color: #000000;">)</span><br />oMsg:<span style="color: #000000;">cMsg</span> := cMsg<br />oMsg:<span style="color: #000000;">cTitle</span>:= cTitle<br />omsg:<span style="color: #000000;">oFont</span>:= oFont<br />omsg:<span style="color: #000000;">oFontBtn</span>:= oFontBtn<br />*<br />oMsg:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />nOpcion:= oMsg:<span style="color: #000000;">oDlg</span>:<span style="color: #000000;">Cargo</span><br />*<br />oFont:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oFontBtn:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span> nOpcion == <span style="color: #000000;">1</span><br />*<br />*<br /><span style="color: #B900B9;">//-------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">FUNCTION</span> MyMsgNoYes<span style="color: #000000;">(</span>cMsg, cTitle<span style="color: #000000;">)</span><br /><span style="color: #00C800;">Local</span> oMsg<br /><span style="color: #00C800;">Local</span> oFont, oFontBtn<br /><span style="color: #00C800;">Local</span> nOpcion<br />*<br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> GetSysFont<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">-18</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontBtn <span style="color: #0000ff;">NAME</span> GetSysFont<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">-15</span><br />*<br />*<br />oMsg:= TMsg<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span>TIPO_MSGNOYES<span style="color: #000000;">)</span><br />oMsg:<span style="color: #000000;">cMsg</span> := cMsg<br />oMsg:<span style="color: #000000;">cTitle</span>:= cTitle<br />omsg:<span style="color: #000000;">oFont</span>:= oFont<br />omsg:<span style="color: #000000;">oFontBtn</span>:= oFontBtn<br />*<br />oMsg:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />nOpcion:= oMsg:<span style="color: #000000;">oDlg</span>:<span style="color: #000000;">Cargo</span><br />*<br />oFont:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oFontBtn:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span> nOpcion == <span style="color: #000000;">1</span><br />*<br />*<br /><span style="color: #B900B9;">//-------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> ForceFocus<span style="color: #000000;">(</span>oJump<span style="color: #000000;">)</span><br /><span style="color: #00C800;">Local</span> oFocus:= oWndFromHwnd<span style="color: #000000;">(</span>GetFocus<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">Local</span> bValid, bWhen<br />*<br /><span style="color: #00C800;">IF</span> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span>oFocus != <span style="color: #00C800;">NIL</span>, oFocus:<span style="color: #000000;">hWnd</span> != oJump:<span style="color: #000000;">hWnd</span>, .t.<span style="color: #000000;">)</span><br /> *<br /> <span style="color: #00C800;">IF</span> oFocus != <span style="color: #00C800;">NIL</span><br /> bWhen:= oFocus:<span style="color: #000000;">bWhen</span><br /> bValid:= oFocus:<span style="color: #000000;">bValid</span><br /> oFocus:<span style="color: #000000;">bWhen</span>:= <span style="color: #000000;">{</span>|| .f. <span style="color: #000000;">}</span><br /> oFocus:<span style="color: #000000;">bValid</span>:= <span style="color: #000000;">{</span>|| .t.<span style="color: #000000;">}</span><br /> <span style="color: #00C800;">ENDIF</span><br /> *<br /> *<br /> <span style="color: #00C800;">IF</span> __ObjHasMethod<span style="color: #000000;">(</span>oJump, <span style="color: #ff0000;">"FORWHEN"</span><span style="color: #000000;">)</span><br /> oJump:<span style="color: #000000;">ForWhen</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /> *<br /> *<br /> oJump:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> *<br /> <span style="color: #00C800;">IF</span> oFocus != <span style="color: #00C800;">NIL</span><br /> <span style="color: #00C800;">IF</span> !<span style="color: #000000;">(</span>oFocus:<span style="color: #000000;">ClassName</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> $ <span style="color: #ff0000;">"TWINDOW,TDIALOG"</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> bWhen == <span style="color: #00C800;">NIL</span><br /> oFocus:<span style="color: #000000;">bWhen</span>:= <span style="color: #000000;">{</span>|| .t. <span style="color: #000000;">}</span><br /> *<br /> <span style="color: #00C800;">ELSE</span><br /> oFocus:<span style="color: #000000;">bWhen</span> := bWhen<br /> <span style="color: #00C800;">ENDIF</span><br /> oFocus:<span style="color: #000000;">ForWhen</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /> *<br /> oFocus:<span style="color: #000000;">bWhen</span> := bWhen<br /> oFocus:<span style="color: #000000;">bValid</span>:= bValid<br /> <span style="color: #00C800;">ENDIF</span><br /><br /> *<br /><span style="color: #00C800;">ENDIF</span><br />*<br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />*<br /><br /> </div>[/code:1ineaja8]
Regards
|
msgInfo() bug?
|
I just noticed that with FWH 2.7 Aug 2006 build this causes a crash:
msgInfo( date() )
I think we used to be able to pass date type data. It now comes up with the send error report to Microsoft question.
I am also using xHarbour 99.61 (the one that came with FWH, Aug 2006 build).
James
|
msgInfo() bug?
|
It works fine with latest FWH.
EMG
|
msgInfo() bug?
|
Thanks, Enrico.
James
|
msgWait no admite varias lineas?
|
Estimados,
El msgWait no admite varias lineas?
tales como:
[code:5ybl37rc]msgWait( "esto" + chr( 13 ) +" es una prueba", "atencion", 2 )[/code:5ybl37rc]
|
msgWait no admite varias lineas?
|
try to use :
TEXT+CRLF+TEXT+CRLF+TEXT
REGARDS
|
msgWait no admite varias lineas?
|
i try, but not.
|
msgWait()msgYesNo()msgAlert() etc. etc. left justified.
|
Is there a way to ceneter them?Harvey
|
msgWait()msgYesNo()msgAlert() etc. etc. left justified.
|
Harvey,Those functions are Windows standard ones, and they don't offer such feature.As a workaround, please try to add spaces to the left of the text to show:MsgInfo( PadL( "Hello world", 30 ) )
|
msgWait()msgYesNo()msgAlert() etc. etc. left justified.
|
MsgInfo centers text. MsgYesNo, etc do not.FWH provides wrappers to the Windows API functions. If we want what Microsoft does not provide, we have to write our own functions.
|
msgWait()msgYesNo()msgAlert() etc. etc. left justified.
|
Roa:Thanks for all the input. My conversion to 32 bits is moving along quite nicely. I really like the ability to move browse column around. Biggest problem now is to print the browse after altering it. I'm using oBrw:report() but I need the ability to size the print and cut it off when reaching a particular record. Do you have any suggestions on how to accomplish this?Thanks again.
|
msgWait()msgYesNo()msgAlert() etc. etc. left justified.
|
Dear Harvey,For a new topic question, that it is not related to the original one, please post a new topic, thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
msgWait()msgYesNo()msgAlert() etc. etc. left justified.
|
Had one posted with no results. I'll try again.
|
msgYesNo()
|
Is there a way when using msgYesNo() to change the yes and no buttons to something else?
|
msgYesNo()
|
If you simply mean if the "yes" and "no" can be presented in another language, than my answer is "No".The language is depending of the language of your Windows version.If you want to translate it to another language or if you want to use other buttons, you have, to my opinion, to make your own "MsgYesNo()".Good luck.
|
msgYesNo()
|
Not a language issue just prompt the yes and no to anything other then yse and no.
|
msgYesNo()
|
Harvey,I believe it is a Windows common control, so you cannot change the prompts. It is easy enough to just make your own dialog.James
|
msgYesNo()
|
Thanks all.
|
msgYesNo()
|
Dear HarveyIs it this what you are looking for ?[code:1v9o07ix]function Main()
MSGINFO( "GOING TO ALERT" )
SAYING := "There are records in the QUEUE that have not "+chr(13)+CHR(10)
SAYING += "been Transmitted. Do you wish to ...."+chr(13)+CHR(10)
YESNO := { " Resend ", " Delete " , " Abort " }
nOK := ALERT(SAYING, YESNO )
MsgInfo("You selected option "+str(nOk,1)) // Added by me see the value of nOk
return nil[/code:1v9o07ix]This is from \FWH\Samples\Rick.PrgRegardsAnser
|
msgYesNo()
|
Anserkk Thanks for the help. I just developed my own function.
|
msgbox a la Windows Vista
|
<!-- m --><a class="postlink" href="http://www.avemundi.com/?p=303">http://www.avemundi.com/?p=303</a><!-- m -->
Saludos,
|
msgdate()
|
I'm a newbie to FWPPC so, this might sound a bit stupid.
How can i call the msgdate() function in my application?
|
msginfo on network
|
Hi Fivewin experts
I need to send a message and a beep to an network user, which will open on his screen
ex: msginfo( "Your next rendezvous is arrived")
How can i make that?
Thanks for your help
|
msginfo on network
|
<!-- m --><a class="postlink" href="http://www.lantalk.net/net-send-command/">http://www.lantalk.net/net-send-command/</a><!-- m -->
|
msginfo on network
|
Here is a working simple sample of how to net send.
[code:3331fmlx]
#include "Fivewin.ch"
static odlg
FUNCTION MAIN()
LOCAL msg := SPACE( 20 )
LOCAL muser := SPACE( 20 )
DEFINE DIALOG oDlg
@ 1, 1 GET msg OF oDlg
@ 2, 1 GET muser OF oDlg
@ 4, 5 BUTTON "&Ok" ACTION sendnetmsg(msg,muser)
@ 4, 15 BUTTON "&Close" ACTION oDlg:End() CANCEL
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
function sendnetmsg(msg,muser)
local U_ser
if empty(alltrim(msg))
return(NIL)
endif
if empty(alltrim(muser))
U_ser:= "*"
else
u_ser:= muser
endif
Shellexecute(gethwnd32(odlg:hwnd),"open","Net.exe", " Send " + u_ser + " " + MSG,,,0)
return(NIL)
[/code:3331fmlx]
|
msginfo on network
|
Thanks U2
Antonio i've test the net send on my lan under XP Pro and it work fine but i am not sure that my secretary will be able to use a Dos box correctly
Mdandrea, i use FW 21 and this function "Shellexecute" seems to exist in it.
When i test it with your exemple i have no compiler or linker error only runtime error " Variable does not exist", but i have no documentation about it in my NG
The Ng guide attached to FW 2.1 is about FW 1.95 and nothing about Shellexecute and his parameters
Can you explain it for me.
|
msginfo on network
|
you can do it this way :-
1. save your text into a field in dbf
2. ACTIVATE WINDOWS ON INIT fTimer()
3. in fTimer() : set a timer to read/display the field when text not blank
|
msginfo on network
|
Hi
with your help i have found something that work great:
Winexec( "net send [i:1i5nsld8]User[/i:1i5nsld8] [i:1i5nsld8]Msg[/i:1i5nsld8]")
|
msginfo on network
|
Glad to hear you got it working , winexec and shellexecute are very similar in what they do.
|
msglogo
|
Hola a todos,
sabe alguien como usar la funcion msglogo() pero extrayendo la imagen desde la rc ?
gracias por la ayuda !
|
msglogo
|
\SAMPLES\TESTMSGL.*
Saludos.
|
msglogo
|
Gracias Karina !!
un abrazo !
|
msglogo msgsplash
|
Saludos Fivewiners. Esperando que se encuentren mejor de lo que desean,
Necesito hacer un MsgLogo pero que el bmp tenga fondo transparente. Por lo visto la natural limitacion de los archivos bmp de no aceptar esto, aplica por supuesto para el
MsgLogo.
Buscando en el foro, me consegui con la funcion MsgSplash. He intentado ponerla a funcionar pero nada. La funcion me hace el ciclo de espera (5 segundos en mi caso) pero no muestra la imagen ni con bmp, ni con jpg, ni com png. No me muestra nada.
Alguna idea de que puede estar sucediendo con la funcion MsgSplash? o como poner una imagen con fondo transparente en MsgLogo?
He intentado con imagenes desde recursos RC y tambien desde lectura directa a disco y no funciona.
Logre quitarle el fondo a una imagen BMP con la web <!-- m --><a class="postlink" href="https://imagen.online-convert.com/es/convertir-a-ico">https://imagen.online-convert.com/es/convertir-a-ico</a><!-- m --> pero cuando compilo sale error de formato invalido.
Uso fw17.01, Pelles C, xHarbour y BCC5.5
Agradeciendo por adelantado cualquier ayuda, les envio un fuerte y feliz abrazo de visperas de navidad.
|
msglogo msgsplash
|
José,
El cuarto parámetro te permite indicar que quieres pintado transparente:
function MsgSplash( cBmpFile, nSeconds, bAction, lTransp )
|
msglogo msgsplash
|
Hola Antonio,
Listo! ahora si funciona.
Gracias !
Un abrazo.
|
msglogo deja archivo abierto
|
Hola Amigos:
Tengo definido un msglogo en el inicio del sistema con parametro de 2 segundos. Funciona todo ok excepto que cuando cierro el sistema en windows 98 si miro con ctrl alt supr los programas abiertos en una línea dice fivewin y hasta que no finalizo la tarea no puedo volver a abrir el sistema. Debido a que es? Alguien tiene idea. Si yo saco ese renglon en el sistema no queda nada abierto. Mil Gracias.
|
msglogo deja archivo abierto
|
Leonor,
Acabamos de probar samples\TestMsgL.prg que usa MsgLogo() y funciona correctamente y no deja ninguna tarea pendiente.
¿ Que versión de FiveWin usas ?
|
msglogo deja archivo abierto
|
Fivewin 2.5 es la version con la que estoy compilando, Ricardo ya tiene fivewin 2.7 pero todavia no la he usado. Ayer probando note que me lo hace a veces, no siempre, pero si yo comento ese renglon no lo hace nunca. Debe ser la combinación de alguna otra instruccion. Voy a seguir probando hasta encontrarlo. Muchas gracias. Leonor
|
msgrun
|
Is there any replacement possible for msgrun ?
How can we make a message like "please wait, processing ..." and process in the same time (what msgrun does)
Richard
|
msgrun
|
Richard,
Already implemented. There is a new FWPPC build to download.
|
msgrun
|
[quote="Antonio Linares":jdf4xpqz]Richard,
Already implemented. There is a new FWPPC build to download.[/quote:jdf4xpqz]
Antonio,
Almost there !
There is a problem refreshing the screen after the msgrun ends trhe event
try something like :
@ 0, 120 BTNBMP OBTN4 FILE CurDir() + "\BMP\PARAM.bmp" SIZE 40, 40 OF oWnd NOBORDER CENTER ;
ACTION MsgRun( "Réorganisation en Cours...", "Veuillez Patienter", ;
{ || INXGEN() } )
function inxgen()
IF ! MsgYesNo( 'Voulez-vous Effectuer une réorganisation de vos fcichiers ?', 'Veuillez Confirmer' )
RETURN NIL
ENDIF
......
return nil
in this sample, the msgyesno box will remain painted as it overlaps the msgrun painting area
Another sample
@ 0, 120 BTNBMP OBTN4 FILE CurDir() + "\BMP\PARAM.bmp" SIZE 40, 40 OF oWnd NOBORDER CENTER ;
ACTION IF( MsgYesNo( 'Voulez-vous Effectuer une réorganisation de vos fcichiers ?', 'Veuillez Confirmer' ), ;
MsgRun( "Réorganisation en Cours...", "Veuillez Patienter", ;
{ || INXGEN() } ) , )
The msgyesno is the button action, the painting is perfect but you need to click anywhere at the end in order to erase the painting. It rzmains.
If i am not clear enough, let me know, i will try to hardcopy screens.
Richard
|
msgrun
|
Richard,
Yes, we have noticed it too. We may change the style of the used dialogbox.
|
msgrun
|
Richard,
Fixed. There is a new FWPPC build to download.
We appreciate your feedback, thanks
|
msgrun
|
[quote="Antonio Linares":1lmufz13]Richard,
Fixed. There is a new FWPPC build to download.
We appreciate your feedback, thanks[/quote:1lmufz13]
Antonio <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Works OK this time
Thanks
Richard
|
msgrun
|
good <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
msgrun
|
Buenos dias foro!Tengo en mis aplicaciones algunos procesos en los que uso un msgrun para procesos largos, a esto lo acompaño en la barra de mensajes, para saber realmente que esta haciendo, hasta ahí todo correcto, el problema está en que si por casualidad se pulsa el botón del raton por cualquier parte de la ventana de la aplicacion o de la barra de mensajes, el sistema no actualiza la barra de mensajes y sale en el titulo de la ventana principal (No responde), aunque el proceso sigue funcionando y termina. ¿Se puede controlar este comportamiento?.Muchas gracias.
|
msgrun
|
Mike,Tendrias que llamar a SysRefresh() para que Windows pueda procesar los mensajes pendientes (pintado, etc.)Tal vez usando un timer, aunque un timer tambien genera mensajes que estaran esperando ser procesados...
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.