topic
stringlengths
1
63
text
stringlengths
1
577k
does FiveWin have a Constant like __XPP__
FiveWin was fully xBase++ compatible for many years, but finally there were no xBase++ users... except you <!-- s:-D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":-D" title="Very Happy" /><!-- s:-D -->
does Fivewin have a Gradient ComboBox ?
hi Antonio, [quote="Antonio Linares":emxe1hb6]Please review FWH\samples\ownerdra.prg[/quote:emxe1hb6] aaah, i have to look into *.RC File too when search for Constant as "Keyword" i´m not aware about Technique using "REDEFINE" ... is there a Readme for "Dummy" ? --- bOwnerDraw -> Combobox bDrawItem -> Listbox / Combobox (CodeBlock to evaluate to select a ownerdraw bitmap to paint) [code=fw:emxe1hb6]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> DrawItem<span style="color: #000000;">&#40;</span> nIdCtl, nPStruct <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TComboBox<br />   ...<br />      uVal  := LbxDrawItem<span style="color: #000000;">&#40;</span> nPStruct, ::<span style="color: #000000;">aBitmaps</span>, ::<span style="color: #000000;">aItems</span>, ::<span style="color: #000000;">nBmpWidth</span>, ::<span style="color: #000000;">bDrawItem</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">else</span><br />      uVal  := Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bOwnerDraw</span>, <span style="color: #00C800;">Self</span>, nIdCtl, TDrawItemStruct<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> nPStruct <span style="color: #000000;">&#41;</span>, nPStruct <span style="color: #000000;">&#41;</span></div>[/code:emxe1hb6] but how does ::bOwnerDraw, look like <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> can i pass my "own" Method and use API Function to "paint" into TDrawItemStruct():hDC <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
does Fivewin have a Gradient ComboBox ?
hi, while i can use Menu with Gradient i like to ask if Fivewin have Combobox with Gradient <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> i can change Foreground and Background Color into Dark-Mode but Highlight Bar ( COLOR_HIGHLIGHT ) have normal Color btw. does Fivewin have a "Ownerdraw" Sample <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
does Fivewin have a Gradient ComboBox ?
Dear Jimmy, Please review FWH\samples\ownerdra.prg
does Fivewin have a Gradient ComboBox ?
hi, have try ComboBox Ownerdraw and "fill" bOwnerDraw with Codeblock [code=fw:c8lqrui7]<div class="fw" id="{CB}" style="font-family: monospace;">      oCombo_left:<span style="color: #000000;">bOwnerDraw</span> := <span style="color: #000000;">&#123;</span>|a,b,c,d| DoMyComBo<span style="color: #000000;">&#40;</span>a,b,c,d<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span></div>[/code:c8lqrui7] [code=fw:c8lqrui7]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> DoMyComBo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   nCount := PCOUNT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">FOR</span> ii := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nCount<br />      xPara := PValue<span style="color: #000000;">&#40;</span>ii<span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />         <span style="color: #00C800;">CASE</span> ii = <span style="color: #000000;">1</span> ; oSelf    := xPara<br />         <span style="color: #00C800;">CASE</span> ii = <span style="color: #000000;">2</span> ; nIdCtl   := xPara<br />         <span style="color: #00C800;">CASE</span> ii = <span style="color: #000000;">3</span> ; aStruc   := xPara<br />         <span style="color: #00C800;">CASE</span> ii = <span style="color: #000000;">4</span> ; nPointer := xPara<br />      <span style="color: #00C800;">ENDCASE</span><br />   <span style="color: #00C800;">NEXT</span><br />   fwlog <span style="color: #ff0000;">"DoMyComBo()"</span>,nCount, <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>VALTYPE<span style="color: #000000;">&#40;</span>oSelf<span style="color: #000000;">&#41;</span> = <span style="color: #ff0000;">"O"</span>,<span style="color: #ff0000;">"Object"</span>,oSelf<span style="color: #000000;">&#41;</span> , nIdCtl , VAR2CHAR<span style="color: #000000;">&#40;</span> aStruc <span style="color: #000000;">&#41;</span>, nPointer<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">0</span></div>[/code:c8lqrui7] Parameter a,b,c,d between "Pipe" (|) come from [code=fw:c8lqrui7]<div class="fw" id="{CB}" style="font-family: monospace;">      uVal  := Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bOwnerDraw</span>, <span style="color: #00C800;">Self</span>, nIdCtl, TDrawItemStruct<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> nPStruct <span style="color: #000000;">&#41;</span>, nPStruct <span style="color: #000000;">&#41;</span></div>[/code:c8lqrui7] Result [quote:c8lqrui7]"DoMyComBo()" = "DoMyComBo()" nCount = 4 IF(VALTYPE(oSelf) = "O","Object",oSelf) = "Object" nIdCtl = 109 VAR2CHAR( aStruc ) = "__itemSetObj( {{CTLTYPE, 3}, {CTLID, 109}, {ITEMID, 0}, {ITEMACTION, 1}, {ITEMSTATE, 4096}, {HWNDITEM, 1770774}, {HDC, 1157698194}, {ARECT, {3, 3, 35, 70}}, {ITEMDATA, `??}}, {{TDRAWITEMSTRUCT,}} )" nPointer = 1373540 [/quote:c8lqrui7] it seems to have what is need for Ownerdraw ComboBox ... now work can begin
does Fivewin have a Gradient ComboBox ?
hi, got 1st Result [img:39kk0u37]https&#58;//i&#46;postimg&#46;cc/Dy7439zm/FW-Combobox-Ownerdraw-highlight&#46;png[/img:39kk0u37] but Cursor Highlight does only work when Mouse is over Listbox-Part of Combobox [code=fw:39kk0u37]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #00C800;">CASE</span> itemAction = ODA_SELECT<br />   <span style="color: #00C800;">CASE</span> itemAction = ODA_DRAWENTIRE<br />   <span style="color: #00C800;">CASE</span> itemAction = ODA_FOCUS</div>[/code:39kk0u37] it does work on ODA_FOCUS to Highlight Item but when Highlight on ODA_SELECT than "all" Item will be Highlight when move Mouse ... hm
does Fivewin have a Gradient ComboBox ?
Dear Jimmy, You are doing an outstanding work on your total commander version, congratulations Where could we download it from to test it ? many thanks
does Fivewin have a Gradient ComboBox ?
hi Antonio, [quote="Antonio Linares":26hpofdz]Where could we download it from to test it ? [/quote:26hpofdz] i´m going to prepare next Release but still have new Idea ... so i must clean-up again ... i have now include System Icon from "\System32\imageres.dll" for Ownerdraaw Combobox [code=fw:26hpofdz]<div class="fw" id="{CB}" style="font-family: monospace;">      cDLL := WinDir + <span style="color: #ff0000;">"<span style="color: #000000;">\S</span>ystem32<span style="color: #000000;">\i</span>mageres.dll"</span><br /><br />      <span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />         <span style="color: #00C800;">CASE</span> acType<span style="color: #000000;">&#91;</span> itemID + <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> = DRIVE_UNKNOWN<br />            nResID := <span style="color: #000000;">75</span><br />         <span style="color: #00C800;">CASE</span> acType<span style="color: #000000;">&#91;</span> itemID + <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> = DRIVE_NO_ROOT_DIR<br />            nResID := <span style="color: #000000;">32</span><br /><br />         <span style="color: #00C800;">CASE</span> acType<span style="color: #000000;">&#91;</span> itemID + <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> = DRIVE_REMOVABLE<br />            <span style="color: #00C800;">IF</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> acItem<span style="color: #000000;">&#91;</span> itemID + <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> $ <span style="color: #ff0000;">"AB"</span><br />               nResID := <span style="color: #000000;">23</span><br />            <span style="color: #00C800;">ELSE</span><br />               cDLL := WinDir + <span style="color: #ff0000;">"<span style="color: #000000;">\S</span>ystem32<span style="color: #000000;">\D</span>DORes.dll"</span><br />               nResID := <span style="color: #000000;">2389</span><br />            <span style="color: #00C800;">ENDIF</span><br /><br />         <span style="color: #00C800;">CASE</span> acType<span style="color: #000000;">&#91;</span> itemID + <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> = DRIVE_FIXED<br />            <span style="color: #00C800;">IF</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> acItem<span style="color: #000000;">&#91;</span> itemID + <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> = <span style="color: #ff0000;">"C:"</span><br />               nResID := <span style="color: #000000;">36</span><br />            <span style="color: #00C800;">ELSE</span><br />               nResID := <span style="color: #000000;">32</span><br />            <span style="color: #00C800;">ENDIF</span><br />         <span style="color: #00C800;">CASE</span> acType<span style="color: #000000;">&#91;</span> itemID + <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> = DRIVE_REMOTE<br />            nResID := <span style="color: #000000;">33</span><br />         <span style="color: #00C800;">CASE</span> acType<span style="color: #000000;">&#91;</span> itemID + <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> = DRIVE_CDROM<br />            nResID := <span style="color: #000000;">30</span><br />         <span style="color: #00C800;">CASE</span> acType<span style="color: #000000;">&#91;</span> itemID + <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> = DRIVE_RAMDISK<br />            nResID := <span style="color: #000000;">34</span><br /><br />      <span style="color: #00C800;">ENDCASE</span><br /><br />      hModule := GetModuleHandle<span style="color: #000000;">&#40;</span> cDLL <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">IF</span> hModule == <span style="color: #000000;">0</span><br />         hModule := LoadLibrary<span style="color: #000000;">&#40;</span> cDLL <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">ENDIF</span><br />      nIcoHandle := LOADIMAGERESICON<span style="color: #000000;">&#40;</span> hModule, nResID, <span style="color: #000000;">32</span> <span style="color: #000000;">&#41;</span><br /><br />      DrawIconEx<span style="color: #000000;">&#40;</span> hDC, ;<br />                  nTop, ;<br />                  nLeft, ;<br />                  nIcoHandle, ;<br />                  nSize, ;<br />                  nSize, ;<br />                  <span style="color: #000000;">0</span>, ;                <span style="color: #B900B9;">// _In_     UINT   istepIfAniCur,</span><br />                  <span style="color: #000000;">0</span>, ;                <span style="color: #B900B9;">// _In_opt_ HBRUSH hbrFlickerFreeDraw,</span><br />                  nOr<span style="color: #000000;">&#40;</span> DI_NORMAL <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// _In_     UINT   diFlags</span><br /><br />      DestroyIcon<span style="color: #000000;">&#40;</span> nIcoHandle <span style="color: #000000;">&#41;</span><br />      FreeLibrary<span style="color: #000000;">&#40;</span> hModule <span style="color: #000000;">&#41;</span></div>[/code:26hpofdz] now i must not provide Icon in *.RC [img:26hpofdz]https&#58;//i&#46;postimg&#46;cc/4y12RsyX/FW-Combobox-Ownerdraw-OS-Icon&#46;png[/img:26hpofdz] p.s. This Image show NO Highlight Bar as Mouse is not "over" Listbox-Part of Combobox ... something is missing ... hm
does Fivewin have a Gradient ComboBox ?
hi, now Combobox look like Menu [img:1ue6p759]https&#58;//i&#46;postimg&#46;cc/NMb48KrM/Combo-Box-Gradient2&#46;jpg[/img:1ue6p759]
does Fivewin hbpgsql.lib include CLASS TPQServer ?
hi, i have include hbpgsql.lib and LibPQ.LIB in *.HBC [code=fw:tnxepz5x]<div class="fw" id="{CB}" style="font-family: monospace;">libs=hbpgsql.LIB<br />libs=libpq.lib</div>[/code:tnxepz5x] but i get Error : [quote:tnxepz5x]Error: Unresolved external '_HB_FUN_TPQSERVER' referenced from C:\FWH\0\LISTVIEW\OBJ\HBPGU.OBJ Error: Unresolved external '_HB_FUN_PQEXEC' referenced from C:\FWH\0\LISTVIEW\OBJ\HBPGU.OBJ Error: Unresolved external '_HB_FUN_PQRESULTSTATUS' referenced from C:\FWH\0\LISTVIEW\OBJ\HBPGU.OBJ Error: Unresolved external '_HB_FUN_PQLASTREC' referenced from C:\FWH\0\LISTVIEW\OBJ\HBPGU.OBJ Error: Unresolved external '_HB_FUN_PQMETADATA' referenced from C:\FWH\0\LISTVIEW\OBJ\HBPGU.OBJ Error: Unresolved external '_HB_FUN_PQFCOUNT' referenced from C:\FWH\0\LISTVIEW\OBJ\HBPGU.OBJ Error: Unresolved external '_HB_FUN_PQGETVALUE' referenced from C:\FWH\0\LISTVIEW\OBJ\HBPGU.OBJ[/quote:tnxepz5x] in HMG Version it include tpostgre.prg, postgres.c and rddcopy.c where CLASS TPQSERVER is "in" *.PRG so what is in Fivewin hbpgsql.lib and libpq.lib <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
does Fivewin hbpgsql.lib include CLASS TPQServer ?
hbpqsql.lib is not a FiveWin library. This is a Harbour library libpq.lib is implib from libpq.dll
does Fivewin hbpgsql.lib include CLASS TPQServer ?
hi, thx for Answer ok i have ask wrong : does C:\fwh\lib\hbpgsql.lib (here 32 Bit) include [quote:ta9kriy4]postgres.c rddcopy.c tpostgre.prg[/quote:ta9kriy4] like used in c:\harbour64\contrib\hbpgsql\hbpgsql.hbp <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> i have include libs=hbpgsql.LIB and libs=libpq.lib in *.HBC but still got "Unresolved external" so what i´m doing wrong ...
does Fivewin open *.CDX ""automatic"" ?
hi, it seems Fivewin open *.CDX "automatic" <!-- s:o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":o" title="Surprised" /><!-- s:o --> is there a Way to avoid this <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
does Fivewin open *.CDX ""automatic"" ?
[code=fw:v3mpfb68]<div class="fw" id="{CB}" style="font-family: monospace;">SET AUTOPEN OFF</div>[/code:v3mpfb68]
does Fivewin open *.CDX ""automatic"" ?
hi Enrico, [quote="Enrico Maria Giordano":17fs6bwd][code=fw:17fs6bwd]<div class="fw" id="{CB}" style="font-family: monospace;">SET AUTOPEN OFF</div>[/code:17fs6bwd][/quote:17fs6bwd] ah, thx for Answer
does Fivewin open *.CDX ""automatic"" ?
Fivewin not, the [x]harbour compiler yes.
does Fivewin open *.CDX ""automatic"" ?
[quote="carlos vargas":1lbx7hyb]Fivewin not, the [x]harbour compiler yes.[/quote:1lbx7hyb] Yes. Fivewin has nothing to do with it. It is a feature of (x)Harbour.
does directory exist?
Hi, Which the best form for a directory to be seen exists? example: C:\BA * he doesn't have any file in this directory Clemerson
does directory exist?
Clemerson lIsDir(cDirectoryName) return .T. if exist, else return .F. Regards George
does directory exist?
see this sample : I hope it good for you [code:1veqbyht] cIni &#58;=GetWinDir&#40;&#41;+"\Classroom&#46;Ini" cTem &#58;=GetPvProfString&#40;"Classroom","DirDat","",cIni&#41; cDir &#58;=IF&#40;!Empty&#40;cTem&#41;,LFN2SFN&#40;cTem&#41;,cTem&#41; cNSys&#58;="ClassRoom" IF !Empty&#40;cPar&#41; &#46;AND&#46; cPar=="/L" cPath&#58;=CurDrive&#40;&#41;+"&#58;\"+CurDir&#40;&#41;+"\" ELSE cPath&#58;=IF&#40;!Empty&#40;cDir&#41;,cDir,"\"+CurDir&#40;&#41;+"\"&#41; ENDIF IF Empty&#40;cTem&#41; cPath&#58;=CurDrive&#40;&#41;+"&#58;\"+CurDir&#40;&#41;+"\" WritePProString&#40;cNSys,"DirDat",cPath,cIni&#41; ENDIF[/code:1veqbyht]
does directory exist?
tank's Clemerson
does folder exist
what's an easy way to check to see if a folder exists
does folder exist
Try with [code=fw:2lz32s8y]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> !hb_DirExists<span style="color: #000000;">&#40;</span> cFld <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> hb_vfDirMake<span style="color: #000000;">&#40;</span> cFld <span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><br />.../...<br />&nbsp;</div>[/code:2lz32s8y]
does folder exist
[code=fw:2wqs6blj]<div class="fw" id="{CB}" style="font-family: monospace;"><br />? IsDir<span style="color: #000000;">&#40;</span> cSpec <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:2wqs6blj]
does folder exist
thanks everyone
dolphin y xbrowse
Hola. esto esta mal, como lo hago bien? [code=fw:3icv8mgn]<div class="fw" id="{CB}" style="font-family: monospace;">     <span style="color: #0000ff;">DEFINE</span> QUERY oQuery <span style="color: #ff0000;">"SELECT * FROM tbempresas order by tbempresas.empresa"</span><br />      oBrw:= TXBROWSE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span>oDlg<span style="color: #000000;">&#41;</span><br />         WITH OBJECT oBrw<br />            :<span style="color: #000000;">bClrStd</span>    := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, ;<br />                      <span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">224</span>, <span style="color: #000000;">236</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />                      <span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">199</span>, <span style="color: #000000;">251</span>, <span style="color: #000000;">253</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />            :<span style="color: #000000;">bClrRowFocus</span>     := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK, CLR_WHITE<span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />            :<span style="color: #000000;">nMarqueeStyle</span>   := <span style="color: #000000;">5</span><br />            :<span style="color: #000000;">nRowHeight</span>      := <span style="color: #000000;">22</span><br />            :<span style="color: #000000;">lRecordSelector</span> := .F.<br />            :<span style="color: #000000;">lColDividerComplete</span> := .f.<br />            :<span style="color: #000000;">nRowDividerStyle</span>:= <span style="color: #000000;">4</span><br />            :<span style="color: #000000;">nStretchCol</span> := STRETCHCOL_LAST<br />            :<span style="color: #000000;">nColDividerStyle</span>:=  <span style="color: #000000;">4</span><br /><br />            :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nWidth</span>           := <span style="color: #000000;">120</span><br />            :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cHeader</span>          := <span style="color: #ff0000;">"Empresa"</span><br />            :<span style="color: #000000;">acols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bData</span>:= <span style="color: #000000;">&#123;</span> || oQuery:<span style="color: #000000;">ID_PROG</span><span style="color: #000000;">&#125;</span>               <--------------------- esto esta mal.<br />            :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nEditType</span>        := <span style="color: #000000;">1</span><br />            :<span style="color: #000000;">acols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cEditPicture</span>     := <span style="color: #ff0000;">"@99/99/9999"</span><br />            :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nDataStrAlign</span>    := AL_CENTER<br />            :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nHeadStrAlign</span>    := AL_CENTER<br />    end with<br />    oBrw:<span style="color: #000000;">setdolphin</span><span style="color: #000000;">&#40;</span>oquery,.T., .T.<span style="color: #000000;">&#41;</span><br />...</div>[/code:3icv8mgn]
dolphin y xbrowse
Porque usas un formato picture de fecha.? veo que el nombre es de empresa y el campo paraciera que fuese un campo uno ID...saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
dolphin y xbrowse
No uso TDolphin, pero me da la impresion que aqui: [quote:1p2nnbkl]:acols[1]:bData:= { || oQuery:ID_PROG} <--------------------- esto esta mal.[/quote:1p2nnbkl] ...deberia ser: acols[1]:bEditValue:= { || oQuery:ID_PROG} o acols[1]:bStrData:= { || oQuery:ID_PROG} Saludos.
dolphin y xbrowse
[quote="joseluisysturiz":2jo0wgbh]Porque usas un formato picture de fecha.? veo que el nombre es de empresa y el campo paraciera que fuese un campo uno ID...saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->[/quote:2jo0wgbh] porque estaba probando el xbrowse y la columna y tomé el código que estoy utilizando para otro módulo. Gracias.
dolphin y xbrowse
[quote="FranciscoA":30sahk1w]No uso TDolphin, pero me da la impresion que aqui: [quote:30sahk1w]:acols[1]:bData:= { || oQuery:ID_PROG} <--------------------- esto esta mal.[/quote:30sahk1w] ...deberia ser: acols[1]:bEditValue:= { || oQuery:ID_PROG} o acols[1]:bStrData:= { || oQuery:ID_PROG} Saludos.[/quote:30sahk1w] gracias.
dolphin y xbrowse
Goosfancito; esta es otra forma de acerlo [code=fw:3sn5msd6]<div class="fw" id="{CB}" style="font-family: monospace;"><br />        <span style="color: #0000ff;">DEFINE</span> QUERY oQuery <span style="color: #ff0000;">"SELECT * FROM tbempresas order by tbempresas.empresa"</span><br /><br />        <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oBrw OBJECT oQuery <span style="color: #0000ff;">ID</span> <span style="color: #000000;">100</span> ;<br />        HEADERS <span style="color: #ff0000;">"Empresa"</span> AUTOSORT <br /><br />        WITH OBJECT oBrw<br />            :<span style="color: #000000;">bClrStd</span>:= <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, ;<br />                            <span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">224</span>, <span style="color: #000000;">236</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />                            <span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">199</span>, <span style="color: #000000;">251</span>, <span style="color: #000000;">253</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />            :<span style="color: #000000;">bClrRowFocus</span>     := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK, CLR_WHITE<span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />            :<span style="color: #000000;">nMarqueeStyle</span>   := <span style="color: #000000;">5</span><br />            :<span style="color: #000000;">nRowHeight</span>      := <span style="color: #000000;">22</span><br />            :<span style="color: #000000;">lRecordSelector</span> := .F.<br />            :<span style="color: #000000;">lColDividerComplete</span> := .f.<br />            :<span style="color: #000000;">nRowDividerStyle</span>:= <span style="color: #000000;">4</span><br />            :<span style="color: #000000;">nStretchCol</span> := STRETCHCOL_LAST<br />            :<span style="color: #000000;">nColDividerStyle</span>:=  <span style="color: #000000;">4</span><br />        end with<br />    <br />        WITH OBJECT oBrw:<span style="color: #000000;">Empresa</span><br />            :<span style="color: #000000;">nWidth</span>           := <span style="color: #000000;">120</span><br />            :<span style="color: #000000;">nEditType</span>        := <span style="color: #000000;">1</span><br />            :<span style="color: #000000;">cEditPicture</span>     := <span style="color: #ff0000;">"@99/99/9999"</span><br />            :<span style="color: #000000;">nDataStrAlign</span>    := AL_CENTER<br />            :<span style="color: #000000;">nHeadStrAlign</span>    := AL_CENTER<br />        end with<br /> </div>[/code:3sn5msd6]
dolphin y xbrowse
gracias. eso en el caso de ser un solo campo no?
dolphin y xbrowse
Nop; lo puse en funcion de tu ejemplo. Podes agregar otros campos separando por comas luego de Headers [code=fw:1a9gsxi8]<div class="fw" id="{CB}" style="font-family: monospace;">       <span style="color: #0000ff;">DEFINE</span> QUERY oQuery <span style="color: #ff0000;">"SELECT * FROM tbempresas order by tbempresas.empresa"</span><br /><br />        <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oBrw OBJECT oQuery <span style="color: #0000ff;">ID</span> <span style="color: #000000;">100</span> ;<br />        HEADERS <span style="color: #ff0000;">"Empresa"</span>, <span style="color: #ff0000;">"Direccion"</span>, <span style="color: #ff0000;">"Ciudad"</span>,... AUTOSORT <span style="color: #B900B9;">// esto es para hacer búsquedas sensitivas</span><br /> </div>[/code:1a9gsxi8] Algo para tener en cuenta. No podrías usar "Dirección" (en caso hipotetico de que existe ese campo), porque luego, no podrías hacer el [b:1a9gsxi8]with object oBrw:Dirección[/b:1a9gsxi8]. Estos headers son, en realidad, la definición de los campos de la tabla. O sea, suponiendo que al campo dirección la hayas nombrado DIREC, entonces podrías hacer lo siguiente [code=fw:1a9gsxi8]<div class="fw" id="{CB}" style="font-family: monospace;">       <span style="color: #0000ff;">DEFINE</span> QUERY oQuery <span style="color: #ff0000;">"SELECT * FROM tbempresas order by tbempresas.empresa"</span><br /><br />        <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oBrw OBJECT oQuery <span style="color: #0000ff;">ID</span> <span style="color: #000000;">100</span> ;<br />        HEADERS <span style="color: #ff0000;">"Empresa"</span>, <span style="color: #ff0000;">"Direc"</span>, <span style="color: #ff0000;">"Ciudad"</span>,... AUTOSORT <br /><br />       with object oBrow:<span style="color: #000000;">Direc</span><br />          :<span style="color: #000000;">cHeader</span>:= <span style="color: #ff0000;">"Dirección"</span>  <span style="color: #B900B9;">// Para que, en la vista del Browse, la columna tenga una descripción legible (o algo como "La Dirección")</span><br />          ...<br />       end<br /> </div>[/code:1a9gsxi8]
dolphin y xbrowse
Gracias.- [quote="MarioG":1q9c57ep]Nop; lo puse en funcion de tu ejemplo. Podes agregar otros campos separando por comas luego de Headers [code=fw:1q9c57ep]<div class="fw" id="{CB}" style="font-family: monospace;">       <span style="color: #0000ff;">DEFINE</span> QUERY oQuery <span style="color: #ff0000;">"SELECT * FROM tbempresas order by tbempresas.empresa"</span><br /><br />        <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oBrw OBJECT oQuery <span style="color: #0000ff;">ID</span> <span style="color: #000000;">100</span> ;<br />        HEADERS <span style="color: #ff0000;">"Empresa"</span>, <span style="color: #ff0000;">"Direccion"</span>, <span style="color: #ff0000;">"Ciudad"</span>,... AUTOSORT <span style="color: #B900B9;">// esto es para hacer búsquedas sensitivas</span><br /> </div>[/code:1q9c57ep] Algo para tener en cuenta. No podrías usar "Dirección" (en caso hipotetico de que existe ese campo), porque luego, no podrías hacer el [b:1q9c57ep]with object oBrw:Dirección[/b:1q9c57ep]. Estos headers son, en realidad, la definición de los campos de la tabla. O sea, suponiendo que al campo dirección la hayas nombrado DIREC, entonces podrías hacer lo siguiente [code=fw:1q9c57ep]<div class="fw" id="{CB}" style="font-family: monospace;">       <span style="color: #0000ff;">DEFINE</span> QUERY oQuery <span style="color: #ff0000;">"SELECT * FROM tbempresas order by tbempresas.empresa"</span><br /><br />        <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oBrw OBJECT oQuery <span style="color: #0000ff;">ID</span> <span style="color: #000000;">100</span> ;<br />        HEADERS <span style="color: #ff0000;">"Empresa"</span>, <span style="color: #ff0000;">"Direc"</span>, <span style="color: #ff0000;">"Ciudad"</span>,... AUTOSORT <br /><br />       with object oBrow:<span style="color: #000000;">Direc</span><br />          :<span style="color: #000000;">cHeader</span>:= <span style="color: #ff0000;">"Dirección"</span>  <span style="color: #B900B9;">// Para que, en la vista del Browse, la columna tenga una descripción legible (o algo como "La Dirección")</span><br />          ...<br />       end<br /> </div>[/code:1q9c57ep][/quote:1q9c57ep]
dolphin.lib needed
I tried to download and buildh the dolphin.lib but all the efforts in vain. Can any one provide me dolphin.lib? I am using bcc582 for linking...
dolphin.lib needed
Hello what problem do you have? the best way is get the source and build the lib your self check: [url:1pecpyvz]http&#58;//tdolphin&#46;blogspot&#46;com&#46;ar/2010/06/comanzando-starting&#46;html[/url:1pecpyvz] after [url:1pecpyvz]http&#58;//tdolphin&#46;blogspot&#46;com&#46;ar/2010/11/construir-lib-ejemplos-build-lib&#46;html[/url:1pecpyvz]
dolphin.lib needed
I got these errors... Compiling .\source\prg\tdolpsrv.prg \borland\bcc582\bin\bcc32 -c -D__WIN__ -D__HARBOUR__ -DHB_LEGACY_TYPES_ON -tWM -I\hb30\include -I.\include -o.\obj\HARBOUR\BCC\tdolpsrv.obj .\obj\HARBOUR\BCC\tdolpsrv.c Compiling .\obj\HARBOUR\BCC\tdolpsrv.c Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland .\obj\HARBOUR\BCC\tdolpsrv.c: # ----------------------------------------------------------------------- \borland\bcc582\bin\bcc32 -c -D__WIN__ -D__HARBOUR__ -DHB_LEGACY_TYPES_ON -tWM -I\hb30\include -I.\include -o.\obj\HARBOUR\BCC\function.obj .\source\c\function.c Compiling .\source\c\function.c Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland .\source\c\function.c: Warning W8060 .\source\c\function.c 811: Possibly incorrect assignment in function HB_FUN_DOLPHINFILLARRAY Warning W8004 .\source\c\function.c 838: 'i' is assigned a value that is never used in function HB_FUN_DOLPHINFILLARRAY Warning W8012 .\source\c\function.c 1323: Comparing signed and unsigned values in function HB_FUN_MYSEEK2 Warning W8012 .\source\c\function.c 1325: Comparing signed and unsigned values in function HB_FUN_MYSEEK2 Warning W8060 .\source\c\function.c 1597: Possibly incorrect assignment in function HB_FUN_MYBACKUP Warning W8004 .\source\c\function.c 1576: 'cField' is assigned a value that is never used in function HB_FUN_MYBACKUP # ----------------------------------------------------------------------- \borland\bcc582\bin\bcc32 -c -D__WIN__ -D__HARBOUR__ -DHB_LEGACY_TYPES_ON -tWM -I\hb30\include -I.\include -o.\obj\HARBOUR\BCC\gerrapi.obj .\source\c\gerrapi.c Compiling .\source\c\gerrapi.c Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland .\source\c\gerrapi.c: Warning W8064 .\source\c\gerrapi.c 87: Call to function with no prototype in function LoadMsgs Warning W8070 .\source\c\gerrapi.c 114: Function should return a value in function GetGErrorMsg # ----------------------------------------------------------------------- \borland\bcc582\bin\bcc32 -c -D__WIN__ -D__HARBOUR__ -DHB_LEGACY_TYPES_ON -tWM -I\hb30\include -I.\include -o.\obj\HARBOUR\BCC\msges.obj .\source\lang\msges.c Compiling .\source\lang\msges.c Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland .\source\lang\msges.c: Error E2451 .\source\lang\msges.c 99: Undefined symbol 'ERR_EMPTYALIAS' in function LoadMsgsES Error E2040 .\source\lang\msges.c 99: Declaration terminated incorrectly in function LoadMsgsES Error E2139 .\source\lang\msges.c 99: Declaration missing ; in function LoadMsgsES Warning W8070 .\source\lang\msges.c 99: Function should return a value in function LoadMsgsES Warning W8004 .\source\lang\msges.c 99: 'ErrMsg' is assigned a value that is never used in function LoadMsgsES Error E2190 .\source\lang\msges.c 99: Unexpected } Error E2190 .\source\lang\msges.c 101: Unexpected } Error E2293 .\source\lang\msges.c 103: ) expected Error E2040 .\source\lang\msges.c 105: Declaration terminated incorrectly Error E2190 .\source\lang\msges.c 106: Unexpected } *** 8 errors in Compile *** <!-- s:| --><img src="{SMILIES_PATH}/icon_neutral.gif" alt=":|" title="Neutral" /><!-- s:| -->
dolphin.lib needed
My setenvh.bat is as follows: @CALL CLEANENV.BAT @SET PRG_COMPILER=HARBOUR @SET PRG_COMP_PATH=\hb30 @SET PRG_COMP_BIN_PATH=%PRG_COMP_PATH%\bin @SET PRG_COMP_LIB_PATH=%PRG_COMP_PATH%\lib\win\bcc @SET PRG_COMP_INC_PATH=%PRG_COMP_PATH%\include @SET C_COMPILER=BCC @SET C_COMP_PATH=\borland\bcc582 @SET C_COMP_BIN_PATH=%C_COMP_PATH%\bin @SET C_COMP_LIB_PATH=%C_COMP_PATH%\lib;%C_COMP_PATH%\lib\psdk @SET C_COMP_INC_PATH=%C_COMP_PATH%\include @SET DOLPHIN_INC=.\include @CALL win-make
dolphin.lib needed
hello did you downloaded from svn? can you chat with me by gmail?
dolphin.lib needed
I downloaded from svn. My gmail id: <!-- e --><a href="mailto:csplsurat@gmail.com">csplsurat@gmail.com</a><!-- e --> Thanks in advance...
dolphin.lib needed
Your system is using and old verrsion of dolerr.ch you must change includes path to use tdolphin include. Regards,
dolphin.lib needed
Hi Daniel, I checked out the dolphin library and came up with certain suggestions ( if you feel right ) that SHOULD be incorporated. It would be much better to converse on google talk. It will make dolphin even more acceptable and fantastic.
dolphin.lib needed
Hello is ok to me, while more people use the class we can do a better product.
don't close window with Escape
Hello, It has been a long time since I had the oppurtunity to work on my program, due to personal problems. I have some questions: When in the Window definition I don't use the VALID option, the user can close the Window with the Escape key. I have set a VALID in this way: [code=fw:28313ltp]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>MsgYesNo<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'Want to end?'</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span>RK_SaveVariables<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, RK_CloseTables<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span><br /> </div>[/code:28313ltp] But if the user clicks 'No' the program still stops. How can I make it that the program respons to the 'No' choise?
don't close window with Escape
Hello, try with [code=fw:1m4w0ew3]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>MsgYesNo<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'Want to end?'</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span>RK_SaveVariables<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, RK_CloseTables<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, .T. <span style="color: #000000;">&#41;</span>, .F. <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:1m4w0ew3]
don't close window with Escape
Hello, Thank you very much, that was the trick <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
don't open duplicates of an exe
not to open the same exe I have always done this way (it seems to me that the source is EMG) [code=fw:3ds524jm]<div class="fw" id="{CB}" style="font-family: monospace;"><br /># <span style="color: #0000ff;">define</span> NOME_PROGRAMMA_TITLE <span style="color: #ff0000;">"Winbeach"</span><br /><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />...<br /> <span style="color: #00C800;">IF</span> ISEXERUNNING<span style="color: #000000;">&#40;</span> CFILENAME<span style="color: #000000;">&#40;</span> HB_ARGV<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />       MsgWait<span style="color: #000000;">&#40;</span>NOME_PROGRAMMA_TITLE+<span style="color: #ff0000;">"  è già in esecuzione !"</span>,<span style="color: #ff0000;">"Attenzione"</span><span style="color: #000000;">&#41;</span><br />        SHOWWINDOW<span style="color: #000000;">&#40;</span> FINDWND<span style="color: #000000;">&#40;</span> NOME_PROGRAMMA_TITLE <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span><br />        SETFOREGROUNDWINDOW<span style="color: #000000;">&#40;</span> FINDWND<span style="color: #000000;">&#40;</span> NOME_PROGRAMMA_TITLE <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />     <span style="color: #00C800;">ENDIF</span><br /><br />   WITH OBJECT oApp := TApplication<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      :<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   END</div>[/code:3ds524jm] [b:3ds524jm]the function [/b:3ds524jm] [code=fw:3ds524jm]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> FINDWND<span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">LOCAL</span> hWnd := GETWINDOW<span style="color: #000000;">&#40;</span> GETDESKTOPWINDOW<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, GW_CHILD <span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">WHILE</span> hWnd != <span style="color: #000000;">0</span><br />        <span style="color: #00C800;">IF</span> UPPER<span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span> $ UPPER<span style="color: #000000;">&#40;</span> GETWINDOWTEXT<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">RETURN</span> hWnd<br />        <span style="color: #00C800;">ENDIF</span><br /><br />        hWnd = GETWINDOW<span style="color: #000000;">&#40;</span> hWnd, GW_HWNDNEXT <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">ENDDO</span><br /><br />    <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:3ds524jm] now a strange thing happens to me that is before accessing the application I do enter the access login for the users of the system Let's imagine that the user gets distracted and opens the exe again then we would have this situation [img:3ds524jm]https&#58;//i&#46;postimg&#46;cc/zvVx2f1s/errore&#46;png[/img:3ds524jm] ie it displays me the message that the application is already running but then it happens that it still opens the main window as if it were another section then we would have this situation [img:3ds524jm]https&#58;//i&#46;postimg&#46;cc/kg6BMPn7/errore2&#46;png[/img:3ds524jm] how should i do to avoid making the main window appear? because it's very strange because I active the Main window on TApplication and on method Activate() where is the dialog of check login [code=fw:3ds524jm]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">method</span> <span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">class</span> TApplication<br /><br /><span style="color: #00C800;">IF</span> ::<span style="color: #000000;">CheckLogin</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    GetWinCoors<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oWndMain</span>, ::<span style="color: #000000;">cInifile</span> <span style="color: #000000;">&#41;</span><br />   * Get_Modules<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">cInifile</span><span style="color: #000000;">&#41;</span><br /><br />   ::<span style="color: #000000;">oWndMain</span>:<span style="color: #000000;">bResized</span> := <span style="color: #000000;">&#123;</span>|| ResizeWndMain<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   ::<span style="color: #000000;">oWndMain</span>:<span style="color: #000000;">aMinMaxInfo</span> := <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, ,, <span style="color: #000000;">1130</span>,<span style="color: #000000;">650</span>, , <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> ::<span style="color: #000000;">oWndMain</span> ;<br />      <span style="color: #0000ff;">VALID</span> ::<span style="color: #000000;">ExitFromX</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDIF</span></div>[/code:3ds524jm] when I show the login and a user enters I go to load a series of parameters for that user, for example access to programs that are activated from the menu or from the buttonbar if I used on method Activate() ::oWndMain:bInit := { || IIF(::CheckLogin(),,::ExitFromSource()) } it can run but then I have problems because the buttonbar and the menu are allready load without the paramters I want for that user
don't open duplicates of an exe
[code=fw:2midsuuf]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ISEXERUNNING<span style="color: #000000;">&#40;</span> CFILENAME<span style="color: #000000;">&#40;</span> HB_ARGV<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"WinOrcam.exe Já Está Rodando Nesta Máquina"</span>,<span style="color: #ff0000;">"WinOrcam.exe"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; SHOWWINDOW<span style="color: #000000;">&#40;</span> FINDWINDOW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"WINORCAM"</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; SETFOREGROUNDWINDOW<span style="color: #000000;">&#40;</span> FINDWINDOW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"WINORCAM"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; LIBERA_TUDO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #B900B9;">//--Fecha o Programa Definitivamente</span><br /><span style="color: #00C800;">FUNCTION</span> LIBERA_TUDO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">PUBLIC</span> aArray, aResolucaoAtual<br /><br /><span style="color: #B900B9;">// lFechaJan := .F.</span><br /><span style="color: #B900B9;">// lFechaWin := .F.</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//? "Desligando o NumLock" &nbsp;// ESTA EM NUM_CAPS.PRG/E AQUI MESMO.</span><br /><span style="color: #B900B9;">// SETNUMLOCK( .F. )</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// MsgStop( AltTabEnable( 0, .T. ), "Habilitando &nbsp; ALT+TAB e ALT+ESC - Windows NT, 2k" )</span><br /><span style="color: #B900B9;">// AltTabEnable( 0, .T. ) // LIGA O ALT+TAB</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> FILE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"WINORCAM.LOG"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; DELETEFILE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"WINORCAM.LOG"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> FILE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ENCERRA.wav"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; SndPlaySound<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ENCERRA.wav"</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br />&nbsp; &nbsp;<span style="color: #B900B9;">// DeleteObject( oFont )</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// DeleteObject( oBrush )</span><br /><br />&nbsp; &nbsp;DbCommitAll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;DbUnLockAll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;DbCloseAll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FreeResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">Release</span> All<br />&nbsp; &nbsp;SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;HB_GCALL<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// xHarbour</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// hb_gcAlloc() &nbsp;// Harbour</span><br /><br />&nbsp; &nbsp;CLEAR MEMORY<br />&nbsp; &nbsp;<span style="color: #B900B9;">// hb_gcFree() // nao funciona com xHarbour?</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> FILE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"checkres.txt"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; FErase<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"checkres.txt"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;CheckRes<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;PostQuitMessage<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;QUIT<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp;</div>[/code:2midsuuf]
don't open duplicates of an exe
[quote="karinha":2jtf816f][code=fw:2jtf816f]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #00C800;">IF</span> ISEXERUNNING<span style="color: #000000;">&#40;</span> CFILENAME<span style="color: #000000;">&#40;</span> HB_ARGV<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />      <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"WinOrcam.exe Já Está Rodando Nesta Máquina"</span>,<span style="color: #ff0000;">"WinOrcam.exe"</span><span style="color: #000000;">&#41;</span><br /><br />      SHOWWINDOW<span style="color: #000000;">&#40;</span> FINDWINDOW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"WINORCAM"</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span><br /><br />      SETFOREGROUNDWINDOW<span style="color: #000000;">&#40;</span> FINDWINDOW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"WINORCAM"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />      LIBERA_TUDO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br />   <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #B900B9;">//--Fecha o Programa Definitivamente</span><br /><span style="color: #00C800;">FUNCTION</span> LIBERA_TUDO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">PUBLIC</span> aArray, aResolucaoAtual<br /><br /><span style="color: #B900B9;">// lFechaJan := .F.</span><br /><span style="color: #B900B9;">// lFechaWin := .F.</span><br /><br />   <span style="color: #B900B9;">//? "Desligando o NumLock"  // ESTA EM NUM_CAPS.PRG/E AQUI MESMO.</span><br /><span style="color: #B900B9;">// SETNUMLOCK( .F. )</span><br /><br />   <span style="color: #B900B9;">// MsgStop( AltTabEnable( 0, .T. ), "Habilitando   ALT+TAB e ALT+ESC - Windows NT, 2k" )</span><br /><span style="color: #B900B9;">// AltTabEnable( 0, .T. ) // LIGA O ALT+TAB</span><br /><br />   <span style="color: #00C800;">IF</span> FILE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"WINORCAM.LOG"</span> <span style="color: #000000;">&#41;</span><br />      DELETEFILE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"WINORCAM.LOG"</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br /><br />   <span style="color: #00C800;">IF</span> FILE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ENCERRA.wav"</span> <span style="color: #000000;">&#41;</span><br /><br />      SndPlaySound<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ENCERRA.wav"</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">ENDIF</span><br /><br />   <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br />   <span style="color: #B900B9;">// DeleteObject( oFont )</span><br />   <span style="color: #B900B9;">// DeleteObject( oBrush )</span><br /><br />   DbCommitAll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   DbUnLockAll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   DbCloseAll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   FreeResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">Release</span> All<br />   SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   HB_GCALL<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// xHarbour</span><br />   <span style="color: #B900B9;">// hb_gcAlloc()  // Harbour</span><br /><br />   CLEAR MEMORY<br />   <span style="color: #B900B9;">// hb_gcFree() // nao funciona com xHarbour?</span><br /><br />   <span style="color: #00C800;">IF</span> FILE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"checkres.txt"</span> <span style="color: #000000;">&#41;</span><br />      FErase<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"checkres.txt"</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br /><br />   CheckRes<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   PostQuitMessage<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   QUIT<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:2jtf816f][/quote:2jtf816f] NOT RUN it 's the same
don't open duplicates of an exe
It works perfectly. Show how you are doing. What is the NAME of your EXECUTABLE? I don't understand why nothing works for you. <!-- m --><a class="postlink" href="https://i.imgur.com/Xd9rfEn.png">https://i.imgur.com/Xd9rfEn.png</a><!-- m --> [img:2x2tfqd2]https&#58;//i&#46;imgur&#46;com/Xd9rfEn&#46;png[/img:2x2tfqd2] Regards.
don't open duplicates of an exe
ok now load the same exe again and then look at the computer task manager however I use Harbor and it doesn't work on mine
don't open duplicates of an exe
Test now: [code=fw:17ag0qik]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// SAMPLES\SILVIO.PRG</span><br /><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00D7D7;">#Define</span> CLR_LGRAY &nbsp; &nbsp; &nbsp;nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">230</span>, <span style="color: #000000;">230</span>, <span style="color: #000000;">230</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#Define</span> CLR_LGREEN &nbsp; &nbsp; nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">190</span>, <span style="color: #000000;">215</span>, <span style="color: #000000;">190</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#Define</span> CLR_VERMELHO &nbsp; nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//-> Vermelho Para a Letra</span><br /><span style="color: #00D7D7;">#Define</span> CLR_AMARELO &nbsp; &nbsp;nRgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">000</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//-> Amarelo Para o Fundo</span><br /><span style="color: #00D7D7;">#Define</span> CLR_MENTA &nbsp; &nbsp; &nbsp;nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">221</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//-> Cor de Menta</span><br /><span style="color: #00D7D7;">#Define</span> CLR_HMENTA &nbsp; &nbsp; nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">000</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">000</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//-> Cor de Menta Light uiiii</span><br /><span style="color: #00D7D7;">#Define</span> CLR_SOFTYELLOW nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">251</span>, <span style="color: #000000;">225</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#Define</span> NOME_APP &nbsp; <span style="color: #ff0000;">"SILVIO"</span> &nbsp;<span style="color: #B900B9;">// SILVIO.EXE</span><br /><br />REQUEST HB_LANG_ES<br />REQUEST HB_CODEPAGE_ESWIN<br /><br />ANNOUNCE RDDSYS<br />REQUEST OrdKeyNo, OrdKeyCount, OrdCreate, OrdKeyGoto <span style="color: #B900B9;">// Para ListBox</span><br />REQUEST DBFCDX, DBFFPT<br /><br />MEMVAR oApp<br /><br /><span style="color: #B900B9;">/*_____________________________________________________________________________*/</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">PUBLIC</span> oApp<br /><br />&nbsp; &nbsp;rddSetDefault<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;hb_langSelect<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'ES'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;HB_SETCODEPAGE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'ESWIN'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// SetHandleCount( 100 ) // FIVEWIN FOR CLIPPER</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp;SET DATE FORMAT "dd-mm-yyyy"<br />&nbsp; &nbsp;SET DELETED &nbsp; &nbsp; ON<br />&nbsp; &nbsp;SET CENTURY &nbsp; &nbsp; ON<br />&nbsp; &nbsp;SET EPOCH TO &nbsp; &nbsp;Year( Date() ) - 20<br />&nbsp; &nbsp;SET MULTIPLE &nbsp; &nbsp;OFF<br />&nbsp; &nbsp;*/</span><br /><br />&nbsp; &nbsp;SET CENTURY <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET DATE BRITISH<br />&nbsp; &nbsp;SET TIME FORMAT <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"HH:MM:SS"</span><br />&nbsp; &nbsp;SET EPOCH <span style="color: #0000ff;">TO</span> <span style="color: #0000ff;">YEAR</span><span style="color: #000000;">&#40;</span> DATE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">30</span><br />&nbsp; &nbsp;SET SOFTSEEK OFF<br />&nbsp; &nbsp;SET WRAP <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SETCANCEL<span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;SET CONFIRM OFF<br />&nbsp; &nbsp;SET DELETED <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET _3DLOOK <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET UNIQUE OFF<br />&nbsp; &nbsp;SET ESCAPE OFF<br />&nbsp; &nbsp;SET EXACT <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET EXCLUSIVE OFF<br />&nbsp; &nbsp;SET MULTIPLE OFF<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// CREAR UN ICONE EN EL DESKTOP PARA TESTE EN RED SILVIO.</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ISEXERUNNING<span style="color: #000000;">&#40;</span> CFILENAME<span style="color: #000000;">&#40;</span> HB_ARGV<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// NOMBRE DEL EJECUTABLE Por ejemplo: SILVIO.EXE - ESCOLA.EXE</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SILVIO.exe Já Está Rodando Nesta Máquina"</span>,<span style="color: #ff0000;">"SILVIO.exe"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; SHOWWINDOW<span style="color: #000000;">&#40;</span> FINDWINDOW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"SILVIO"</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; SETFOREGROUNDWINDOW<span style="color: #000000;">&#40;</span> FINDWINDOW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"SILVIO"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; DbCommitAll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; DbUnLockAll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; DbCloseAll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; FreeResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Release</span> All<br />&nbsp; &nbsp; &nbsp; SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; HB_GCALL<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// xHarbour</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// hb_gcAlloc() &nbsp;// Harbour</span><br /><br />&nbsp; &nbsp; &nbsp; CLEAR MEMORY<br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// hb_gcFree() // nao funciona com xHarbour.</span><br /><br />&nbsp; &nbsp; &nbsp; PostQuitMessage<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; QUIT<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;SetDialogEsc<span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// DESLIGA O ESC NO DIALOGO</span><br />&nbsp; &nbsp;SetBalloon<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span> &nbsp; &nbsp;<span style="color: #B900B9;">// Balloon shape required for tooltips</span><br />&nbsp; &nbsp;SkinButtons<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Botoes Coloridos nas novas versoes</span><br /><br />&nbsp; &nbsp;SetGetColorFocus<span style="color: #000000;">&#40;</span> CLR_BLACK <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;tGet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">lDisColors</span> &nbsp;:= .F.<br />&nbsp; &nbsp;tGet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">nClrTextDis</span> := CLR_HBLUE<br />&nbsp; &nbsp;tGet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">nClrPaneDis</span> := CLR_SOFTYELLOW<br /><br />&nbsp; &nbsp;WITH OBJECT oApp := TApplication<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">/*_____________________________________________________________________________*/</span><br /><br /><span style="color: #00C800;">CLASS</span> tApplication<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> cAppName<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> cVersion<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> cEdicion<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> cBuild<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> cUrl<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> cMsgBar<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> cIniFile<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> cZipPath<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> oWndMain<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> oFont<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> oBar<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> oExit<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> oIcon<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> oMsgItem1<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> oMsgItem2<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> oMsgItem3<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> oDlg<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> oGrid<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> oTab<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> oSplit<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> nEdit<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> cLanguage<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> CONSTRUCTOR<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> BuildMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> BuildBtnBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> Close<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> End<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> <span style="color: #000000;">&#40;</span> SetWinCoors<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oWndMain</span>, ::<span style="color: #000000;">cIniFile</span> <span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">oWndMain</span>:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> ExitFromX<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> ExitFromBtn<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> ExitFromSource<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> checklogin<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #B900B9;">/*_____________________________________________________________________________*/</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> tApplication<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">cAppName</span> &nbsp;:= NOME_APP<br />&nbsp; &nbsp;::<span style="color: #000000;">cVersion</span> &nbsp;:= <span style="color: #ff0000;">"1.001"</span><br />&nbsp; &nbsp;::<span style="color: #000000;">cBuild</span> &nbsp; &nbsp;:= <span style="color: #ff0000;">"build "</span><br />&nbsp; &nbsp;::<span style="color: #000000;">cUrl</span> &nbsp; &nbsp; &nbsp;:= <span style="color: #ff0000;">"http://www.google.com"</span><br />&nbsp; &nbsp;::<span style="color: #000000;">cMsgBar</span> &nbsp; := <span style="color: #ff0000;">"© &nbsp;software"</span><br />&nbsp; &nbsp;::<span style="color: #000000;">cIniFile</span> &nbsp;:= cFilePath<span style="color: #000000;">&#40;</span> GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"TEST.ini"</span><br />&nbsp; &nbsp;::<span style="color: #000000;">cLanguage</span> := <span style="color: #ff0000;">"ES"</span><br />&nbsp; &nbsp;::<span style="color: #000000;">oDlg</span> &nbsp; &nbsp; &nbsp;:= <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nEdit</span> &nbsp; &nbsp; := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;::<span style="color: #000000;">oFont</span> = TFont<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> GetDefaultFontName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, GetDefaultFontHeight<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,, <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> ::<span style="color: #000000;">oIcon</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"ICON1"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> ::<span style="color: #000000;">oWndMain</span> &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> ::<span style="color: #000000;">cAppName</span> + ::<span style="color: #000000;">cVersion</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENU</span> ::<span style="color: #000000;">BuildMenu</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_BLACK, GetSysColor<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span> - Rgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">30</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ICON</span> ::<span style="color: #000000;">oIcon</span><br /><br />&nbsp; &nbsp;SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oWndMain</span> <span style="color: #0000ff;">TO</span> ::<span style="color: #000000;">cMsgBar</span> <span style="color: #0000ff;">CENTER</span> NOINSET<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> MSGITEM ::<span style="color: #000000;">oMsgItem2</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oWndMain</span>:<span style="color: #000000;">oMsgBar</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PROMPT</span> ::<span style="color: #000000;">cMsgBar</span> &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">BITMAPS</span> <span style="color: #ff0000;">"MSG_LOTUS"</span>, <span style="color: #ff0000;">"MSG_LOTUS"</span>;<br />&nbsp; &nbsp; &nbsp; TOOLTIP <span style="color: #ff0000;">" "</span> + i18n<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Acerca de..."</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" "</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Test de Full Single Document Interface"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> MSGITEM ::<span style="color: #000000;">oMsgItem3</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oWndMain</span>:<span style="color: #000000;">oMsgBar</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">132</span> ;<br />&nbsp; &nbsp; &nbsp; TOOLTIP i18n<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"test"</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"www.google.com"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_HBLUE, GetSysColor<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">nil</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">oWndMain</span>:<span style="color: #000000;">oMsgBar</span>:<span style="color: #000000;">DateOn</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">BuildBtnBar</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span><br /><br /><span style="color: #B900B9;">/*_____________________________________________________________________________*/</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TApplication<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> !::<span style="color: #000000;">checklogin</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; GetWinCoors<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oWndMain</span>, ::<span style="color: #000000;">cInifile</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oWndMain</span>:<span style="color: #000000;">bResized</span> := <span style="color: #000000;">&#123;</span>|| ResizeWndMain<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> ::<span style="color: #000000;">oWndMain</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">VALID</span> ::<span style="color: #000000;">ExitFromX</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<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;">/*_____________________________________________________________________________*/</span><br /><br /><span style="color: #00C800;">METHOD</span> BuildMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TApplication<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oMenu<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> oMenu<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Archivo"</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENU</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> i18n<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Especificar impresora"</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> PrinterSetup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MESSAGE</span> i18n<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">" Establecer la Configuración de su impresora. "</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> i18n<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Salir"</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> ::<span style="color: #000000;">ExitFromBtn</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MESSAGE</span> i18n<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">" Terminar la ejecución del programa. "</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ENDMENU</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> oMenu <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">/*_____________________________________________________________________________*/</span><br /><br /><span style="color: #00C800;">METHOD</span> BuildBtnBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TApplication<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oBtnTbl<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> ::<span style="color: #000000;">oBar</span> _3D <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">44</span>, <span style="color: #000000;">46</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oWndMain</span> <span style="color: #B900B9;">// 36, 40</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">oBar</span>:<span style="color: #000000;">bRClicked</span> := <span style="color: #000000;">&#123;</span>|| .T. <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oBar</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"BB1"</span> &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; TOOLTIP i18n<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Gestión de documentos"</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MESSAGE</span> i18n<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Gestión de del fichero de documentos."</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span> &nbsp; ;<br />&nbsp; &nbsp; &nbsp; NOBORDER<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oBar</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"BB1"</span> &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; TOOLTIP i18n<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Gestión de documentos"</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MESSAGE</span> i18n<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Gestión de del fichero de documentos."</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span> &nbsp; ;<br />&nbsp; &nbsp; &nbsp; NOBORDER<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> ::<span style="color: #000000;">oExit</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oBar</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"BB2"</span> &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; TOOLTIP i18n<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Salir del programa"</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MESSAGE</span> i18n<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Finalizar el uso del programa."</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">ExitFromBtn</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; GROUP NOBORDER<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span><br /><br /><span style="color: #B900B9;">/*_____________________________________________________________________________*/</span><br /><br /><br /><span style="color: #00C800;">METHOD</span> Close<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TApplication<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// ResAllFree()</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">/*_____________________________________________________________________________*/</span><br /><br /><br /><span style="color: #00C800;">METHOD</span> ExitFromBtn<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> tApplication<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">oWndMain</span>:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">/*_____________________________________________________________________________*/</span><br /><br /><span style="color: #00C800;">METHOD</span> ExitFromX<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> tApplication<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> oApp:<span style="color: #000000;">oDlg</span> != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> oApp:<span style="color: #000000;">nEdit</span> > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;msgStop<span style="color: #000000;">&#40;</span> i18n<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No puede salir del programa hasta que no cierre las ventanas abiertas sobre el mantenimiento que está manejando."</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> .F.<br />&nbsp; &nbsp; &nbsp; END<br /><br />&nbsp; &nbsp;END<br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> msgYesNo<span style="color: #000000;">&#40;</span> i18n<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"¿Desea finalizar el programa?"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> oApp:<span style="color: #000000;">oDlg</span> != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oApp:<span style="color: #000000;">oDlg</span>:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; SetWinCoors<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oWndMain</span>, ::<span style="color: #000000;">cIniFile</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> .T.<br />&nbsp; &nbsp;END<br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">/*_____________________________________________________________________________*/</span><br /><br /><span style="color: #00C800;">METHOD</span> ExitFromSource<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> tApplication<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">oWndMain</span>:<span style="color: #000000;">bValid</span> := <span style="color: #000000;">&#123;</span>|| SetWinCoors<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oWndMain</span>, ::<span style="color: #000000;">cIniFile</span> <span style="color: #000000;">&#41;</span>, .T. <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">oWndMain</span>:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> oApp <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">/*_____________________________________________________________________________*/</span><br /><br /><span style="color: #B900B9;">// ___ manejo de fuentes © Paco García 2006 ____________________________________//</span><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<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 /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> GETDEFAULTFONTNAME <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;LOGFONT lf;<br />&nbsp; &nbsp;GetObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> GetStockObject<span style="color: #000000;">&#40;</span> DEFAULT_GUI_FONT <span style="color: #000000;">&#41;</span> &nbsp;, sizeof<span style="color: #000000;">&#40;</span> LOGFONT <span style="color: #000000;">&#41;</span>, &lf <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_retc<span style="color: #000000;">&#40;</span> lf.lfFaceName <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> GETDEFAULTFONTHEIGHT <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;LOGFONT lf;<br />&nbsp; &nbsp;GetObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> GetStockObject<span style="color: #000000;">&#40;</span> DEFAULT_GUI_FONT <span style="color: #000000;">&#41;</span> &nbsp;, sizeof<span style="color: #000000;">&#40;</span> LOGFONT <span style="color: #000000;">&#41;</span>, &lf <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_retni<span style="color: #000000;">&#40;</span> lf.lfHeight <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> GETDEFAULTFONTWIDTH <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;LOGFONT lf;<br />&nbsp; &nbsp;GetObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> GetStockObject<span style="color: #000000;">&#40;</span> DEFAULT_GUI_FONT <span style="color: #000000;">&#41;</span> &nbsp;, sizeof<span style="color: #000000;">&#40;</span> LOGFONT <span style="color: #000000;">&#41;</span>, &lf <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_retni<span style="color: #000000;">&#40;</span> lf.lfWidth <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> GETDEFAULTFONTITALIC <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;LOGFONT lf;<br />&nbsp; &nbsp;GetObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> GetStockObject<span style="color: #000000;">&#40;</span> DEFAULT_GUI_FONT <span style="color: #000000;">&#41;</span> &nbsp;, sizeof<span style="color: #000000;">&#40;</span> LOGFONT <span style="color: #000000;">&#41;</span>, &lf <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_retl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>BOOL<span style="color: #000000;">&#41;</span> lf.lfItalic <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> GETDEFAULTFONTUNDERLINE <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;LOGFONT lf;<br />&nbsp; &nbsp;GetObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> GetStockObject<span style="color: #000000;">&#40;</span> DEFAULT_GUI_FONT <span style="color: #000000;">&#41;</span> &nbsp;, sizeof<span style="color: #000000;">&#40;</span> LOGFONT <span style="color: #000000;">&#41;</span>, &lf <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_retl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>BOOL<span style="color: #000000;">&#41;</span> lf.lfUnderline <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> GETDEFAULTFONTBOLD <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;LOGFONT lf;<br />&nbsp; &nbsp;GetObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> GetStockObject<span style="color: #000000;">&#40;</span> DEFAULT_GUI_FONT <span style="color: #000000;">&#41;</span> &nbsp;, sizeof<span style="color: #000000;">&#40;</span> LOGFONT <span style="color: #000000;">&#41;</span>, &lf <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_retl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>BOOL<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span> lf.lfWeight == <span style="color: #000000;">700</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> GETDEFAULTFONTSTRIKEOUT <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; LOGFONT lf;<br />&nbsp; &nbsp; &nbsp; GetObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> GetStockObject<span style="color: #000000;">&#40;</span> DEFAULT_GUI_FONT <span style="color: #000000;">&#41;</span> &nbsp;, sizeof<span style="color: #000000;">&#40;</span> LOGFONT <span style="color: #000000;">&#41;</span>, &lf <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; hb_retl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>BOOL<span style="color: #000000;">&#41;</span> lf.lfStrikeOut <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /><br /><span style="color: #B900B9;">// _____________________________________________________________________________//</span><br /><br /><span style="color: #00C800;">FUNCTION</span> ResizeWndMain<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> aClient<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oDlg</span> != <span style="color: #00C800;">NIL</span><br /><br />&nbsp; &nbsp; &nbsp; aClient := GetClientRect <span style="color: #000000;">&#40;</span> oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oWndMain</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oDlg</span>:<span style="color: #000000;">SetSize</span><span style="color: #000000;">&#40;</span> aClient<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span>, aClient<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> - oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oWndMain</span>:<span style="color: #000000;">oBar</span>:<span style="color: #000000;">nHeight</span> - oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oWndMain</span>:<span style="color: #000000;">oMsgBar</span>:<span style="color: #000000;">nHeight</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oDlg</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oSplit</span>:<span style="color: #000000;">nLong</span> := oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oDlg</span>:<span style="color: #000000;">nHeight</span> <span style="color: #B900B9;">// aClient[4]</span><br />&nbsp; &nbsp; &nbsp; oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oSplit</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oGrid</span>:<span style="color: #000000;">SetSize</span><span style="color: #000000;">&#40;</span> aClient<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> - oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oGrid</span>:<span style="color: #000000;">nLeft</span>, oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oDlg</span>:<span style="color: #000000;">nHeight</span> - <span style="color: #000000;">26</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oGrid</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oTab</span>:<span style="color: #000000;">nTop</span> := oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oDlg</span>:<span style="color: #000000;">nHeight</span> - <span style="color: #000000;">26</span><br />&nbsp; &nbsp; &nbsp; oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oTab</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oWndMain</span>:<span style="color: #000000;">oMsgBar</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<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> SetWinCoors<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;RETURN <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> GetWinCoors<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;RETURN <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">METHOD</span> CHECKLOGIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> tApplication<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oDlg, oGet<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cCad := <span style="color: #ff0000;">"Password... "</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nNum := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> dDat := Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SET _3DLOOK <span style="color: #0000ff;">ON</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Login de Silvio with: -> "</span> + FWDESCRIPTION<br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, &nbsp; &nbsp;<span style="color: #000000;">2</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Password:"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, &nbsp; &nbsp;<span style="color: #000000;">6</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cCad <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">COLOR</span> <span style="color: #ff0000;">"W/G"</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K"</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1.8</span>, &nbsp;<span style="color: #000000;">2</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Number:"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">2</span>, &nbsp; &nbsp;<span style="color: #000000;">6</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> nNum <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"9999999.99"</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">2.6</span>, &nbsp;<span style="color: #000000;">2</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Date:"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">3</span>, &nbsp; &nbsp;<span style="color: #000000;">6</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> dDat <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@D 99/99/9999"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">10</span> &nbsp; ;<br />&nbsp; &nbsp; &nbsp; SPINNER<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">3</span>, &nbsp; &nbsp;<span style="color: #000000;">7</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Ok"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">3</span>, &nbsp; <span style="color: #000000;">16</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Cancel"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, __QUIT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> CANCEL<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">// FIN / END - <!-- e --><a href="mailto:kapiabafwh@gmail.com">kapiabafwh@gmail.com</a><!-- e --> - Joao Santos - Sao Paulo - Brazil.</span><br />&nbsp;</div>[/code:17ag0qik] Regards.
don't open duplicates of an exe
Silvio, This is from my note file: -------------------------------------------------------------------------------- Posted: Sun Sep 17, 2006 11:56 pm Post subject: Preventing more than one instance of an app running. Author: Antonio Linares -------------------------------------------------------------------------------- Otto, Code: [code=fw:21dlz1b9]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span> <br /><br /><span style="color: #00D7D7;">#define</span> GW_CHILD      <span style="color: #000000;">5</span> <br /><span style="color: #00D7D7;">#define</span> GW_HWNDNEXT   <span style="color: #000000;">2</span> <br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br /><br />   <span style="color: #00C800;">local</span> oWnd <br />    <br />   <span style="color: #00C800;">if</span> Is Exe Running<span style="color: #000000;">&#40;</span> cFileName<span style="color: #000000;">&#40;</span> HB_ARGV<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <br />      ShowApplication<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />   <span style="color: #00C800;">else</span>    <br />      <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Test"</span> <br />    <br />      <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <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> ShowApplication<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br /><br />   <span style="color: #00C800;">local</span> hWnd := FindWnd<span style="color: #000000;">&#40;</span> cFileNoExt<span style="color: #000000;">&#40;</span> HB_ARGV<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <br />    <br />   <span style="color: #00C800;">if</span> hWnd != <span style="color: #00C800;">nil</span> <br />      SetForeGroundWindow<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span> <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> FindWnd<span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span> <br /><br />   <span style="color: #00C800;">local</span> hWnd := GetWindow<span style="color: #000000;">&#40;</span> GetDesktopWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, GW_CHILD <span style="color: #000000;">&#41;</span> <br /><br />   <span style="color: #00C800;">while</span> hWnd != <span style="color: #000000;">0</span> <br />      <span style="color: #00C800;">if</span> Upper<span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span> $ Upper<span style="color: #000000;">&#40;</span> GetWindowText<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <br />         <span style="color: #00C800;">return</span> hWnd <br />      <span style="color: #00C800;">endif</span> <br /><br />      hWnd = GetWindow<span style="color: #000000;">&#40;</span> hWnd, GW_HWNDNEXT <span style="color: #000000;">&#41;</span> <br />   end <br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:21dlz1b9]
don't open duplicates of an exe
James it seem run good only where I must call the message "another copy allready run "
don't open duplicates of an exe
James,Santos,Otto this run ok [code=fw:29pgkubu]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> GW_CHILD &nbsp; &nbsp; &nbsp;<span style="color: #000000;">5</span><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> GW_HWNDNEXT &nbsp; <span style="color: #000000;">2</span><br /><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br />REQUEST DBFCDX<br />REQUEST DBFFPT<br /><br />REQUEST HB_LANG_ES<br />REQUEST HB_CODEPAGE_ESWIN<br /><br /><br /><span style="color: #00D7D7;">#DEFINE</span> NOME_PROGRAMMA_TITLE <span style="color: #ff0000;">"antonio"</span><br /><br />memvar oApp<br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">PUBLIC</span> oApp<br /><br />&nbsp; &nbsp;RddSetDefault<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;HB_LANGSELECT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'ES'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;HB_SETCODEPAGE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'ESWIN'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;SetHandleCount<span style="color: #000000;">&#40;</span> <span style="color: #000000;">100</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SET DATE FORMAT <span style="color: #ff0000;">"dd-mm-yyyy"</span><br />&nbsp; &nbsp;SET DELETED &nbsp; &nbsp; <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET CENTURY &nbsp; &nbsp; <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET EPOCH <span style="color: #0000ff;">TO</span> &nbsp; &nbsp;<span style="color: #0000ff;">year</span><span style="color: #000000;">&#40;</span> date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">20</span><br />&nbsp; &nbsp;SET MULTIPLE &nbsp; &nbsp;OFF<br /><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> IsExeRunning<span style="color: #000000;">&#40;</span> cFileName<span style="color: #000000;">&#40;</span> HB_ARGV<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MsgWait<span style="color: #000000;">&#40;</span>NOME_PROGRAMMA_TITLE+<span style="color: #ff0000;">" &nbsp;è già in esecuzione !"</span>,<span style="color: #ff0000;">"Attenzione"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowApplication<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WITH OBJECT oApp := TApplication<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//-----------------------------------------------------------------------------------------//</span><br />&nbsp; &nbsp; <span style="color: #00C800;">function</span> ShowApplication<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">local</span> hWnd := FindWnd<span style="color: #000000;">&#40;</span> cFileNoExt<span style="color: #000000;">&#40;</span> HB_ARGV<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> hWnd != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetForeGroundWindow<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//-----------------------------------------------------------------------------//</span><br />&nbsp; &nbsp; <span style="color: #00C800;">function</span> FindWnd<span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">local</span> hWnd := GetWindow<span style="color: #000000;">&#40;</span> GetDesktopWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, GW_CHILD <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">while</span> hWnd != <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> Upper<span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span> $ Upper<span style="color: #000000;">&#40;</span> GetWindowText<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">return</span> hWnd<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hWnd = GetWindow<span style="color: #000000;">&#40;</span> hWnd, GW_HWNDNEXT <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:29pgkubu] Only if I have the exe "antonio.exe" iconized the procedure not search the exe and it doesn't show it on the desktop, how I can resolve it ?
don't open duplicates of an exe
Silvio escrebió: [code=fw:2eskwfvt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #ff0000;">" ahora tengo otro problema que tengo que solucionar, cuando un usuario ingresa inicia sesión y podemos bloquear la duplicación del exe en una computadora. &nbsp;<br /><br />Pero si ese mismo usuario cambia de computadora y entra al sistema con la misma cuenta, <br /><br />¿cómo puedo bloquearlo? &nbsp;<br /><br />porque en efecto el usuario tendría dos computadoras funcionando con la misma cuenta"</span><br />&nbsp;</div>[/code:2eskwfvt] Este usuário tiene um código de registro en un banco de datos, Silvio? Puedes, bloquear el código del usuário se el código de la computadora no és el mismo. Solo un aidea... Saludos.
don't open duplicates of an exe
I have used the following for many years: [code=fw:2kllfzo1]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">IF</span> IsExeRunning<span style="color: #000000;">&#40;</span> CFILENOEXT<span style="color: #000000;">&#40;</span> hb_argv<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SHOWWINDOW<span style="color: #000000;">&#40;</span> FINDWINDOW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Auto Shop Writer 11"</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SETFOREGROUNDWINDOW<span style="color: #000000;">&#40;</span> FINDWINDOW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Auto Shop Writer 11"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">ELSE</span><br />&nbsp;</div>[/code:2kllfzo1] It works perfectly. Certainly you could put a popup in there with your message if desired.
don't open duplicates of an exe
[quote:1xqxq1w7]Certainly you could put a popup in there with your message if desired.[/quote:1xqxq1w7] IMHO I would not. People don't want to be told they did something wrong by a computer. If at all possible, software should just fix the problem and be quiet about it. Thanks for the code Tim. I have a routine, but it is 16 lines long. Short is better.
donde consigo la ultima vercio de Wbrowse Hernan?
Hola, donde puedo conseguir la ultima version de esta estupenda clase ya la uso pero estoy implementando un browse con ADO y me da el siguiente error: Error description: Error BASE/1002 Alias does not exist: ARRAY Stack Calls =========== Called from (b)TWBROWSE:SETFILTER(2639) Called from (b)TWBROWSE:SETFILTER(2640) Called from TWBROWSE:LBUTTONDOWN(1649) Called from TWINDOW:HANDLEEVENT(0) Called from TWBROWSE:HANDLEEVENT(0) Called from _FWH(3109) Called from DIALOGBOXINDIRECT(0) Called from TDIALOG:ACTIVATE(0) Called from TBUSCARR:BUSQUEDA(67) Called from BUS_PRO(45) Called from ZPROVEE(33) Called from VAL_PROV(245) Called from (b)C22011(76) Called from TGET:LVALID(0) Called from TGET:FWLOSTFOCUS(0) Called from TGET:HANDLEEVENT(0) Called from _FWH(3109) Called from SYSREFRESH(0) Called from TCONTROL:KEYCHAR(0) Called from TGET:KEYCHAR(0) Called from TWINDOW:HANDLEEVENT(0) Called from TGET:HANDLEEVENT(0) Called from _FWH(3109) Called from WINRUN(0) Called from TWINDOW:ACTIVATE(878) Called from MAIN(76) este es mi codigo: @ 10,00 LISTBOX oLbx1 FIELDS oRecordSet:Fields(0):value,; oRecordSet:Fields(1):value; ON DBLCLICK (odlgbus:end(),wr:=.t.) ; SIZE 258,68 OF oDlgbus PIXEL olbx1:aheaders := ::titulos olbx1:acolsizes := ::sizes oLbx1:aJustify := ::just olbx1:aHJustify := ::justh oLbx1:bLogicLen = { || oRecordSet:RecordCount } oLbx1:bGoTop = { || oRecordSet:MoveFirst() } oLbx1:bGoBottom = { || oRecordSet:MoveLast() } oLbx1:bSkip = { | nSkip | Skipper( oRecordSet, nSkip ) } oLbx1:cAlias := "ARRAY" Gracias desde ya <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
donde consigo la ultima vercio de Wbrowse Hernan?
Te falta la funcion Skipper() que esta en el ::Bskip
donde consigo la ultima vercio de Wbrowse Hernan?
rene ya la puse pero ahora me da el siguiente error en el skipper dentro de la busqueda: Application =========== Path and name: f:\SIV\NXTMenu.Exe (32 bits) Size: 2,594,816 bytes Time from start: 0 hours 0 mins 25 secs Error occurred at: 28/07/2006, 15:27:42 Error description: Error adodb.command:EXECUTE/9 El conjunto de filas no admite desplazamiento hacia atrás.: MOVE Args: [ 1] = N -7 Stack Calls =========== Called from TOLEAUTO:MOVE(0) Called from SKIPPER(81) Called from (b)TBUSCARR:BUSQUEDA(61) Called from TWBROWSE:SKIP(2355) Called from TWBROWSE:PAINT(1091) Called from TWBROWSE:DISPLAY(2880) Called from TWBROWSE:HANDLEEVENT(0) Called from _FWH(3109) Called from DIALOGBOXINDIRECT(0) Called from TDIALOG:ACTIVATE(0) Called from TBUSCARR:BUSQUEDA(73) Called from BUS_PRO(45) Called from ZPROVEE(33) Called from VAL_PROV(245) Called from (b)C22011(76) Called from TGET:LVALID(0) Called from TGET:FWLOSTFOCUS(0) Called from TGET:HANDLEEVENT(0) Called from _FWH(3109) Called from SYSREFRESH(0) Called from TCONTROL:KEYCHAR(0) Called from TGET:KEYCHAR(0) Called from TWINDOW:HANDLEEVENT(0) Called from TGET:HANDLEEVENT(0) Called from _FWH(3109) Called from WINRUN(0) Called from TWINDOW:ACTIVATE(878) Called from MAIN(76) este es el codigo: STATIC FUNCTION SKIPPER( oRs, nSkip ) LOCAL nRec := oRs:AbsolutePosition oRs:Move( nSkip ) IF oRs:EOF() oRs:MoveLast() endif IF oRs:BOF() oRs:MoveFirst() ENDIF RETURN oRs:AbsolutePosition - nRec
donde consigo la ultima vercio de Wbrowse Hernan?
de hecho si compilo el codigo que tu me pasaste me da el mismo error
donde consigo la ultima vercio de Wbrowse Hernan?
Cuando estas creando el Recordset, ¿ que tipo de cursor estas usando ? ¿ Puedes poner tu cadena de conexion y la creacoin del RecordSet ?
donde consigo la ultima vercio de Wbrowse Hernan?
ahi va: oConexionAdo := TOLEAUTO():New("adodb.connection") oComando := TOLEAUTO():New("adodb.command") oConexionAdo:Open("Provider=Advantage.OLEDB.1;User ID=adssys;Data Source="+xrutab+"dd.add;Persist Security Info=False;ServerType="+xservidor+";LockMode=ADS_COMPATIBLE_LOCKING") oComando:ActiveConnection(oConexionAdo) cQuery := 'SELECT '+::campos+' FROM '+::base+' ORDER BY '+::orden oComando:CommandText := cQuery oRecordSet := oComando:Execute() es todo: <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
donde consigo la ultima vercio de Wbrowse Hernan?
No señor, te falta definir el tipo del cursor en el RecordSet, por eso no te puedes mover sobre el browse. Necesitas hacer lo siguiente: [code:avjlv8mn]*---- CursorTypeEnum Values ---- #DEFINE adOpenForwardOnly 0 #DEFINE adOpenKeyset 1 #DEFINE adOpenDynamic 2 #DEFINE adOpenStatic 3 *---- LockTypeEnum Values ---- #DEFINE adLockReadOnly 1 #DEFINE adLockPessimistic 2 #DEFINE adLockOptimistic 3 #DEFINE adLockBatchOptimistic 4 oMiConexion &#58;= TOleAuto&#40;&#41;&#58;New&#40;“adodb&#46;connection”&#41; oMiConexion&#58;Open&#40;"Provider=Advantage&#46;OLEDB&#46;1;User ID=adssys;Data Source="+xrutab+"dd&#46;add;Persist Security Info=False;ServerType="+xservidor+";LockMode=ADS_COMPATIBLE_LOCKING"&#41; oRecordSet &#58;= TOleAuto&#40;&#41;&#58;New&#40;“adodb&#46;recordset”&#41; oRecordSet&#58;LockType &#58;= adLockOptimistic oRecordSet&#58;CursorType &#58;= adOpenKeySet oRecordSet&#58;ActiveConnection&#40;oMiConexion&#41; oRecordSet&#58;Source &#58;= 'SELECT '+&#58;&#58;campos+' FROM '+&#58;&#58;base+' ORDER BY '+&#58;&#58;orden oRecordSet&#58;Open&#40;&#41;[/code:avjlv8mn] Es muy importante que el Tipo de cursor del recordset lo pongas como adOpenKeySet para que te puedas mover, de lo contrario solo puedes ir hacia adelante y no hacia atras.
donde estan definidas VK_RETURN VK_ESC etc.
Quiero saber donde puedo ver las definiciones... Gracias.
donde estan definidas VK_RETURN VK_ESC etc.
Goos: \FWH\INCLUDE\VKey.Ch Saludos
donde estan definidas VK_RETURN VK_ESC etc.
gracias
donde puedo ver los metodos nuevos de dolphin con harbour?
Hola. Estoy empezando a emigrar pero me topo con muchos metods que no existen mas [quote:1y02rkeh]selectDb DBCreate deletedb( ::cDb ) deletetables[/quote:1y02rkeh] por favor se los agradezco desde ya que me pasen info. gracias
donde puedo ver los metodos nuevos de dolphin con harbour?
Gustavo, [url:1djpzqay]http&#58;//tdolphin&#46;blogspot&#46;com/[/url:1djpzqay] [url:1djpzqay]https&#58;//bitbucket&#46;org/danielgarciagil/tdolphin/src/master/source/prg/[/url:1djpzqay]
donde puedo ver los metodos nuevos de dolphin con harbour?
Viel Danke!
donde se encuentra GetProcAddress()
Tengo un error de linkeo UNRESOLVED EXTERNAL GetProcAddress la linea de codigo que genera el error es: lpZipCreateFile = (ZipCreateFilePtr *)GetProcAddress(zipDll, ZIPCREATEFILENAME); (A proposito se trata de probar LiteZip.dll que me sugiere JL Capel en mi post anterior) ESTOY UTILIZANDO EL BUILD DE AUGOST 2007, poruqe hasta hoy no me ha dado ningun problema, mi g2.bat ha sido el mismo que he usado desde el principio. Saludos. INCLUYO PARTE DEL SOURCE: #pragma BEGINDUMP #include <windows.h> #include <tchar.h> // Include LiteZip.h for creating a ZIP archive #include "LiteZip.h" // Where we store the pointers to LiteZip.dll's functions that we call ZipCreateFilePtr *lpZipCreateFile; ZipAddFilePtr *lpZipAddFile; ZipClosePtr *lpZipClose; ZipFormatMessagePtr *lpZipFormatMessage; HB_FUNC( CREAZIP ) { LPWSTR sZipfile = AnsiToWide( hb_parc( 1 ) ); HMODULE zipDll; HZIP hz; DWORD result; // Open the LiteZip.DLL. Note: If LiteZip.dll is not placed in a path that can be found // by this app, then LoadLibrary will fail. So, either copy LiteZip.dll to the same // directory as this EXE, or to some directory that Windows is set to search. if ((zipDll = (HMODULE)LoadLibrary(_T("LiteZip.dll")))) { // Get the addresses of 4 functions in LiteZip.dll -- ZipCreateFile(), ZipAddFile() // ZipClose(), and ZipFormatMessage. lpZipCreateFile = (ZipCreateFilePtr *)GetProcAddress(zipDll, ZIPCREATEFILENAME); lpZipAddFile = (ZipAddFilePtr *)GetProcAddress(zipDll, ZIPADDFILENAME); lpZipClose = (ZipClosePtr *)GetProcAddress(zipDll, ZIPCLOSENAME); lpZipFormatMessage = (ZipFormatMessagePtr *)GetProcAddress(zipDll, ZIPFORMATMESSAGENAME); // Create a ZIP archive on disk named as sZipfile if (!(result = lpZipCreateFile(&hz, sZipfile, 0))) {
donde se encuentra GetProcAddress()
Arturo, Tienes que usar GetProcAddressW( HMODULE hModule, WCHAR * cProcName ); que es para unicode. Ojo que cProcName tiene que ser proporcionado en unicode, por lo que tienes que llamar a estas funciones: WCHAR * AnsiToWide( char * ); ... WCHAR * pW = AnsiToWide( "nombre_funcion" ); usas pW y liberas su memoria despues de usarlo: hb_xfree( ( void * ) pW );
donde se encuentra GetProcAddress()
Gracias, ya estoy intentando con GetProcAddressW() en lugar de GetProcAddress(), aun no lo logro porque se casi nada de C y menos de tipos de variable, pero por lo pronto GetProcAddressW() igual me marca "undefined assuming external..." pienso que me falta alguna libreria ???
donde se encuentra GetProcAddress()
Arturo, La función GetProcAddressW() es proporcionada por coredll.lib, que es una librería de importación del propio coredll.dll de Windows Mobile.
donde se encuentra GetProcAddress()
Arturo, Aqui tienes un pequeño ejemplo que usa LoadLibrary() y GetProcAddressW() y que aqui compila y genera el EXE bien: test.prg [code=fw:qdazk7j8]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FWCE.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;MsgInfo<span style="color: #000000;">&#40;</span> Test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><br />HMODULE GetProcAddressW<span style="color: #000000;">&#40;</span> HMODULE, WCHAR * <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TEST <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HMODULE hModule = LoadLibrary<span style="color: #000000;">&#40;</span> L<span style="color: #ff0000;">"coredll.dll"</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> GetProcAddressW<span style="color: #000000;">&#40;</span> hModule, L<span style="color: #ff0000;">"MessageBoxW"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;FreeLibrary<span style="color: #000000;">&#40;</span> hModule <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br />&nbsp;</div>[/code:qdazk7j8]
donde se encuentra GetProcAddress()
Gracias, con lo que me mandaste pude comprobar que la dll que estoy intentando no puede cargarse, probablemente porque la lib no esta para ARM. Ahora, si entendi bien lo leido aqui en los foros, si yo tengo LiteZip.dll y LiteZip.lib, necesito lo siguiente: Para obtener LiteZip.def: impdef.exe LiteZip.def LiteZip.dll Y luego obtendria un nuebo LiteZip.lib con esto: c:\vce\bin\lib /def:LiteZip.def /machine:ARM Mi problema es que bajo c:\vce\bin unicamente tengo lib.exe, pero no tengo impdef.exe -Estoy bien? -Como obtengo impdef.exe? - me hara falta algo mas? Saludos.
donde se encuentra GetProcAddress()
Arturo, Es correcto lo que comentas <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Aqui tienes impdef.exe: <!-- m --><a class="postlink" href="http://www.mediafire.com/?sharekey=414c17b7b136abb70f83d91f6dff7c38b4e3dd16889229e1c95965eaa7bc68bc">http://www.mediafire.com/?sharekey=414c ... eaa7bc68bc</a><!-- m -->
donde tomas los datos de la tabla twbrowsetsbrowse etc.
Hola todos he estado echando una mirada tanto a tsbtrowse y twbrowse, pero no doy con vola donde toma los datos de la tabla para mostrarlos. gracias y saludos a todos. fernando sandoval ruiz
donde tomas los datos de la tabla twbrowsetsbrowse etc.
Fernando: En TwBrowse del Maestro Hérnan D C: REDEFINE LISTBOX oLbx FIELDS (cProducto)->PRO_DES,; (cProducto)->PRO_PRO,; TRANSFORM((cProducto)->PRO_SAF,"@Z 99,999"),; TRANSFORM((cProducto)->PRO_PRE,"@Z 999,999.99"); HEADERS "Descripción","Clave","Saldo","Unitario"; FIELDSIZES 320,65,37,30; ID 100 OF oDlg; ON DBLCLICK (Editar(oDbf,oLbx,(.F.)),; oLbx:Refresh(),oDlg:UPDATE()) oLbx:cAlias := cProducto // AQUI LE INDICAS EL ALIAS // Ademas cada campo lleva su alias En TsBrowse del Maestro Manuel M. REDEFINE BROWSE oBrw ALIAS (cPresupuesto) UPDATE GRID; FONT oFont ID 200 OF oDlg // AQUI SE DEFINE EL ALIAS ADD COLUMN TO oBrw; HEADER "Rubro"; SIZE 45 PIXELS ; DATA FIELDWBLOCK("PRE_RUB",SELECT(cPresupuesto)); ALIGN DT_RIGHT,DT_RIGHT,DT_RIGHT; EDITABLE; PICTURE "@K 99999"; MOVE DT_MOVE_NEXT Saludos, Armando
donde tomas los datos de la tabla twbrowsetsbrowse etc.
Mil, Gracias Armando, y aclarado, lo toma directamente de la tabla, estabu algo liado con esto de los Ado, Odbc, que no me funcionan en los browse, listbox, etc, etc..., el buen amigo frank me dio una ayuda enorme y parece que ya vamos solventando el problema. gracias y estmos en contacto. saludos. fernando sandoval ruiz
dos funciones utiles
Te pongo aqui 2 funciones que estoy usando . Ya las puse en un post anterior pero mezcladas con mas cosas y por ello igual quedaron despistadas .Una de ellas es una mejor version de apppath() y la otra sería el equivalente a la funcion path() "de toda la vida" Saludos. [code=fw:33ldn55a]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> APPPATH <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;NSString *buPath = <span style="color: #000000;">&#91;</span><span style="color: #000000;">&#91;</span>NSBundle mainBundle<span style="color: #000000;">&#93;</span> bundlePath<span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp;hb_retc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#91;</span> buPath cStringUsingEncoding : <span style="color: #000000;">NSASCIIStringEncoding</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br />&nbsp; <span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> PATH <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;NSString *buPath = <span style="color: #000000;">&#91;</span><span style="color: #000000;">&#91;</span>NSBundle mainBundle<span style="color: #000000;">&#93;</span> bundlePath<span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp;NSString *secondParentPath = <span style="color: #000000;">&#91;</span>buPath stringByDeletingLastPathComponent<span style="color: #000000;">&#93;</span> ;<br />&nbsp; hb_retc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#91;</span> secondParentPath cStringUsingEncoding : <span style="color: #000000;">NSASCIIStringEncoding</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span> <br />&nbsp;</div>[/code:33ldn55a]
dos funciones utiles
Manuel, Incluidas para el próximo build que publiquemos <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Muchas gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
dos lineas en titulo de browse
Hola a todos,Necesito implementar dos lineas de titulo en columnas de un browse. Uso wBrowse.¿Como se hace? ¿Puede ser en wbrowse, o tengo que pasar a xBrowse?Gracias anticipadas...
dos lineas en titulo de browse
Hola Juliosi usas el Brw de Hernan es asi HEADER [b:2f4dndbb]"Codigo"+CRLF+"Articulo"[/b:2f4dndbb], "Descripcion", "Cantidad", ; "Unitario", "Total " ;y luegooLbx:nHeaderHeight := 30saludosJorge Vargas
dos lineas en titulo de browse
Julio:Si usas xBrowseoCol:cHeader:= "Cliente"+CHR(10)+"Dirección"SaludosRuben Fernandez
dos lineas en titulo de browse
Gracias, ¿Se puede utilizar en el wBrowse "normalito" de FWH ?Tengo la V 8.08...
dosbox issue
What about the messge about ?harbour compilation : This program must be run under Win32
dosbox issue
Harbour.exe is 32 bits or 64 bits and you can not run it on Win 16 bits.
dosbox issue
Solutions please .
dosbox issue
Oracle VM VirtualBox Create a xp machine
dosprint.bat
Hola amigos del foro Estoy usando la clase modificada por anser para imprimir en impresoras matriciales con vista preliminar...no puedo imprimir. alguien tiene este archivo o que contiene para poder crearlo o donde lo consigo... ya que la clase pide este archivo y no lo tengo.. Salu2 Francis
dosprint.bat
Hace un archivo conteniendo lo siguiente: @COPY /B %1 %2 >Nul @exit Luis
dosprint.bat
Dear Mr.Francis, The contents of Dosprint.bat are the same as posted by Luis [quote:21op8pr4]@COPY /B %1 %2 >Nul @exit[/quote:21op8pr4] Regards Anser
dotted line
Hi, I need to draw a dotted line on the window. oWnd:Line(Top, Left, Bottom, Right) But if I change the thickness of the line, it stops looking like a dotted line. oWnd:Line(Top, Left, Bottom, Right,, 2) How to resolve this issue ?
dotted line
[quote:bijsgevj]But if I change the thickness of the line, it stops looking like a dotted line. [/quote:bijsgevj] Yes. I too observed the same thing. This is not FWH issue. Better we stick to width 1 when we want dotted lines. This is my feeling.
dotted line
Thank you. <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
dotted rectangle
Hi, Is it possible to draw a dotted rectangle/box on the window ?
dotted rectangle
ACTIVATE WINDOW oWnd ON PAINT RectDotted( oWnd:hWnd, nBoxTop, nBoxLeft, nBoxBottom, nBoxRight )
dotted rectangle
Yes, that's what I need ! Thanks.