topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
|---|---|
About font. Differences beetween FWH font and Windows font
|
Marco,It depends on how Word is calculating this number. In your example you are using a string of "B" characters to estimate the width of a string consisting of an string of the same number of characters, but not the same characters. You need to know how Word does the calculation to get the same value. You could just try substituting other characters for the "B" in your calculation until you get something close to what Word gives.Actually, are you saying that you can get this value from Word, or that you are just measuring the width of the string that is being printed from Word?Regards,James
|
About font. Differences beetween FWH font and Windows font
|
Hi James,thanks for your reply.This difference is not Word-related but windows-related, if I use WordPad the problem is the same.See this sample image where I put 107 chars in a A4 row.<!-- w --><a class="postlink" href="http://www.softwarexp.co.uk/beta/wordpad.png">www.softwarexp.co.uk/beta/wordpad.png</a><!-- w -->If I require the font size I need to put 107 chars in an A4 row with the self-contained routine I did than I receive 58 as font size instead of 10.
|
About font. Differences beetween FWH font and Windows font
|
Marco,>This difference is not Word-related but windows-related, >if I use WordPad the problem is the same. >See this sample image where I put 107 chars in a A4 row. >www.softwarexp.co.uk/beta/wordpad.png OK, I see you are measuring the length of the 107 characters and they are not all "B"s as you are using in your calculation.>If I require the font size I need to put 107 chars in an A4 row with the self-contained routine I did than I receive 58 as font size instead of 10.First you need to use the same 107 characters that you are using in the picture instead of 107 "B"s. Also your function is returning the font width NOT the font size in points (which is what you are comparing the width value to).Regards,James
|
About oBrw:AddColumn
|
Hi,
I am trying to browse an array but I have syntax problems using the oBrw:AddColumn method because I always receive an array access error.
This is a sample code that show the problem.
Any ideas about the correct syntax ?
aBrwArray:=array(0,2)
aadd(aBrwArray,{"01","First"})
aadd(aBrwArray,{"02","Second"})
@ 1.5,5 COLUMN BROWSE aObjects[6] OF oWnd SIZE 150, 135
aObjects[6]:SetArray(aBrwArray)
aObjects[6]:AddColumn(TCColumn:New("Num",aObjects[6]:aArray[aObjects[6]:nAt,1],,,,,100))
aObjects[6]:AddColumn(TCColumn:New("Title",aObjects[6]:aArray[aObjects[6]:nAt,2],,,,,100))
|
About oBrw:AddColumn
|
First line should be: aBrwArray:={}
|
About oBrw:AddColumn
|
Oops, I made this error writing on the forum.
The problem still remain with aBrwArray:={}
|
About oBrw:AddColumn
|
Change nAt with nArrayAt!?
|
About oBrw:AddColumn
|
nArrayAt is only available on xbrowse and not on the standard FWH browse.
I made this self contained sample that show the problem
<!-- w --><a class="postlink" href="http://www.softwarexp.co.uk/beta/test.zip">www.softwarexp.co.uk/beta/test.zip</a><!-- w -->
I think the error message due to the addcolumn syntax I used
(I translated it from the tccolumn include file)
Any ideas appreciated.
|
About oBrw:AddColumn
|
Marco,
Why don't you just create the columns using commands? I think it'd be easier to read and code. If you still want to do it this way, then why don't you use browse commands but compile with [b:1d238j6d]/p[/b:1d238j6d] switch. By comparing your code and the generated .ppo file you should be able to spot what went wrong. e.g.:
[b:1d238j6d][u:1d238j6d]Prg[/u:1d238j6d][/b:1d238j6d]
[code:1d238j6d] ADD COLUMN TO ::oBrwOrder ARRAY ELM 1 ;
HEADER " No." LEFT ;
SIZE oBFont1:nWidth * 7 ;
PICT "@!K" ;
[/code:1d238j6d]
[b:1d238j6d][u:1d238j6d]Ppo[/u:1d238j6d][/b:1d238j6d]
[code:1d238j6d] ::oBrwOrder:AddColumn( TCColumn():New( If(.F., OemToAnsi(" No."), " No."), {|x| If(Pcount()>0, ::oBrwOrder:aArray[::oBrwOrder:nAt, 1] :=x, ::oBrwOrder:aArray[::oBrwOrder:nAt, 1])}, "@!K",,, Upper("LEFT"), oBFont1:nWidth * 7, .F., .F.,,,, .F. ) )
[/code:1d238j6d]
|
About oBrw:AddColumn
|
Hi Marco:
You have several errors in your posted sample, here you are the corrected code[code:nvyvie0b]//----------------------------------------------------------------------------//
function Child()
local oWndChild, oBrw, oFont
local nI, aTestData
local aObjects[10]
DEFINE WINDOW oWndChild MDICHILD OF oWnd ;
FROM 10, 50 TO 250, 400 PIXEL COLOR "N/W"
aBrwArray:={}
aadd(aBrwArray,{"01","First"})
aadd(aBrwArray,{"02","Second"})
@ 1.5,5 COLUMN BROWSE aObjects[6] OF oWndChild SIZE 150, 135
aObjects[6]:SetArray(aBrwArray)
aObjects[6]:AddColumn(TCColumn():New("Num",{|x| ;
If(Pcount()>0, aObjects[6]:aArray[aObjects[6]:nAt, 1] :=x, aObjects[6]:aArray[aObjects[6]:nAt, 1])},,,,,100))
aObjects[6]:AddColumn(TCColumn():New("Title",{|x| ;
If(Pcount()>0, aObjects[6]:aArray[aObjects[6]:nAt, 2] :=x, aObjects[6]:aArray[aObjects[6]:nAt, 2])},,,,,100))
oWndChild:SetControl( aObjects[6] )
ACTIVATE WINDOW oWndChild
return nil
[/code:nvyvie0b]
Regards
Manuel Mercado
|
About oBrw:AddColumn
|
Hi, Manuel,
it runs fine. Thanks.
The only problem is that I try to assign the columns through a for cicle I receive an array access error message.
My code:
for i:=1 to 2
aObjects[6]:AddColumn(TCColumn():New("Num",{|x| ;
If(Pcount()>0, aObjects[6]:aArray[aObjects[6]:nAt, i] :=x, aObjects[6]:aArray[aObjects[6]:nAt, i])},,,,,100))
next
Do you know any solution ?
|
About oBrw:AddColumn
|
[quote="Marco Turco":v0aqbqps]The only problem is that I try to assign the columns through a for cicle I receive an array access error message.
[/quote:v0aqbqps]
Then, what you need is something like this:[code:v0aqbqps]function Child()
local oWndChild, nI, bData, aObjects[ 10], ;
aTitles := { "Num", "Title" }
DEFINE WINDOW oWndChild MDICHILD OF oWnd ;
FROM 10, 50 TO 250, 400 PIXEL COLOR "N/W"
aBrwArray:={}
aadd(aBrwArray,{"01","First"})
aadd(aBrwArray,{"02","Second"})
@ 1.5,5 COLUMN BROWSE aObjects[6] OF oWndChild SIZE 150, 135
aObjects[6]:SetArray(aBrwArray)
For nI := 1 To Len( aTitles )
bData := BuildBlock( AObjects[ 6 ], nI )
aObjects[6]:AddColumn(TCColumn():New( aTitles[ nI ], bData,,,,, 100 ) )
next
oWndChild:SetControl( aObjects[6] )
ACTIVATE WINDOW oWndChild
return nil
//----------------------------------------------------------------------------//
Static Function BuildBlock( oBrw, n )
Return { |x| If( Pcount() > 0, oBrw:aArray[ oBrw:nAt, n ] := x, oBrw:aArray[ oBrw:nAt, n ] ) }[/code:v0aqbqps]
Regards
Manuel Mercado
|
About oBrw:AddColumn
|
Great !!! Thanks a lot !!
<!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> I never loved the codeblocks..
Could you suggest me what is the correct codeblock code to make also
a column with the progressive number ?
Like the command:
ADD TO oBrw DATA oBrw:nAt()
to explain me better.
|
About oBrw:AddColumn
|
[quote="Marco Turco":3kqhyoco]Could you suggest me what is the correct codeblock code to make also
a column with the progressive number ?
Like the command:
ADD TO oBrw DATA oBrw:nAt()[/quote:3kqhyoco]
Following your same example:
aObjects[6]:AddColumn(TCColumn():New( "", {||aObjects[6]:nAt},,,,, 25 ) )
Regards
Manuel Mercado
|
About oBrw:AddColumn
|
Tried but a Bound Error:Array access appairs.
Any ideas ?
function Child()
local oWndChild, nI, bData, aObjects[ 10], ;
aTitles := { "Num", "Title" }
DEFINE WINDOW oWndChild MDICHILD OF oWnd ;
FROM 10, 50 TO 250, 400 PIXEL COLOR "N/W"
aBrwArray:={}
aadd(aBrwArray,{"01","First"})
aadd(aBrwArray,{"02","Second"})
@ 1.5,5 COLUMN BROWSE aObjects[6] OF oWndChild SIZE 150, 135
aObjects[6]:SetArray(aBrwArray)
** column with progressive number **
Objects[6]:AddColumn(TCColumn():New( "", {||aObjects[6]:nAt},,,,, 25 ) )
For nI := 1 To Len( aTitles )
bData := BuildBlock( AObjects[ 6 ], nI )
aObjects[6]:AddColumn(TCColumn():New( aTitles[ nI ], bData,,,,, 100 ) )
next
oWndChild:SetControl( aObjects[6] )
ACTIVATE WINDOW oWndChild
return nil
|
About oBrw:AddColumn
|
[quote="Marco Turco":ferwd3a8]** column with progressive number **
Objects[6]:AddColumn(TCColumn():New( "", {||aObjects[6]:nAt},,,,, 25 ) )[/quote:ferwd3a8]
Should be:
[color=red:ferwd3a8]aObjects[/color:ferwd3a8][6]:AddColumn(TCColumn():New( "", {||aObjects[6]:nAt},,,,, 25 ) )
Regards
Manuel Mercado
|
About oBrw:AddColumn
|
Yes. You are right.
I need a glasses !!
Many thanks for your support.
|
About oBrw:AddColumn
|
Hi,
I have a small problem with bitmaps in the TcBrowse.
Do you know how can I translate:
ADD TO oBrw BITMAP DATA aArray[oBrw:nAt(),1]
in code ?
|
About oBrw:AddColumn
|
Marco,
>ADD TO oBrw BITMAP DATA aArray[oBrw:nAt(),1]
Try looking at the PPO file.
James
|
About oBrw:AddColumn
|
While we need to write this kind of code for twbrowse or tcbrowse, xbrowse made browing arrays very simple.
The command :
[code:xvzt2scl]
@ 0,0 XBROWSE oBrw OF oWnd ARRAY aData AUTOCOLS
[/code:xvzt2scl]
is all that is needed to browse the entire array.
If we like to browse only selected columns, say 3rd, 2nd and 5th columns only of the array
[code:xvzt2scl]
@ 0,0 XBROWSE oBrw ;
COLUMNS 3, 2, 5 ;
HEADERS "First", "Second", "Third" ;
OF oWnd ;
ARRAY aData
[/code:xvzt2scl]
is enough. Even the array elements can be of any datatype, xbrowse handles the necessary conversions.
If we still want to use the traditional tcbrowse command syntax, that is also possible to add columns ( even to insert the new column ).
If we prefer to continue the old TXBrowse way of using methods and data,
[code:xvzt2scl]
oCol := oBrw:AddCol()
oCol:nArryCol := 5 // this is enough
// Instead of the earlier
// oCol:bStrData := {|| cValToChar( oBrw:aArrayData[ oBrw:nArrayAt ] ) }
// Writing this for eacj column
// or looping through the array to build the blocks taking advantage of detached locals
[/code:xvzt2scl]
No need to code with oBrw:aArrayData oBrw:nArrayAt or oBrw:nAt(), etc. though thiose options are still available if we enjoy writing long pages of code.
In addition we have facilities like autosort, report, export to excel, etc.
Xbrowse command syntax is almost similar to ListBox and TCBrowse syntaxes, so that we write the code the familiar way but in just a fewer lines than what is necessary with earlier xbrowse or its elder brothers wbrowse or tcbrowse.
When I am converting my earlier xbrowse code using the new facilities, multiple pages of code is now fitting into a page or less. Better readability and easy to maintain.
8.03 allows browsing blank recordsets. Wish we can browse blank arrays too in some way.
|
About oBrw:AddColumn
|
Mr. NageswaraRao,
Thank very much you for your work continues work for xBrowser.
In our language exists a proverb:
“A picture says more than a thousand words”.
Therefore I would like to ask you if you would be so kind to post
some samples with the new syntax.
Thanks in advance
Otto
|
About oBrw:AddColumn
|
Solved. Thank you.
I already use the standard tcbrowse at this moment but I am waiting the next FWH stable release to migrate to xBrowse.
Thank to your excellent work NageswaraRao.
|
About oBrw:AddColumn
|
Marco,
The current FWH 8.03 build is totally stable <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
About oBrw:AddColumn
|
<!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Well, I will order you the update on the next days
|
About tdatabase
|
Hi,
I work with native tdatabase fivewin, i want to put all value fields from on record in another like this:
oArqCli:GoTop()
Do While ! oArqCli:Eof()
oArqCli:Load()
oCliCli:Blank()
oCliCli:(All fields) := oArqCli:(All fields) <------------------- how?
oCliCli:Append()
oCliCli:Save()
oCliCli:Commit()
oArqCli:Skip(+1)
loop
Enddo
Thanks.
|
About tdatabase
|
Wanderson,
Note that all the field data is stored in a buffer array in database objects. Also, of course, both files must have exactly the same structure. Below is an example of how to copy all the field data.
It depends on the situation, but you may want to only do one commit after the ENDDO instead of one after each record save. This would be much faster, but maybe not as safe in a multi-user environment. However, if you are only copying a few records this would only take a few seconds so there isn't much risk.
James
[code=fw:qxohynb9]<div class="fw" id="{CB}" style="font-family: monospace;">oArqCli:<span style="color: #000000;">GoTop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">Do</span> <span style="color: #00C800;">While</span> ! oArqCli:<span style="color: #000000;">Eof</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oArqCli:<span style="color: #000000;">Load</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCliCli:<span style="color: #000000;">Blank</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">//oCliCli:(All fields) := oArqCli:(All fields) <------------------- how?</span><br /><br /> copyAll<span style="color: #000000;">(</span>oArqCli, oCliCli<span style="color: #000000;">)</span><br /><br /> oCliCli:<span style="color: #000000;">Append</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCliCli:<span style="color: #000000;">Save</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCliCli:<span style="color: #000000;">Commit</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oArqCli:<span style="color: #000000;">Skip</span><span style="color: #000000;">(</span><span style="color: #000000;">+1</span><span style="color: #000000;">)</span><br /> loop<br /><span style="color: #00C800;">Enddo</span><br /><br /><br /><span style="color: #00C800;">function</span> copyAll<span style="color: #000000;">(</span> oDB1, oDB2 <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> i:=<span style="color: #000000;">1</span><br /> <span style="color: #00C800;">for</span> i <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">(</span>oDB1:<span style="color: #000000;">aBuffer</span><span style="color: #000000;">)</span><br /> oDB2:<span style="color: #000000;">aBuffer</span><span style="color: #000000;">[</span>i<span style="color: #000000;">]</span>:= oDB1:<span style="color: #000000;">aBuffer</span><span style="color: #000000;">[</span>i<span style="color: #000000;">]</span><br /> <span style="color: #00C800;">next</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:qxohynb9]
|
About tdatabase
|
You can also use this code:
[code=fw:uyd8eb77]<div class="fw" id="{CB}" style="font-family: monospace;"> <br /> oArqCli:<span style="color: #000000;">lBuffer</span> := .t. <span style="color: #B900B9;">// This is default</span><br /> oArqCli:<span style="color: #000000;">GoTop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> ! oArqCli:<span style="color: #000000;">Eof</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCliCli:<span style="color: #000000;">Append</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ACOPY<span style="color: #000000;">(</span> oArqCli:<span style="color: #000000;">aBuffer</span>, oCliCli:<span style="color: #000000;">aBuffer</span> <span style="color: #000000;">)</span><br /> oCliCli:<span style="color: #000000;">Save</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oArqCli:<span style="color: #000000;">Skip</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">enddo</span><br /> oCliCli:<span style="color: #000000;">Close</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> </div>[/code:uyd8eb77]
|
About tdatabase
|
Yes, acopy() would be faster. If you set oArqCli:lBuffer I also suggest saving and restoring its state so as to prevent any possible problems elsewhere.
James
[code=fw:2bvdrp1m]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">Local</span> lBuffer<br /> ...<br /> lBuffer:= oArqCli:<span style="color: #000000;">lBuffer</span><br /> oArqCli:<span style="color: #000000;">lBuffer</span> := .t. <span style="color: #B900B9;">// this is default</span><br /> oArqCli:<span style="color: #000000;">GoTop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> ! oArqCli:<span style="color: #000000;">Eof</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCliCli:<span style="color: #000000;">Append</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ACOPY<span style="color: #000000;">(</span> oArqCli:<span style="color: #000000;">aBuffer</span>, oCliCli:<span style="color: #000000;">aBuffer</span> <span style="color: #000000;">)</span><br /> oCliCli:<span style="color: #000000;">Save</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oArqCli:<span style="color: #000000;">Skip</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">enddo</span><br /> oCliCli:<span style="color: #000000;">Close</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oArqCli:<span style="color: #000000;">lBuffer</span>:= lBuffer </div>[/code:2bvdrp1m]
|
About tdatabase
|
For TDatabase, lBuffer is .t. by default.
|
About tdatabase
|
Rao,
[quote:29twrz70]For TDatabase, lBuffer is .t. by default.[/quote:29twrz70]
Yes, I understand that. But if you change something like that it is wise to save and restore it's state. It is wise to do as you suggested, set it to true at the start of the routine because you can't depend on it being true already.
As I expect you already know, encapsulation is one of the key principles of OOP. So whenever, you change the state of something you should also restore it. I have found this to be a very useful principle to follow. I can't imagine how many problems I have prevented by using this simple technique.
Regards,
James
|
About tdatapick Class
|
Is it possible to have the controll tdatapick always displayed on the dialog ? (that is the calendar always visible )
Regards Maurizio
|
About tdatapick Class
|
[quote="Maurizio":hcwgmega]Is it possible to have the controll tdatapick always displayed on the dialog ? (that is the calendar always visible )
Regards Maurizio[/quote:hcwgmega]
mmmmmmm i dont know, but you can use TCalendar instead.
Contact me by email if you dont have it.
Regards
|
About tdatapick Class
|
Maurizio, can you give me another email adress???
i'm getting this message:
**********************************************
** THIS IS A WARNING MESSAGE ONLY **
** YOU DO NOT NEED TO RESEND YOUR MESSAGE **
**********************************************
The original message was received at Thu, 16 Feb 2006 19:00:11 -0600
from dsl-200-67-175-250.prod-empresarial.com.mx [200.67.175.250]
----- Transcript of session follows -----
451 4.4.1 reply: read error from mail.nipeservice.com.
<maurizio@nipeservice.com>... Deferred
Warning: message still undelivered after 4 hours
Will keep trying until message is 5 days old
Reporting-MTA: dns; esmhost.com
Arrival-Date: Thu, 16 Feb 2006 19:00:11 -0600
Final-Recipient: RFC822; <!-- e --><a href="mailto:maurizio@nipeservice.com">maurizio@nipeservice.com</a><!-- e -->
Action: delayed
Status: 4.4.2
Remote-MTA: DNS; mail.nipeservice.com
Diagnostic-Code: SMTP; 451 4.4.1 reply: read error from mail.nipeservice.com.
Last-Attempt-Date: Thu, 16 Feb 2006 23:08:05 -0600
Will-Retry-Until: Tue, 21 Feb 2006 19:00:11 -060
|
About tscanner and multipage scanner
|
Hi,How I can use tscanner with multi file scanner like hpscanjet 8460 ?I´m using EZTWAIN 2.70 from dosadi but I can get only one page at atime, but HP8460 can digitalize 10 pages at a time.Thanks for any information and best regards,Toninho.
|
About tscanner and multipage scanner
|
Hi,Maybe TwainControlX from <!-- m --><a class="postlink" href="http://www.ciansoft.com/">http://www.ciansoft.com/</a><!-- m --> can do the job.They have a fully functional trial version.Regards,George
|
About tscanner and multipage scanner
|
Hi,Dosadi supports the multipage acquiring without problem. You only need to update the Dosadi dll and use the TW_AcquireMultiPageFile method of Rafa Carmona's class.Obviusly you have to use a multipage format like PDF or TIFF.
|
About tscanner and multipage scanner
|
[quote="Marco Turco":1mepfvpx]Hi,
Dosadi supports the multipage acquiring without problem.
You only need to update the Dosadi dll and use the TW_AcquireMultiPageFile method of Rafa Carmona's class.
Obviusly you have to use a multipage format like PDF or TIFF.[/quote:1mepfvpx]Hi Marco, thanks.My dosadi dll was too old. Now I update it.Regards,Toninho.
|
About tscanner and multipage scanner
|
[quote="George":1mqpoj4x]Hi,
Maybe TwainControlX from <!-- m --><a class="postlink" href="http://www.ciansoft.com/">http://www.ciansoft.com/</a><!-- m --> can do the job.
They have a fully functional trial version.
Regards,
George[/quote:1mqpoj4x]Hi George,This weekend I have time and I tested TwainControlX. It is really nice, I'm thinking move from dosadi to it,Thanks a lot and best regards,Toninho.
|
About tscanner and multipage scanner
|
HiI may have a need for multi page scanning extending the customers current application.Toninhofwi and George can I ask for the code you used please.ThanksJonathan Hodder
|
About tscanner and multipage scanner
|
Jonathan,I am not using the Multi-pages scanning features, but the manual explain how to use it. It seems that Harbour does not support the licensing mechanism of ActiveX controls therefore when ordering TwainControlX send an email to Technical Support (Ian Chester the developer) indicating that your are using Harbour language.He will send you the TwainControlX which uses a password, set in code, instead of the normal licensing system. That way you don't need the .lic file, you just add a line of code for the password, compile your application, and it will work fine, allowing you install your application along with the registered OCX in your customer's computer.Regards,George
|
About tscanner and multipage scanner
|
GeorgeOK ThanksJonathan
|
About tscanner and multipage scanner
|
[quote="toninhofwi":i02v519a]Hi,
How I can use tscanner with multi file scanner like hp
scanjet 8460 ?
I´m using EZTWAIN 2.70 from dosadi but I can get only one page at a
time, but HP8460 can digitalize 10 pages at a time.
Thanks for any information and best regards,
Toninho.[/quote:i02v519a] <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> Ja resolvi istotive que alterar a classe tscan32.Baixe aqui: <!-- m --><a class="postlink" href="http://rapidshare.com/files/164602347/TSCAN.rar.html">http://rapidshare.com/files/164602347/TSCAN.rar.html</a><!-- m -->Para testaroScan := TScan32():New( "" )IF oScan:State() < 4 MSGINFO("Não foi possivel estabelecer a conexão com o scanner. "+CRLF+; "Verifique se o scanner esta ligado e plugado neste computador.",; "Procedimento Abortado...") oScan:End() RETURN .F.ENDIFoScan:PixelType( 1 )oScan:SetRes( 150 ) // Resolucion 150 by Default.oScan:SetHide( .T. )oScan:SetMultiTransfer(1) // escolha 1 para scanear varias paginasoScan:EnableDuplex(1)oScan:SetFileFormat(4) ///4oScan:SetJpegQuality(80) /// 75 defaultDO WHILE .T. nSeqImg++ cImagem:=DIR_TEMP()+"_IMG_"+LIMPO(nSeqImg,.f.)+".JPG" AADD(aFilesScan,cImagem) nDib:=(oScan:AcquireToFile(cImagem)) IF nDib < 0 EXIT ENDIF syswait(.5) oScan:FreeDib() syswait(.3)ENDDOoScan:End()
|
About tscanner and multipage scanner
|
Hi GiovanyUsando eztw32.dll puede ser el más fácil.Gracias Giovany.Lo intentaré.Jonathan
|
About very useful path functions (for information)
|
Hi
Look at the reference
<!-- m --><a class="postlink" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/shlwapi/path/path.asp">http://msdn.microsoft.com/library/defau ... h/path.asp</a><!-- m -->
There are very interesting and useful functions. I think they should be realised in FiveWin.
As an example you can write and run the following C++ code (I used BCB 5.0 )
#include <windows.h>
#include <iostream.h>
#include <Shlwapi.h>
#include <conio.h>
#pragma hdrstop
//---------------------------------------------------------------------------
#pragma argsused
int main(int argc, char* argv[])
{
using namespace std;
// Path_1 destination buffer.
char buffer_1[MAX_PATH] = "JustABufferToHoldTheCanonicalizedPathForAnExample";
char *lpStr1;
lpStr1 = buffer_1;
// Path_2 to be Canonicalized.
char buffer_2[ ] = "A:\\name_1\\.\\name_2\\..\\name_3";
char *lpStr2;
lpStr2 = buffer_2;
// Path_3 to be Canonicalized.
char buffer_3[ ] = "A:\\name_1\\..\\name_2\\.\\name_3";
char *lpStr3;
lpStr3 = buffer_3;
// Path_4 to be Canonicalized.
char buffer_4[ ] = "A:\\name_1\\name_2\\.\\name_3\\..\\name_4";
char *lpStr4;
lpStr4 = buffer_4;
// Path_5 to be Canonicalized.
char buffer_5[ ] = "A:\\name_1\\.\\name_2\\.\\name_3\\..\\name_4\\..";
char *lpStr5;
lpStr5 = buffer_5;
// Path_6 to be Canonicalized.
char buffer_6[ ] = "C:\\..";
char *lpStr6;
lpStr6 = buffer_6;
cout << "The un-canonicalized path 2 is : " << lpStr2
<< "\nThe return value is : "
<< PathCanonicalize(lpStr1,lpStr2)
<< "\nThe canonicalized path 1 is : " << lpStr1 << endl;
cout << "\nThe un-canonicalized path 3 is : " << lpStr3
<< "\nThe return value is : "
<< PathCanonicalize(lpStr1,lpStr3)
<< "\nThe canonicalized path 1 is : " << lpStr1 << endl;
cout << "\nThe un-canonicalized path 4 is : " << lpStr4
<< "\nThe return value is : "
<< PathCanonicalize(lpStr1,lpStr4)
<< "\nThe canonicalized path 1 is : " << lpStr1 << endl;
cout << "\nThe un-canonicalized path 5 is : " << lpStr5
<< "\nThe return value is : "
<< PathCanonicalize(lpStr1,lpStr5)
<< "\nThe canonicalized path 1 is : " << lpStr1 << endl;
cout << "\nThe un-canonicalized path 6 is : " << lpStr6
<< "\nThe return value is : "
<< PathCanonicalize(lpStr1,lpStr6)
<< "\nThe canonicalized path 1 is : " << lpStr1 << endl;
cout << "\nPress any key to exit...";
getch();
return EXIT_SUCCESS;
}
Vladimir Grigoriev
|
About very useful path functions (for information)
|
Vlamidir,
This is the msdn entry:
<!-- m --><a class="postlink" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/shlwapi/path/pathcanonicalize.asp">http://msdn.microsoft.com/library/defau ... calize.asp</a><!-- m -->
Its not difficult to be implemented
|
About very useful path functions (for information)
|
Here you have it working for FWH and Harbour/xharbour:
(its required to link echo lib\psdk\shlwapi.lib)
[code:m0rul416]
#include "Fivewin.ch"
function Main()
local oDlg, cResult
DEFINE DIALOG oDlg
@ 2, 2 BUTTON "Test" ;
ACTION ( PathCanonicalize( "A:\\name_1\\.\\name_2\\..\\name_3", @cResult ),;
MsgInfo( cResult ) )
ACTIVATE DIALOG oDlg ;
CENTER
return nil
#pragma BEGINDUMP
#include <windows.h>
#include <Shlwapi.h>
#include <hbapi.h>
HB_FUNC( PATHCANONICALIZE ) // cInString, @cOutString --> lOk
{
char * buffer[ MAX_PATH ];
hb_retl( PathCanonicalize( buffer, hb_parc( 1 ) ) );
hb_storc( buffer, 2 );
}
#pragma ENDDUMP
[/code:m0rul416]
|
About windows xp manifest file
|
Hi all,
Do we already need to link it ?
I checked that using the manifest file there are some problems using transparent images.
|
About windows xp manifest file
|
Marco,
You need it if you want XP themed look
|
About windows xp manifest file
|
Ok, but there is a problem using the transparent clause in a mdi context. The transparent doesn't runs.
This is a self-contained that show the problem linking the manifest file.
Executable, bitmap and code at <!-- w --><a class="postlink" href="http://www.softwarexp.co.uk/beta/antonio.zip">www.softwarexp.co.uk/beta/antonio.zip</a><!-- w -->
Any ideas ? Thanks in advance.
#include "fivewin.ch"
static ownd
static oImage
Function main()
DEFINE WINDOW oWnd TITLE "TTitle Class Test" MDI
@ 20, 5 IMAGE oImage FILE "SM_1.BMP" OF oWnd:oWndClient noborder pixel
oImage:lTransparent:=.t.
activate window oWnd maximized
return nil
|
About windows xp manifest file
|
Hello Marco
I'm not sure with this change, i didn't test all combinations
Open \source\Bitmap.prg
find and replace (end of file):
[code=fw:mk4c0uj4]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//#ifdef __CLIPPER__</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> IsAppThemed<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ; <span style="color: #00C800;">return</span> .f.<br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> DrawPBack<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//#endif</span></div>[/code:mk4c0uj4]
|
About windows xp manifest file
|
Hi Marco/Daniel:
[quote="Daniel Garcia-Gil":3jg8uumf]I'm not sure with this change, i didn't test all combinations[/quote:3jg8uumf]
Without a deep analisys (don't know what DrawPBack function does), I think that can be resolved by changing the next lines in TBitmap Paint method to be as shown:[code=fw:3jg8uumf]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">if</span> IsAppThemed<span style="color: #000000;">(</span><span style="color: #000000;">)</span> .and. Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBitmap</span> <span style="color: #000000;">)</span> .and. ! ::<span style="color: #000000;">lTransparent</span><br /> DrawPBack<span style="color: #000000;">(</span> ::<span style="color: #000000;">hWnd</span>, ::<span style="color: #000000;">hDC</span> <span style="color: #000000;">)</span><br /> elseIf ! Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBitMap</span> <span style="color: #000000;">)</span><br /> #ifdef __CLIPPER__<br /> SetBrushOrgEx<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">8</span> - ::<span style="color: #000000;">nLeft</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> % <span style="color: #000000;">8</span>, <span style="color: #000000;">8</span> - ::<span style="color: #000000;">nTop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> % <span style="color: #000000;">8</span> <span style="color: #000000;">)</span><br /> #else<br /> SetBrushOrgEx<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, nBmpWidth<span style="color: #000000;">(</span> ::<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBitmap</span> <span style="color: #000000;">)</span> - ::<span style="color: #000000;">nLeft</span>, nBmpHeight<span style="color: #000000;">(</span> ::<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBitmap</span> <span style="color: #000000;">)</span> - ::<span style="color: #000000;">nTop</span> <span style="color: #000000;">)</span><br /> #endif<br /> FillRect<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, GetClientRect<span style="color: #000000;">(</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span>, ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBrush</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> </div>[/code:3jg8uumf]
Best regards.
Manuel Mercado.
|
About windows xp manifest file
|
Hi all,
thank your your reply.
Daniel,
your solution is the same as removing the manifest file, the themes doesn't runs anymore in the app.
Manuel,
I tried your solution also but now the problem appairs on all bitmaps where I use the transparent clause.
See <!-- m --><a class="postlink" href="http://www.softwarexp.co.uk/beta/image.png">http://www.softwarexp.co.uk/beta/image.png</a><!-- m -->
Any ideas ?
|
About windows xp manifest file
|
Hello Marco...
[quote="Marco Turco":358dk72w]Daniel,
your solution is the same as removing the manifest file, the themes doesn't runs anymore in the app.[/quote:358dk72w]
Are you sure???
do you write "STATIC" before Function??
[code=fw:358dk72w]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//#ifdef __CLIPPER__</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> IsAppThemed<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ; <span style="color: #00C800;">return</span> .f. <span style="color: #B900B9;">// <== static</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> DrawPBack<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <span style="color: #B900B9;">//<== static</span><br /><br /><span style="color: #B900B9;">//#endif</span><br /> </div>[/code:358dk72w]
|
About windows xp manifest file
|
Hi Marco:
[quote="Marco Turco":2y8fx2am]Manuel,
I tried your solution also but now the problem appairs on all bitmaps where I use the transparent clause.[/quote:2y8fx2am]
You're right, try this way:[code=fw:2y8fx2am]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">if</span> IsAppThemed<span style="color: #000000;">(</span><span style="color: #000000;">)</span> .and. Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBitmap</span> <span style="color: #000000;">)</span> .and. ! ::<span style="color: #000000;">lTransparent</span><br /> DrawPBack<span style="color: #000000;">(</span> ::<span style="color: #000000;">hWnd</span>, ::<span style="color: #000000;">hDC</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> #ifdef __CLIPPER__<br /> SetBrushOrgEx<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">8</span> - ::<span style="color: #000000;">nLeft</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> % <span style="color: #000000;">8</span>, <span style="color: #000000;">8</span> - ::<span style="color: #000000;">nTop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> % <span style="color: #000000;">8</span> <span style="color: #000000;">)</span><br /> #else<br /> SetBrushOrgEx<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, nBmpWidth<span style="color: #000000;">(</span> ::<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBitmap</span> <span style="color: #000000;">)</span> - ::<span style="color: #000000;">nLeft</span>, nBmpHeight<span style="color: #000000;">(</span> ::<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBitmap</span> <span style="color: #000000;">)</span> - ::<span style="color: #000000;">nTop</span> <span style="color: #000000;">)</span><br /> #endif<br /> FillRect<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, GetClientRect<span style="color: #000000;">(</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span>, ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBrush</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> </div>[/code:2y8fx2am]
Regards.
Manuel Mercado.
|
About windows xp manifest file
|
Hi Manuel,
it runs fine. Thank you very much.
|
About windows xp manifest file
|
Hi Daniel,
I haven't tested it
but as I can see with your turn-around the class tbitmap doesn't know anymore if a theme is running (isapptheme always return .f.)
so any image is painted without theme style.
[quote="Daniel Garcia-Gil":37ga4tnp]Hello Marco...
[quote="Marco Turco":37ga4tnp]Daniel,
your solution is the same as removing the manifest file, the themes doesn't runs anymore in the app.[/quote:37ga4tnp]
Are you sure???
do you write "STATIC" before Function??
[code=fw:37ga4tnp]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//#ifdef __CLIPPER__</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> IsAppThemed<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ; <span style="color: #00C800;">return</span> .f. <span style="color: #B900B9;">// <== static</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> DrawPBack<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <span style="color: #B900B9;">//<== static</span><br /><br /><span style="color: #B900B9;">//#endif</span><br /> </div>[/code:37ga4tnp][/quote:37ga4tnp]
|
About windows xp manifest file
|
Hello Marco...
my change work fine (for now)
please test it...
see and download
<!-- m --><a class="postlink" href="http://www.sitasoft.com/fivewin/test/thembmp.zip">http://www.sitasoft.com/fivewin/test/thembmp.zip</a><!-- m -->
[img:4vu4uqcq]http://www.sitasoft.com/fivewin/screen/thembmp.png[/img:4vu4uqcq]
|
About windows xp manifest file
|
Sorry Daniel, you are right.
However with your turn-around and also with the Manual solution there are problems using bitmap on folder because they are now not transparent.
See <!-- w --><a class="postlink" href="http://www.softwarexp.co.uk/beta/test.png">www.softwarexp.co.uk/beta/test.png</a><!-- w -->
Any ideas ?
|
About windows xp manifest file
|
Hello Marco..
[quote="Marco Turco":2rs63edt]However with your turn-around and also with the Manual solution there are problems using bitmap on folder because they are now not transparent.[/quote:2rs63edt]
is was for my solution <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
but maybe work with a WHITE brush
Local oBrush := TBrush():New( , CLR_WHITE )
...
oFolder:aDialogs[ x ]:SetBrush( oBrush )
|
About windows xp manifest file
|
Hi Daniel,
thank for your reply.
It is a bit difficult for me to make the change you proposed me due to the fact that I have a lot o folder in my app.
Do you know if there is a way to change the background of this image I display on the MDI in order to act only on this image that give me problems ?
You already solved my problem about the rbbuttons background usinga a rbbtn:hback:createsolidbrush,
is there something similar for tbitmap class ?
Thanks in advance.
|
About xBrowse
|
Salve,
sto facendo alcune prove con xBrowse e mi sembra decisamente valido,
ho però il problema che avendo un array tipo:
aArray:=array(0,3)
aadd(aArray,{"01,"Pippo","03"})
aadd(aArray,{"02","Pluto",04"})
anche se richiedo la visualizzazione dei soli primi 2 elementi, mi viene riportato anche il terzo. Come faccio a dirgli di riportare solo i primi 2 elementi senza quelli successivi ?
Marco
|
About xBrowse
|
Hi,
I have a small problem with the xbrowse class managing arrays.
With an array like this:
aArray:=array(0,3)
aadd(aArray,{"01,"Pippo","03"})
aadd(aArray,{"02","Pluto",04"})
I need to display only the First and Second element so I defined only two header:
oBrw:aCols[1]:cHeader:="Number"
oBrw:aCols[2]:cHeader:="Name"
The problem is that the browse also report the thirth element ("03","04") on the right that I have not defined as header.
Is there any way to hidden the thirth element ?
Thanks in advance
Best Regards,
Marco Turco
|
About xBrowse
|
Ok.
Solved with oBrw:nFreeze:=2
Regards,
Marco
|
About xbrowse paint
|
Which version of FWH are you using?
|
About xbrowse paint
|
Hi, someone knows why my xbrowse display a black square in top left?
[img:39gar6e6]http://img849.imageshack.us/img849/7373/ne6e.jpg[/img:39gar6e6]
Thanks.
|
About xbrowse paint
|
[quote="nageswaragunupudi":284ge7wv]Which version of FWH are you using?[/quote:284ge7wv]
fwh1105
thanks
|
About xbrowse-cellborders and boxdrawings
|
Hello,
here is tool I created to draw xbrowse-cellborders and any kind of boxes.
All results are directly visible
The download-link
<!-- m --><a class="postlink" href="http://www.service-fivewin.de/DOWNLOADS/Borders.zip">http://www.service-fivewin.de/DOWNLOADS/Borders.zip</a><!-- m -->
more ideas are welcome <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
Don't forget to look at the < go.bat > and < sample.rmk > file to compile a new sample <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: -->
Maybe You find a error <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> just let me know
The source-result is splitted to folderpage 3 - 6
All together = sample.prg
Only folderpage 3 can be updated on buttonaction the rest will not change
The main-folderpage to show the result of var-defines at runtime
( a new calculation of the glow-effect is added, Now it looks much better )
[img:359bnazm]http://www.service-fivewin.de/IMAGES/Bord1.jpg[/img:359bnazm]
the vardefines to paint xbrowse-cellborders and background-selection with testing the 3 styles
Each cell of < customer.dbf > can have his own borderstyle like
bordercolor, pensize, textcolor, line or glow, a border inside, outside or line of cell
For colorselection You can use a new created cell-colorpicker
[img:359bnazm]http://www.service-fivewin.de/IMAGES/Bord2.jpg[/img:359bnazm]
The start-section with generated vars of < sample.prg >
3 clipboard-buttons are included to copy a section or the complete sample.prg
Very urgent the button < [color=#0000FF:359bnazm]Refresh source [/color:359bnazm]> to update the arrays and vars
after You are finished with the design before loading the sample to clipboard <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: --> <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: --> <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: -->
[img:359bnazm]http://www.service-fivewin.de/IMAGES/Bord3.jpg[/img:359bnazm]
The source of the main-dialog with the browser
[img:359bnazm]http://www.service-fivewin.de/IMAGES/Bord4.jpg[/img:359bnazm]
The box-function and designer of Sample.prg with some boxtests
1. connected to objects and 2. painted on free position
[img:359bnazm]http://www.service-fivewin.de/IMAGES/Bord5.jpg[/img:359bnazm]
Folderpage 6 includes the box-designer and source for sample.prg
There are 2 functions included
One function is connected to a object and the second function is used for free positions
To view the result of changed values You cam move to folderpage 1 or 2
[img:359bnazm]http://www.service-fivewin.de/IMAGES/Bord6.jpg[/img:359bnazm]
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
About xbrowse-cellborders and boxdrawings
|
I added some more options
now it is possible to select a brush and a logo on top
the logo can be tested with a transparent-level
[img:g04hyfz7]http://www.service-fivewin.de/IMAGES/Brd1.jpg[/img:g04hyfz7]
the normal image-selection is used as logo
This will work in case background-mode 3 ( brush ) is selected <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: -->
[img:g04hyfz7]http://www.service-fivewin.de/IMAGES/Brd2.jpg[/img:g04hyfz7]
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
Abpaint
|
If Iuse Abpaint to draw a bitmap
ABPaint( ::hDC, y, x, v[1], 255)
the bitmap wich color must have on the background ?
I ask this because the bitmap is not transparent ( also with manifest) and I not understood why
[img:2xcxfenj]https://s17.postimg.org/bg9oejh73/image.png[/img:2xcxfenj]
|
Abpaint
|
Normal,
[code=fw:373omktd]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// AlphaBlending transparencies support in FiveWin! \SAMPLES\TESTAB.PRG</span><br /><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> oWnd, oBmp, oBrush<br /><br /> <span style="color: #0000ff;">DEFINE</span> BITMAP oBmp FILENAME <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\A</span>lphaBmp<span style="color: #000000;">\T</span>rash.bmp"</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush FILENAME <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\b</span>ackgrnd<span style="color: #000000;">\p</span>aper2.bmp"</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"FWH 17.01 Transparencies"</span> ;<br /> <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"N/W"</span> <span style="color: #0000ff;">BRUSH</span> oBrush<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> ABPaint<span style="color: #000000;">(</span> hDC, <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span>, oBmp:<span style="color: #000000;">hBitmap</span>, <span style="color: #000000;">220</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// 0-255 transparency level</span><br /><br /> oBrush:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oBmp:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:373omktd]
|
Abriendo ficheros
|
Es posible tener la aplicacion instalada en Archivosd de Programa y las dbf en Mis documentos del PPC ?
COmo tendria que poner el camino para poder abrir esos ficheros ?
Un saludo
Juan Jose
|
Abriendo ficheros
|
"\My Documents\Mi.dbf"
|
Abriendo ficheros
|
[code:3bq5bhs4] SET( _SET_DEFAULT, '\My Documents\')[/code:3bq5bhs4]
|
Abriendo ficheros
|
Antonio, me refiero a que los ficheros se encuentran en Mis Documentos del ppc.
Saludos
Juan Jose
|
Abriendo ficheros
|
Vale, gracias
Un saludo
|
Abrir .MSG de Outlook
|
Estimados
Como puedo abrir correos guardados como archivos .MSG
He intentado asi
[code=fw:3ib3se4y]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> ShellExecute<span style="color: #000000;">(</span>,<span style="color: #ff0000;">"Open"</span>,<span style="color: #ff0000;">"Outlook"</span>,,<span style="color: #ff0000;">"D:<span style="color: #000000;">\S</span>istemas<span style="color: #000000;">\A</span>crSoft<span style="color: #000000;">\c</span>orreo.msg"</span>,<span style="color: #000000;">3</span><span style="color: #000000;">)</span> <br /> </div>[/code:3ib3se4y]
Abre el Outlook pero NO el correo
Gracias por la ayuda
|
Abrir .MSG de Outlook
|
Prueba,
ShellExecute(, "open", "D:\Sistemas\AcrSoft\correo.msg","D:\Sistemas\AcrSoft", "", 1 )
En mi sistema, funciona bien
|
Abrir .MSG de Outlook
|
Gracias Fernando.
Funciona perfecto.
|
Abrir Archivos PDF VER 9.03
|
Hola amigos no se como abrir un archivo PDF en la version 9.03
#include "FiveWin.ch"
local oWnda, oActiveX
DEFINE WINDOW oWnda title "Contratos La Quinta" mdichild
oActiveX = TActiveX():New( oWnda, "AcroPDF.PDF.1" )
oWnda:oClient = oActiveX
oActiveX:Do("LoadFile","\\servidor\planilla\contratos\100101.pdf" )
oActiveX:Do("SetCurrentPage", 1 )
ACTIVATE WINDOW oWnda maximized
en la version 7.5 abre perfectamente.
Gracias por la ayuda.
|
Abrir Archivos PDF VER 9.03
|
Hola Dioni:
[quote="Dioni":6k6bulme]Hola amigos no se como abrir un archivo PDF en la version 9.03[/quote:6k6bulme]
El siguiente ejemplo (el tuyo con pequeños cambios) funciona perfectamente con FWH 9.03
[code=fw:6k6bulme]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oWnda, oActiveX<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnda <span style="color: #0000ff;">title</span> <span style="color: #ff0000;">"Contratos La Quinta"</span> <span style="color: #B900B9;">// mdichild ...no puede ser mdichild sin petenecer a una ventana mdi</span><br /> oActiveX = TActiveX<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oWnda, <span style="color: #ff0000;">"AcroPDF.PDF.1"</span> <span style="color: #000000;">)</span><br /> oWnda:<span style="color: #000000;">oClient</span> = oActiveX<br /> oActiveX&#<span style="color: #000000;">058</span>;Do<span style="color: #000000;">(</span><span style="color: #ff0000;">"LoadFile"</span>,<span style="color: #ff0000;">"Test.pdf"</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// \\servidor\planilla\contratos\100101.pdf"</span><br /> oActiveX&#<span style="color: #000000;">058</span>;Do<span style="color: #000000;">(</span><span style="color: #ff0000;">"SetCurrentPage"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnda <span style="color: #0000ff;">maximized</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:6k6bulme]
Un abrazo.
|
Abrir Archivos PDF VER 9.03
|
Hola
Alguna sugerencia como hacerlo con [b:2lwbtvrn]FoxIt Reader[/b:2lwbtvrn] y active X
|
Abrir Archivos PDF VER 9.03
|
Ya sé que no es exactamente lo que se pregunta, pero por si acaso te es útil, yo hace tiempo que no utilizo activeX para abrir ficheros pdf,
me pasé a ShellExecute( ,"open", cFicheroPdf,,,1 )
y desde entonces no tengo problemas.
|
Abrir Arquivos (*.TIF *.BMP e *.JPG) com TActiveX
|
Olá...
É possível abrir esses arquivos com a Classe TActiveX ?
Saludos
|
Abrir Arquivos (*.TIF *.BMP e *.JPG) com TActiveX
|
Hola.
¿Por qué no usas Freeimage?
Revisa Testimg.prg en los ejemplos de FWH
|
Abrir Arquivos (*.TIF *.BMP e *.JPG) com TActiveX
|
Olá FLeal...
Obrigado pela resposta...
Já havia usado o Freeimage, porém na verdade, gostaria de abrir qualquer tipo de Imagem (BMP,JPG,TIF,GIF), usando os recursos do "image.preview" do Windows, através da Classe TActiveX.
Seguindo os exemplos abaixo :
WORD => oActiveX = TActiveX():New( oWnd, "Word.Application.8" )
ACROBAT => oActiveX = TActiveX():New( oWndPdf, "PDF.PdfCtrl.6" )
EXCEL => oActiveX = TActiveX():New( oWnd, "OWC10.Spreadsheet" )
FLASH => oActiveX = TActiveX():New( oWnd, "ShockwaveFlash.ShockwaveFlash.1" )
ficou facil de usar esses recursos, porém não encontrei nada em relação as imagens acima.
Encontrei os parametros "WangImage.Document" que abre o image preview, só que estão faltando alguns parâmetros e não estou sabendo usa-los.
Gracias
|
Abrir Arquivos (*.TIF *.BMP e *.JPG) com TActiveX
|
Olá...
Seria esse o Imaging Preview que gostaria de usar com a TActiveX.
Só não sei se será possível...
[img:10wlk44g]http://br.geocities.com/valdirbrd/img001.jpg[/img:10wlk44g]
Saludos
|
Abrir Arquivos (*.TIF *.BMP e *.JPG) com TActiveX
|
Saludos Cordiales Colegas!!!
Bueno realmente por lo que mas o menos te entiendo creo que te refieres a algo como esto!!
[code:31j59rzx]
#INCLUDE "FIVEWIN.CH"
PROCE MAIN()
LOCAL oDlg,oAdj,cAdj:=SPACE(30)
DEFINE DIALOG oDlg TITLE "Abrir Imagen"
@ 1,1 SAY "Ubicación del Archivo :"
@ 2,1 BMPGET oAdj VAR cAdj NAME "BITMAPS\IMPORTAR.BMP";
ACTION (cFile:=cGetFile32("Todos los Archivos de Imagen (*.*) |*.*|Mapa de Bits (*.BMP) |*.bmp|;
JPGE (*.JPG,*.JPGE,*.JPE,*.JFIF)|*.JPG;*.JPGE;*.JPE;*.JFIF|GIF (*.GIF)|*.gif|PNG (*.PNG)|*.png",;
" Seleccionar Archivo para Abrir",1,cFilePath(cAdj),.f.,.t.),;
cAdj:=IIF(!EMPTY(cFile),cFile,cAdj),;
oAdj :Refresh())
@ 3,1 BUTTON "Abrir" ACTION ShellExecute( 0, "open", cAdj)
@ 3,8 BUTTON "Cerrar" ACTION oDlg:End()
ACTIVATE DIALOG oDlg CENTERED
RETURN
[/code:31j59rzx]
Necesitas una imagen para el BMPGET!!!
|
Abrir Arquivos (*.TIF *.BMP e *.JPG) com TActiveX
|
Olá Daniel
É exatamente oque estava precisando...
Funcionou perfeitamente.
Gracias.
Saludos
|
Abrir DBFs al abrir ventanas
|
Hola foro,
Estoy programando por 1ra vez con ventanas en lugar de dialogos y lo que hago cada vez que el usuario abre la misma ventana que contiene un browse, abre los mismos 10 DBFs con diferente alias para cada ventana.
Mi pregunta es, es "sano" hacerlo asi? o hay otra forma de acerlo ya que pienso que cada vez que se abre un DBF consume mucha memoria y si por ejemplo el usuario abre 5 veces la misma ventana tendria 50 archivos abiertos.
La idea de poder abrir la misma ventana varias veces es que pueda definir diferentes filtros para cada una de ellas.
|
Abrir DBFs al abrir ventanas
|
Hola...
Yo uso una funicón que me retorna un número de alias disponible.
De ese modo, sin importarme el nombre de alias, armo el nombre dentro de una variable.
Luego hago SELECT (cMiAlias) y listo.
Saludos, Esteban.
|
Abrir DBFs al abrir ventanas
|
Me parece que lo más sano es abrir las BBDD al comienzo de la ejecución del aplicativo y cerrarlas cuando salgo del programa. Así he trabajado siempre sin ningún problema.
Salu2
|
Abrir DBFs al abrir ventanas
|
Rodolfo,
No sólo es sano, sino imprescindible.
Cada browse es necesario que tenga su propio area de trabajo porque de lo contrario sobre cualquier refresco del browse, por ejemplo movimiento de ventanas superpuestas, "destrozará" el browse pintado.
Al principio yo me resistí a la técnica de abrir la .dbf por cada browse. Con el tiempo le perdí el miedo por 2 razones. 1º En 32 bits los ficheros abren rapidísimo. 2º Se puede decir que el nº de handles disponibles para fichero es ilimitado.
Es cierto que a mi esta forma de trabajar no me gusta, pero lo contrario consistiría en crear un rdd que pudiera contener distintas areas de trabajo del mismo fichero... pero no me parecía la mejor cosa lo de crear un rdd nuevo/modificado.
Lo que sí debes hacer es ir cerrando las áreas abiertas cuando salgas del browse, y si siempre los tienes abiertos, pues cierras la áreas "recolectadas" al salir del programa, y sino un CLOSE DATABASES; yo prefiero recolectarlas: es más ordenadito y más control.
Saludos
[quote="RodolfoRBG":f7531t8r]Hola foro,
Estoy programando por 1ra vez con ventanas en lugar de dialogos y lo que hago cada vez que el usuario abre la misma ventana que contiene un browse, abre los mismos 10 DBFs con diferente alias para cada ventana.
Mi pregunta es, es "sano" hacerlo asi? o hay otra forma de acerlo ya que pienso que cada vez que se abre un DBF consume mucha memoria y si por ejemplo el usuario abre 5 veces la misma ventana tendria 50 archivos abiertos.
La idea de poder abrir la misma ventana varias veces es que pueda definir diferentes filtros para cada una de ellas.[/quote:f7531t8r]
|
Abrir DBFs al abrir ventanas
|
Esteban, Horacio: Gracias, asi lo hago pero no iba por ahi la pregunta.
hmPaquito: Esa era exactamente mi duda y en efecto llevo un control de los DBFs que se abren para cada ventana para cerrarlos al cerrar la ventana y dejar abiertos solo los DBFs de otras ventanas que continuan abiertas.
Tenia el temor de que si permanecen abiertos muchos DBFs o si abria varias veces el mismo DBF con diferente alias podria afectar al funcionamiento del sistema.
Salu2
|
Abrir DLL de 16 bits
|
Hola amigos:
Tengo la necesidad de abrir una DLL hecha con Workshop de 16bits y ninguna PC a 16 bits, alguna alma
caritativa que pueda abrir la DLL y exportarla a 32 ya sea en formato RC o RES o ambos si es posible?
Si me dan su correo les envío la DLL y Workshop (si es necesario) para que me hagan el favor de convertirla.
Saludos
|
Abrir DLL de 16 bits
|
Mandamela, creo que en este fin de semana podré
navarro.cristobal at gmail.com
Avisame cuando me la envies
|
Abrir DLL de 16 bits
|
Cristóbal:
Enviada, muchas gracias
Saludos
|
Abrir DLL de 16 bits
|
Maese... a los años...
Echale un ojo a este enlace
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=14830&hilit=convertir+a+dll+de+32+bits">viewtopic.php?f=6&t=14830&hilit=convertir+a+dll+de+32+bits</a><!-- l -->
Salu2
|
Abrir DLL de 16 bits
|
Armando, mira tu correo
|
Abrir DLL de 16 bits
|
Willi, el problema puede estar en que cada vez menos contamos con SO de 16/32 bits, y no se puede ejecutar Workshop en 64
|
Abrir DLL de 16 bits
|
Cristóbal:
Descargado y funcionando al 100%, muy agradecido con tu apoyo,
te debo unas tapas <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Saludos
Willi:
Efectivamente, lo que comenta Cristóbal es mi situación, no tengo PC con 16bits y en 64bits WS no va.
Saludos Mr
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.