topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
vertical position in preview | [quote="Silvio.Falconi":15f8rrpq][b:15f8rrpq]use this [/b:15f8rrpq]
oPrn:PrintImage( nTop, nLeft,cFile,nRight,nBottom, lStretch, nAlpha, lTransp, lGray )
see on email[/quote:15f8rrpq]
Hi Silvio,
it's still the same error.
The image position is different with [code=fw:15f8rrpq]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">PRINT</span> oPrn <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"prv_test"</span> PREVIEW</div>[/code:15f8rrpq]and[code=fw:15f8rrpq]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">PRINT</span> oPrn <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"prv_test"</span> PREVIEW FILE cPdfFile</div>[/code:15f8rrpq]
<!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> |
vertical position in preview | [quote="Detlef":2sfwsqrm][quote="Silvio.Falconi":2sfwsqrm][b:2sfwsqrm]use this [/b:2sfwsqrm]
oPrn:PrintImage( nTop, nLeft,cFile,nRight,nBottom, lStretch, nAlpha, lTransp, lGray )
see on email[/quote:2sfwsqrm]
Hi Silvio,
it's still the same error.
The image position is different with [code=fw:2sfwsqrm]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">PRINT</span> oPrn <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"prv_test"</span> PREVIEW</div>[/code:2sfwsqrm]and[code=fw:2sfwsqrm]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">PRINT</span> oPrn <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"prv_test"</span> PREVIEW FILE cPdfFile</div>[/code:2sfwsqrm]
<!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->[/quote:2sfwsqrm]
ask to nages!! |
vertical position in preview | Please try this:
[code=fw:1oe5ipvi]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> FWDIR <span style="color: #ff0000;">"C:<span style="color: #000000;">\F</span>WH"</span><br />REQUEST FWHARU<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> oPrn, oFont<br /> <span style="color: #00C800;">local</span> cPdfFile := TrueName<span style="color: #000000;">(</span> <span style="color: #ff0000;">"test.pdf"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> cBmp := FWDIR + <span style="color: #ff0000;">"<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\f</span>wphone.bmp"</span><br /> <span style="color: #00C800;">local</span> nHeight, nRow, nCol<br /><br /> TPreview<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">lListViewHide</span> := .t.<br /> TPrinter<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">lUseHaruPDF</span> := .t.<br /><br /> <span style="color: #00C800;">PRINT</span> oPrn <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"prv_test"</span> PREVIEW <span style="color: #B900B9;">//FILE cPdfFile</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-10</span> <span style="color: #0000ff;">OF</span> oPrn<br /> <span style="color: #B900B9;">//</span><br /> nHeight := oPrn:<span style="color: #000000;">GetTextHeight</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">""</span>, oFont <span style="color: #000000;">)</span> <span style="color: #B900B9;">// value for proper line feeds</span><br /> oPrn:<span style="color: #000000;">Pix2Units</span><span style="color: #000000;">(</span> <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, @nHeight, <span style="color: #ff0000;">"MM"</span> <span style="color: #000000;">)</span><br /> nHeight *= <span style="color: #000000;">1.2</span><br /> <span style="color: #B900B9;">//</span><br /> <br /> nCol := <span style="color: #000000;">20</span> <span style="color: #B900B9;">//MM</span><br /><br /> <span style="color: #0000ff;">PAGE</span><br /> nRow := <span style="color: #000000;">52</span> <span style="color: #B900B9;">// MM</span><br /> oPrn:<span style="color: #0000ff;">Say</span><span style="color: #000000;">(</span> nRow, nCol, <span style="color: #ff0000;">"Line above"</span>, oFont, <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: #ff0000;">"MM"</span> <span style="color: #000000;">)</span><br /><br /> nRow += nHeight<br /> @ nRow, <span style="color: #000000;">20</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">IMAGE</span> cBmp <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">39.5</span>, <span style="color: #000000;">24</span> MM<br /><br /> nRow += <span style="color: #000000;">24</span><br /> oPrn:<span style="color: #0000ff;">Say</span><span style="color: #000000;">(</span> nRow, nCol, <span style="color: #ff0000;">"Line below"</span>, oFont, <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: #ff0000;">"MM"</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ENDPAGE</span><br /> <span style="color: #0000ff;">ENDPRINT</span><br /><br /> <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /> </div>[/code:1oe5ipvi] |
vertical position in preview | Mr. Rao,
now this works perfect. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Many thanks! |
vertical position in preview | wich lib I must link ?
[code=fw:1j22xw8u]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Progetto: <span style="color: #000000;">test</span>, Ambiente: <span style="color: #000000;">bcc7Harbor</span>:<br /><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">Harbour</span>.Exe test.prg /m /n0 /gc1 /w1 /es2 /a /iC:\Work\fwh\include /iC:\work\HARBOUR\Include /jC:\Work\errori\STAMPA~<span style="color: #000000;">1</span>\I18n\Main.hil /iinclude;c:\work\fwh\include;C:\work\HARBOUR\include /oObj\test.c<br />Harbour <span style="color: #000000;">3.2</span>.0dev <span style="color: #000000;">(</span>r1904111533<span style="color: #000000;">)</span><br />Copyright <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> <span style="color: #000000;">1999</span><span style="color: #000000;">-2019</span>, https:<span style="color: #B900B9;">//harbour.github.io/</span><br />Compiling <span style="color: #ff0000;">'test.prg'</span>...<br />Lines <span style="color: #000000;">5019</span>, Functions/Procedures <span style="color: #000000;">1</span><br />Generating C source output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'Obj<span style="color: #000000;">\t</span>est.c'</span>... Done.<br /><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">Bcc32</span>.Exe -M -c -DHB_OS_WIN_32 -DHB_FM_STATISTICS_OFF -DHB_NO_DEFAULT_API_MACROS -DHB_NO_DEFAULT_STACK_MACROS -IC:\Work\fwh\include -IC:\work\bcc7\Include\windows\sdk\;C:\work\HARBOUR\Include -nC:\Work\errori\STAMPA~<span style="color: #000000;">1</span>\Obj test.c<br />Embarcadero C++ <span style="color: #000000;">7.30</span> <span style="color: #00C800;">for</span> Win32 Copyright <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> <span style="color: #000000;">1993</span><span style="color: #000000;">-2017</span> Embarcadero Technologies, Inc.<br />test.c:<br /><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">iLink32</span>.Exe -Gn -aa -Tpe -s -v @test.bcl<br />Turbo Incremental Link <span style="color: #000000;">6.80</span> Copyright <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> <span style="color: #000000;">1997</span><span style="color: #000000;">-2017</span> Embarcadero Technologies, Inc.<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_New'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Free'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_NewDoc'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_FreeDoc'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_FreeDocAll'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_SaveToFile'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_SaveToStream'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_GetStreamSize'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_ReadFromStream'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_ResetStream'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_HasDoc'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_SetErrorHandler'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_GetError'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_GetErrorDetail'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_ResetError'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_SetPagesConfiguration'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_SetPageLayout'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_GetPageLayout'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_SetPageMode'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_GetPageMode'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_SetOpenAction'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_GetCurrentPage'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_AddPage'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_InsertPage'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_GetFont'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_AddPageLabel'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_CreateExtGState'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_CreateOutline'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_GetEncoder'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_GetCurrentEncoder'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_SetCurrentEncoder'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_SetInfoAttr'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_GetInfoAttr'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_SetInfoDateAttr'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_SetPassword'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_SetPermission'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_SetEncryptionMode'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_SetCompressionMode'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetWidth'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetHeight'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetSize'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetRotate'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetWidth'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetHeight'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_CreateDestination'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_CreateTextAnnot'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_CreateLinkAnnot'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_CreateURILinkAnnot'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_TextWidth'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_MeasureText'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetGMode'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetCurrentPos2'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetCurrentTextPos2'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetCurrentFont'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetCurrentFontSize'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetTransMatrix'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetLineWidth'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetLineCap'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetLineJoin'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetMiterLimit'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetDash'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetFlat'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetCharSpace'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetWordSpace'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetHorizontalScalling'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetTextLeading'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetTextRenderingMode'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetTextRise'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetRGBFill'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetRGBStroke'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetCMYKFill'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetCMYKStroke'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetGrayFill'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetGrayStroke'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetStrokingColorSpace'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetFillingColorSpace'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetTextMatrix'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GetGStateDepth'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetSlideShow'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetLineWidth'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetLineCap'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetLineJoin'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetMiterLimit'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetDash'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetExtGState'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GSave'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_GRestore'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_Concat'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_MoveTo'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_LineTo'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_CurveTo'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_CurveTo2'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_CurveTo3'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_ClosePath'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_Rectangle'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_Stroke'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_ClosePathStroke'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetFontAndSize'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_BeginText'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_EndText'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_TextOut'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_MoveTextPos'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_ShowText'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_Fill'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_Eofill'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_FillStroke'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_EofillStroke'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_ClosePathFillStroke'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_ClosePathEofillStroke'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_EndPath'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_Clip'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_Eoclip'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetCharSpace'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetWordSpace'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetHorizontalScalling'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetTextLeading'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetTextRenderingMode'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetTextRise'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_MoveTextPos2'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetTextMatrix'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_MoveToNextLine'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_ShowTextNextLine'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_ShowTextNextLineEx'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetGrayFill'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetGrayStroke'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetRGBFill'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetRGBStroke'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetCMYKFill'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetCMYKStroke'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_ExecuteXObject'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_DrawImage'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_Circle'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_Arc'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_Ellipse'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_TextRect'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Font_GetFontName'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Font_GetEncodingName'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Font_GetUnicodeWidth'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Font_GetBBox'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Font_GetAscent'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Font_GetDescent'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Font_GetXHeight'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Font_GetCapHeight'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Font_TextWidth'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Font_MeasureText'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Encoder_GetType'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Encoder_GetByteType'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Encoder_GetUnicode'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Encoder_GetWritingMode'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Outline_SetOpened'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Outline_SetDestination'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Destination_SetXYZ'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Destination_SetFit'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Destination_SetFitH'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Destination_SetFitV'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Destination_SetFitR'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Destination_SetFitB'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Destination_SetFitBH'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Destination_SetFitBV'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_ExtGState_SetAlphaStroke'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_ExtGState_SetAlphaFill'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_ExtGState_SetBlendMode'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_GetContents'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_CheckError'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_SetZoom'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Page_Create3DView'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_AttachFile'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_ICC_LoadIccFromMem'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_LoadIccProfileFromFile'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_UseUTFEncodings'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_LoadType1FontFromFile'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|font<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_LoadTTFontFromFile'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|font<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_LoadTTFontFromFile2'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|font<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_LoadPngImageFromFile'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_LoadPngImageFromFile2'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_LoadRawImageFromFile'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_LoadRawImageFromMem'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_LoadJpegImageFromFile'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_LoadPngImageFromMem'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_LoadJpegImageFromMem'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Image_GetSize'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Image_GetWidth'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Image_GetHeight'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Image_GetBitsPerComponent'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Image_GetColorSpace'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Image_SetColorMask'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Image_SetMaskImage'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HPDF_Image_AddSMask'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image<br />Error: <span style="color: #000000;">Unable</span> <span style="color: #0000ff;">to</span> perform link<br /> </div>[/code:1j22xw8u] |
vertical position in preview | see
buildh.bat
and link the same libs |
vertical position in preview | [quote="nageswaragunupudi":3nu758wy]see
buildh.bat
and link the same libs[/quote:3nu758wy]
I not have
[code=fw:3nu758wy]<div class="fw" id="{CB}" style="font-family: monospace;">echo %hdirl%\libhpdf.lib + >> b32.bc</div>[/code:3nu758wy] |
vertical position in preview | <!-- m --><a class="postlink" href="https://github.com/FiveTechSoft/Harbour_builder/blob/master/harbour_win32_bcc_2020_10_19.zip">https://github.com/FiveTechSoft/Harbour ... _10_19.zip</a><!-- m -->
this is the last release for bcc7 ? |
very slow sample program xbrbckg1.prg | Hi everybody
I've tried it it's very very slow I don't understand why. Could someone else test it please?
It seems that at every key pressed it performs a lot of things.
I know very little xbrowse class so I ask it in the group
Many thanks
to all
marco |
very slow sample program xbrbckg1.prg | Ciao Marco...
Use this image: [url:345dco0n]https://imagizer.imageshack.com/img923/276/DFYUs0.jpg[/url:345dco0n]
Is a quite faster... olga1.jpg is resized and is slow
regards, Euclides |
very slow sample program xbrbckg1.prg | Having a background image slows down.
Every cell movement results in full refresh of the browse.
This is suitable for small browses and data that is already in memory. |
very slow sample program xbrbckg1.prg | Hi,
I took away what seems superfluous to me.
- RIGHT very slow
- LEFT slow
- UP and DOWN normal but I see flicker across the entire line
- PG UP and PG DOWN not fast but not really bad
take it as a report not as a criticism thanks
Have a nice day
Marco
[code=fw:263t01o6]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'fivewin.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'ord.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'xbrowse.ch'</span><br /><br />REQUEST DBFCDX<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, oBrw<br /><br /> USE CUSTOMER SHARED<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;">'XBrowse without BackGrounds'</span><br /><br /> @ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oWnd ;<br /> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">'CUSTOMER'</span> <span style="color: #0000ff;">AUTOCOLS</span> ;<br /> CELL LINES ;<br /> <span style="color: #0000ff;">COLOR</span> CLR_BLUE, CLR_WHITE<br /><br /><br /> SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">TO</span> FWVERSION <span style="color: #000000;">2007</span><br /><br /> oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oWnd:<span style="color: #000000;">oClient</span> := oBrw<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span><br /><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:263t01o6] |
very slow sample program xbrbckg1.prg | In method METHOD Paint() CLASS TXBrowse
if I rem DispBegin() and DispEnd()
// local aInfo := ::DispBegin()
and at the end of method I rem
if ::nLen == 0
::EraseData( nFirstRow )
// ::DispEnd( aInfo )
return nil
endif
// ::DispEnd( aInfo )
the problem is even more evident
I use also a dbf of 400 fields and 100 records
I've noticed this method is evocated every time I press VK_RIGHT instead for other key pressed no only in particular conditions
The question is: Is it possible to insert some conditions in the method to make the paint run only when needed?
Have a nice day
Marco |
very slow sample program xbrbckg1.prg | Commenting out DispBegin() and DispEnd() is not the right thing to do.
Please also see
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=20&t=38740">viewtopic.php?f=20&t=38740</a><!-- l -->
WBrowse is the fastest browse. XBrowse is not created to provide a faster alternative, but a feature-rich browse. Still with oBrw:lFastDraw set to .t., speeds are closer to wbrowse though not faster.
It is worth testing xbrowse's performance with a very large table. In this following sample, we create a DBF with One Million Records, 81 fields and recordsize of 1061 bytes and try to browse it.
[code=fw:kzdch5nz]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />REQUEST DBFCDX<br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> field FIRST,LAST,STREET,CITY,STATE,ZIP,HIREDATE,MARRIED,AGE,SALARY<br /> field FIRST2,LAST2,STREET2,CITY2,STATE2,ZIP2,HIREDATE2,MARRIED2,AGE2,SALARY2<br /> field FIRST3,LAST3,STREET3,CITY3,STATE3,ZIP3,HIREDATE3,MARRIED3,AGE3,SALARY3<br /> field FIRST4,LAST4,STREET4,CITY4,STATE4,ZIP4,HIREDATE4,MARRIED4,AGE4,SALARY4<br /> field FIRST5,LAST5,STREET5,CITY5,STATE5,ZIP5,HIREDATE5,MARRIED5,AGE5,SALARY5<br /> field FIRST6,LAST6,STREET6,CITY6,STATE6,ZIP6,HIREDATE6,MARRIED6,AGE6,SALARY6<br /> field FIRST7,LAST7,STREET7,CITY7,STATE7,ZIP7,HIREDATE7,MARRIED7,AGE7,SALARY7<br /> field FIRST8,LAST8,STREET8,CITY8,STATE8,ZIP8,HIREDATE8,MARRIED8,AGE8,SALARY8<br /><br /> <span style="color: #00C800;">local</span> aStruct, cCust, cmiln, n, nLen, a, i, c<br /><br /> cCust := <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\s</span>amples<span style="color: #000000;">\c</span>ustomer.dbf"</span><br /> cmiln := <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\s</span>amples<span style="color: #000000;">\c</span>ustmiln.dbf"</span><br /><br /> <span style="color: #00C800;">if</span> File<span style="color: #000000;">(</span> cmiln <span style="color: #000000;">)</span><br /> USE <span style="color: #000000;">(</span> cmiln <span style="color: #000000;">)</span> <span style="color: #00C800;">NEW</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"CUST"</span> VIA <span style="color: #ff0000;">"DBFCDX"</span><br /> <span style="color: #00C800;">else</span><br /> aStruct := FW_DBFSTRUCT<span style="color: #000000;">(</span> cCust <span style="color: #000000;">)</span><br /> ASize<span style="color: #000000;">(</span> aStruct, Len<span style="color: #000000;">(</span> aStruct <span style="color: #000000;">)</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> nLen := Len<span style="color: #000000;">(</span> aStruct <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">for</span> i := <span style="color: #000000;">2</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">8</span><br /> c := Str<span style="color: #000000;">(</span> i, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">for</span> n := <span style="color: #000000;">2</span> <span style="color: #0000ff;">to</span> nLen<br /> a := AClone<span style="color: #000000;">(</span> aStruct<span style="color: #000000;">[</span> n <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> a<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> += c<br /> AAdd<span style="color: #000000;">(</span> aStruct, a <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">next</span><br /><br /> XBROWSER aStruct SHOW SLNUM<br /><br /> DBCREATE<span style="color: #000000;">(</span> cmiln, aStruct, <span style="color: #ff0000;">"DBFCDX"</span>, .t., <span style="color: #ff0000;">"CUST"</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">for</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">2000</span><br /> APPEND <span style="color: #0000ff;">FROM</span> c:\fwh\samples\customer.dbf ;<br /> FIELDS FIRST,LAST,STREET,CITY,STATE,ZIP,HIREDATE,MARRIED,AGE,SALARY<br /> <span style="color: #00C800;">next</span><br /> GO TOP<br /> REPLACE ALL FIRST2 WITH FIRST, LAST2 WITH LAST, CITY2 WITH CITY, STATE2 WITH STATE, ;<br /> ZIP2 WITH ZIP, HIREDATE2 WITH HIREDATE, MARRIED2 WITH MARRIED, ;<br /> AGE2 WITH AGE, SALARY2 WITH SALARY<br /> REPLACE ALL FIRST3 WITH FIRST, LAST3 WITH LAST, CITY3 WITH CITY, STATE3 WITH STATE, ;<br /> ZIP3 WITH ZIP, HIREDATE3 WITH HIREDATE, MARRIED3 WITH MARRIED, ;<br /> AGE3 WITH AGE, SALARY3 WITH SALARY<br /> REPLACE ALL FIRST4 WITH FIRST, LAST4 WITH LAST, CITY4 WITH CITY, STATE4 WITH STATE, ;<br /> ZIP4 WITH ZIP, HIREDATE4 WITH HIREDATE, MARRIED4 WITH MARRIED, ;<br /> AGE4 WITH AGE, SALARY4 WITH SALARY<br /> REPLACE ALL FIRST5 WITH FIRST, LAST5 WITH LAST, CITY5 WITH CITY, STATE5 WITH STATE, ;<br /> ZIP5 WITH ZIP, HIREDATE5 WITH HIREDATE, MARRIED5 WITH MARRIED, ;<br /> AGE5 WITH AGE, SALARY5 WITH SALARY<br /> REPLACE ALL FIRST6 WITH FIRST, LAST6 WITH LAST, CITY6 WITH CITY, STATE6 WITH STATE, ;<br /> ZIP6 WITH ZIP, HIREDATE6 WITH HIREDATE, MARRIED6 WITH MARRIED, ;<br /> AGE6 WITH AGE, SALARY6 WITH SALARY<br /> REPLACE ALL FIRST7 WITH FIRST, LAST7 WITH LAST, CITY7 WITH CITY, STATE7 WITH STATE, ;<br /> ZIP7 WITH ZIP, HIREDATE7 WITH HIREDATE, MARRIED7 WITH MARRIED, ;<br /> AGE7 WITH AGE, SALARY7 WITH SALARY<br /> REPLACE ALL FIRST8 WITH FIRST, LAST8 WITH LAST, CITY8 WITH CITY, STATE8 WITH STATE, ;<br /> ZIP8 WITH ZIP, HIREDATE8 WITH HIREDATE, MARRIED8 WITH MARRIED, ;<br /> AGE8 WITH AGE, SALARY8 WITH SALARY<br /><br /> GO TOP<br /> FW_CdxCreate<span style="color: #000000;">(</span> <span style="color: #ff0000;">"ID,FIRST,LAST,STREET,CITY,STATE,ZIP,HIREDATE,MARRIED,AGE,SALARY"</span> <span style="color: #000000;">)</span><br /> GO TOP<br /> <span style="color: #00C800;">endif</span><br /><br /> XBROWSER <span style="color: #0000ff;">ALIAS</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"One Million Records: 81 Fields: Record Len: 1061"</span> ;<br /> SETUP <span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">cEditPicture</span> := <span style="color: #ff0000;">"99,999,999"</span>, oBrw:<span style="color: #000000;">lFastDraw</span> := .t., ;<br /> oBrw:<span style="color: #000000;">lVThumbTrack</span> := .t., oBrw:<span style="color: #000000;">lAutosort</span> := .t. <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:kzdch5nz]
[url=https://imageshack.com/i/pob5crwkg:kzdch5nz][img:kzdch5nz]https://imagizer.imageshack.com/img924/7043/b5crwk.gif[/img:kzdch5nz][/url:kzdch5nz] |
very slow sample program xbrbckg1.prg | Next, we will create a 100 record table with 400 fields and see the horizontal scrolling performance.
[code=fw:79ptze9j]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />REQUEST DBFCDX<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> cDbf := <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\s</span>amples<span style="color: #000000;">\c</span>ustomer.dbf"</span><br /> <span style="color: #00C800;">local</span> cNew := <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\s</span>amples<span style="color: #000000;">\c</span>ust400f.dbf"</span><br /> <span style="color: #00C800;">local</span> i,j,n,c,aCol, aData, aRow, aCols, aNew := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /><br /> <span style="color: #00C800;">if</span> File<span style="color: #000000;">(</span> cNew <span style="color: #000000;">)</span><br /> USE <span style="color: #000000;">(</span> cNew <span style="color: #000000;">)</span> <span style="color: #00C800;">NEW</span> <span style="color: #0000ff;">ALIAS</span> C400 VIA <span style="color: #ff0000;">"DBFCDX"</span><br /> ? <span style="color: #ff0000;">"Open"</span><br /> <span style="color: #00C800;">else</span><br /> USE <span style="color: #000000;">(</span> cDbf <span style="color: #000000;">)</span><br /> aCols := DBSTRUCT<span style="color: #000000;">(</span> cDbf <span style="color: #000000;">)</span><br /> AAdd<span style="color: #000000;">(</span> aNew, aCols<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">for</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">40</span><br /> c := StrZero<span style="color: #000000;">(</span> i, <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">for</span> n := <span style="color: #000000;">2</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">11</span><br /> aCol := AClone<span style="color: #000000;">(</span> aCols<span style="color: #000000;">[</span> n <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> aCol<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> += c<br /> AAdd<span style="color: #000000;">(</span> aNew, aCol <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">next</span><br /><br /> aData := FW_DbfToArray<span style="color: #000000;">(</span> <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #000000;">{</span> || RECNO<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <= <span style="color: #000000;">100</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> CLOSE <span style="color: #00C800;">DATA</span><br /><br /> DBCREATE<span style="color: #000000;">(</span> cNew, aNew, <span style="color: #ff0000;">"DBFCDX"</span>, .T., <span style="color: #ff0000;">"C400"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">for</span> each aRow in aData<br /> DBAPPEND<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> n := <span style="color: #000000;">2</span><br /> <span style="color: #00C800;">for</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">40</span><br /> <span style="color: #00C800;">for</span> j := <span style="color: #000000;">2</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">11</span><br /> FieldPut<span style="color: #000000;">(</span> n, aRow<span style="color: #000000;">[</span> j <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> n++<br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">next</span><br /> GO TOP<br /> <span style="color: #00C800;">endif</span><br /><br /> XBROWSER <span style="color: #0000ff;">ALIAS</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> SETUP <span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">nMarqueeStyle</span> := <span style="color: #000000;">3</span>, oBrw:<span style="color: #000000;">lFastDraw</span> := .t. <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:79ptze9j]
[url=https://imageshack.com/i/pmWadkPCg:79ptze9j][img:79ptze9j]https://imagizer.imageshack.com/img922/8475/WadkPC.gif[/img:79ptze9j][/url:79ptze9j] |
very slow sample program xbrbckg1.prg | Dear Mr. Rao,
Thank you for your sample.
Please show us how we can implement a column search; I mean that I enter a column name and browser repositions vertically.
Best regards,
Otto |
very slow sample program xbrbckg1.prg | [code=fw:3g65d2bi]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">GoToCol</span><span style="color: #000000;">(</span> <column_name> <span style="color: #000000;">)</span></div>[/code:3g65d2bi] |
very slow sample program xbrbckg1.prg | Thank You Mr Rao
<!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> |
very slow sample program xbrbckg1.prg | Ok, but this sample is still slow:
[code=fw:13iqrhpo]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'fivewin.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'ord.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'xbrowse.ch'</span><br /><br />REQUEST DBFCDX<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, oBrw<br /><br /> USE CUSTOMER SHARED<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;">'XBrowse without BackGrounds'</span><br /><br /> @ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oWnd ;<br /> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">'CUSTOMER'</span> <span style="color: #0000ff;">AUTOCOLS</span> ;<br /> CELL LINES ;<br /> <span style="color: #0000ff;">COLOR</span> CLR_BLUE, CLR_WHITE<br /><br /><br /> SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">TO</span> FWVERSION <span style="color: #000000;">2007</span><br /><br /> oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oWnd:<span style="color: #000000;">oClient</span> := oBrw<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span><br /><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:13iqrhpo]
EMG |
very slow sample program xbrbckg1.prg | Ok, with lFastDraw set to .T. even that sample become fast. What is the advantage of setting lFastDraw to .F.?
EMG |
very slow sample program xbrbckg1.prg | Up! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
EMG |
very slow sample program xbrbckg1.prg | [url=https://imageshack.com/i/podRDmjDg:zshefu69][img:zshefu69]https://imagizer.imageshack.com/img924/4357/dRDmjD.gif[/img:zshefu69][/url:zshefu69] |
very slow sample program xbrbckg1.prg | The question was: what is the advantage of setting lFastDraw to .F.? And the answer is? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
EMG |
very strange behavior in xBrowse (Bug?) | Not a bug with XBrowse.
Using bPastEof is a bit tricky. We need to ensure that (1) repeated append is prevented as long as there is an unfinished append and (2) when the cursor row moves away from the appending row while the append is unfinished, the append should be cancelled properly.
Extreme care should be taken for bOnPostEdit. It is highly desirable not to code this block inside the application program and leave it to xbrowse to automatically generate this codeblock, which is well tested and bugfree. It is highly recommended to use commend syntax using columns clause or if SetRdd() is used, create the columns with the columns parameter of the setrdd method. This way we avoid many possibilties of introducing bugs and facing enexpected behavior.
I am giving here a test program. This can be compiled and tested. This is my approach to achieve similar results like the above sample.
Please try and see if you find any problems with the sample I posted below. The same logic can be adopted.
[code=fw:3i1uxpid]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><br />REQUEST DBFCDX<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oWnd, oBar, oFont<br /><br /> RDDSetDefault<span style="color: #000000;">(</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">)</span><br /> SET DELETED <span style="color: #0000ff;">ON</span><br /><br /> <span style="color: #00C800;">if</span> ! File<span style="color: #000000;">(</span> <span style="color: #ff0000;">'TestTrn.Dbf'</span> <span style="color: #000000;">)</span><br /> CreateTestDbf<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'TAHOMA'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MDI</span><br /> oWnd:<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span> oFont <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">32</span> <span style="color: #000000;">2007</span><br /> SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">''</span> <span style="color: #000000;">2007</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"XBrowse"</span> <span style="color: #0000ff;">ACTION</span> XbrAppend<span style="color: #000000;">(</span> This <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Quit"</span> <span style="color: #0000ff;">ACTION</span> oWnd:<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;">WINDOW</span> oWnd<br /> <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> XbrAppend<span style="color: #000000;">(</span> oBtn <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oWnd, oBrw<br /><br /> oBtn:<span style="color: #000000;">Disable</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> USE TESTTRN <span style="color: #00C800;">NEW</span> <span style="color: #0000ff;">ALIAS</span> TRN EXCLUSIVE<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MDICHILD</span> <span style="color: #0000ff;">OF</span> WndMain<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oWnd ;<br /> COLUMNS <span style="color: #ff0000;">'Code'</span>, <span style="color: #ff0000;">'Item'</span>, <span style="color: #ff0000;">'Rate'</span>, <span style="color: #ff0000;">'Quantity'</span> ;<br /> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">'TRN'</span> CELL LINES FASTEDIT<br /><br /> oBrw:<span style="color: #000000;">Amount</span> := <span style="color: #000000;">{</span> || oBrw:<span style="color: #0000ff;">Rate</span>:<span style="color: #000000;">Value</span> * oBrw:<span style="color: #000000;">Quantity</span>:<span style="color: #000000;">Value</span> <span style="color: #000000;">}</span><br /><br /> WITH OBJECT oBrw<br /> :<span style="color: #000000;">Cargo</span> := <span style="color: #000000;">0</span> <span style="color: #B900B9;">// While appending assign the new record to cargo</span><br /> WITH OBJECT :<span style="color: #000000;">Code</span><br /> :<span style="color: #000000;">nEditType</span> := EDIT_BUTTON<br /> :<span style="color: #000000;">bEditBlock</span> := <span style="color: #000000;">{</span> || SelectItem<span style="color: #000000;">(</span> oBrw <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> END<br /><br /> :<span style="color: #000000;">Quantity</span>:<span style="color: #000000;">nEditType</span> := EDIT_GET<br /> :<span style="color: #000000;">bPastEof</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">(</span>oBrw:<span style="color: #000000;">cAlias</span><span style="color: #000000;">)</span>-><span style="color: #000000;">(</span> AppendRec<span style="color: #000000;">(</span> oBrw <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">bChange</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">(</span>oBrw:<span style="color: #000000;">cAlias</span><span style="color: #000000;">)</span>-><span style="color: #000000;">(</span> CheckAppend<span style="color: #000000;">(</span> oBrw <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> END<br /><br /> oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oWnd:<span style="color: #000000;">oClient</span> := oBrw<br /><br /> oWnd:<span style="color: #000000;">bPostEnd</span> := <span style="color: #000000;">{</span> || TRN-><span style="color: #000000;">(</span> DbCloseArea<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, oBtn:<span style="color: #000000;">Enable</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">VALID</span> CheckAppend<span style="color: #000000;">(</span> oBrw, .t. <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> AppendRec<span style="color: #000000;">(</span> oBrw <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> oBrw:<span style="color: #000000;">Cargo</span> == <span style="color: #000000;">0</span> <span style="color: #B900B9;">// not in append mode</span><br /> APPEND BLANK<br /> GO BOTTOM<br /> oBrw:<span style="color: #000000;">Cargo</span> := RecNo<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oBrw:<span style="color: #000000;">GoLeftMost</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oBrw:<span style="color: #000000;">Code</span>:<span style="color: #00C800;">Edit</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> CheckAppend<span style="color: #000000;">(</span> oBrw, lExit <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> nRecNo := RecNo<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">DEFAULT</span> lExit := .f.<br /><br /> <span style="color: #00C800;">if</span> oBrw:<span style="color: #000000;">Cargo</span> > <span style="color: #000000;">0</span> .and. <span style="color: #000000;">(</span> lExit .or. oBrw:<span style="color: #000000;">Cargo</span> != nRecNo <span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">// there is an unfinished append</span><br /> <span style="color: #B900B9;">// cancel it</span><br /> GOTO oBrw:<span style="color: #000000;">Cargo</span><br /> DELETE<br /> oBrw:<span style="color: #000000;">Cargo</span> := <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">if</span> ! lExit<br /> GOTO nRecNo<br /> oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">if</span> lExit<br /> PACK<br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> .t.<br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> SelectItem<span style="color: #000000;">(</span> oBrw1 <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> aItems := <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"Item.1"</span>, <span style="color: #000000;">20</span> <span style="color: #000000;">}</span>, <span style="color: #000000;">{</span> <span style="color: #000000;">2</span>, <span style="color: #ff0000;">"Item.2"</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">}</span>, <span style="color: #000000;">{</span> <span style="color: #000000;">3</span>, <span style="color: #ff0000;">"Item.3"</span>, <span style="color: #000000;">40</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> <span style="color: #00C800;">local</span> nRet := oBrw1:<span style="color: #000000;">Code</span>:<span style="color: #000000;">Value</span><br /><br /> XBROWSER aItems ;<br /> SETUP <span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">cHeaders</span> := <span style="color: #000000;">{</span> <span style="color: #ff0000;">"Code"</span>, <span style="color: #ff0000;">"Item"</span>, <span style="color: #ff0000;">"Rate"</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">SELECT</span> <span style="color: #000000;">(</span> nRet := oBrw:<span style="color: #000000;">aRow</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>, ;<br /> oBrw1:<span style="color: #000000;">Item</span>:<span style="color: #000000;">Value</span> := oBrw:<span style="color: #000000;">aRow</span><span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span>, ;<br /> oBrw1:<span style="color: #0000ff;">Rate</span>:<span style="color: #000000;">Value</span> := oBrw:<span style="color: #000000;">aRow</span><span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span>, ;<br /> oBrw1:<span style="color: #000000;">Cargo</span> := <span style="color: #000000;">0</span>, ;<br /> oBrw1:<span style="color: #000000;">nColSel</span> := <span style="color: #000000;">4</span>, ;<br /> oBrw1:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> nRet<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> CreateTestDbf<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> aCols := <span style="color: #000000;">{</span> ;<br /> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"CODE"</span>, <span style="color: #ff0000;">"N"</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"ITEM"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">20</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"RATE"</span>, <span style="color: #ff0000;">"N"</span>, <span style="color: #000000;">6</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"QUANTITY"</span>, <span style="color: #ff0000;">"N"</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br /> DBCREATE<span style="color: #000000;">(</span> <span style="color: #ff0000;">"TESTTRN"</span>, aCols <span style="color: #000000;">)</span><br /><br /> USE TESTTRN EXCLUSIVE<br /> APPEND BLANK<br /> FIELD->CODE := <span style="color: #000000;">1</span><br /> FIELD->ITEM := <span style="color: #ff0000;">"Item.1"</span><br /> FIELD->RATE := <span style="color: #000000;">20</span><br /> FIELD->QUANTITY := <span style="color: #000000;">3</span><br /> CLOSE TESTTRN<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> </div>[/code:3i1uxpid] |
very strange behavior in xBrowse (Bug?) | Dears all.
By chance, I noticed a very strange behavior in xBrowse (ver. 10.06). Let me explain:
In MDI environment, I have a window oChild (of oWnd) containing a xBrowse to edit data.
This browser is conditioned to come to the end and beyond it (bPastEof), add a blank record ready for editing. If you do not enter any value and press enter, this state is evaluated and displays a dialog to choose the necessary data. (imagine that this dialog contains the catalog of products).
Well, if you use the directional keys on the items exceed xBrowse, everything works fine.
But ... if you use the arrow below the vertical scroll by surpassing add a blank record, and if it takes another click on the arrow and keep the mouse cursor over it, it triggers an event so overwhelming, opening the dialog, and this action does not stop until the mouse is placed on dialog, having to close each of them to continue. If this is not done immediately, it can consume all the resources of the cpu, and we know the results when this happens.
I coded a small example show here, in order to test the above. Use Clientes.dbf file found in the Samples folder.
[code=fw:35qtxs3r]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><br /><span style="color: #00C800;">static</span> oWnd<br /><br /><span style="color: #B900B9;">//----------------</span><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SET DELETED <span style="color: #0000ff;">ON</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MDI</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"PRUEBA DE XBROWSE"</span> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span> ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> Prueba<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------//</span><br /><span style="color: #00C800;">Function</span> Prueba<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> oChild, oBrw, oCol<br /><span style="color: #00C800;">local</span> cAlias<br /><span style="color: #00C800;">local</span> oBotSave,oBotCanc<br /><br />DbUseArea<span style="color: #000000;">(</span>.t.,,<span style="color: #ff0000;">"Clientes"</span>,<span style="color: #ff0000;">"Clientes"</span>,.F.<span style="color: #000000;">)</span><br />cAlias:=<span style="color: #0000ff;">Alias</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oChild <span style="color: #0000ff;">MDICHILD</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"PRUEBA XBROWSE"</span><br /><br /> @<span style="color: #000000;">34</span>,<span style="color: #000000;">700</span> <span style="color: #0000ff;">BTNBMP</span> oBotSave <span style="color: #0000ff;">LEFT</span> <span style="color: #000000;">2007</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Guardar"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">28</span> <span style="color: #0000ff;">OF</span> oChild <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">msgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Hola"</span><span style="color: #000000;">)</span><br /> @oBotSave:<span style="color: #000000;">nBottom</span><span style="color: #000000;">+8</span>,<span style="color: #000000;">700</span> <span style="color: #0000ff;">BTNBMP</span> oBotCanc <span style="color: #0000ff;">LEFT</span> <span style="color: #000000;">2007</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Cancelar"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">28</span> <span style="color: #0000ff;">OF</span> oChild <span style="color: #0000ff;">ACTION</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><br /> oBrw := TXBrowse<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oChild <span style="color: #000000;">)</span><br /> oBrw:<span style="color: #000000;">cAlias</span> := cAlias <br /><br /> oBrw:<span style="color: #000000;">nMarqueeStyle</span> := MARQSTYLE_HIGHLCELL <br /> oBrw:<span style="color: #000000;">nColDividerStyle</span> := LINESTYLE_INSET<br /> oBrw:<span style="color: #000000;">nRowDividerStyle</span> := LINESTYLE_INSET<br /> oBrw:<span style="color: #000000;">lColDividerComplete</span> := .t. <br /> oBrw:<span style="color: #000000;">lFooter</span> := .t. <br /> oBrw:<span style="color: #000000;">lRecordSelector</span> := .t.<br /><br /> oBrw:<span style="color: #000000;">lFastEdit</span> := .t. <br /><br /> oBrw:<span style="color: #000000;">bPastEof</span> = <span style="color: #000000;">{</span>|| <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> lCCtaOK<span style="color: #000000;">(</span>oBrw<span style="color: #000000;">)</span>, <span style="color: #000000;">(</span>Dbappend<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBrw:<span style="color: #000000;">GoLeftMost</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #00C800;">Edit</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>,<span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /> oCol = oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /> oCol:<span style="color: #000000;">bEditValue</span> = <span style="color: #000000;">{</span> || <span style="color: #000000;">(</span>cAlias<span style="color: #000000;">)</span>->telefono <span style="color: #000000;">}</span> <br /> oCol:<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"TELEFONO"</span><br /> oCol:<span style="color: #000000;">nEditType</span> = EDIT_GET <br /> oCol:<span style="color: #000000;">nWidth</span> = <span style="color: #000000;">140</span><br /> oCol:<span style="color: #000000;">bGetChange</span> = <span style="color: #000000;">{</span>| k, f, o, oCol | <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> Len<span style="color: #000000;">(</span> RTrim<span style="color: #000000;">(</span> o:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">Buffer</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> == Len<span style="color: #000000;">(</span> o:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">Buffer</span> <span style="color: #000000;">)</span>,; <span style="color: #B900B9;">//Daniel</span><br /> <span style="color: #000000;">(</span> o:<span style="color: #000000;">SendMsg</span><span style="color: #000000;">(</span> WM_KEYDOWN, VK_RETURN <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #B900B9;">//Daniel</span><br /> oCol:<span style="color: #000000;">bOnPostEdit</span> = <span style="color: #000000;">{</span> | oCol, xVal, nKey | <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> RecCount<span style="color: #000000;">(</span><span style="color: #000000;">)</span> == <span style="color: #000000;">0</span>, <span style="color: #000000;">(</span> DbAppend<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>,<span style="color: #000000;">)</span> ,;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nKey == VK_RETURN, <span style="color: #000000;">(</span><span style="color: #000000;">(</span>cAlias<span style="color: #000000;">)</span>->telefono := xVal,<span style="color: #00C800;">if</span><span style="color: #000000;">(</span>lCCtaOK<span style="color: #000000;">(</span>oBrw<span style="color: #000000;">)</span>,oBrw:<span style="color: #000000;">nColSel</span>:=<span style="color: #000000;">1</span>,<span style="color: #000000;">)</span><span style="color: #000000;">)</span> , <span style="color: #000000;">)</span> ,;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nKey == VK_ESCAPE .and. Empty<span style="color: #000000;">(</span><span style="color: #000000;">(</span>cAlias<span style="color: #000000;">)</span>->telefono<span style="color: #000000;">)</span>, <span style="color: #000000;">(</span> <span style="color: #000000;">(</span>cAlias<span style="color: #000000;">)</span>-><span style="color: #000000;">(</span>dbDelete<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>,<span style="color: #000000;">(</span>cAlias<span style="color: #000000;">)</span>-><span style="color: #000000;">(</span>__dbPack<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>,<span style="color: #000000;">(</span>cAlias<span style="color: #000000;">)</span>-><span style="color: #000000;">(</span>dbGoBottom<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>,oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <br /><br /> oCol = oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /> oCol:<span style="color: #000000;">bEditValue</span> = <span style="color: #000000;">{</span> || <span style="color: #000000;">(</span>cAlias<span style="color: #000000;">)</span>->nombre <span style="color: #000000;">}</span> <br /> oCol:<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"NOMBRE"</span><br /> oCol:<span style="color: #000000;">nEditType</span> = EDIT_GET <br /> oCol:<span style="color: #000000;">nWidth</span> = <span style="color: #000000;">230</span><br /> oCol:<span style="color: #000000;">bGetChange</span> = <span style="color: #000000;">{</span>| k, f, o, oCol | <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> Len<span style="color: #000000;">(</span> RTrim<span style="color: #000000;">(</span> o:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">Buffer</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> == Len<span style="color: #000000;">(</span> o:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">Buffer</span> <span style="color: #000000;">)</span>,; <span style="color: #B900B9;">//Daniel</span><br /> <span style="color: #000000;">(</span> o:<span style="color: #000000;">SendMsg</span><span style="color: #000000;">(</span> WM_KEYDOWN, VK_RETURN <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #B900B9;">//Daniel</span><br /> oCol:<span style="color: #000000;">bOnPostEdit</span> = <span style="color: #000000;">{</span> | oCol, xVal, nKey | <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> RecCount<span style="color: #000000;">(</span><span style="color: #000000;">)</span> == <span style="color: #000000;">0</span>, <span style="color: #000000;">(</span> DbAppend<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>,<span style="color: #000000;">)</span> ,;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nKey == VK_RETURN, <span style="color: #000000;">(</span><span style="color: #000000;">(</span>cAlias<span style="color: #000000;">)</span>->nombre := xVal,<span style="color: #00C800;">if</span><span style="color: #000000;">(</span>lCCtaOK<span style="color: #000000;">(</span>oBrw<span style="color: #000000;">)</span>,oBrw:<span style="color: #000000;">nColSel</span>:=<span style="color: #000000;">1</span>,<span style="color: #000000;">)</span><span style="color: #000000;">)</span>, <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /> oBrw:<span style="color: #000000;">SetRDD</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> oBrw:<span style="color: #000000;">bKeyDown</span> :=<span style="color: #000000;">{</span> | nKey | <span style="color: #00C800;">if</span><span style="color: #000000;">(</span>nKey == VK_DELETE, <span style="color: #000000;">(</span> <span style="color: #000000;">(</span>oBrw:<span style="color: #000000;">cAlias</span><span style="color: #000000;">)</span>-><span style="color: #000000;">(</span>dbdelete<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>, <span style="color: #000000;">(</span>oBrw:<span style="color: #000000;">cAlias</span><span style="color: #000000;">)</span>-><span style="color: #000000;">(</span>dbpack<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>, oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>,<span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /> oChild:<span style="color: #000000;">bGotFocus</span> = <span style="color: #000000;">{</span> || dbselectarea<span style="color: #000000;">(</span> cAlias <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oChild <span style="color: #0000ff;">MAXIMIZED</span>;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">nHeight</span> := oChild:<span style="color: #000000;">nHeight</span><span style="color: #000000;">-163</span>, oBrw:<span style="color: #000000;">nWidth</span> := oChild:<span style="color: #000000;">nWidth</span><span style="color: #000000;">-12</span>, oBrw:<span style="color: #000000;">nTop</span>:=<span style="color: #000000;">130</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">CancelEdit</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,<span style="color: #000000;">(</span>cAlias<span style="color: #000000;">)</span>-><span style="color: #000000;">(</span>dbCloseArea<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>, .T. <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">//----------------//</span><br /><span style="color: #00C800;">Function</span> lCCtaOK<span style="color: #000000;">(</span>oBrw<span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> oDlg<br /><span style="color: #00C800;">local</span> cCodigo:=<span style="color: #000000;">(</span>oBrw:<span style="color: #000000;">cAlias</span><span style="color: #000000;">)</span>->telefono<br /><br /><span style="color: #00C800;">if</span> empty<span style="color: #000000;">(</span>cCodigo<span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">1</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">30</span>,<span style="color: #000000;">60</span><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /> <span style="color: #00C800;">return</span> .f.<br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">Return</span> .t.<br /><br /> </div>[/code:35qtxs3r]
Can you help me?
Sorry for my English.
Regards.
Francisco. |
very strange behavior in xBrowse (Bug?) | Thanks, Rao. Your example works fine, but the current get field keeps flashing. It is consuming resources?
I need to make many evaluations before recording the corresponding item, so use bPastEof and bOnPostEdit.
I'll try to adapt your code to mine.
Thanks, again.
Regards. |
very strange behavior in xBrowse (Bug?) | Rao, for the moment I've solved it by omitting the vertical scroll bar. I will try to fix it via code.
regards |
very strange behavior in xBrowse (Bug?) | For this purpose I installed 10.6 and worked out this sample and is working well. If you still have specific problems please let us know. Whatever that is possible with 10.6, we shall try to help. |
video - mail merging WINWORD 2007 via FWH | Video[url:e8bxbdyb]http://www.atzwanger-software.com/fw/docxneu/docxneu.html[/url:e8bxbdyb]Thanks to your help mail merging and WINWORD 2007 is working.Look at the incredible speed the merging is done.The sourcecode you find in topic:<!-- m --><a class="postlink" href="http://forums.fivetechsoft.com/viewtopic.php?t=13495">http://forums.fivetechsoft.com/viewtopic.php?t=13495</a><!-- m -->Regards,Otto |
video - mail merging WINWORD 2007 via FWH | Otto,Very good. large resources in a few lines. |
video frame width and height | Ciao
How can i have the video width and height of a file video ?
Example:
I have a file test.mp4 and i want to know the width and height of frames (600 x 1024,...)
Grazie |
video frame width and height | Dear Romeo,
I just asked the IA [url:3pn3sz50]https://beta.openai.com/playground[/url:3pn3sz50] to write the function:
[code=fw:3pn3sz50]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapi.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapiitm.h"</span><br /><span style="color: #00D7D7;">#include</span> <mfapi.h><br /><span style="color: #00D7D7;">#include</span> <mfreadwrite.h><br /><span style="color: #00D7D7;">#include</span> <mferror.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> GETMP4VIDEODIMENSIONS <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> HRESULT hr = CoInitializeEx<span style="color: #000000;">(</span> nullptr, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE <span style="color: #000000;">)</span>;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> FAILED<span style="color: #000000;">(</span> hr <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> printf<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Failed to initialize COM library. Error code = %x<span style="color: #000000;">\n</span>"</span>, hr <span style="color: #000000;">)</span>;<br /> hb_ret<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span><br /> <br /> IMFSourceReader *pReader = nullptr;<br /> hr = MFCreateSourceReaderFromURL<span style="color: #000000;">(</span> hb_parcx<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>, nullptr, &pReader <span style="color: #000000;">)</span>;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> FAILED<span style="color: #000000;">(</span> hr <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> printf<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Failed to create source reader. Error code = %x<span style="color: #000000;">\n</span>"</span>, hr <span style="color: #000000;">)</span>;<br /> CoUninitialize<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> hb_ret<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span><br /> <br /> IMFMediaType *pType = nullptr;<br /> hr = pReader->GetCurrentMediaType<span style="color: #000000;">(</span> MF_SOURCE_READER_FIRST_VIDEO_STREAM, &pType <span style="color: #000000;">)</span>;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> FAILED<span style="color: #000000;">(</span> hr <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> printf<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Failed to get media type. Error code = %x<span style="color: #000000;">\n</span>"</span>, hr <span style="color: #000000;">)</span>;<br /> pReader->Release<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> CoUninitialize<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> hb_ret<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span><br /> <br /> UINT32 u32Width = <span style="color: #000000;">0</span>;<br /> UINT32 u32Height = <span style="color: #000000;">0</span>;<br /> <br /> GUID subType;<br /> hr = pType->GetGUID<span style="color: #000000;">(</span> MF_MT_SUBTYPE, &subType <span style="color: #000000;">)</span>;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> FAILED<span style="color: #000000;">(</span> hr <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> printf<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Failed to get subtype. Error code = %x<span style="color: #000000;">\n</span>"</span>, hr <span style="color: #000000;">)</span>;<br /> pType->Release<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> pReader->Release<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> CoUninitialize<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> hb_ret<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span><br /> <br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> subType == MFVideoFormat_RGB24 <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> hr = MFGetAttributeSize<span style="color: #000000;">(</span> pType, MF_MT_FRAME_SIZE, &u32Width, &u32Height <span style="color: #000000;">)</span>;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> FAILED<span style="color: #000000;">(</span> hr <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> printf<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Failed to get frame size. Error code = %x<span style="color: #000000;">\n</span>"</span>, hr <span style="color: #000000;">)</span>;<br /> pType->Release<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> pReader->Release<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> CoUninitialize<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> hb_ret<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span><br /> <span style="color: #000000;">}</span><br /> <br /> pType->Release<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> <br /> hb_reta<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>;<br /> hb_storvni<span style="color: #000000;">(</span> u32Width, <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /> hb_storvni<span style="color: #000000;">(</span> u32Height, <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>;<br /> <br /> pReader->Release<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> CoUninitialize<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span></div>[/code:3pn3sz50] |
video frame width and height | hi,
[quote="Romeo":33km71ne]How can i have the video width and height of a file video ?[/quote:33km71ne]
you need to "load" Video to get Size e.g. using WMP (Windows Media Player)
[code=fw:33km71ne]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> Getwidth<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /><span style="color: #00C800;">RETURN</span> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">currentMedia</span>:<span style="color: #000000;">imageSourceWidth</span><br /><br /><span style="color: #00C800;">METHOD</span> Getheight<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /><span style="color: #00C800;">RETURN</span> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">currentMedia</span>:<span style="color: #000000;">imageSourceHeight</span></div>[/code:33km71ne]
---
this CLASS is for HMG but should no Problem to use it with Fivewin
[code=fw:33km71ne]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"HMG.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbclass.ch"</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"WMP.CH"</span><br /><br />MEMVAR _HMG_SYSDATA<br /><br />*+--------------------------------------------------------------------<br />*+<br />*+ <span style="color: #00C800;">Class</span> TWMP<br />*+<br />*+--------------------------------------------------------------------<br />*+<br /><span style="color: #00C800;">CLASS</span> TWMP<br /><br /> HIDDEN:<br /> <span style="color: #00C800;">DATA</span> oWMP<br /> <span style="color: #00C800;">DATA</span> nVolume <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">50</span><br /><br /> EXPORTED:<br /> <span style="color: #00C800;">DATA</span> cFileName<br /><br /> <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oActiveX <span style="color: #000000;">)</span> CONSTRUCTOR<br /> <span style="color: #00C800;">METHOD</span> Destroy<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> URL<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> stretchToFit<span style="color: #000000;">(</span> lOnOff <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> enableContextMenu<span style="color: #000000;">(</span> lOnOff <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> windowlessVideo<span style="color: #000000;">(</span> lOnOff <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> uiMode<span style="color: #000000;">(</span> cMode <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> PlayState<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> IsPlaying<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> fullScreen<span style="color: #000000;">(</span> lOnOff <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">METHOD</span> Play<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> CurrentPosition<span style="color: #000000;">(</span> nPosition <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">Pause</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> Stop<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> Getcurrentitem<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">METHOD</span> Mute<span style="color: #000000;">(</span> lMute <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> MoveVolume<span style="color: #000000;">(</span> nDirection <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> Volume<span style="color: #000000;">(</span> nVolume <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> AutoStart<span style="color: #000000;">(</span> lOnOff <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">METHOD</span> Duration<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> Getfps<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> Getwidth<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> Getheight<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">METHOD</span> GetVersion<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oActiveX <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /><span style="color: #00C800;">LOCAL</span> oRet := <span style="color: #00C800;">NIL</span><br /><span style="color: #00C800;">LOCAL</span> bOldError, oError, cText<br /><br /> <span style="color: #00C800;">IF</span> HB_ISOBJECT<span style="color: #000000;">(</span> oActiveX <span style="color: #000000;">)</span><br /> bOldError := ERRORBLOCK<span style="color: #000000;">(</span> <span style="color: #000000;">{</span> | e | <span style="color: #00C800;">BREAK</span><span style="color: #000000;">(</span> e <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> BEGIN SEQUENCE<br /> ::<span style="color: #000000;">oWMP</span> := oActiveX<br /><br /> <span style="color: #B900B9;">// test if we can accese it</span><br /> cText := ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">versionInfo</span><br /> <span style="color: #00C800;">IF</span> EMPTY<span style="color: #000000;">(</span> cText <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">BREAK</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">enableContextMenu</span> := .F. <span style="color: #B900B9;">// don't show right menu</span><br /> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">windowlessVideo</span> := .T. <span style="color: #B900B9;">// prevent double-click fullscreen on XP</span><br /> <span style="color: #B900B9;">// ::oWMP:uiMode := "full" // with all Controls</span><br /> <span style="color: #B900B9;">// ::oWMP:uiMode := "mini" // with some Controls</span><br /> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">uiMode</span> := <span style="color: #ff0000;">"none"</span> <span style="color: #B900B9;">// with none Controls</span><br /><br /> ::<span style="color: #000000;">volume</span><span style="color: #000000;">(</span> <span style="color: #000000;">50</span> <span style="color: #000000;">)</span><br /><br /> oRet := <span style="color: #00C800;">self</span><br /><br /> RECOVER USING oError<br /> ERRORBLOCK<span style="color: #000000;">(</span> bOldError <span style="color: #000000;">)</span><br /><br /> SP_laxError<span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Problem WMP Engine"</span> + CRLF + CRLF + oError:<span style="color: #000000;">description</span> + <span style="color: #ff0000;">" : "</span> + oError:<span style="color: #000000;">operation</span>, <span style="color: #ff0000;">"Error VLC ActiveX "</span> + LTRIM<span style="color: #000000;">(</span> HB_VALTOSTR<span style="color: #000000;">(</span> oError:<span style="color: #000000;">osCode</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> ::<span style="color: #000000;">Destroy</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /> END SEQUENCE<br /> ERRORBLOCK<span style="color: #000000;">(</span> bOldError <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">DO</span> EVENTS<br /><br /> <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> oRet<br /><br /><span style="color: #00C800;">METHOD</span> Destroy<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /> ::<span style="color: #000000;">oWMP</span> := <span style="color: #00C800;">NIL</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span><br /><br /><span style="color: #00C800;">METHOD</span> URL<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">URL</span> := cFile<br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span><br /><br /><span style="color: #00C800;">METHOD</span> stretchToFit<span style="color: #000000;">(</span> lOnOff <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">stretchToFit</span> := lOnOff<br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span><br /><br /><span style="color: #00C800;">METHOD</span> enableContextMenu<span style="color: #000000;">(</span> lOnOff <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">enableContextMenu</span> := lOnOff<br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span><br /><br /><span style="color: #00C800;">METHOD</span> windowlessVideo<span style="color: #000000;">(</span> lOnOff <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">windowlessVideo</span> := lOnOff<br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span><br /><br /><span style="color: #00C800;">METHOD</span> uiMode<span style="color: #000000;">(</span> cMode <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">uiMode</span> := cMode<br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span><br /><br /><span style="color: #00C800;">METHOD</span> PlayState<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /><span style="color: #00C800;">LOCAL</span> nRet := wmppsUndefined<br /><span style="color: #00C800;">LOCAL</span> bOldError := ERRORBLOCK<span style="color: #000000;">(</span> <span style="color: #000000;">{</span> | e | <span style="color: #00C800;">BREAK</span><span style="color: #000000;">(</span> e <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> BEGIN SEQUENCE<br /> nRet := ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">PlayState</span><br /> END SEQUENCE<br /> ERRORBLOCK<span style="color: #000000;">(</span> bOldError <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">DO</span> EVENTS<br /><br /><span style="color: #00C800;">RETURN</span> nRet<br /><br /><span style="color: #00C800;">METHOD</span> IsPlaying<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /><span style="color: #00C800;">LOCAL</span> lRet := .F.<br /><span style="color: #00C800;">LOCAL</span> bOldError := ERRORBLOCK<span style="color: #000000;">(</span> <span style="color: #000000;">{</span> | e | <span style="color: #00C800;">BREAK</span><span style="color: #000000;">(</span> e <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> BEGIN SEQUENCE<br /><br /> <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">PlayState</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> = wmppsPlaying<br /> lRet := .T.<br /> <span style="color: #00C800;">ELSE</span><br /> lRet := .F.<br /> <span style="color: #00C800;">ENDIF</span><br /><br /> END SEQUENCE<br /> ERRORBLOCK<span style="color: #000000;">(</span> bOldError <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">DO</span> EVENTS<br /><br /><span style="color: #00C800;">RETURN</span> lRet<br /><br /><span style="color: #00C800;">METHOD</span> fullScreen<span style="color: #000000;">(</span> lOnOff <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /><span style="color: #00C800;">LOCAL</span> lRet := .F.<br /><span style="color: #00C800;">LOCAL</span> bOldError := ERRORBLOCK<span style="color: #000000;">(</span> <span style="color: #000000;">{</span> | e | <span style="color: #00C800;">BREAK</span><span style="color: #000000;">(</span> e <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> BEGIN SEQUENCE<br /><br /> <span style="color: #00C800;">IF</span> PCOUNT<span style="color: #000000;">(</span><span style="color: #000000;">)</span> > <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">IsPlaying</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">fullScreen</span> := lOnOff<br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">ENDIF</span><br /> lRet := ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">fullScreen</span><br /><br /> END SEQUENCE<br /> ERRORBLOCK<span style="color: #000000;">(</span> bOldError <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">DO</span> EVENTS<br /><br /><span style="color: #00C800;">RETURN</span> lRet<br /><br /><span style="color: #B900B9;">// ************************ ::oControls *************************</span><br /><br /><span style="color: #00C800;">METHOD</span> Play<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">controls</span>:<span style="color: #000000;">Play</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ShowRadio<span style="color: #000000;">(</span> <span style="color: #ff0000;">"VREDPLAY"</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span><br /><br /><span style="color: #00C800;">METHOD</span> CurrentPosition<span style="color: #000000;">(</span> nPosition <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /> <span style="color: #00C800;">IF</span> PCOUNT<span style="color: #000000;">(</span><span style="color: #000000;">)</span> > <span style="color: #000000;">0</span><br /> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">controls</span>:<span style="color: #000000;">CurrentPosition</span> := nPosition<br /> <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">controls</span>:<span style="color: #000000;">CurrentPosition</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">Pause</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">controls</span>:<span style="color: #00C800;">Pause</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ShowRadio<span style="color: #000000;">(</span> <span style="color: #ff0000;">"VREDPAUSE"</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span><br /><br /><span style="color: #00C800;">METHOD</span> Stop<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">controls</span>:<span style="color: #000000;">Stop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ShowRadio<span style="color: #000000;">(</span> <span style="color: #ff0000;">"VREDSTOP"</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span><br /><br /><span style="color: #00C800;">METHOD</span> Getcurrentitem<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /><span style="color: #00C800;">RETURN</span> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">controls</span>:<span style="color: #000000;">currentitem</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">// ************************ ::oSettings *************************</span><br /><br /><span style="color: #00C800;">METHOD</span> Mute<span style="color: #000000;">(</span> lMute <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /> <span style="color: #00C800;">IF</span> PCOUNT<span style="color: #000000;">(</span><span style="color: #000000;">)</span> > <span style="color: #000000;">0</span><br /> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">Settings</span>:<span style="color: #000000;">mute</span> := lMute<br /> <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">Settings</span>:<span style="color: #000000;">mute</span><br /><br /><span style="color: #00C800;">METHOD</span> MoveVolume<span style="color: #000000;">(</span> nDirection <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /><span style="color: #00C800;">LOCAL</span> nVol := ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">Settings</span>:<span style="color: #000000;">volume</span><br /><br /> <span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">(</span> nDirection <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> nDirection > <span style="color: #000000;">0</span><br /> nVol ++<br /> <span style="color: #00C800;">IF</span> nVol >= <span style="color: #000000;">100</span><br /> nVol := <span style="color: #000000;">100</span><br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">ELSE</span><br /> nVol --<br /> <span style="color: #00C800;">IF</span> nVol < <span style="color: #000000;">0</span><br /> nVol := <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">ENDIF</span><br /> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">Settings</span>:<span style="color: #000000;">volume</span> := nVol<br /> <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span> nVol<br /><br /><span style="color: #00C800;">METHOD</span> Volume<span style="color: #000000;">(</span> nVolume <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /> <span style="color: #00C800;">IF</span> PCOUNT<span style="color: #000000;">(</span><span style="color: #000000;">)</span> > <span style="color: #000000;">0</span><br /> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">Settings</span>:<span style="color: #000000;">volume</span> := nVolume<br /> <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">Settings</span>:<span style="color: #000000;">volume</span><br /><br /><span style="color: #00C800;">METHOD</span> AutoStart<span style="color: #000000;">(</span> lOnOff <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /> <span style="color: #00C800;">IF</span> PCOUNT<span style="color: #000000;">(</span><span style="color: #000000;">)</span> > <span style="color: #000000;">0</span><br /> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">Settings</span>:<span style="color: #000000;">autoStart</span> := lOnOff<br /> <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">Settings</span>:<span style="color: #000000;">autoStart</span><br /><br /><span style="color: #B900B9;">// ************************ ::oCurrentMedia *************************</span><br /><br /><span style="color: #00C800;">METHOD</span> Duration<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /><span style="color: #00C800;">RETURN</span> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">currentMedia</span>:<span style="color: #000000;">Duration</span><br /><br /><span style="color: #00C800;">METHOD</span> Getfps<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /><span style="color: #00C800;">LOCAL</span> nFrameRate := ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">currentMedia</span>:<span style="color: #000000;">getItemInfoByType</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"FrameRate"</span>, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span> nFrameRate / <span style="color: #000000;">1000</span><br /><br /><span style="color: #00C800;">METHOD</span> Getwidth<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /><span style="color: #00C800;">RETURN</span> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">currentMedia</span>:<span style="color: #000000;">imageSourceWidth</span><br /><br /><span style="color: #00C800;">METHOD</span> Getheight<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWMP<br /><span style="color: #00C800;">RETURN</span> ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">currentMedia</span>:<span style="color: #000000;">imageSourceHeight</span><br /><br /><span style="color: #00C800;">METHOD</span> GetVersion<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> cRet := <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">LOCAL</span> bOldError := ERRORBLOCK<span style="color: #000000;">(</span> <span style="color: #000000;">{</span> | e | <span style="color: #00C800;">BREAK</span><span style="color: #000000;">(</span> e <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> BEGIN SEQUENCE<br /> cRet := ::<span style="color: #000000;">oWMP</span>:<span style="color: #000000;">versionInfo</span><br /> END SEQUENCE<br /> ERRORBLOCK<span style="color: #000000;">(</span> bOldError <span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span> cRet<br /><br />*+ EOF: <span style="color: #000000;">TWMP</span>.PRG</div>[/code:33km71ne]
[code=fw:33km71ne]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">////////////////////////////////////////////////////////////////////////////////</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// Automatically generated Header File</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// Program ID: WMPLAYER.OCX.7</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// Creation Date: 16.05.05</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// Creation Tool: TLB2CH.EXE</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// Copyright (c) Alaska Software. All rights reserved.</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">////////////////////////////////////////////////////////////////////////////////</span><br /><br />#ifndef WMPLAYER_OCX_7_HAEDER_DAEMON<br /><br /><span style="color: #B900B9;">// Enumeration WMPPlaylistChangeEventType</span><br /><span style="color: #B900B9;">//WMP Playlist Change Event Type</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmplcUnknown <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmplcClear <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmplcInfoChange <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmplcMove <span style="color: #000000;">3</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmplcDelete <span style="color: #000000;">4</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmplcInsert <span style="color: #000000;">5</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmplcAppend <span style="color: #000000;">6</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmplcPrivate <span style="color: #000000;">7</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmplcNameChange <span style="color: #000000;">8</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmplcMorph <span style="color: #000000;">9</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmplcSort <span style="color: #000000;">10</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmplcLast <span style="color: #000000;">11</span><br /><span style="color: #B900B9;">// Enumeration WMPOpenState</span><br /><span style="color: #B900B9;">//State of opening process</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmposUndefined <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmposPlaylistChanging <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmposPlaylistLocating <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmposPlaylistConnecting <span style="color: #000000;">3</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmposPlaylistLoading <span style="color: #000000;">4</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmposPlaylistOpening <span style="color: #000000;">5</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmposPlaylistOpenNoMedia <span style="color: #000000;">6</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmposPlaylistChanged <span style="color: #000000;">7</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmposMediaChanging <span style="color: #000000;">8</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmposMediaLocating <span style="color: #000000;">9</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmposMediaConnecting <span style="color: #000000;">10</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmposMediaLoading <span style="color: #000000;">11</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmposMediaOpening <span style="color: #000000;">12</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmposMediaOpen <span style="color: #000000;">13</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmposBeginCodecAcquisition <span style="color: #000000;">14</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmposEndCodecAcquisition <span style="color: #000000;">15</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmposBeginLicenseAcquisition <span style="color: #000000;">16</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmposEndLicenseAcquisition <span style="color: #000000;">17</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmposBeginIndividualization <span style="color: #000000;">18</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmposEndIndividualization <span style="color: #000000;">19</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmposMediaWaiting <span style="color: #000000;">20</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmposOpeningUnknownURL <span style="color: #000000;">21</span><br /><span style="color: #B900B9;">// Enumeration WMPPlayState</span><br /><span style="color: #B900B9;">//State of playback</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmppsUndefined <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmppsStopped <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmppsPaused <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmppsPlaying <span style="color: #000000;">3</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmppsScanForward <span style="color: #000000;">4</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmppsScanReverse <span style="color: #000000;">5</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmppsBuffering <span style="color: #000000;">6</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmppsWaiting <span style="color: #000000;">7</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmppsMediaEnded <span style="color: #000000;">8</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmppsTransitioning <span style="color: #000000;">9</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmppsReady <span style="color: #000000;">10</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmppsReconnecting <span style="color: #000000;">11</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmppsLast <span style="color: #000000;">12</span><br /><span style="color: #B900B9;">// Enumeration WMPSubscriptionDownloadState</span><br /><span style="color: #B900B9;">//State of a download</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmpsdlsDownloading <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmpsdlsPaused <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmpsdlsProcessing <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmpsdlsCompleted <span style="color: #000000;">3</span><br /><span style="color: #00D7D7;">#DEFINE</span> wmpsdlsCancelled <span style="color: #000000;">4</span><br /><span style="color: #B900B9;">// Enumeration WMP_WRITENAMESEX_TYPE</span><br /><span style="color: #00D7D7;">#DEFINE</span> WMP_WRITENAMES_TYPE_CD_BY_TOC <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#DEFINE</span> WMP_WRITENAMES_TYPE_CD_BY_CONTENT_ID <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#DEFINE</span> WMP_WRITENAMES_TYPE_CD_BY_MDQCD <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#DEFINE</span> WMP_WRITENAMES_TYPE_DVD_BY_DVDID <span style="color: #000000;">3</span><br /><br /><span style="color: #00D7D7;">#define</span> WMPLAYER_OCX_7_HAEDER_DAEMON<br />#endif <span style="color: #B900B9;">//WMPLAYER_OCX_7_HAEDER_DAEMON</span></div>[/code:33km71ne]
[code=fw:33km71ne]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #0000ff;">DEFINE</span> ACTIVEX oxWMP<br /> PARENT Form_1<br /> ROW <span style="color: #000000;">0</span><br /> COL <span style="color: #000000;">0</span><br /> WIDTH MaxDeskWidth<span style="color: #000000;">(</span> aSize<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> HEIGHT MaxDeskHeight<span style="color: #000000;">(</span> aSize<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> - nTitlebar - nMenusize - nPBheight - nSliderheight - <span style="color: #000000;">(</span> nFrame * <span style="color: #000000;">6</span> <span style="color: #000000;">)</span> - nSbarheight <span style="color: #000000;">)</span><br /> PROGID <span style="color: #ff0000;">"WMPlayer.OCX.7"</span><br /> TOOLTIP <span style="color: #ff0000;">"right-click Mouse Menu"</span><br /> END ACTIVEX</div>[/code:33km71ne] |
video frame width and height | Dear Jimmy,
many thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
video frame width and height | I am not "a great sw developer"...
I hoped a simple prg, almost ready
I try to do it
Grazie anyhow |
video frame width and height | hi,
what do you want to do with Video <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
if you want to "play" it you do not need "Size" while Video will use "given Size" to make a "Overlay" where it "play" it
but to "play" Video you need CODE which use OOP and not Function as it work with different Interface of ActiveX
so tell us hole Story what you want to do with Video File |
video frame width and height | I downloaded from telegram thousands
Of video files about workout/fitness
There are many different resolution of them and some of them are not
good to show on TV/monitor
I wanna separate them by resolution....
And other works |
video frame width and height | hi,
Ok, i understand ... hm
perhaps you can use a "Converter" to get
a.) Information about Source Video
b.) "upscale" to new TV-Format
look at "Handbrake" which use much CPU Power
---
when you have so much Video what do you use as "Player" and how does it connect to TV (Input) <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
i do use WMP or VLC ActiveX in my App to "play" Video Files
a.) via HDMI of Grafic Card
b.) as "Media"-Server (http in local Network)
both "Player" also can use Internet-Stream (IP-TV) as Source
VLC also have "Record"*** Button and can "convert" Video so you can "save" Internet-Stream on local Drive
***not available in ActiveX
Tip : when Website "detect" a Smartphone it will show Video in other Format as PC which will better "fit" to TV (16:9) |
video frame width and height | Grazie for info
I simply copy all the video files onto a USB key and insert it into the back of the TV, then run it from the TV remote
It is for a client who has a bodybuilding gym |
video frame width and height | hi,
open Windows Explorer and navigate into Folder where your Video Files are
right-click at End on Header to open Popup-Menu for Property
now search for "Size" and "bitrate" Property an SET Checkbox
[img:37q8znmd]https://i.postimg.cc/Kv8vHZNX/More-Property.png[/img:37q8znmd]
p.s. will not show Property of every Video Type like FLV |
video frame width and height | hi,
for Programmer : File Metadata
[url:2n4vc7ub]https://github.com/Dijji/FileMeta[/url:2n4vc7ub]
there is NO *.EXE so App must be build using MSVC
have to figure out how CODE can be used with harbour ... |
video frame width and height | Grazie |
video gallery | Today I added a video gallery to my modharbour.club web page.
Best regards,
Otto
[url:3thqb83h]https://www.modharbour.club[/url:3thqb83h]
[url:3thqb83h]https://www.modharbour.club/mh_videogallery/index.prg[/url:3thqb83h] |
video: newsletter subscription module with mod harbour | [url:dr82ja88]https://mybergland.com/fwforum/newsletter.mp4[/url:dr82ja88]
Hello,
I made a video that shows how you can easily create a newsletter subscription module with mod harbour.
The video shows everything from design to save in a dbf file.
You can also register for the newsletter. We try to send mod harbor information from time to time.
Best regards,
Otto
[url:dr82ja88]https://winhotel.space/newsletter/index.prg[/url:dr82ja88]
[url:dr82ja88]https://mybergland.com/fwforum/newsletter.mp4[/url:dr82ja88] |
video: newsletter subscription module with mod harbour | Hello,
Not bad to start with. There are 2 newsletter registrations.
I plan to send the newsletter to mod harbor always at the beginning of the month.
I collect exciting contributions and then send a link list.
Best regards,
Otto |
video: newsletter subscription module with mod harbour | [url:1pz423px]https://mybergland.com/fwforum/newsletter.mp4[/url:1pz423px]
Hello,
I made a video that shows how you can easily create a newsletter subscription module with mod harbour.
The video shows everything from design to save in a dbf file.
You can also register for the newsletter. We try to send mod harbor information from time to time.
Best regards,
Otto
[url:1pz423px]https://winhotel.space/newsletter/index.prg[/url:1pz423px]
[url:1pz423px]https://mybergland.com/fwforum/newsletter.mp4[/url:1pz423px] |
video: newsletter subscription module with mod harbour | Hello,
Thank you for your newsletter subscription.
We sent the first newsletter.
mod harbor brings us an exciting time.
I wish you all a lovely day and remain with kind regards
Otto
[url:f5v9rx5p]https://t4d236b6b.emailsys2a.net/mailing/22/2564889/0/54eb1cffa1/index.html[/url:f5v9rx5p] |
videos de las sesiones de mod_harbour en YouTube | Primer video:
[url:2unc1skm]https://youtu.be/Ke26VAxmNyQ[/url:2unc1skm]
Segundo video:
[url:2unc1skm]https://youtu.be/vKlayoY1knk[/url:2unc1skm]
Tercer video:
[url:2unc1skm]https://youtu.be/YK4Slt2Xo9I[/url:2unc1skm]
Cuarto video:
[url:2unc1skm]https://youtu.be/QQ7VgyGrl5Q[/url:2unc1skm] |
videos de las sesiones de mod_harbour en YouTube | Quinto video:
[url:2mak02k6]https://youtu.be/SU8twiSbGIQ[/url:2mak02k6]
* ORM
* Views concepts and implementation
* Small web app full review
* Bootstrap utilities
* etc |
videos de las sesiones de mod_harbour en YouTube | 6º video: (en Español)
[url:2il5dys8]https://www.youtube.com/watch?v=hPFexyAS-24&feature=youtu.be[/url:2il5dys8]
* DataTable API examples by Quim Ferrer
* Debugging using the web browse inspector console
* GitHub online editing
* Git pull from the remote server
* mod_harbour meta commands
* Ajax PRG execution
* PDFs support |
videos de las sesiones de mod_harbour en YouTube | Séptimo video:
[url:7urzpk4h]https://youtu.be/g6ayWD5AF9w[/url:7urzpk4h]
* Forms designer
* DataTable API
* JSON -> Harbour to javascript values
* AP_Body() fix
* Construyendo mod_harbour
y más... |
videos de las sesiones de mod_harbour en YouTube | Octavo vídeo:
[url:5jn4paga]https://youtu.be/Vekngay1lj4[/url:5jn4paga] |
videos de las sesiones de mod_harbour en YouTube | Estimado Antonio :
Donde se encuentran los siguientes videos ?
Algun canal para suscribirse ?
Saludos |
videos sql (linux/mysql y mssql 2008r2/windows) para dummy | mysql en linux.
===============
[url:2749p7ik]https://www.youtube.com/watch?v=ObMOMhJx11k[/url:2749p7ik]
[quote:2749p7ik]
1.-Creación de maquina virtual con virtual box.
2.-Instalación de ubuntu linux 14.4.1 server. (incluye modulo ssh,mysql,php,apache2 conocido como LAMP)
3.-Configuración de entorno de red.
4.-Prueba de ping entre los equipos. (prueba de que hay conexión entre los equipos)
5.-Instalación de phpmyadmin, prueba de conexión de phpmyadmin desde navegador en pc remota.
6.-Creación de usuario con permisos de conexión desde cualquier parte y con todos los permisos.
7.-Permitir conexión remota en mysql. (modificando my.cnf)
8.-Prueba de conexión remota con heidisql.
9.-Creación de base de datos.
10.-Creación de tabla.
11.-Creación de conexión odbc en equipo remoto, para probar conexión.
[/quote:2749p7ik] |
videos sql (linux/mysql y mssql 2008r2/windows) para dummy | [url:1z0ykl51]http://forums.fivetechsupport.com/viewtopic.php?f=6&t=29063#p163873[/url:1z0ykl51] |
videos sql (linux/mysql y mssql 2008r2/windows) para dummy | mssql 2008 r2 - primera parte
[url:32igrt0z]https://www.youtube.com/watch?v=14xc7_8GekU[/url:32igrt0z]
[quote:32igrt0z]
1.-Creación de maquina virtual con virtual box.
2.-Instalación de windows.
3.-Configuración de red.
4.-Permitir ping en windows 7.
5.-Prueba de ping entre equipos de prueba. (prueba de que hay conexión entre los equipos)
[/quote:32igrt0z]
mssql 2008 r2 - segunda parte
[url:32igrt0z]https://www.youtube.com/watch?v=U-FTnzydktU[/url:32igrt0z]
[quote:32igrt0z]
6.-Instalación de mssql server 2008 R2 SP2 express con consola de administración.
7.-Creación y prueba de conexión odbc con native client desde equipo servidor.
8.-Configurar permitir conexiones remotas.
9.-Apertura en firewall de los servicios del servidor mssql.
10.-Creación de base de datos y tabla de prueba.
11.-Creación y prueba de conexión odbc con native client desde equipo remoto.
12.-Creación de programa de prueba usando ado con fwh desde equipo remoto.
[/quote:32igrt0z] |
videos sql (linux/mysql y mssql 2008r2/windows) para dummy | Obrigado Carlos. |
vieja duda con respecto a los GET | Hola.
[code=fw:2arqzzsq]<div class="fw" id="{CB}" style="font-family: monospace;">...<br /><span style="color: #0000ff;">redefine</span> <span style="color: #0000ff;">get</span> oGet<span style="color: #000000;">[</span> <span style="color: #000000;">01</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">var</span> vGet<span style="color: #000000;">[</span> <span style="color: #000000;">01</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">100</span> <span style="color: #0000ff;">of</span> oDlg <br />...<br /> </div>[/code:2arqzzsq]
Mi duda es : como le digo al get que va a tener 200 lugares para poder trabajar y luego asignarle un
valor a ese get?
esto le digo la longitud que va tener
[code=fw:2arqzzsq]<div class="fw" id="{CB}" style="font-family: monospace;">vGet<span style="color: #000000;">[</span> <span style="color: #000000;">01</span> <span style="color: #000000;">]</span>:= space<span style="color: #000000;">(</span><span style="color: #000000;">200</span><span style="color: #000000;">)</span></div>[/code:2arqzzsq]
Pero si luego quiero inicializarlo con un valor, al hacer esto:
[code=fw:2arqzzsq]<div class="fw" id="{CB}" style="font-family: monospace;">vGet<span style="color: #000000;">[</span> <span style="color: #000000;">01</span> <span style="color: #000000;">]</span>:= <span style="color: #ff0000;">"hola"</span></div>[/code:2arqzzsq]
la longitud se redujo de 200 a 4, como hago para que mantenga los 200?
gracias. |
vieja duda con respecto a los GET | [code=fw:1777tu83]<div class="fw" id="{CB}" style="font-family: monospace;"><br />vGet<span style="color: #000000;">[</span> <span style="color: #000000;">01</span> <span style="color: #000000;">]</span>:= <span style="color: #ff0000;">"hola"</span> + SPACE<span style="color: #000000;">(</span><span style="color: #000000;">196</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// = 200 espacios.</span><br /> </div>[/code:1777tu83]
Saludos. |
vieja duda con respecto a los GET | pense que era el unico que lo hacia de esa manera... |
vieja duda con respecto a los GET | Puede también:
[code=fw:3q5rw9zk]<div class="fw" id="{CB}" style="font-family: monospace;"><br />STORE vGet<span style="color: #000000;">[</span> <span style="color: #000000;">01</span> <span style="color: #000000;">]</span>:= <span style="color: #ff0000;">"hola"</span> + SPACE<span style="color: #000000;">(</span><span style="color: #000000;">196</span><span style="color: #000000;">)</span> <br /> </div>[/code:3q5rw9zk]
Saludos. |
vieja duda con respecto a los GET | gosfancito, usted puede hacer también:
[code=fw:xx7xaot9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> cGet:=<span style="color: #ff0000;">"Hola"</span><br /> ...<br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> cGet <span style="color: #0000ff;">ID</span> <span style="color: #000000;">100</span> <span style="color: #0000ff;">OF</span> oDlg MEMO<br /> </div>[/code:xx7xaot9]
Ojo! acepta más de 200 chars.
Saludos, Euclides |
vieja duda con respecto a los GET | O así :
STORE vGet[ 01 ]:= PadR("hola", 200)
PAD()
Llena valores de caracteres, fechas y numéricos con caracteres de relleno
------------------------------------------------------------------------------
Sintaxis
PADL(<exp>, <nLongitud>, [<cCarRelleno>]) --> cCadenaRellena
PADC(<exp>, <nLongitud>, [<cCarRelleno>]) --> cCadenaRellena
PADR(<exp>, <nLongitud>, [<cCarRelleno>]) --> cCadenaRellena
Argumentos
<exp> es el valor de caracteres, numérico o de fechas que se va a
rellenar.
<nLongitud> es la longitud de la cadena de caracteres que se va a
devolver.
<cCarRelleno> es el carácter con el que se va a rellenar <exp>. Si
no se especifica, el valor por defecto es caracteres de espacio. |
vieja duda con respecto a los GET | Euclides, el problema que tengo no es por los 200, asi sean 20, cuando asignas un valor...
[quote="Euclides":3tbz26ja]gosfancito, usted puede hacer también:
[code=fw:3tbz26ja]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> cGet:=<span style="color: #ff0000;">"Hola"</span><br /> ...<br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> cGet <span style="color: #0000ff;">ID</span> <span style="color: #000000;">100</span> <span style="color: #0000ff;">OF</span> oDlg MEMO<br /> </div>[/code:3tbz26ja]
Ojo! acepta más de 200 chars.
Saludos, Euclides[/quote:3tbz26ja] |
views static variables | Hello,
Using document.read and innerHTML helped.
[code=fw:3r2das2l]<div class="fw" id="{CB}" style="font-family: monospace;"> <script><br /> $<span style="color: #000000;">(</span>document<span style="color: #000000;">)</span>.ready<span style="color: #000000;">(</span><span style="color: #00C800;">function</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">{</span><br /> document.getElementById<span style="color: #000000;">(</span><span style="color: #ff0000;">'title'</span><span style="color: #000000;">)</span>.innerHTML=<span style="color: #ff0000;">'{{ breadcrumbs() }}'</span> ;<br /> <span style="color: #000000;">}</span><span style="color: #000000;">)</span>;<br /></script></div>[/code:3r2das2l]
---------------------------------------------------------------------------------------------------
In this context, I also googled the following question:
Can you have multiple $(document).ready(function(){ … }); sections?
You can have multiple ones, but it's not always the neatest thing to do. Try not to overuse them, as it will seriously affect readability. Other than that , it's perfectly legal.
<!-- m --><a class="postlink" href="https://stackoverflow.com/questions/1327756/can-you-have-multiple-document-readyfunction-sections">https://stackoverflow.com/questions/132 ... n-sections</a><!-- m -->
Best regards,
Otto |
views static variables | Dear Antonio,
Can you please help me to understand what I am doing wrong?
If I change a static variable in the router module, I don't see the change in the "VIEW" module.
But if I insert the code directly into the mod_harbour prg instead of VIEW, then everything fits.
What mistake am I making here?
Thank you in advance and best regards
Otto
I test with GENESIS.
Router function
...
cbreadcrumbneu := "***" + cbreadcrumbneu + "***"
return View( cRoute )
view( "body" )
...
<a id="title" class="navbar-brand mr-auto" style="color:white;padding-left:30px;">{{ breadcrumbs() }}</a>
...
function BuildEdit
...
cHtml += '{{ breadcrumbs() }}'
...
[img:1uxlj3rl]https://mybergland.com/fwforum/viewmode.jpg[/img:1uxlj3rl] |
views static variables | Dear Antonio,
I'm sorry. I found my mistake.
I first query breadcrumbs before calling the router which sets the variable.
Best regards,
Otto
[code=fw:3l6t9gzc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <!-- <span style="color: #0000ff;">Page</span> Content --><br /> <div <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">"content"</span>><br /> <img src=<span style="color: #ff0000;">"./assets/img/winhotelqr.svg"</span> width=<span style="color: #ff0000;">"300px"</span>/><br /> <p></p><br /> <span <span style="color: #0000ff;">style</span>=<span style="color: #ff0000;">"font-size:30px;cursor:pointer"</span> <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">"open"</span> onclick=<span style="color: #ff0000;">"openNav()"</span>>&#<span style="color: #000000;">9776</span>; NAV open</span><br /> <br /> <nav <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"navbar navbar-expand-lg navbar-inverse"</span> <span style="color: #0000ff;">style</span>=<span style="color: #ff0000;">"background-color:{{GetColor2()}};border:0px;"</span>><br /> <a <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">"title"</span> <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"navbar-brand mr-auto"</span> <span style="color: #0000ff;">style</span>=<span style="color: #ff0000;">"color:white;padding-left:30px;"</span>><span style="color: #000000;">{</span><span style="color: #000000;">{</span> breadcrumbs<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><span style="color: #000000;">}</span></a><br /><br /> <span style="color: #000000;">{</span><span style="color: #000000;">{</span> cRouteGesamt<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><span style="color: #000000;">}</span> <br /> <br /> <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"nav-item"</span> <span style="color: #0000ff;">style</span>=<span style="color: #ff0000;">"color:white;display:inline-block;cursor:pointer;"</span> onclick=<span style="color: #ff0000;">"Logout();"</span>><br /> <a <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"nav-link"</span> <span style="color: #0000ff;">style</span>=<span style="color: #ff0000;">"color:white;"</span> <span style="color: #0000ff;">style</span>=<span style="color: #ff0000;">"cursor:pointer;"</span>><span style="color: #000000;">{</span><span style="color: #000000;">{</span>GetUserName<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><span style="color: #000000;">}</span><br /> <i <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"fa fa-sign-out"</span> <span style="color: #0000ff;">style</span>=<span style="color: #ff0000;">"padding-left:15px;"</span>></i></a><br /> </div><br /> </nav> <br /><br /> <span style="color: #000000;">{</span><span style="color: #000000;">{</span>Router<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><span style="color: #000000;">}</span> <br /><br /> </div><br /> <br /><br /> </div>[/code:3l6t9gzc] |
views static variables | Great
Thank you for sharing it |
virtual dashboard | I wish create on the window of my application at init a virtual dashboard
where we can insert : memo, advices, messages for the final users....
Each sections must have:
a big image at left
a text at center ( the text can have urlink to our procedures
a button at right ( where I can associate a small menu (print section /hidesection)
type this
[img:k8cjtkd3]https://s12.postimg.org/6z9owcr5p/image.jpg[/img:k8cjtkd3]
any solution please ? |
virtual dashboard | Silvio,
Please review FWH\samples\vistamn1.prg |
virtual dashboard | Antonio,
I saw and I Know it
but you can only insert menuitem (urlink)
instead I need to insert also text for a sample
the final user can insert a memo for his bussiness
look the first section of the snapshot |
virtual search in the storage boxes | Best regards,
Otto
[img:396caidv]https://mybergland.com/fwforum/buecherboxgrafik1.png[/img:396caidv]
[img:396caidv]https://mybergland.com/fwforum/qrcodesuche.gif[/img:396caidv] |
visual invoince designer | Hi,
We need to incorporate a visual invoice designer, allowing the user to modify the format, change sze, fonts, ...
I have tried Easyreport but we find important objections, such as the IDE is not stable, the support is too bad and it does not include the source code. Also, we are considering Crystal Reports.
But I would like to know if someone has this routine on sale, for Harbour and with the source code. For further details, I can be contacted at .
Thank you!. Regards,
Moisés |
visual invoince designer | Just a heads up on another alternative to Crystal Reports that I came across. [url=http://www.combit.net/en/reporting.aspx:2epmxjr9]List & Label 12[/url:2epmxjr9] has its own report designer that can be freely redistributed. |
visual invoince designer | Hi Hua,
I downloaded the Trial of List and Label.
Can you help with some sample code with FWH. |
visual invoince designer | Sorry I can't help you there Ollie <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> . I came across it only recently and had yet look into it further. I guess you could try to email them and ask though, as I believed they are some Fivewinners using it |
visual invoince designer | You will need a recent version of FiveWin because all the stuff is supported via OCX, you will need FiveWin's ActiveX support in order to use it.
In my opinion, L&L is the most "intelligent" report designer for programers because it does what you need to be done, all programatically.
-------------------------------------------
CU in Santiago de Chile on Oct. 13th
Buenos Aires from Nov. 3rd. to 5th. |
visual invoince designer | Thanks Rene,
Please be more specific:
What version of FiveWin do I need (for OCX support)
Have you got some sample code I can see how it is used. I don't really know where to start. I would appreciate any help you can give. |
visual invoince designer | Paco, from canal-5, is preparing a report designer!!!. |
visual invoince designer | Moises,
Its sadly to say it, but Paco has started lots of projects that he never ended |
visual invoince designer | Huh?
I'm starting to get a bit desperate here - can anyone help?
What version of FiveWin do I need (for OCX support for List&Label)
Does anyone have any sample code to show me how to use it in FWH? I really don't know where to start. I would appreciate any help. |
visual invoince designer | Ollie,
It looks as Maurizio (<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->) already uses it with FWH.
Maurizio, could you help us ? Thanks |
visual report designer | Hi,
In response to Julian's mail, I make an VisualFoxpro exe to be called from Fivewin, for visual report design, it supports dbf/cdx only.
Just edit report.dbf & reportdb.dbf will do, refer to readme.txt
I upload it to :-
<!-- m --><a class="postlink" href="http://hyperupload.com/download/01dc58db72/report.zip.html">http://hyperupload.com/download/01dc58d ... t.zip.html</a><!-- m -->
require VFP7 runtimes dll (roaylty free distributed) :-
<!-- m --><a class="postlink" href="http://hyperupload.com/download/022a635381/vfp7.zip.html">http://hyperupload.com/download/022a635 ... 7.zip.html</a><!-- m --> |
visual report designer | YA LA BAJE Y CONSEGUI LAS dll QUE FALTAN
SI ESTA MUY BUENO <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
GRACIAS <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> |
visual report designer | Hoe,
This file is no longer available:
require VFP7 runtimes dll (roaylty free distributed) :-
<!-- m --><a class="postlink" href="http://hyperupload.com/download/022a635381/vfp7.zip.html">http://hyperupload.com/download/022a635 ... 7.zip.html</a><!-- m -->
Could you please upload it again ? thanks, |
visual report designer | [quote="Antonio Linares":3vabul8b]This file is no longer available[/quote:3vabul8b]
Antonio,
You can download from this address:
<!-- m --><a class="postlink" href="ftp://ftp.prolib.de/public">ftp://ftp.prolib.de/public</a><!-- m -->
You would select VFP7SPORT.EXE and after install it in your computer.
It is a good solution. I am translating this message in spanish forum too. |
visual report designer | Manuel,
Thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
visual report designer | Thanks a lot, Anser.
Regards, |
visual report designer | Hola ya subí los archivos para este reporteador <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
realmente funciona a un que yo no lo use pero para los que les interese aquí esta el archivo report.zip adentro de el esta el vfp7.zip
<!-- m --><a class="postlink" href="http://ezuploads.info/dll/sy9zt7">http://ezuploads.info/dll/sy9zt7</a><!-- m -->
Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
Aída |
visual report designer | Only to be curious what advantages do you see using "visual report designer" over FIVEWIN report designer [i:16l08ysz]EasyReport[/i:16l08ysz]?
Thanks in advance
Otto |
visual report designer | hi, Antanio & all,
I have uploaded it here for your download :
<!-- m --><a class="postlink" href="http://re.com.my">http://re.com.my</a><!-- m -->
- foxreport.zip : called by fivewin winexec()
- vfp9dll.exe : runtime dlls
There is readme.txt included.
Thank you & Regards
Hoe |
visual report designer | Hi, Otto,
I first use visual report designer in 2004 or earlier. as a free and quick solution to design/preview report on the fly, and by that time Fivewin EasyReport still not available yet.
I haven't try latest Fivewin EasyReport and can't compare both.
Regards
Hoe |
visual report designer | Hello Hoe,
I feel there is not much missing in EasyReport.
Give it a new try. Most sources are there too.
It's a pity that not more FIVEWINNERs are using EasyReport. So much energies are lost if everyone searches another solution and further development of EasyReport is suffering.
I myself tried many solution, too but I must say for “everyday” reports EasyReport is very good.
If you have to distribute solutions with extern reports you always have to install dlls, ocxs, etc. :
foxreport.zip : called by fivewin winexec()
- vfp9dll.exe : runtime dlls
With CR sometimes I had to install the full version of CR to get it going.
This is a big disadvantage.
My WINHOTEL runs on every WINDOWS PC from a USB stick.
There is no installation necessary. You can plug in the stick and start working.
Fivewin is real plug and play.
Regards,
Otto |
visual report designer | Hi Otto,
I'm wondering... I never user Easyreport, but, is there a possibility to create a report for dot-matrix printers (I mean, using ONLY the dot-matrix fonts) and show a preview of this report? I'm asking this because I have this kind of problem using TDosprn for dot-matrix printers, and I haven`t seen any report creator generating this kind of option.
Regards, |
visual report designer | Dear Kleyber,
For Dos mode printing and preview, have u tried the class TDosPrn ? It gives a preview too. I have modified the class a little bit more to check for network dot matrix printers and I have posted it in the spanish forum.
Regards
Anser |
visual report designer | Hello Kleber,
I don’t know if ER works for DOS printers.
I do my DOS printing the hardcoded way.
But for windows printing it is very fine. Also the designer is easy to use.
Endusers are able to change some features themselves.
The printing is organized in so called PRINTAREAS.
For example you have a PRINTAREA for the header one for the footer and one for the positions.
The reports are stored in TXT-files for each Printarea one.
So you can manipulate also the txt files to change the reports.
And it is very easy to pass data to the report because you handle all in your source code in FIVEWIN.
Regards,
Otto
[img:32nkbjvw]http://www.atzwanger-software.com/fw/bondruck.jpg[/img:32nkbjvw] |
visual report designer | Well, I see that previewing a DOS report is not so easy. Anyway, thanks for all informations.
Regards, |
visual report designer | I have a mini visual report designer
it save all form in a ini file
the last one problems is I must create areas and I not Know How make it
Now I am working to insert it on visual designer of fivetech as U can see here :
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=5&t=13965">viewtopic.php?f=5&t=13965</a><!-- l -->
But I am only one and this work must be made from a pool of men not fron one man |
visual report designer | [quote="anserkk":326zqlem]Dear Kleyber,
For Dos mode printing and preview, have u tried the class TDosPrn ? It gives a preview too. I have modified the class a little bit more to check for network dot matrix printers and I have posted it in the spanish forum.
Regards
Anser[/quote:326zqlem]
Hi Anser,
I use the TDosprn class here, but I don't know your class. Can you send me yours with a simple example to my email? Is <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
Thanks |
visual report designer | Dear Kleyber,
Please check your mail.
Regards
Anser |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.