topic
stringlengths
1
63
text
stringlengths
1
577k
Changing Errorsys
Hi Enrico, Thanks (as always) for your answer. I was looking at a program made in Delphi where all the errors are showed, but the user can ignore them and come back to the program. Which cases are non recoverable errors? Do you have an example to show it? best regards,
Changing Errorsys
Unrecoverable errors are the ones with [code:tffu8wnr]oErr:Severity = ES_CATASTROPHIC //3[/code:tffu8wnr] This is a sample of error trapping: [code:tffu8wnr]#include "Fivewin.ch" FUNCTION MAIN() LOCAL nVar, oErr ERRORBLOCK( { | oErr | Break( oErr ) } ) BEGIN...
Changing Errorsys
Thanks a lot, Enrico. I'll take a good look. Best regards,
Changing Foreground and Background Colors of ComboBox
Good Morning, I have tried evey possible combination of color settings (I think) but I cannot get the colors of my ComboBoxes right. Everywhere in my system (for Get's) I use: ReDefine Get ... Color CLR_BLUE and this works perfectly BUT ReDefine ComboBox ... Color CLR_BLUE Items ... does nothing i.e. the text dis...
Changing Foreground and Background Colors of ComboBox
Use SetColor() method. EMG
Changing Foreground and Background Colors of ComboBox
Dale, Is it a dropdown or a dropdownlist combobox ? If it has an editable get then it is dropdown.
Changing Foreground and Background Colors of ComboBox
Hello, That was quick! Enrico: SetColor( ) to what? Antonio: It does not have an editable get. Thanks, Dale.
Changing Foreground and Background Colors of ComboBox
oCbx:SetColor( CLR_RED, CLR_GREEN ) EMG
Changing Foreground and Background Colors of ComboBox
Dale, When you use: REDEFINE COMBOBOX ... COLOR ... that color is used when the combobox has no focus (for a dropdownlist combobox as you are using). When focused, the used color is the system color for selected items (right click on the desktop, properties, appareance, selected items).
Changing Foreground and Background Colors of ComboBox
Ok - I think I understand. But - are Gets handled the same way i.e. when focused they use the system colors or is it just the ComboBox that works this way? I have no problem with Gets and Says. Regards, Dale.
Changing Foreground and Background Colors of ComboBox
Dale, It is a combobox specific Windows behavior.
Changing Logos at Runtime using ABPaint ?
Hello, is it possible to release a painted Logo using [color=#FF0000:2h7gf54u]ABpaint [/color:2h7gf54u] without repainting the Background before selecting a new Logo ? [img:2h7gf54u]http://www.pflegeplus.com/pictures/logo11.jpg[/img:2h7gf54u] [img:2h7gf54u]http://www.pflegeplus.com/pictur...
Changing Logos at Runtime using ABPaint ?
A complete LOGO-editor is included now testing any Logo on any Window-brush. From TSelect < [color=#0000FF:26x684sw]LOGO-painter [/color:26x684sw]> You can switch between different Tests. 1. Testing Window-brush [color=#FF0000:26x684sw]without Logo[/color:26x684sw] 2. Testing Logo using [color=#FF0000:26x684sw]ABPaint...
Changing Main Window Title
I define the main window of my app as follows: [code=fw:1wrar49j]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> Win_Main <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>, <span style="colo...
Changing Main Window Title
Did you try [code=fw:3cm1s7sr]<div class="fw" id="{CB}" style="font-family: monospace;">WndMain<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">cTitle</span>:=<span style="color: #ff0000;">"Changed the Title to FiveWin"</span></div>[/code:3cm1s7sr] Her...
Changing Main Window Title
Perfect. Thanks. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Changing Ribbon on opening a MDI-Child
Hi, when opening a mdi-child I'd like to change the appearance of my ribbon-menu. I try to redefine my ribbon-menu, but when the menu is being painted, it doesn't look right. A half button appears, but without any functionality. Is there a malfunction in painting a new ribbon? Or won't this approach work at all? Thi...
Changing Ribbon on opening a MDI-Child
This is how it looks on start of the program: [img:ym9jy1x6]http&#58;//www&#46;ctosoftware&#46;de/home/files/screen3&#46;jpg[/img:ym9jy1x6] And this how it looks after opening the first mdichild: [img:ym9jy1x6]http&#58;//www&#46;ctosoftware&#46;de/home/files/screen2&#46;jpg[/img:ym9jy1x6]
Changing Ribbon on opening a MDI-Child
Gilbert, You were not properly destroying the previously created RibbonBar (so a new one was created on top of the previous one, again and again), also the RibbonBar was using a wrong width. Your example, modified this way, seems to be working fine <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title...
Changing Ribbon on opening a MDI-Child
screenshot: [img:1ycb8lj3]http&#58;//wiki&#46;fivetechsoft&#46;com/lib/exe/fetch&#46;php?cache=cache&w=793&h=485&media=ribbon3&#46;png[/img:1ycb8lj3]
Changing Ribbon on opening a MDI-Child
Removing the top pulldown menu: [code=fw:1750n1ta]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   ...<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">1</span>, <span style="col...
Changing Ribbon on opening a MDI-Child
Antonio, that looks terrific, just what I needed. I'll try it as soon as I'm in the office on monday. Thank you very much! <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Changing Ribbon on opening a MDI-Child
Antonio, [quote="Antonio Linares":241i6hsy] Anyhow, if you just want to change some groups, it should be better not to the destroy the RibbonBar. Instead of that, just remove the no longer needed groups and add the new ones. That should avoid flickering.[/quote:241i6hsy] How do I properly remove no longer needed grou...
Changing Ribbon on opening a MDI-Child
Gilbert, Please try with oGroup1:End() instead of oGroup1:Destroy() Method Destroy() usually should never be called directly. It is automatically called by Windows to clean no longer needed resources. Method End() starts the process to end and destroy an object.
Changing Ribbon on opening a MDI-Child
Antonio, thanks, with :end() is working. But now I've got a paint-problem: At adding and removing the mdi-child I tried a oRb:Refresh() as well as a oRb:Paint() but I always loose the background. After resizing the main window It also seems that the background colors of the main group disappear as well. After opening...
Changing Ribbon on opening a MDI-Child
Gilbert, Please post your most recent example code so we try it here, thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Changing Ribbon on opening a MDI-Child
Antonio, here the code: [code=fw:ajfyk6a5]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#INCLUDE</span> <span style="color: #ff0000;">"ribbon.CH"</span><br /><br /><span style...
Changing Ribbon on opening a MDI-Child
Gilbert, Fixed. A required change was needed in Class TRibbonBar <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> We email you a modified TRibbon.prg. We will include these changes in FWH 10.7
Changing Ribbon on opening a MDI-Child
Antonio, thanks a lot for your quick support <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Now it seems to be working just fine. Can I assume that this correction automatically will be included in the next build of fwh?
Changing Ribbon on opening a MDI-Child
Gilbert, yes, I told you in my previous post <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Changing Ribbon on opening a MDI-Child
Antonio, What if I need to change the whole Ribbon for a new one with different groups and buttons. How can I achieve this process ? This looks really good, but in my case if I click on some app's module, all options at ribbon are different. Thanks a lot
Changing Tab font in TFolderEx?
Hi, How to change the tab font in TFolderEx? (Not for aDialogs) I tried oFld:oFont:= ...... , but it gives an error. Thanks,
Changing Tab font in TFolderEx?
Horizont we can not change tabs font (yet)
Changing Tab font in TFolderEx?
Hi Daniel, Ok. Is there any plan to modify?
Changing Tab font in TFolderEx?
Yes the problem is the vertical tabs, isn't solve yet horizontal tabs work perfectly
Changing Tab font in TFolderEx?
Hi, I understand. As a matter of fact I need only horizontal tabs. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Changing Tab-text color on TRibbon?
Hello, as in the subject...
Changing Tab-text color on TRibbon?
Hello Günther, I think you have to change the class. Gruß Otto [code=fw:2qsdcvvs]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /> bPaintTxt  := <  | oSelf |<br />                    <span style="color: #00C800;">local</span> hOldFont, nClrTxt, nOldClr, nMode<br />                    hOldFont  =...
Changing Tab-text color on TRibbon?
Hello Günther, [img:2vcycaxj]http&#58;//www&#46;pflegeplus&#46;com/pictures/ribbtxt1&#46;jpg[/img:2vcycaxj] [color=#0040FF:2vcycaxj] oRibbon:aGradFld := {| nOpt | if( nOpt == oRibbon:nStart, { { 1, 16777215, 8293112 } },; { { 1, 8293112, 16777215 } } ) } // Tabcolor ...
Changing Tab-text color on TRibbon?
Thanks all! Both variants are possible.
Changing Tab-text color on TRibbon?
Hello Uwe, how can you change hover text colour on ribbon if if nPrompt == oSelf:nStart nClrTxt = CLR_WHITE endif id inside the painting method. Best regards, Otto
Changing Tab-text color on TRibbon?
Hello Otto, it was a bit more complicated : [img:1ai7yww6]http&#58;//www&#46;pflegeplus&#46;com/pictures/ribbtext2&#46;jpg[/img:1ai7yww6] [code=fw:1ai7yww6]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oRibbon:<span style="color: #000000;">nClrPaneRB</span> := <span style="color: #000000;">16641734...
Changing a Windows setting in a FWH-application
Hello, I want to change a Windows setting in my application. It concerns this setting : [img:3s0yaw6p]http&#58;//ma-consult&#46;telenet&#46;be/knipsel&#46;jpg[/img:3s0yaw6p] I know that I have to logoff. That is no problem. I know how to do that. Does anyone know how to establish this change? Thanks a lot in advan...
Changing a Windows setting in a FWH-application
Michel Try changing the key HKEY_CURRENT_USER\SOFTWARE\Microsoft\Assistance\Client\1.0\Settings\ZoomPercent And logoff
Changing a Windows setting in a FWH-application
Christobal, Unfortunately, this doesn't work. I even don't have this item in the register. Not with 100 % and not with 125 %.
Changing a Windows setting in a FWH-application
[quote="driessen":1sr2276s]Christobal, Unfortunately, this doesn't work. I even don't have this item in the register. Not with 100 % and not with 125 %.[/quote:1sr2276s] Which version of Windows you use?
Changing a Windows setting in a FWH-application
I need it for Windows XP, Vista, 7 and 8(.1)
Changing a Windows setting in a FWH-application
Christobal, I noticed that this key is the one containing the dpi. HKEY_CURRENT_USER\Control Panel\Desktop\Windowmetrics\AppliedDPI It is a REG_DWORD key, containing the DPI hexadecimal. But how can I read this value in a FWH-application? I don't have that much experience with the register. Thank you.
Changing a Windows setting in a FWH-application
[code=fw:xet33uli]<div class="fw" id="{CB}" style="font-family: monospace;">#ifndef HKEY_CURRENT_USER<br />   <span style="color: #00D7D7;">#define</span>  HKEY_CURRENT_USER       <span style="color: #000000;">2147483649</span>        <span style="color: #B900B9;">// 0x80000001</span><br />#endif<br /><br /><br />   <s...
Changing a Windows setting in a FWH-application
Thanks a lot, Mr. Rao.
Changing a get picture at runtime
Hi all, I'm trying to change a get picture at runtime but unsuccessfully. In this self-contained sample I have a get initialized with a euro picture (9999.99), then pressing the "Lire picture" button I would like to change the picture in the 999999 format but it doesn't change. Any suggest ? Thanks in advance. fun...
Changing a get picture at runtime
Ciao, Io ho risolto così @10,1.5 GET oImpdef VAR cImpdef OF oDlg picture if(euro = 1,"@E 99,999,999.99","@E 9,999,999,999") valid somma() SIZE 50,10 Stefano
Changing a get picture at runtime
Oppure [code:3e07d1c6]ACTION ( oTest1&#58;oGet&#58;Picture&#58;="999999", oTest1&#58;Refresh())[/code:3e07d1c6] EMG
Changing a get picture at runtime
[quote="Enrico Maria Giordano":1s31hrpw]Oppure [code:1s31hrpw]ACTION ( oTest1&#58;oGet&#58;Picture&#58;="999999", oTest1&#58;cPicture&#58;="999999", oTest1&#58;Refresh())[/code:1s31hrpw] <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> EMG[/quote:1s31hrpw]
Changing a get picture at runtime
Please, take the time to try the suggestions. There's no need to assign cPicture property. EMG
Changing a get picture at runtime
Hi Enrico, your solution give me an "message not found" error in the tget class. The only running solution I have found is the following but there is a problem with the picture refresh. The picture change only when I select the get with the mouse. Any ideas ? --------- Function Main() local oDlg, oGet, oBtn nT...
Changing a get picture at runtime
The following sample works fine here: [code:20xa6ywu]#include "Fivewin&#46;ch" function Main() local oDlg, oBtn, nTest, cPicture, oTest1 nTest&#58;=0 cPicture&#58;="9999&#46;99" DEFINE DIALOG oDlg TITLE "A simple GET" ; FROM 2, 2 TO 13, 40 @ 10, 10 GET oTEST1 VAR nTest SIZE 120, 13 pixel OF oDlg RIGHT PICTURE cP...
Changing a get picture at runtime
Yes. It runs fine. Thanks a lot.
Changing an xBrowse column header.
Guys: How can I change an xBrowse column header after the xBrowse has been created ? For example, when the user left clicks on the column header, the browse changes index order and I want to display some sort of column header indicator as to specify on which field order the xBrowse is displaying the records. Thank y...
Changing an xBrowse column header.
XBrowse automatically shows an UpArrow or DownArrow on the column header that is sorted. That is the standard indication which column is sorted and whether sorted in ascending or descending order. Normally it should not necessary for the programmer to do anything to show this indication. In any case you can change th...
Changing an xBrowse column header.
Nageswaragunupudi: My xBrowse does not show the arrows that you mentioned. What I'm doing wrong ? Thank you.
Changing bitmap on TBtnBmp at runtime
Hi, Ok, how about changing the bitmap on a TbnBmp object at runtime? Here is my code, but it isn't changing the bitmap. [code=fw:3e2c364g]<div class="fw" id="{CB}" style="font-family: monospace;"><br />...<br />   <span style="color: #0000ff;">REDEFINE</span> BUTTONBMP ::<span style="color: #000000;">oBalance</spa...
Changing bitmap on TBtnBmp at runtime
Hola Reinaldo, I don't know if this is the best solution, but I think work [code=fw:3hx8yal0]<div class="fw" id="{CB}" style="font-family: monospace;"> <br />....<br />::<span style="color: #000000;">oBalance</span>:<span style="color: #000000;">hBitmap</span> := LoadBitmap<span style="color: #000000;">&#40;</span> G...
Changing bitmap on TBtnBmp at runtime
Reinaldo, viendo el código fuente, creo que lo que está mal de tu código es tan solo una "S", cambia ::oBalance:LoadBitMaps( IIF( nDebt > 0, "DotRed", "DotGray" ) ) por ::oBalance:LoadBitMap( IIF( nDebt > 0, "DotRed", "DotGray" ) ) saludos Marcelo
Changing bitmap on TBtnBmp at runtime
[quote="Marcelo Via Giglio":pspe4bhx]Reinaldo, viendo el código fuente, creo que lo que está mal de tu código es tan solo una "S", cambia ::oBalance:LoadBitMaps( IIF( nDebt > 0, "DotRed", "DotGray" ) ) por ::oBalance:LoadBitMap( IIF( nDebt > 0, "DotRed", "DotGray" ) ) saludos Marcelo[/quote:pspe4bhx] Hello ...
Changing bitmap on TBtnBmp at runtime
[quote="reinaldocrespo":pu1ca2co]Hi, Ok, how about changing the bitmap on a TbnBmp object at runtime? Here is my code, but it isn't changing the bitmap. [code=fw:pu1ca2co]<div class="fw" id="{CB}" style="font-family: monospace;"><br />...<br />   <span style="color: #0000ff;">REDEFINE</span> BUTTONBMP ::<span styl...
Changing bitmap on TBtnBmp at runtime
To All This code worked for me .. Rick Lipkin [code=fw:14459yi8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br /><span style="color: #00C800;">CASE</span> lISGOALS = .T. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<sp...
Changing bitmap on TBtnBmp at runtime
Mr Rick Though the caption says TBtnBmp actually the control is not TBtnBmp but TButtonBmp, if we see Mr. Reinaldo's code posted first. [code=fw:1hohjcvu]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; <span style="color: #0000ff;">REDEFINE</span> BUTTONBMP ::<span style="color: #000000;">oBalance</s...
Changing bitmap on TBtnBmp at runtime
Everyone (Marcelo, Rao, Rick, Daniel) - Thank you very much. Before posting the question, I had tried :loadbitmaps() as well as loadbitmap(), refresh(), GetResources(), and a few others. I had followed TButtonBmp source code and still could not figure out why it wasn't working until I realized that this piece of code...
Changing cCaption of buttons!? ( SOLVED )
Antonio and friends,I created this function bellow to change the property "cCaption" of the buttons to reuse the same button to different tasks... I did not want to directly change the ownership cCaption, but this is the best solution even?[code:2fzte1bo]FUNCTION setCaption&#40; oObject, cCaption &#41; DEFAULT cCaptio...
Changing cCaption of buttons!? ( SOLVED )
Friends,Solved!Using the ::setText() method! <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->
Changing cCaption of buttons!? ( SOLVED )
yes <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Changing cell color on xBrowse
Guys: How can I change a cell color, based on a condition, in xBrowse ? For example if an amount is less than zero, change the whole amount the red color to bright white over red (on text would be "W+/R") ? Thank you.
Changing cell color on xBrowse
oLbx:aCols[7]:bClrstd := {|| { CLR_BLACK, If( oPo:myob, CMYOBCOL, CBRWBACK) } } Hope this helps Colin
Changing cell color on xBrowse
Colin: Thank you, I'll give it a try.
Changing cell color on xBrowse
[b:381724g6]Changing a cell-color as the result of a incremental search.[/b:381724g6] ( the full sample is included in a new UPDATE of the ASCVIEWER 3.2 ) The Table shows 3 sections with 25 rows ( from DBF ). I've been looking for a solution to do a incremental search scanning different sections of a xbrowse-table. Th...
Changing cell color on xBrowse
Esta funcion me la dio y publico Daniel hace tiempisimo, aca la comparto, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> FUNCION cronograma() . . . . FOR nFor = 6 to LEN( oBrw:aCols ) oBrw:aCols[ nFor ]:bClrStd := ChangeColor( oBrw, nFor )...
Changing color from say
Hello, I try to change the text color from a say object with : oSay:Setcolor(CLR_HRED) ; oSay:refresh() But , it doesn't work. I Tryed it also in testsay2.prg , no succes [code:2rhqud6m] // A sample showing to to let a SAY accept Clicks events #include "FiveWin&#46;ch" function Main&#40;&#41; local oDlg, oSa...
Changing color from say
Frank, This code works fine: [code:bk6uqr3w] #define COLOR_BTNFACE 15 &#46;&#46;&#46; oSay&#58;bLClicked = &#123; || oSay&#58;SetColor&#40; CLR_WHITE, GetSysColor&#40; COLOR_BTNFACE &#41; &#41;, oSay&#58;Refresh&#40;&#41;, MsgInfo&#40; "Hello" &#41; &#125; [/code:bk6uqr3w]
Changing color from say
Antonio, Ok , it seems that the background color can't be omitted. I supposed that when it is nil , it has not to change. Now i have to know what this color is or , oSay:SetColor( CLR_HRED , osay:nClrPane ) Frank
Changing color of xBrowse Memo-cellcolor on focus ?
Hello, is it possible, to change the color of a focused [size=150:zdvnepxr]memofield[/size:zdvnepxr] in xBrowse ? seems not to work with MEMOFIELDS . [color=#0000FF:zdvnepxr][b:zdvnepxr]:bClrSelFocus = { || { 0, 16512957 } } :bClrSel = { || { 16777215, 255 } } [/b:zdvnepxr] [/color:zdvnepxr] [img:zdvnepxr]http&#58...
Changing color of xBrowse Memo-cellcolor on focus ?
Works the sameway whether memofields or normal fields
Changing content in xBrowse/Tree
Friends. I need to change the contents of a cell of the Tree / xBrowse. Can anyone tell me how to do it? [img:3ryescpt]http&#58;//i1122&#46;photobucket&#46;com/albums/l532/gibiteka/Clipboard01&#46;jpg[/img:3ryescpt] [code=fw:3ryescpt]<div class="fw" id="{CB}" style="font-family: monospace;">  <br /><span style="colo...
Changing content in xBrowse/Tree
oBrw:oTreeItem:Cargo[ 1 ] := <newvalue> oBrw:RefreshCurrent()
Changing data type and picture in GET
I have a GET define so: REDEFINE GET oValue VAR mValue ID 2105 of oQry_Dlg ; on change ( iif(! oSave:lactive, Set_Save() ) ) ; update Whenever the value of mValue becomes numeric the picture of oValue ...
Changing data type and picture in GET
Trying new ideas to see if I can learn about what's creating my problem. This line would not properly alter oValue from numeric or date formats to string. oValue := tGet():Redefine( , bSetGet := {||mValue } , oQry_Dlg, ,"@S30" , , , , , , ,True, , ,False ) The line seems to execute properly because msginfo(o...
Changing default printer for current application only
Guys, I am getting different result here when I compile this code with my FWH11.08 and FWH1912. This is the old behavior that I want to retain. 1. Run program 2. Click menu [i:j247gpm7]Printer Setup[/i:j247gpm7] 3. Select a different printer than windows default. e.g. Microsoft Print To Pdf 4. Click Print [will go t...
Changing default printer for current application only
Hua, I don't know if this will help, but I found it in my notes. Use the following to set the application's current printer. It will remain the current printer until changed. [code=fw:czmtrnby]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//--- Set application's current prin...
Changing default printer for current application only
Thanks James. The code helps in setting the app to the last printer selected. For my earlier problem, I rem out PrinterEnd() at method End() of TPrinter
Changing directory in tFtp
Hi, I'm trying to create a small app that downloads files from an FTP site. My app connects ok to the FTP site, but i want to see what files are in a sub-folder. I've tried to use SetCurrentDirectory() but this doesnt seem to do anything - when i look at the results from <!-- s:D --><img src="{SMILIES_PATH}/icon_big...
Changing directory in tFtp
Solved using Directory() - the path you type in is case sensitive!! Regards, Pete
Changing directory in tFtp
Pete, Thanks for the info <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Changing directory in tFtp
I think i might have found a problem with the directory function, if i do this: aFiles = oFTP:Directory( cDirName + "*.*" ) IF !Empty(aFiles) FOR nCount := 1 TO Len(aFiles) IF Left(aFiles[nCount, 1], 1) <> "." lCopy := .F. ? File( cIwsFolder + "\Upgrade\New\" + aFiles[nCount, 1]) - ...
Changing directory in tFtp
FtpFindFirstFile/InternetFindNextFile return the filename filled by a char, i think chr(0). I use this [code=fw:zs9jslwr]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> CLEARSTRING <span style="color: #000000;">&#41;</spa...
Changing directory in tFtp
Pete, That would mean that some not valid characters are being placed into the file name. Thats why you can extract a valid portion of it, but if you try to concatenate with another string then it fails. Could you please test FWH\samples\FtpDir.prg and check if it works fine for you ? thanks
Changing directory in tFtp
Antonio, I get the "oFTP:hFTP is null" message, yet i can access the ftp site through i.e. fine Regards, Pete
Changing directory in tFtp
Pete, We have just tested it again using Windows 7 and it works fine using FWH 9.11, with both Harbour and xHarbour. But we got a request to allow it from the Windows firewall, that had to be accepted. Could someone else test FWH\samples\FtpDir.prg and report here how it works ? thanks
Changing focus on a dialog.
I have 2 buttons and a checkbox in a dialog. The 1st button is for printing. Users mistakenly press ENTER and the print preview comes up. How can I display the dialog and change the focus to the checkbox or have the focus elsewhere ?
Changing focus on a dialog.
If you use Resource, you can designate with Pelles the taborder, the first in the taborder that can be focused will receive the initial focus You can change the focus no the init of the dialog too, [code=fw:2sj1h6k0]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">Define</...
Changing font from oSay
Hello , I try to change the font from a existing osay , but it seems not easy 1) obj:oFont := oFont (changed) ; obj:refresh() doesn't work 2) Obj:end() obj := TSay():New(0,10,{||txt},oDlg,,ofont(new)... ) // from ppo-file obj:Activate() Seems to work , at least the first time , not when the butto...