topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
Clipboard size | My guess is that there is probably a 32-bit parameter somewhere in the mix that indicates the size of the text buffer to be copied to the Clipboard, but the parameter is being truncated to 16-bits at some point by some old 16-bit code. |
Clipboard size | Patrick,We have been googling for clipboard size (limit) and it seems as there is such limitation <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> |
Clipboard size | Patrick,[quote:2jeq1r0j]The particular feature I am implementing copies delimited email addresses to the Clipboard so that they may be pasted in the TO: or BCC: block of an email message using whatever email software our customer prefers to use. There may be a better way of allowing our customers to do a mass email to a select group of their constituents, so I'm open to suggestions.[/quote:2jeq1r0j]You can use the MAPI or SMTP classes to do this. MAPI will send them to the currently installed MAPI compliant mail client software (like Outlook), and SMTP will send it directly to the mail server.I would suggest SMTP for mass emails. They will have to have access to an SMTP server.Regards,James |
Clipboard size | Thanks James, I will take a look at the FWH Samples ProxOut.prg and TestSmtp.prg (and TestMail.prg for the MAPI) to see if they offer the functionality our customers need for this particular feature.Antonio - If there is indeed a limit of 20k on the ClipBoard in Win32, why am I able to copy many megabytes worth of text between NotePad and other text editors using the Windows ClipBoard, or indeed between a memo field of a FiveWin application and NotePad?Thanks,-Patrick |
Clipboard size | Patrick,I should mention that if your users need to compose a message, then perhaps MAPI is your best solution. You can send the TO or BC list to the MAPI client and bring up the message edit screen so they can then type in their message.If you are sending a pre-written message then SMTP is probably the best way. One button click can handle the entire process.Regards,James |
Clipboard size | Patrick,You are totally right. It was a bug in our code (from 16 bits times) <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->Now it is working fine. These are the required changes in FWH\source\clpbrd.c function SETCLIPBOARDDATA():[code:wvyea59j]
...
ULONG ulLen; // instead of WORD
...
case CF_TEXT:
ulLen = _parclen( 2 );
hMem = GlobalAlloc( GHND, ulLen + 1 );
if( ! hMem )
{
_retl( 0 );
return;
}
pMem = GlobalLock( hMem );
_bcopy( ( char * ) pMem, _parc( 2 ), ulLen );
GlobalUnlock( hMem );
_retl( ( BOOL ) SetClipboardData( CF_TEXT, hMem ) );
break;
...
[/code:wvyea59j]You can download the modified clpbrd.obj from here:<!-- m --><a class="postlink" href="http://www.mediafire.com/?sharekey=de511730a5a4890a91b20cc0d07ba4d25f0e262c0c6b2158">http://www.mediafire.com/?sharekey=de51 ... 2c0c6b2158</a><!-- m -->Link it as another OBJ of your app, or replace it in FiveHC.lib.Thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
Clipboard size | Thanks James!!! Thanks Antonio!!!-Patrick |
Clipboard to jpg file | José,
please have a look at sample < [color=#0000FF:2zkg0tsb]testimg.prg [/color:2zkg0tsb]>
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
Clipboard to jpg file | [quote="jose_murugosa":3n0bi3fl]I'd like to save a image in clipboard to a jpg file, Could somebody help me?
Thanks in advance.
Quiero grabar una imagen en el portapapeles a un archivo jpg, alguien me podría ayudar en cuanto a como hacerlo?
Gracias desde ya.[/quote:3n0bi3fl]
[code=fw:3n0bi3fl]<div class="fw" id="{CB}" style="font-family: monospace;"><br />lSaved := FW_SaveImage<span style="color: #000000;">(</span> <span style="color: #00C800;">nil</span>, cJpgFileName <span style="color: #000000;">)</span><br /> </div>[/code:3n0bi3fl]
If the clipboard has any valid image, this function saves the image in the clipboard to the file name in the second parameter. |
Clipboard to jpg file | [quote:3l4zxlzf]This formun is excelent[/quote:3l4zxlzf]
It is FWH that is excellent!!! |
Clipboard to jpg file | Thank you Uwe and Mr. Rao,
It worked perfect!!
This formun is excelent, people in it are. |
Clipboard to jpg file | [quote="nageswaragunupudi":1hjhbe95][quote:1hjhbe95]This formun is excelent[/quote:1hjhbe95]
It is FWH that is excellent!!![/quote:1hjhbe95]
That's wright Mr. Rao!! |
Clipboard to jpg file | I'd like to save a image in clipboard to a jpg file, Could somebody help me?
Thanks in advance.
Quiero grabar una imagen en el portapapeles a un archivo jpg, alguien me podría ayudar en cuanto a como hacerlo?
Gracias desde ya. |
Clipboard without a window | Hi to all.
I'm trying to call a prg already working into a small exe that will be called from modharbour.
This prg reads a lot of informations in several tables and the write this strings inside an excel file, using the clipboard for pasting the datas.
The problem is that if I don't have a window or a dialog I cannot use the tclipboard class because it gives error saying this :
[code=fw:2yw0w0et]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Application<br />===========<br /> Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">C</span>:\fw\excel_export.exe <span style="color: #000000;">(</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">Size</span>: <span style="color: #000000;">1.755</span><span style="color: #000000;">.648</span> bytes<br /> Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">0</span> secs <br /> Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">15</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2021</span>, <span style="color: #000000;">15</span>:<span style="color: #000000;">15</span>:<span style="color: #000000;">48</span><br /> Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1004</span> <span style="color: #00C800;">Class</span>: <span style="color: #ff0000;">'NIL'</span> has no exported <span style="color: #00C800;">method</span>: <span style="color: #000000;">HWND</span><br /> Args:<br /> <span style="color: #000000;">[</span> <span style="color: #000000;">1</span><span style="color: #000000;">]</span> = U <br /><br />Stack Calls<br />===========<br /> Called <span style="color: #0000ff;">from</span>: => HWND<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">CLIPBRD</span>.PRG => <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>TCLIPBOARD:<span style="color: #000000;">TCLIPBOARD</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => TCLIPBOARD:<span style="color: #000000;">OPEN</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">MAIN</span>.PRG => MAIN<span style="color: #000000;">(</span><span style="color: #000000;">133</span><span style="color: #000000;">)</span><br /> </div>[/code:2yw0w0et]
and this are few lines with the code that doesn't work.
[code=fw:2yw0w0et]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oClip := TClipBoard<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oClip:<span style="color: #000000;">Clear</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oClip:<span style="color: #000000;">SetText</span><span style="color: #000000;">(</span> cText <span style="color: #000000;">)</span><br />oExcel:<span style="color: #000000;">SetPos</span><span style="color: #000000;">(</span><span style="color: #ff0000;">'A'</span>+ALLTRIM<span style="color: #000000;">(</span>STR<span style="color: #000000;">(</span>F<span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br />oExcel:<span style="color: #000000;">Paste</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oClip:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:2yw0w0et]
Is there a possibility to make this ?
Thanks a lot.
Massimo |
Clipboard without a window | Massimo,
Please check that you have this code in Class TClipboard
METHOD Open() INLINE OpenClipboard( If( ::oWnd == nil, GetDeskTopWindow(), ::oWnd:hWnd ) ) |
Clipboard without a window | Hi Antonio,
no, in my TClipboard Class I have this code :
METHOD Open() INLINE OpenClipboard( ::oWnd:hWnd )
Now I make the change and rebuild the exe again.
I'll be back to give you the new result.
Thanks a lot.
Massimo |
Clipboard without a window | Here I am Antonio.
That was the problem and with your hint is resolved. The program now works like a Concorde.
Thank you very very very much.
Massimo |
Clipper + Windows | Estimados.
Tengo un amigo que lleva aaaaaaaaaaaaaaaaaaaaaaaños programando en Clipper 5.2a ( aun no lo puedo pasar al lado oscuro - HARBOUR - por lo menos )
Si bien es cierto sus sistemas estan muy bien hechos, funcionan en todos los WIN 32 bits, quisiera darle a lo menos una mano con una lib, que dejaba los prg clipper en un SEMI-MODO-GUI, no se si era el FIVEDOS u otro, alguien sabe que famosa lib era, la idea es que no tenga que modificar nada, solo linkearla y ya.
Me parece haberlo visto, pero ya no proceso a estas alturas del dia.
Alguna idea, y si no fuera mucho, algun link <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
GRAX. |
Clipper + Windows | ¿ No será light lib (LL GRAPHICS) ? |
Clipper + Windows | los programas de clipper viejo se pueden compilar directamente en harbour y quedan tal cual en 32 bits, para que ponerse a inventar la rueda |
Clipper + Windows | Qazwsx2k
Lo tengo mas que claro.... pero como el no quiere..... pense que a lo mejor con solo la lib de algo le podria ayudar.
Eso. |
Clipper + Windows | Adolfo,
Hay un terminal de consola (a efectos prácticos es una libreria) que simula un modo semi GUI sin tener que modificar nada. Su nombre es GTWVT y fué desarrollado por Pritpal Bedi. Nunca lo he probado asi que de poca ayuda te puedo ser aparte de contarte esto <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[url:tgmt13sl]http://www.harbour.vouch.info/gtwvt.htm[/url:tgmt13sl] |
Clipper 5.2e + COMIX application & FWH | I have few old applications made in clipper 5.2e + comix.
Is this safe to run at the same moment FWH application (xHarbour) on the same dbf and cdx files.?
I use:
SET DBFLOCKSCHEME TO 2
What can I do to prevent dbf or cdx files damage?
Is this possible to use both of systems in one time?
Robert |
Clipper 5.2e + COMIX application & FWH | In theory, it's possible to do this without damaging the files. However, I don't have any DOS clipper 5.2e apps currently coexisting with xHarbour apps using the same files. Thus I can't tell you "yes" for certain.
I suggest that you create a set of test files and then access them with a simple test app that has versions in DOS Clipper 5.2e and also in xHarbour, and then run both apps at the same time and see what happens. In addition to the dbf and cdx test files, I suggest that your test files include an FPT memo as well to make sure that memos won't get corrupted.
If you don't already have xHarbour, you can find out how to download it for free from xharbour.org in order to do your tests.
- Roger |
Clipper 5.2e + COMIX application & FWH | Robert,
i use a mixed system of Clipper 5.2e programs ( comix and dbfntx files ) together with xHarbour's dnfntx and dbfcdx.
I also set
SET DBFLOCKSCHEME TO 2
But for my Clipper apps i added "FI NTXLOCK2" to my link script.
Without i had some troubles with error dbfntx 1012 index corruption.
But now it's working ok in our network.
Regards,
Detlef |
Clipper 5.2e and OS_ISWTSCLIENT() ?? | Hi,
I use OS_ISWTSClient() function to Check if the application is running on a Windows Terminal Server client in my application that compiled in xHarbour Builder+FWH.
But I need it in my 16 bit application. Is it possible? Is there any function to check it?
Thanks, |
Clipper 5.2e and OS_ISWTSCLIENT() ?? | Hakan,
You may use:
#define SM_REMOTESESSION 4096
MsgInfo( GetSysMetrics( SM_REMOTESESSION ) ) |
Clipper 5.2e and OS_ISWTSCLIENT() ?? | Thanks Antonio,
My 16 bit DOS app. does not use fwh. Can I extract this function from it? Is GetSysMetrics() from Fwh. |
Clipper 5.2e and OS_ISWTSCLIENT() ?? | Hakan,
GetSysMetrics() is a shortname for the Windows API function GetSystemMetrics().
It won't work from a MsDos 16 bis app. |
Clipper 5.2e and OS_ISWTSCLIENT() ?? | Hakan,
Maybe this may help you:
getenv("CLIENTNAME")
getenv("SESSIONNAME")
<!-- m --><a class="postlink" href="http://www.pctoledo.com.br/forum/viewtopic.php?f=4&t=6225">http://www.pctoledo.com.br/forum/viewto ... f=4&t=6225</a><!-- m --> |
Clipper 5.2e and OS_ISWTSCLIENT() ?? | Thanks Antonio,
I already check CLIENTNAME and SESSIONNAME. But some VISTA computers behaves different.
Can anybody translate it to English.
[code=fw:1q2xd5lz]<div class="fw" id="{CB}" style="font-family: monospace;">A getenv<span style="color: #000000;">(</span><span style="color: #ff0000;">"CLIENTNAME"</span><span style="color: #000000;">)</span> no terminal service retorna o nome da máquina, beleza, já me ajuda... porém na rede <span style="color: #00C800;">local</span> retorna <span style="color: #ff0000;">"console"</span>, já a getenv<span style="color: #000000;">(</span><span style="color: #ff0000;">"SESSIONNAME"</span><span style="color: #000000;">)</span>, na rede <span style="color: #00C800;">local</span> me retorna também <span style="color: #ff0000;">"console"</span>, no terminal service, retorna: <span style="color: #000000;">RDP</span>-Tcp#... isso eu não entendi... <br /><br />Posso conseguir o que quero com a variável CLIENTNAME... Mas, se alguém tiver uma forma de poder pegar o IP, seria melhor... <br /> </div>[/code:1q2xd5lz] |
Clipper 5.2e and OS_ISWTSCLIENT() ?? | Hakan,
Google translator produces this:
[quote:1zdcj5ma]
The getenv ( "clientname") in terminal service returns the name of the machine, beauty, I help ... But on the local network returns "console", since the getenv ( "SESSIONNAME"), returns on the local network I also "console" in the terminal service, returns: RDP-Tcp # ... I do not understand this ...
Can I achieve what I want with the clientname variable ... But if someone has a form you can get the IP, it would be better ...
[/quote:1zdcj5ma] |
Clipper 5.3 CHM file available | I do not know if this is legal or not, but since Clipper is not commercialized since 94 and that the Norton Guides are for DOS (pre Windows 95), I took the NG, converted then to HTML files, and then compiled everything to a CHM file which is available on demand for everyone who asks for it (1.5Mb) If someone offers a FTP, maybe even this forum, it will be better (and quicker <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> ).
Emiliano Llano Díaz |
Clipper 5.3 CHM file available | Emiliano,
I've seen WebSites with this kind of information, and I don't think it is ilegal since you are not making any profit from it.
I can post it in my website if you like.
My e-mail address is in my website. |
Clipper 5.3 CHM file available | You can send it to "soporte at PuntoTactil.com" |
Clipper 5.3 CHM file available | Clipper docs are available from here:
<!-- m --><a class="postlink" href="http://www.ousob.com/ng/53guide/">http://www.ousob.com/ng/53guide/</a><!-- m -->
Clipper error codes (compatible with Harbour/xHarbour):
<!-- m --><a class="postlink" href="http://www.ousob.com/ng/53error/">http://www.ousob.com/ng/53error/</a><!-- m --> |
Clipper 5.3 CHM file available | No email add. to contact! Could you please post baack the FTP link on this thread?
Thanks! |
Clipper 5.3 CHM file available | Thanks Antonio,
But this form of file may be usefull for users that have to pay for internet by the hour, since it will be OffLine...
I know that is the deal in Guatemala at least... |
Clipper 5.3 CHM file available | The Link is:
<!-- m --><a class="postlink" href="http://www.MayaPOS.com/FiveWin/Clipper.chm">http://www.MayaPOS.com/FiveWin/Clipper.chm</a><!-- m --> |
Clipper 5.3 CHM file available | +traffic saturating our lines for a simple thing that we can do locally |
Clipper 5.3 CHM file available | Emiliano, It seems to be a error in the file, maybe some missing files??
[img:1gtzl11c]http://www.MayaPOS.com/FiveWin/clippererror.png[/img:1gtzl11c] |
Clipper 5.3 CHM file available | right click on the file's properties and 'Unblock' the file so that the security block is bypassed |
Clipper 5.3Fivewinharbour www online NG (HelpManual) | <!-- m --><a class="postlink" href="http://www.itlnet.net/programming/program/Reference/c53g01c/menu.html">http://www.itlnet.net/programming/progr ... /menu.html</a><!-- m --><!-- m --><a class="postlink" href="http://www.ousob.com/norton.php">http://www.ousob.com/norton.php</a><!-- m --> |
Clipper 5.3b exe | Hi All
I reinstalled my clipper 5.3a ... and applied the 5.3b US patch , but the clipper.exe doesn't seem take the patch .. all other files do. This has come about because I'm now getting a memory low error and I'm trying to get rid of it. Apparently, clipper.exe for 5.3b with the updates to the errsysw.prg gets rid of it. But I can't get it patched to 5.3b as i stated earlier. I was wondering if anyone would be willing to send the clipper.exe for 5.3b to me, or if anyone can assist in fixing it I would appreciate it.
After the 5.3b patch ... my clipper.exe is date/time stamped 06/20/1995 5.30a and 208,185 in size.
Update: found the solution:
Optedit 5.3a update has to be installed first for the 5.3a and 5.3b updates can be patched. Last time it did it, it so long ago I forgot about this requirement.
Thanks for reading. |
Clipper 5.3b exe | Hello,
Put the files provided with the Clipper 5.3b patch in the root directory of clipper (by default \CLIP53), then load PATCH.EXE. This is the way for the
5.3b international version.
Files to copy into Clipper 5.3 root directory :
53A_BI.RTP
PATCH.EXE
CLIP53BI.TXT
Regards, |
Clipper Code under FiveWin ? | hi,
i try to compile Clipper Source with FiveWin, is this possible <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
now it run until @ 8,0 SAY
[code=fw:1sa6xx9y]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">3972</span> nMidScreen := <span style="color: #000000;">8</span> + INT<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> <span style="color: #000000;">(</span> MAXROW<span style="color: #000000;">(</span><span style="color: #000000;">)</span> - <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> - <span style="color: #000000;">8</span> <span style="color: #000000;">)</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">)</span><br /><span style="color: #000000;">3973</span> SETCOLOR<span style="color: #000000;">(</span> <span style="color: #ff0000;">'w+/b'</span> <span style="color: #000000;">)</span><br /><span style="color: #000000;">3974</span> CLEAR SCREEN<br /><span style="color: #000000;">3975</span> DISPBOX<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">8</span>, MAXCOL<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><span style="color: #000000;">3976</span> DISPBOX<span style="color: #000000;">(</span> <span style="color: #000000;">8</span>, <span style="color: #000000;">0</span>, nMidScreen, MAXCOL<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><span style="color: #000000;">3977</span> DISPBOX<span style="color: #000000;">(</span> nMidScreen, <span style="color: #000000;">0</span>, MAXROW<span style="color: #000000;">(</span><span style="color: #000000;">)</span> - <span style="color: #000000;">2</span>, MAXCOL<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><span style="color: #000000;">3978</span> @ <span style="color: #000000;">8</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">'?'</span></div>[/code:1sa6xx9y]
[quote:1sa6xx9y]
Application
===========
Path and name: C:\fwh\samples\3\CLICK2.exe (32 bits)
Size: 4,183,552 bytes
Compiler version: Harbour 3.2.0dev (r1904111533)
FiveWin version: FWH 19.06
C compiler version: Borland/Embarcadero C++ 7.0 (32-bit)
Windows version: 6.2, Build 9200
Time from start: 0 hours 4 mins 51 secs
Error occurred at: 12/10/19, 06:58:41
Error description: Error BASE/1004 No exported method: NCLRTEXT
Args:
[ 1] = U
Stack Calls
===========
Called from: => NCLRTEXT( 0 )
Called from: .\source\classes\SAY.PRG => TSAY:NEW( 81 )
Called from: c:\fwh\samples\3\CLICK2.prg => MAIN_SCREEN( 3978 )
Called from: c:\fwh\samples\3\CLICK2.prg => STARTCLICK( 388 )
Called from: c:\fwh\samples\3\CLICK2.prg => MAIN( 137 )
[/quote:1sa6xx9y] |
Clipper Code under FiveWin ? | you cannot use clipper command on fw |
Clipper Code under FiveWin ? | change to :
LOCAL oSay // on top
@ 8, 0 SAY [b:2ww56eby]oSay PROMPT [/b:2ww56eby] '?'
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
Clipper Code under FiveWin ? | Hello,
Use samples/build test.prg to create a DOS .exe app. |
Clipper Code under FiveWin ? | hi
[quote="MOISES":3kme3g2v]Use samples/build test.prg to create a DOS .exe app.[/quote:3kme3g2v]
thx for help but i got a Error when try it
[quote:3kme3g2v]Error: Unresolved external '_HB_FUN_MSGINFO' referenced from C:\FWH\SAMPLES\TEST.OBJ
Error: Unable to perform link[/quote:3kme3g2v] |
Clipper Code under FiveWin ? | [quote="ukoenig":14npxb2d]change to :
LOCAL oSay // on top
@ 8, 0 SAY [b:14npxb2d]oSay PROMPT [/b:14npxb2d] '?'
[/quote:14npxb2d]
ooooh ... that will be much work to change all lines ...
is there a Way to use #xtranslate to get that Syntax <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
Clipper Code under FiveWin ? | Please instead of test use your prg |
Clipper Code under FiveWin ? | Clipper programs can not be directly compiled and built with FWH directly without any changes. We need to use Windows/Dialogs and use FWH syntax which is similar to clipper syntax but not exactly the same.
Recently we tried in a limited way how far we can make old Clippper syntax work.
Test this example:
[code=fw:8siu5mjf]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">local</span> n := <span style="color: #000000;">200</span><br /><span style="color: #00C800;">local</span> c := <span style="color: #ff0000;">"Hello "</span><br /><br /> CLEAR<br /><br /> @ <span style="color: #000000;">5</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">'This is Prompt'</span><br /> @ <span style="color: #000000;">5</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">GET</span> n<br /> @ <span style="color: #000000;">8</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"ENTER"</span><br /> @ <span style="color: #000000;">8</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">GET</span> c<br /><br /> READ<br /><br /> ? n, c<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:8siu5mjf]
Copy to fwh\samples folder and build with buildh.bat
[url=https://imageshack.com/i/po3gMC9yp:8siu5mjf][img:8siu5mjf]https://imagizer.imageshack.com/v2/xq90/924/3gMC9y.png[/img:8siu5mjf][/url:8siu5mjf] |
Clipper Code under FiveWin ? | Now, let us try the code posted first:
With minor modifications:
1) Added translate for DISPBOX
2) Changed CLEAR SCREEN as CLEAR //SCREEN .. commented out SCREEN
3) Text of say is made a long text
[code=fw:1iu7s420]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />#xtranslate DISPBOX<span style="color: #000000;">(</span> <t>,<l>,<b>,<r> <span style="color: #000000;">)</span> => TGroup<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <t>, <l>, <b>, <r>, <span style="color: #00C800;">NIL</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, .t. <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> nMidScreen<br /><br /> nMidScreen := <span style="color: #000000;">8</span> + INT<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> <span style="color: #000000;">(</span> MAXROW<span style="color: #000000;">(</span><span style="color: #000000;">)</span> - <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> - <span style="color: #000000;">8</span> <span style="color: #000000;">)</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">)</span><br /> SETCOLOR<span style="color: #000000;">(</span> <span style="color: #ff0000;">'w+/b'</span> <span style="color: #000000;">)</span><br /> CLEAR <span style="color: #B900B9;">//SCREEN</span><br /> DISPBOX<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">8</span>, MAXCOL<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> DISPBOX<span style="color: #000000;">(</span> <span style="color: #000000;">8</span>, <span style="color: #000000;">0</span>, nMidScreen, MAXCOL<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> DISPBOX<span style="color: #000000;">(</span> nMidScreen, <span style="color: #000000;">0</span>, MAXROW<span style="color: #000000;">(</span><span style="color: #000000;">)</span> - <span style="color: #000000;">2</span>, MAXCOL<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">8</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">'+CLIPPER SYNTAX IN FWH'</span><br /><br /> READ<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:1iu7s420]
[url=https://imageshack.com/i/pm7mtAvcp:1iu7s420][img:1iu7s420]http://imagizer.imageshack.us/v2/xq90/922/7mtAvc.png[/img:1iu7s420][/url:1iu7s420] |
Clipper Code under FiveWin ? | hi,
thx for help.
i agree that Clipper Code is very old but it still work for me with my Xbase++ Code.
i have made a GUI Version in Xbase++ and harbour/HMG but not with FiveWin yet.
i tought Fivewin can use Clipper Code as "Console" that why i try it and got that Message.
i will learn how GUI under FiveWin work. it use OOP which i also use in Xbase++. |
Clipper Code under FiveWin ? | hi,
[quote="MOISES":3l1se2cm]Please instead of test use your prg[/quote:3l1se2cm]
i will do it when i finish FiveWin Version.
GUI Part now is for harbour / HMG so it will not work under FiveWin and Console Mode was just a try |
Clipper Code under FiveWin ? | [quote="Jimmy":3u3hsjnv]
i agree that Clipper Code is very old but it still work for me with my Xbase++ Code.
i have made a GUI Version in Xbase++ and harbour/HMG but not with FiveWin yet.
i tought Fivewin can use Clipper Code as "Console" that why i try it and got that Message.
i will learn how GUI under FiveWin work. it use OOP which i also use in Xbase++.[/quote:3u3hsjnv]
If you want to build console program, you just need to compile and link with [x]Harbour. You link in FWH only if you want windows GUI.
Try googling GTWVT or GTWVG for more info. I didn't experiment much with windows console program |
Clipper Code under FiveWin ? | hi,
[quote="hua":gpg5zaru]If you want to build console program, you just need to compile and link with [x]Harbour. You link in FWH only if you want windows GUI.
Try googling GTWVT or GTWVG for more info. I didn't experiment much with windows console program[/quote:gpg5zaru]
thx for Answer.
my working harbour HMG Version is using GTWVT but it is "so slow" ... so i wanted to try other Console
i know GTWVG from Pritpal Bedi while it have same Syntax like Xbase++ but i never have made a GUI Version of CLICK with Xbase++.
---
that Clipper Soure was just a Test.
i have not used Console since Years but someone in HMG Forum ask for "Formatter for Clipper" so i try to rebuild my CLICK Source under harbour / HMG. it run but "Output" under harbour /HMG make App extrem slow. <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
without "Output" it use < 4 Seconds but with "Output" it take Minutes <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: --> |
Clipper Code under FiveWin ? | Dear Jimmy,
Could you please post some screenshots of your app using GTWVT ?
Does it look nice ? Is the output speed the only problem ?
many thanks |
Clipper Code under FiveWin ? | hi Antonio,
[quote="Antonio Linares":27for19j]Could you please post some screenshots of your app using GTWVT ?
Does it look nice ? Is the output speed the only problem ?[/quote:27for19j]
i have not made a Snapshot from GTWVT Version but it look exact like my Xbase++ Console
[img:27for19j]http://www.hmgforum.com/download/file.php?id=9317[/img:27for19j]
i have to say that every "Output" is slow. GTWVT is not slower than Xbase++ Console.
GTWVT "Event-Loop" is just INKEY() and with HMG i can use GUI too e.g. Button.
this is what i don't know with FiveWin while GUI Parts seems all Inherit from TWindows.
HMG use Procedure and Function with #xCommand Syntax so i had to "go back" to Cl*pper Style using Macro.
FiveWin use OOP which make it more easy for me while i have work last 15 Year with that Style.
as i can say GTWVT is a good Console Solution but i can't say if Events will work well with OOP Style. |
Clipper Tools (CT3.LIB) | Hello to all of my friends in FiveWin/xHb
A couple of days ago, I purchased a new Win 7 (64-bit) laptop.
I installed everything, and re-build everything, except for one program that is using the file CT3.LIB, and at that point, I had a problem <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->
It seems that I need the latest version of CT3.LIB which, to my understanding, is renamed as CT.LIB.
When I tried to get to the link posted by Antonio, on a relative subject post, I have not found the specific .ZIP file.
Can any one e-mail to me please, or e-mail me a valid link... You may use this email:
mailto:ebartzokas@gmail.com
I would like to thank you all way in advance, knowing that I will receive some good replies.
(Please remember that gmail.com, does not accept .ZIP as an attachment, so, rename the file to anything else... |
Clipper Tools (CT3.LIB) | Please do remember that 16bit applications will not run under Windows 7 (64 bit version).
Regards
Anser |
Clipper Tools (CT3.LIB) | Mr Anser
What Mr. Bartzokas wants is ct.lib compiled and built for 64-bits.
If he needs 32 bit version, he can download from either xharbour.org or free.xharbour.com. |
Clipper Tools (CT3.LIB) | That is correct my friends...
I need CT.LIB for 64 bits.
(CT3.LIB worked fined for 32 bits in Windows XP - Problems are with Windows 7 -> CT.LIB which I don't have of course)
Thanks for your attempts... Expecting that someone will send it to me, or post somewhere that I can download with a relative link. |
Clipper Tools (CT3.LIB) | If you are developing 32 bit applications on your 64-bit Windows 7 PC, you can use 32bit libraries (including ct.lib) downloaded from xharbour.org or free.xharbour.com.
If you want to develop 64-bit applications then you need to download the sources and build your own libraries.
ct3.lib is a 16 bit library to be linked with Clipper 16 bit applications and we can not run any 16 bit applications like Clipper.exe on 64 bit Windows 7 PC. |
Clipper Tools (CT3.LIB) | Thanks for the advise, however, I was unable to get to the right link.
Can you please send me the link?
Thank you in advance!
Evans |
Clipper and FiveWin article | Today's article about Clipper and FiveWin:
Artículo de hoy relativo a Clipper y FiveWin:
[url:1yt1gxoh]http://bitactual.es/2016/07/27/nantucket-clipper-summer87/[/url:1yt1gxoh] |
Clipper and FiveWin article | Gracias Master
Buen articulo |
Clipper and FiveWin article | Esta bien la revista, pero el artículo 'olvida' la evolución de Clipper a Harbour, dando un aire algo obsoleto al lenguaje Clipper y dejando una imagen
de Fivewin de que sólo sirve para traspasar viejas aplicaciones a Windows, cuando no es cierto, ya que todos sabemos que a nivel GUI puede competir
con cualquiera de las actuales y a nivel de compilador, ya no es el típico lenguaje orientado a bases de datos, con Harbour se puede construir desde
una aplicación de escritorio, un servidor web, ftp, email, gestionar multi hilo (aprovecho para felicitar públicamente al amigo Rafa TheFull por su
dedicación al iluminar este terreno), puede comunicarse con web services (CURL, JSON, XML) y también proporcionarlos, con multitud de SGBD,
dispone de estructuras de control similares a cualquier lenguaje actual, acceso directo a C, en definitiva, encuentro a faltar
que en el artículo no se mencione, por ejemplo, a empresas como SAGE que aún tienen su potencial en aplicaciones basadas en este 'viejo'
y querido lenguaje Clipper.
Saludos |
Clipper and FiveWin article | Holas,
si faltaba algo, aquí esta Antonio con algo de explicación [url:2u6iawmz]http://bitactual.es/2016/07/28/antonio-linares-creador-de-fivewin-y-harbour/[/url:2u6iawmz]
Gracias Antonio
Saludos
Marcelo |
Clipper and FiveWin article | Muy, muy bueno.
Magnífica entrevista y super refrescante foto.
Dice Antonio que desde entonces 20 años... y nosotros decimos: "Antonio mil veces gracias, porque gracias a ti, a aquella sombrilla programming book muchos llevamos también otros 20 años en el lio" |
Clipper and FiveWin article | Buena oportunidad para agradecerte Antonio por todo lo que has dado a nuestro pequeño pero muy productivo mundo de programacion en mi caso solo se programar en Harbour no manejo nada mas, pero he logrado dar una vida decente a mi familia
Muchas gracias gran Maestro, si llegas a venir a Ecuador sera un honor tenerte en mi casa
Un abrazo |
Clipper and Harbour books | Hi,
I am searching for advance Clipper and Harbour books, where arrays and codeblocks are explained.
Thanks <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
Clipper and Harbour books | Hello,
for Harbour I think there are not books, but a really good Clipper's book is one writed by Rick Spence
regards
Marcelo |
Clipper and Harbour books | There is an article on codeblocks here:
[url:jktviadv]http://www.leylan.com/app.asp?pg=blocks[/url:jktviadv]
Regards,
James |
Clipper and Harbour books | I highly recommend the book, Clipper 5.2 (or 5.3) - A Developer's Guide by Joseph D. Booth, Greg Lief and Craig Yellick |
Clipper appl with faster processor fails | Dear Friends,
Some years ago Clipper apps failed with newer faster processors.
At that time a solution became available that solved the problem.
I beleive a kind of WAIT programme.
That was implemented in the Clipper programs and the problem was gone.
My question is, do we have a similar problem today and if so is there a new solution.
I have a cusomer that bought new P.C.'s with XP PRO and only two MS-DOS apps running from a server fail intermittently on the new P.C.'s.
Same programs work OK on the older PC's.
Any suggestion is welcomed.
Jules de Pierre |
Clipper appl with faster processor fails | Hello!
Some suggestions:
1. Disable DEP:
<!-- m --><a class="postlink" href="http://www.sysinternals.com/Information/bootini.html">http://www.sysinternals.com/Information/bootini.html</a><!-- m -->
(Use /execute instead of /noexecute=OPTIN)
2. Disable hyper-threading in BIOS
3. If CPU has two cores, this might me helpful:
<!-- m --><a class="postlink" href="http://www.markwilson.co.uk/blog/2005/01/troubleshooting-ms-dos-application.htm">http://www.markwilson.co.uk/blog/2005/0 ... cation.htm</a><!-- m -->
<!-- m --><a class="postlink" href="http://www.informit.com/articles/article.asp?p=465310&seqNum=2&rl=1">http://www.informit.com/articles/articl ... Num=2&rl=1</a><!-- m -->
[quote:1crbd4ov]By default, the Windows operating systems set processes to run on all available processors. If you have multiple processors or one or more dual-core processors in your system, you can control the processor(s) on which an application runs.[/quote:1crbd4ov]
<!-- m --><a class="postlink" href="http://www.hardforum.com/showthread.php?t=983781">http://www.hardforum.com/showthread.php?t=983781</a><!-- m -->
4. Is your application running with administrator or limited user rights?
Cheers, Roman |
Clipper appl with faster processor fails | Thanks Roman,
Very interesting but I did not see a problem related to a Clipper app.
Since Antonio is not responding I think that Clipper does not have this problem.
Questions:
What is NTDVM and DEP
Jules de Pierre |
Clipper appl with faster processor fails | NTVDM is the Windows NT Virtual Dos Machine, a program that allows 16 bit apps to run under Windows NT-2000-XP.
EMG |
Clipper appl with faster processor fails | 2 steps to avoid runtime error for Clipper exe in high performance processor pc :
- link this obj : <!-- m --><a class="postlink" href="http://hyperupload.com/download/022a123e17/_wait_b.obj.html">http://hyperupload.com/download/022a123 ... b.obj.html</a><!-- m -->
- upgrade to Blinker v7.0 |
Clipper appl with faster processor fails | Hello!
<!-- m --><a class="postlink" href="http://h10025.www1.hp.com/ewfrf/wc/genericDocument?lc=pt&cc=br&dlc=pt&docname=c00223284">http://h10025.www1.hp.com/ewfrf/wc/gene ... =c00223284</a><!-- m -->
[quote:1j0iter2]The Data Execution Prevention (DEP) feature in the Windows operating system is designed to help prevent damage from viruses and from other security threats. DEP works alone or with compatible microprocessors to mark some memory locations as "non-executable." If a program tries to run code from a protected location, DEP closes the program and displays a message.[/quote:1j0iter2]
Jules, are your two DOS apps working in Windows XP SP2 on older computers?
Regards, Roman |
Clipper appl with faster processor fails | Dear Roman,
It are new PC's with WIN XP PRO Inclusive SP2
I do not have the processor specs yet.
But it are new computers.
Dear Who,
I included _Wair_B already in 1996.
I think I come to the conclusion that the problems my customer has is not because of Clipper apps.
I heard that they had frequently Corruption Errors on an index file.
I believe that that can only be a hardware probblem.
Dear Antonio,
Do you have any experience on problems with Clipper apps in XP
Thanks to all,
Jules de Pierre |
Clipper appl with faster processor fails | Jules!
We have a DOS Clipper app running in Windows XP SP2 on several PC-s
with Pentium 6xx CPU-s without problems. They are linked with Blinker
(extended mode). Which version of Clipper is used in your case?
What linker? Are DBF-s located on server or on local disk?
If your Clipper app directly access hardware (like COM
ports), this might be a problem!
<!-- m --><a class="postlink" href="http://www.beyondlogic.org/porttalk/porttalk.htm">http://www.beyondlogic.org/porttalk/porttalk.htm</a><!-- m -->
Maybe this thread can help:
<!-- m --><a class="postlink" href="http://forums.wugnet.com/NTVDM-100-CPU-Utilization-ftopict410387.html">http://forums.wugnet.com/NTVDM-100-CPU- ... 10387.html</a><!-- m -->
Last three questions:
Is this pure Clipper app? Do you use Nanfor library?
How do you set FILES= and CLIPPER= ?
Regards, Roman |
Clipper appl with faster processor fails | Jules,
We use just one Clipper app in msdos and works ok on XP <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> |
Clipper appl with faster processor fails | Go through the OPTEDIT.EXE commands and try to link your applicaiton
with protected mode linker EXOSPACE.
We have several applications compiled with Clipper 5.3b and linked with
EXOSPACE and subsequently using OPTEDIT.EXE commands to change
the behaviour of the Executable to suit to your requirements. They are
all working OK with latest hi-speed processors also without any problem.
- Ramesh Babu P |
Clipper appl with faster processor fails | Dear collegues,
Thanks for your cooperation.
I am convinced now that my customer has no Ckipper XP PRO problem.
I used Blinker and Clipper 5.3b
Databases are on the server.
Files and Buffers are OK.
So I advised my customer to look at his installation of XP PRO workstations in a Windows 2000 server environment.
There is a rumour that that is the problem.
For me the case is closed.
Thanks everybody ofr your help.
Friendly regards,
Jules de Pierre |
Clipper appl with faster processor fails | Hello!
[quote="Jules de Pierre":2ty2lxsk]
So I advised my customer to look at his installation of XP PRO workstations in a Windows 2000 server environment.
There is a rumour that that is the problem.
[/quote:2ty2lxsk]
In our case DBF-s are on Netware 4.2 server, which is more Clipper friendly. Anyhow, when dealing with Windows server environments, I use
this two utilities: NetSafe and RedrTest
<!-- m --><a class="postlink" href="http://www.datafastsoftware.com/download.htm">http://www.datafastsoftware.com/download.htm</a><!-- m -->
<!-- m --><a class="postlink" href="http://www.support.tabs3.com/main/R10200.htm">http://www.support.tabs3.com/main/R10200.htm</a><!-- m -->
OT, but here is another link for Samba 3 and 2.2 servers:
<!-- m --><a class="postlink" href="http://www.drouillard.ca/Tips&Tricks/Samba/Oplocks.htm">http://www.drouillard.ca/Tips&Tricks/Samba/Oplocks.htm</a><!-- m -->
Cheers, Roman |
Clipper appl with faster processor fails | [quote="Jules de Pierre":3w1p61gp]Dear Friends,
Some years ago Clipper apps failed with newer faster processors.
At that time a solution became available that solved the problem.
I beleive a kind of WAIT programme.
That was implemented in the Clipper programs and the problem was gone.
My question is, do we have a similar problem today and if so is there a new solution.
I have a cusomer that bought new P.C.'s with XP PRO and only two MS-DOS apps running from a server fail intermittently on the new P.C.'s.
Same programs work OK on the older PC's.
Any suggestion is welcomed.
Jules de Pierre[/quote:3w1p61gp]
See my posts very useful for wait state (CPU time used by Clipper
with Fivewin) here :
<!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=1103">http://fivetechsoft.com/forums/viewtopic.php?t=1103</a><!-- m -->
If you want reduce your 100 % CPU time to 3 % !
Regards, |
Clipper code recover | Hi,
I need a clipper code recover
Clipper 5.2 and blinker 4.10
Many thanks
marco |
Clipper code recover | Hi,
I need a clipper code recover
Clipper 5.2 and blinker 4.10
Many thanks
marco |
Clipper code recover | Search "clipper valkyrie" on google |
Clipper code recover | Marco
v5demo.exe does not work!
Clipper 5.2
Blinker 4.10
Unrecognized linker code.
Unable to continue processing.
Press any key to continue. |
Clipper code recover | Hi marco,
As far I know, .EXE files linked with blinker cannot be recovered.
If you have the .OBJ files, you can link them with MS Link an use the Valkyrie.
Here in Brazil, some time ago, I heard about works recovering blinker linked files.
If is very important, I can look after the author.
regards, Euclides |
Clipper code recover | The guy in Brazil who claimed to have a decompiler that worked with Blinker 3.3 and above is Wagner Nunes
<!-- w --><a class="postlink" href="http://www.vagucs.com.br">www.vagucs.com.br</a><!-- w --> . But don't waste your time or money. His product does not work. And he keeps your money ... |
Clipper colors with Read only ( follow up ) | Antonio
Forgive the follow up on this post as I thought the Clipper colors with READONLY was fixed in 1202.
I went back and reviewed your example demonstrating your fix using code :
[code=fw:1gq1znaf]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, cTest := <span style="color: #ff0000;">"Hello world"</span><br /><br /> TGet<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">lDisColors</span> = .F.<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br /> @ <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">GET</span> cTest COLORS <span style="color: #ff0000;">"N/R"</span> READONLY<br /> <br /> @ <span style="color: #000000;">3</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Ok"</span> <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:1gq1znaf]
and this works fine in FWH1202 .. unfortunately it does not seem to work with resources .. I added the TGet():lDisColors = .F. in my example using resources with clipper colors and READONLY does not work as expected.
Please review the code and see if there is something I have missed ?
Thanks again
Rick Lipkin
[url=http://imageshack.us/photo/my-images/714/error1hv.jpg/:1gq1znaf][img:1gq1znaf]http://img714.imageshack.us/img714/6443/error1hv.jpg[/img:1gq1znaf][/url:1gq1znaf]
[code=fw:1gq1znaf]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// Main.prg</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">//</span><br /><br /><span style="color: #00D7D7;">#INCLUDE</span> <span style="color: #ff0000;">"FIVEWIN.CH"</span><br /><br /><span style="color: #00C800;">STATIC</span> oEntryBy,oEntryDate<br /><span style="color: #00C800;">STATIC</span> cEntryBy,dEntryDate<br /><span style="color: #00C800;">STATIC</span> oStock,cStock,oReq<br /><br /><span style="color: #B900B9;">//-------------------------------</span><br />FUNC Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">LOCAL</span> SAYING,cTITLE,lOK1,oBUTT1,oBUTT2<br /><span style="color: #00C800;">LOCAL</span> nYear<br /><br />SET DELETED <span style="color: #0000ff;">on</span><br />SET CENTURY <span style="color: #0000ff;">on</span><br />SET 3DLOOK <span style="color: #0000ff;">on</span><br /><br />nYEAR := <span style="color: #000000;">(</span> <span style="color: #0000ff;">year</span><span style="color: #000000;">(</span> DATE<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><span style="color: #000000;">-30</span> <span style="color: #000000;">)</span><br />SET EPOCH <span style="color: #0000ff;">to</span> <span style="color: #000000;">(</span> nYEAR <span style="color: #000000;">)</span><br /><br />TGet<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">lDisColors</span> = .F. <span style="color: #B900B9;">// readonly fix</span><br /><br /><span style="color: #B900B9;">// global gradient</span><br />SetDlgGradient<span style="color: #000000;">(</span> <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> .<span style="color: #000000;">50</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">201</span>, <span style="color: #000000;">217</span>, <span style="color: #000000;">237</span> <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">231</span>, <span style="color: #000000;">242</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /><br />lOK := .F.<br /><br />cEntryBy := <span style="color: #ff0000;">"USER "</span><br />dEntryDate := Date<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />cStock := <span style="color: #ff0000;">"12345"</span><br /><br />cTITLE := <span style="color: #ff0000;">"Parts Request Information EDIT"</span><br /><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oREQ <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"REQVIEW"</span> ;<br /> <span style="color: #0000ff;">TITLE</span> cTITLE<br /><br /> <span style="color: #B900B9;">// non tab stop</span><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oEntryBy <span style="color: #0000ff;">VAR</span> cEntryBy <span style="color: #0000ff;">ID</span> <span style="color: #000000;">141</span> <span style="color: #0000ff;">of</span> oREQ <span style="color: #0000ff;">COLOR</span> CLR_WHITE, CLR_BLUE READONLY<br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">Say</span> oEntryDate <span style="color: #0000ff;">VAR</span> dEntryDate <span style="color: #0000ff;">ID</span> <span style="color: #000000;">142</span> <span style="color: #0000ff;">of</span> oREQ <span style="color: #0000ff;">COLOR</span> <span style="color: #ff0000;">"N/W"</span> READONLY<br /><br /> <span style="color: #B900B9;">// tab stop</span><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oStock <span style="color: #0000ff;">VAR</span> cStock <span style="color: #0000ff;">ID</span> <span style="color: #000000;">113</span> <span style="color: #0000ff;">of</span> oREQ <span style="color: #0000ff;">COLOR</span> <span style="color: #ff0000;">"N/R"</span> READONLY<br /><br /><br /><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> oBUTT1 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">111</span> <span style="color: #0000ff;">of</span> oREQ ; <span style="color: #B900B9;">// ok</span><br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Ok "</span> <span style="color: #0000ff;">LEFT</span> <span style="color: #000000;">2007</span>;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oREQ:<span style="color: #000000;">END</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> oBUTT2 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">112</span> <span style="color: #0000ff;">of</span> oREQ ; <span style="color: #B900B9;">// cancel</span><br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Cancel "</span> <span style="color: #0000ff;">LEFT</span> <span style="color: #000000;">2007</span>;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oREQ:<span style="color: #000000;">END</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oREQ <span style="color: #0000ff;">centered</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">(</span> <span style="color: #00C800;">Nil</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">// end</span><br /> </div>[/code:1gq1znaf]
.rc
[code=fw:1gq1znaf]<div class="fw" id="{CB}" style="font-family: monospace;"><br />REQVIEW <span style="color: #0000ff;">DIALOG</span> <span style="color: #000000;">33</span>, <span style="color: #000000;">32</span>, <span style="color: #000000;">220</span>, <span style="color: #000000;">153</span><br /><span style="color: #0000ff;">STYLE</span> WS_POPUP | WS_CAPTION<br />CAPTION <span style="color: #ff0000;">"Clipper colors Readonly with Resource"</span><br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">6</span>, <span style="color: #ff0000;">"MS Sans Serif"</span><br /><span style="color: #000000;">{</span><br /> LTEXT <span style="color: #ff0000;">"No Tab Stop"</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">9</span>, <span style="color: #000000;">16</span>, <span style="color: #000000;">30</span>, <span style="color: #000000;">24</span><br /> EDITTEXT <span style="color: #000000;">141</span>, <span style="color: #000000;">45</span>, <span style="color: #000000;">14</span>, <span style="color: #000000;">57</span>, <span style="color: #000000;">12</span>, ES_AUTOHSCROLL | NOT WS_TABSTOP | WS_BORDER<br /> EDITTEXT <span style="color: #000000;">142</span>, <span style="color: #000000;">45</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">57</span>, <span style="color: #000000;">12</span>, ES_AUTOHSCROLL | NOT WS_TABSTOP | WS_BORDER<br /> LTEXT <span style="color: #ff0000;">"Tab Stop"</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">9</span>, <span style="color: #000000;">67</span>, <span style="color: #000000;">26</span>, <span style="color: #000000;">24</span><br /> EDITTEXT <span style="color: #000000;">113</span>, <span style="color: #000000;">46</span>, <span style="color: #000000;">71</span>, <span style="color: #000000;">57</span>, <span style="color: #000000;">12</span>, ES_AUTOHSCROLL | WS_BORDER | WS_TABSTOP<br /> CONTROL <span style="color: #ff0000;">"&Ok"</span>, <span style="color: #000000;">111</span>, <span style="color: #ff0000;">"TBtnBmp"</span>, <span style="color: #000000;">32</span> | WS_CHILD | WS_VISIBLE | WS_TABSTOP, <span style="color: #000000;">123</span>, <span style="color: #000000;">110</span>, <span style="color: #000000;">41</span>, <span style="color: #000000;">25</span><br /> CONTROL <span style="color: #ff0000;">"&Cancel"</span>, <span style="color: #000000;">112</span>, <span style="color: #ff0000;">"TBtnBmp"</span>, <span style="color: #000000;">32</span> | WS_CHILD | WS_VISIBLE | WS_TABSTOP, <span style="color: #000000;">169</span>, <span style="color: #000000;">110</span>, <span style="color: #000000;">41</span>, <span style="color: #000000;">25</span><br /> LTEXT <span style="color: #ff0000;">"Get Readonly w rgb"</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">110</span>, <span style="color: #000000;">15</span>, <span style="color: #000000;">79</span>, <span style="color: #000000;">9</span><br /> LTEXT <span style="color: #ff0000;">"Say Readonly Color w/n"</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">110</span>, <span style="color: #000000;">29</span>, <span style="color: #000000;">90</span>, <span style="color: #000000;">9</span><br /> LTEXT <span style="color: #ff0000;">"Get Readonly color n/r"</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">110</span>, <span style="color: #000000;">72</span>, <span style="color: #000000;">90</span>, <span style="color: #000000;">9</span><br /><span style="color: #000000;">}</span><br /> </div>[/code:1gq1znaf] |
Clipper colors with Read only ( follow up ) | Rick,
did You test activating the Checkbox inside the Resource ?
EDITTEXT 113, 46, 71, 57, 12, ES_AUTOHSCROLL | WS_BORDER | WS_TABSTOP
EDITTEXT 113, 46, 71, 57, 12, [color=#FF0000:1o5cgwmg]ES_READONLY [/color:1o5cgwmg]| ES_AUTOHSCROLL | WS_BORDER | WS_TABSTOP
Best Regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
Clipper colors with Read only ( follow up ) | Uwe
All the fields in my example are text .. I was just trying to show if adding 'tab stop' to the field would make any difference in the behavior of the Get ?
Rick Lipkin |
Clipper y sus topicos | Cuestión de imagen.
Esa es la conclusión a la que he llegado despues de tantas entrevistas de trabajo.
¿que es lo que quiero decir?, me explicaré.
Cuando vas a una entrevista y miran mi curriculum, lo leen y luego alzan la vista. Y mirandome a los ojos me dicen con
aire de complicidad... de la viaje escuela ¿he?
A lo que yo respondo, pues que tras veinte años de programación, que remedio nos queda.
Entonces le hablas de tus comienzos, de como programastes en C, en Cobol y finalmente llegastes a Clipper.
Le cuentas las delicias de ese lenguaje, de como ha sobrevivido al salto de MS-DOS a Windows y de lo potente
y estable que es.
Mientras tanto, el te mira con cara de incredulidad y cuando has terminado te dice... ¿pero ese lenguaje aún existe?¿no esta obsoleto?
Entonces y tras esa pausa, sigue leyendo y ve que has programado en RM-COBOL 85. Entonces te dice :
Haaa! COBOL, que buen lenguaje, no hay nada mas duro que el cobol.
La verdad, no le quito razón. Entonces me doy cuenta de que el cobol es mucho mas antiguo que el clipper. De 1960 si mal no recuerdo.
Y sigue leyendo, y entonces te cuenta de como se sigue programando en cobol y de como ha sobrevivido a los cambios y de que existen
productos de terceros que permiten diseñar la parte visual de cobol e incluso generan su codigo. Hasta te habla de librerias para cobol que
amplian sus sentencias DISPLAY y ACEPT para que programes para windows o incluso para linux.
Y yo me quedo pensando. ¿no es justo lo mismo que con clipper? En fin amigos. Cuestión de imagen. O de ignorancia, diria yo. |
Clipper y sus topicos | El lenguaje C es bastante más antiguo que Clipper y nadie ha conseguido desbancarlo aún, se usa para construir todos los sistemas operativos que usamos hoy en dia <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
La antiguedad es una prueba de su calidad y de su robustez. Genialmente diseñados para sobrevivir al paso del tiempo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.