topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
A problem xBrowse seek on DATE and NUMERIC ?
|
Mr. Rao,
You posted :
[color=#0000FF:3hq51zr7]Please go to METHOD AdoIncrSeek and locate the following line:
do case
case cType == 'C'
Change it as
do case
case cType == 'C' .or. uVal == nil
[/color:3hq51zr7]
Well with this modification [color=#FF0000:3hq51zr7]incremental filters on numeric and date columns may fail.[/color:3hq51zr7]
In my tests, DATE and NUMERIC - seek is not working
The first browse uses the new seekbar. the second the old fashion way.
CHARACTER and LOGICAL is working normal.
With NUMERIC and DATE the colums are sorted but the seek doesn't work.
( I can include this test for DOWNLOAD if needed )
The tested INDEX-builds :
[color=#008000:3hq51zr7]USE CUSTOMER
ORDCREATE( ,"CUST1","UPPER(FIRST)", {|| UPPER(FIRST) } , .F. )
ORDCREATE( ,"CUST2","UPPER(LAST)", {|| UPPER(LAST) } , .F. )
ORDCREATE( ,"CUST3","DTOS(HIREDATE)", {|| DTOS(HIREDATE) } , .F. )
//ORDCREATE( ,"CUST3","DTOC(HIREDATE)", {|| DTOC(HIREDATE) } , .F. )
//ORDCREATE( ,"CUST3","HIREDATE", {|| HIREDATE } , .F. )
ORDCREATE( ,"CUST4","MARRIED", {|| MARRIED } , .F. )
ORDCREATE( ,"CUST5","STR(SALARY)", {|| STR(SALARY) } , .F. )
//ORDCREATE( ,"CUST5","SALARY", {|| SALARY } , .F. )[/color:3hq51zr7]
[img:3hq51zr7]http://www.pflegeplus.com/IMAGES/Xbrwseek5.jpg[/img:3hq51zr7]
failed on DATE and NUMERIC
[img:3hq51zr7]http://www.pflegeplus.com/IMAGES/Xbrwseek6.jpg[/img:3hq51zr7]
Any idea ?
regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A problem xBrowse seek on DATE and NUMERIC ?
|
Numerics and dates are sorted in the order of the values, not as character values.
So the seeks can not be on the initial characters as they appear in the browse.
Numerics: Seek to the value next higher than the value entered.
Dates: Seeks to the value next higher than the value in YYYYMMDD format
|
A problem xBrowse seek on DATE and NUMERIC ?
|
Mr. Rao,
it seems, there is still another problem
both defined ( edit and seek ) doesn't work and is showing a funny effect.
[code=fw:3kav7kmw]<div class="fw" id="{CB}" style="font-family: monospace;"><br />WITH OBJECT oBrw1<br /> ....<br /> ....<br /> :<span style="color: #000000;">nEditTypes</span> := EDIT_GET<br /> ....<br /> ....<br /> :<span style="color: #000000;">lSeekBar</span> := .t.<br /> ....<br />END<br /> </div>[/code:3kav7kmw]
[img:3kav7kmw]http://www.pflegeplus.com/IMAGES/xbrwseekb1.jpg[/img:3kav7kmw]
something must be changed ?
regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A problem xBrowse seek on DATE and NUMERIC ?
|
Mr Uwe
You are right.
Please make these corrections in the Method Edit( nKey ) of TXBrwColumn:
Replace Line 13089 of FWH1701 ( line 13007 of FWH1612 )
[code=fw:1p5fnjxl]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> nRow := <span style="color: #000000;">(</span> <span style="color: #000000;">(</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">nRowSel</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> * ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">nRowHeight</span> <span style="color: #000000;">)</span> + ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">HeaderHeight</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:1p5fnjxl]
with
[code=fw:1p5fnjxl]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> nRow := <span style="color: #000000;">(</span> <span style="color: #000000;">(</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">nRowSel</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> * ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">nRowHeight</span> <span style="color: #000000;">)</span> + ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">FirstRow</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:1p5fnjxl]
Also replace line 13135 (FWH1701) / line 13053 (FWH1612)
[code=fw:1p5fnjxl]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> nRow := <span style="color: #000000;">(</span> <span style="color: #000000;">(</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">nRowSel</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> * ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">nRowHeight</span> <span style="color: #000000;">)</span> + ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">HeaderHeight</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> + <span style="color: #000000;">2</span><br /> </div>[/code:1p5fnjxl]
with
[code=fw:1p5fnjxl]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> nRow := <span style="color: #000000;">(</span> <span style="color: #000000;">(</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">nRowSel</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> * ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">nRowHeight</span> <span style="color: #000000;">)</span> + ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">FirstRow</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> + <span style="color: #000000;">2</span><br /> </div>[/code:1p5fnjxl]
|
A problem xBrowse seek on DATE and NUMERIC ?
|
Mr. Rao,
thank You very much.
With these changes it works fine.
[img:22vlggom]http://www.pflegeplus.com/IMAGES/xbrwedit3.jpg[/img:22vlggom]
I still noticed another problem
A defined header-image for logical fields is not shown.
Instead a checkbox is displayed.
With all other fieldtyps it is working.
In my sample I'm testing a index on ALL fieldtypes
[img:22vlggom]http://www.pflegeplus.com/IMAGES/xbrwedit5.jpg[/img:22vlggom]
WITH OBJECT oBrw1:Married
:AddBmpFile( [color=#FF0000:22vlggom][b:22vlggom]"Sort.bmp"[/b:22vlggom][/color:22vlggom] ) // Index-image
:nHeadBmpNo := 1
END
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
A problem xBrowse seek on DATE and NUMERIC ?
|
SetCheck() adds to 2 bitmaps the the column.
After that the bitmap ("sort.bmp") you added is the 3rd bitmap.
So you should use
:nHeadBmpNo := 3
Method AddBitmap( <bmpfile/resource/array> ) superceded obsolete methods AddBmpFile() and AddResource() from FWH 10.01
:nHeadBmpNo := :AddBitmap( "sort.bmp" )
|
A problem xBrowse seek on DATE and NUMERIC ?
|
Thank You very much.
Now everything of my test is working
[img:6xq5ef4t]http://www.pflegeplus.com/IMAGES/xbrwseek8.jpg[/img:6xq5ef4t]
before adding a download, I will do some code cleaning ( and maybe adding some useful things )
I added Your expositions to the code like
oBrw1:Married:SetCheck() // Default FWH Bitmap is Alpha
[color=#008040:6xq5ef4t]/*
SetCheck() adds to 2 bitmaps to the column.
After that the bitmap ("sort.bmp") you added is the 3rd bitmap.
So you should use
:nHeadBmpNo := 3
Method AddBitmap( <bmpfile/resource/array> ) superceded obsolete methods AddBmpFile()
and AddResource() from FWH 10.01
:nHeadBmpNo := :AddBitmap( "sort.bmp" )
*/[/color:6xq5ef4t]
as well a [color=#0000FF:6xq5ef4t]readme.txt [/color:6xq5ef4t] for the xbrowse-changes is included
[color=#0000FF:6xq5ef4t]Please make these corrections in the Method Edit( nKey ) of TXBrwColumn:
Replace Line 13089 of FWH1701 ( line 13007 of FWH1612 )
nRow := ( ( ::oBrw:nRowSel - 1 ) * ::oBrw:nRowHeight ) + ::oBrw:HeaderHeight()
with
nRow := ( ( ::oBrw:nRowSel - 1 ) * ::oBrw:nRowHeight ) + ::oBrw:FirstRow()
Also replace line 13135 (FWH1701) / line 13053 (FWH1612)
nRow := ( ( ::oBrw:nRowSel - 1 ) * ::oBrw:nRowHeight ) + ::oBrw:HeaderHeight() + 2
with
nRow := ( ( ::oBrw:nRowSel - 1 ) * ::oBrw:nRowHeight ) + ::oBrw:FirstRow() + 2[/color:6xq5ef4t]
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
A problem xBrowse transp. images (focus) FWH 15.11
|
Hello,
with the new release, transparent images are not shown transparent anymore on focused row or cell
With FWH 15.10 it was OK.
[img:mke4aqqb]http://www.pflegeplus.com/IMAGES/XbrwTransp1.jpg[/img:mke4aqqb]
best regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A problem xBrowse transp. images (focus) FWH 15.11
|
Mr Uwe
Please give me a small sample code to test at my end and fix the problem
Thanks in advance.
|
A problem xBrowse transp. images (focus) FWH 15.11
|
Mr. Rao
A full working sample
Everything included
Download
<!-- m --><a class="postlink" href="http://www.pflegeplus.com/DOWNLOADS/Testcell1.zip">http://www.pflegeplus.com/DOWNLOADS/Testcell1.zip</a><!-- m -->
[img:1gy65kev]http://www.pflegeplus.com/IMAGES/Testcell1.jpg[/img:1gy65kev]
best regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
A problem xBrowse transp. images (focus) FWH 15.11
|
Please see the lines 10606 and 10607:
[code=fw:1eafm38v]<div class="fw" id="{CB}" style="font-family: monospace;"> lTransparent := Empty<span style="color: #000000;">(</span> oBrush <span style="color: #000000;">)</span> .and. IfNil<span style="color: #000000;">(</span> ::<span style="color: #000000;">lColTransparent</span>, ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">lTransparent</span> <span style="color: #000000;">)</span> .and. ;<br /> ! lHighLite .and. ! lSelected<br /> </div>[/code:1eafm38v]
Please modify as
[code=fw:1eafm38v]<div class="fw" id="{CB}" style="font-family: monospace;"> lTransparent := Empty<span style="color: #000000;">(</span> oBrush <span style="color: #000000;">)</span> .and. IfNil<span style="color: #000000;">(</span> ::<span style="color: #000000;">lColTransparent</span>, ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">lTransparent</span> <span style="color: #000000;">)</span> .and. ;<br /> ! lHighLite <br /> </div>[/code:1eafm38v]
Can you please try this change in xbrowse and confirm if the painting is ok?
|
A problem xBrowse transp. images (focus) FWH 15.11
|
Mr. Rao,
[b:x84sk4oj]tested and works fine.[/b:x84sk4oj]
Thank You very much
best regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
A problem REOPEN a Dialog with a included Folder-resource.
|
Hello,In a very big application i get a Error on reopen a dialog with Folder.Everything works fine, but if i close the main-dialog and open it again,i get a folder error.To define extra Functions for each folder, ( to big to keep all pages in the main-dialog )cannot be the reason, because i tested this in other applications and it works fine there.[code:3l87dd1w]
Application
===========
Path and name: D:\T_XBROW\brwtools.exe (32 bits)
Size: 1,958,400 bytes
Time from start: 0 hours 0 mins 7 secs
Error occurred at: 10/01/08, 13:19:30
Error description: Error BASE/1004 Message not found: TFOLDER:NCOUNT
Stack Calls
===========
Called from: source\rtl\tobject.prg => TFOLDER:ERROR(172)
Called from: source\rtl\tobject.prg => TFOLDER:MSGNOTFOUND(205)
Called from: source\rtl\tobject.prg => TFOLDER:NCOUNT(0)
Called from: .\source\classes\WINDOW.PRG => TFOLDER:SETFONT(0)
Called from: .\source\classes\folder.PRG => TFOLDER:REDEFINE(0)
Called from: .\Brwtools.PRG => TOOLS(614)
Called from: .\Brwtools.PRG => (b)MAKEBAR1(458)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:CLICK(0)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:LBUTTONUP(0)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(0)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:HANDLEEVENT(0)
Called from: .\source\classes\WINDOW.PRG => _FWH(0)
Called from: => WINRUN(0)
Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE(0)
Called from: .\Brwtools.PRG => MAIN(437)
// --------- A sample structure of the source ----------------
#include "FiveWin.ch"
#include "xBrowse.ch"
#include "Folder.ch"
FUNCTION Main()
LOCAL oWnd := WndMain()
DEFINE WINDOW oWnd TITLE "Test"
ACTIVATE WINDOW oWnd MAXIMIZED ;
ON INIT MAKEBAR1( oWnd )
RETURN NIL
// ---------- Open the Dialog from a Button-Bar ----------------
FUNCTION MAKEBAR1( oWnd )
LOCAL oBar1, oBtn1
DEFINE BUTTONBAR oBar1 OF oWnd SIZE 70, 80 2007 RIGHT
DEFINE BUTTON oBtn1 OF oBar1 ACTION TestFolder() ;
RESOURCE "gear" PROMPT "Template" TOOLTIP "Create"
RETURN( NIL )
//----------------- DIALOG ---------------------------------------
STATIC FUNCTION TestFolder()
LOCAL oDlg, oFld, oBtn1
DEFINE DIALOG oDlg RESOURCE "MainDlg" TITLE "Folder-Test"
REDEFINE FOLDER oFld ID 110 OF oDlg ;
PROMPTS " 1 ", " 2 ", " 3 ", " 4 ", " 5 ", " 6 ", " 7 " ;
DIALOGS "Brw1","Brw2","Brw3","Brw4","Brw5","Brw6","Brw7"
PAGE_1(oDlg,oFld)
PAGE_2(oDlg,oFld)
PAGE_3(oDlg,oFld)
PAGE_4(oDlg,oFld)
PAGE_5(oDlg,oFld)
PAGE_6(oDlg,oFld)
PAGE_7(oDlg,oFld)
REDEFINE BUTTONBMP oBtn1 ID 30 OF oDlg ;
ACTION ( oDlg:End() ) ;
BITMAP "quit" PROMPT SPACE(10) + "&Exit" TEXTRIGHT
oBtn3:cToolTip = { "Close the" + CRLF + "Template" + CRLF + ;
"Dialog","Close the Dialog", 1, CLR_BLACK, 14089979 }
ACTIVATE DIALOG oDlg CENTERED
RETURN ( NIL )
[/code:3l87dd1w]Maybe, i have to use a different structure to solve the problem ?RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A problem REOPEN a Dialog with a included Folder-resource.
|
It looks like the DATA oFont is already nil.Try to assign it a new font.
|
A problem REOPEN a Dialog with a included Folder-resource.
|
Antonio,Thank you very much.Your solution works.The Font oProgfont ( defined for the dialog ) was the problem.Not the folder.The Font-define before :PRIVATE oProgFont := TFont():New("Arial",,-14,.F.,.F. ,,,,.F. )DEFINE WINDOW oWnd TITLE "Test" ........DEFINE DIALOG oDlg RESOURCE "MainDlg" TITLE "Test" FONT oProgFont........The font was defined before the Windows-defineIt seems, after reopen the dialog oProgFont is NIL.If i don't use the font for the dialog, the problem is solved.New :STATIC FUNCTION Tools()LOCAL oDlg, oFld, oBrushoProgFont := TFont():New("Arial",,-14,.F.,.F. ,,,,.F. )DEFINE DIALOG oDlg RESOURCE "MainDlg" TITLE "xBROWSE-Color-Selection" FONT oProgFontRegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A problem painting radios
|
Hello,
I noticed a problem with radio-painting.
From selected Radio ( downwards ) the Area is deleted.
It happens as well on Lostfocus.
[img:l7nyv271]http://www.pflegeplus.com/pictures/radtest1.jpg[/img:l7nyv271]
after selecting a Radio :
[img:l7nyv271]http://www.pflegeplus.com/pictures/radtest2.jpg[/img:l7nyv271]
Lost Focus :
[img:l7nyv271]http://www.pflegeplus.com/pictures/radtest3.jpg[/img:l7nyv271]
Nothing spezial :
[code=fw:l7nyv271]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> oDlg, oRadio, nRadio := <span style="color: #000000;">1</span>, oFont, oBtn, oSay<br /><br />c_path := CURDRIVE<span style="color: #000000;">(</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">":<span style="color: #000000;">\"</span> + GETCURDIR() <br /><br />oFont := TFont():New("</span>Arial<span style="color: #ff0000;">",,-16,.F.,.T. ,,,,.F. )<br /><br />DEFINE DIALOG oDlg FROM 30, 30 TO 500, 400 PIXEL ;<br />FONT oFont TITLE "</span>Radio-Test<span style="color: #ff0000;">" COLOR "</span>N<span style="color: #B900B9;">/*BG" TRANSPARENT <br /><br />/*<br />#xcommand @ <nRow>, <nCol> RADIO [ <oRadMenu> VAR ] <nVar> ;<br /> [ <prm: PROMPT, ITEMS> <cItems,...> ] ;<br /> [ <of: OF, WINDOW, DIALOG> <oWnd> ] ;<br /> [ <help:HELPID, HELP ID> <nHelpId,...> ] ;<br /> [ <change: ON CLICK, ON CHANGE> <uChange> ] ;<br /> [ COLOR <nClrFore> [,<nClrBack>] ] ;<br /> [ MESSAGE <cMsg> ] ;<br /> [ <update: UPDATE> ] ;<br /> [ WHEN <uWhen> ] ;<br /> [ SIZE <nWidth>, <nHeight> ] ;<br /> [ VALID <uValid> ] ;<br /> [ <lDesign: DESIGN> ] ;<br /> [ <lLook3d: 3D, _3D> ] ;<br /> [ <lPixel: PIXEL> ] ;<br />*/</span><br /><br />@ <span style="color: #000000;">15</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">RADIO</span> oRadio <span style="color: #0000ff;">VAR</span> nRadio <span style="color: #0000ff;">OF</span> oDlg ;<br /><span style="color: #0000ff;">ITEMS</span> <span style="color: #ff0000;">"&0"</span>, <span style="color: #ff0000;">"0&1"</span>, <span style="color: #ff0000;">"0&2"</span>, <span style="color: #ff0000;">"0&3"</span>, <span style="color: #ff0000;">"0&4"</span>, <span style="color: #ff0000;">"0&5"</span>, <span style="color: #ff0000;">"0&6"</span>, <span style="color: #ff0000;">"0&7"</span>, <span style="color: #ff0000;">"0&8"</span>, <span style="color: #ff0000;">"0&9"</span> ;<br />HELPID <span style="color: #000000;">100</span>, <span style="color: #000000;">101</span>, <span style="color: #000000;">102</span>, <span style="color: #000000;">103</span>, <span style="color: #000000;">104</span>, <span style="color: #000000;">105</span>, <span style="color: #000000;">106</span>, <span style="color: #000000;">107</span>, <span style="color: #000000;">108</span>, <span style="color: #000000;">109</span> ;<br /><span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>,<span style="color: #000000;">12</span> 3D <span style="color: #0000ff;">PIXEL</span> ;<br /><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">(</span> IIF<span style="color: #000000;">(</span> nRadio = <span style="color: #000000;">1</span>, nDGradPos := <span style="color: #000000;">0</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span>, ;<br /> IIF<span style="color: #000000;">(</span> nRadio = <span style="color: #000000;">2</span>, nDGradPos := <span style="color: #000000;">0.1</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span>, ;<br /> IIF<span style="color: #000000;">(</span> nRadio = <span style="color: #000000;">3</span>, nDGradPos := <span style="color: #000000;">0.2</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span>, ;<br /> IIF<span style="color: #000000;">(</span> nRadio = <span style="color: #000000;">4</span>, nDGradPos := <span style="color: #000000;">0.3</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span>, ;<br /> IIF<span style="color: #000000;">(</span> nRadio = <span style="color: #000000;">5</span>, nDGradPos := <span style="color: #000000;">0.4</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span>, ;<br /> IIF<span style="color: #000000;">(</span> nRadio = <span style="color: #000000;">6</span>, nDGradPos := <span style="color: #000000;">0.5</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span>, ;<br /> IIF<span style="color: #000000;">(</span> nRadio = <span style="color: #000000;">7</span>, nDGradPos := <span style="color: #000000;">0.6</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span>, ;<br /> IIF<span style="color: #000000;">(</span> nRadio = <span style="color: #000000;">8</span>, nDGradPos := <span style="color: #000000;">0.7</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span>, ;<br /> IIF<span style="color: #000000;">(</span> nRadio = <span style="color: #000000;">9</span>, nDGradPos := <span style="color: #000000;">0.8</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span>, ;<br /> IIF<span style="color: #000000;">(</span> nRadio = <span style="color: #000000;">10</span>, nDGradPos := <span style="color: #000000;">0.9</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">UPDATE</span> <br /><br />AEval<span style="color: #000000;">(</span> oRadio:<span style="color: #000000;">aItems</span>, <span style="color: #000000;">{</span> | oRad | oRad:<span style="color: #000000;">SetFont</span> <span style="color: #000000;">(</span> oFont <span style="color: #000000;">)</span>, ;<br /> oRad:<span style="color: #000000;">nClrText</span> := <span style="color: #000000;">0</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br />@ <span style="color: #000000;">175</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Transparent Text-test"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> ;<br /><span style="color: #0000ff;">FONT</span> oFont ;<br /><span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">0</span><br /><br />@ <span style="color: #000000;">200</span>, <span style="color: #000000;">40</span> <span style="color: #0000ff;">BTNBMP</span> oBtn <span style="color: #0000ff;">OF</span> oDlg ;<br /><span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>, <span style="color: #000000;">25</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #000000;">2007</span> ;<br />NOBORDER ;<br /><span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Exit"</span> ;<br />FILENAME c_path + <span style="color: #ff0000;">"<span style="color: #000000;">\I</span>mages<span style="color: #000000;">\E</span>xit.Bmp"</span> ;<br /><span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;<br /><span style="color: #0000ff;">FONT</span> oFont ;<br /><span style="color: #0000ff;">LEFT</span><br />oBtn:<span style="color: #000000;">lTransparent</span> := .t. <br />oBtn:<span style="color: #000000;">cToolTip</span> = <span style="color: #000000;">{</span> <span style="color: #ff0000;">"Exit"</span> + CRLF + <span style="color: #ff0000;">"1. Dlg-Color"</span>,<span style="color: #ff0000;">"Color-Selection"</span>, <span style="color: #000000;">1</span>, CLR_BLACK, <span style="color: #000000;">14089979</span> <span style="color: #000000;">}</span><br />oBtn:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">)</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br />oFont:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:l7nyv271]
Best Regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A problem painting radios
|
Uwe,
Here it is working fine with FWH 12.01
Are you using Borland ? I email you the 12.01 libs <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[url:14hqg690]http://imageshack.us/photo/my-images/138/capturevg.png/[/url:14hqg690]
Thanks,
|
A problem painting radios
|
Antonio,
thank You very much.
I tested with xharbour,
echo $(FWDIR)\lib\[color=#FF0040:37hanubc]Fivehx.lib [/color:37hanubc]+ >> b32.bc
echo $(FWDIR)\lib\FiveHC.lib + >> b32.bc
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A problem painting radios
|
Sent <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
A problem painting radios
|
Antonio,
thank You very much.
I linked Fivehx, but couldn*t test, because of a Errormessage :
Unresolved eternal [color=#FF0000:3u95iwc8]GetModulFilenameExA[/color:3u95iwc8] from => Gettask Fivehx.
Maybe there is still something to change ( xHarbour ) ?
Best Regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A problem painting radios
|
Hello
you have to link psapi.lib from borland
|
A problem painting radios
|
Antonio, Daniel
[b:5dnp6luk]Radios are tested and are working fine now.[/b:5dnp6luk]
I still noticed : using BTNBMP centerd [color=#FF0000:5dnp6luk]without [/color:5dnp6luk]BMP,
the Text is not centerd vertical.
I added a Dummy-button to the sample, to test LOSTFOCUS.
I noticed a Function-change
old :
[color=#0000FF:5dnp6luk]c_path := CURDRIVE() + ":\" + GETCURDIR() [/color:5dnp6luk]
new ( Function includes Drive )
[color=#FF0000:5dnp6luk]c_path := GETCURDIR() [/color:5dnp6luk]
[img:5dnp6luk]http://www.pflegeplus.com/pictures/radtest4.jpg[/img:5dnp6luk]
My new [color=#FF0000:5dnp6luk][b:5dnp6luk]GROUPTESTER[/b:5dnp6luk][/color:5dnp6luk] - Update
works as well now testing transparent Painting
of Groups and Radios on Dialog and TFolderEx with any Brush-combination :
[img:5dnp6luk]http://www.pflegeplus.com/pictures/grptest3.jpg[/img:5dnp6luk]
[img:5dnp6luk]http://www.pflegeplus.com/pictures/grptest5.jpg[/img:5dnp6luk]
[img:5dnp6luk]http://www.pflegeplus.com/pictures/grptest6.jpg[/img:5dnp6luk]
[img:5dnp6luk]http://www.pflegeplus.com/pictures/grptest7.jpg[/img:5dnp6luk]
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A professional web blog built with mod_harbour!!!
|
Don't miss to review this professional web blog developed using mod_harbour:
live demo:
[url:3edz0iad]https://harbour.fourtech.es/modharbour_samples/blog/index.prg[/url:3edz0iad]
Full source code:
[url:3edz0iad]https://github.com/FiveTechSoft/mod_harbour/tree/master/samples/blog[/url:3edz0iad]
|
A professional web blog built with mod_harbour!!!
|
¡¡¡ EXTRAORDINARIA APARIENCIA !!!.
No entiendo la sintaxis del siguiente:
[code=fw:10cg4hgo]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">{</span>% MemoRead<span style="color: #000000;">(</span> hb_GetEnv<span style="color: #000000;">(</span> <span style="color: #ff0000;">"PRGPATH"</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"/view.prg"</span> <span style="color: #000000;">)</span> %<span style="color: #000000;">}</span></div>[/code:10cg4hgo]
Fuera de una función: ¿ qué es lo que se encierra entre {% ... %} ?
|
A professional web blog built with mod_harbour!!!
|
[b:3ka9r8zj]Incredibile !!![/b:3ka9r8zj]
|
A professional web blog built with mod_harbour!!!
|
[quote="Verhoven":22tltvpo]¡¡¡ EXTRAORDINARIA APARIENCIA !!!.
No entiendo la sintaxis del siguiente:
[code=fw:22tltvpo]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">{</span>% MemoRead<span style="color: #000000;">(</span> hb_GetEnv<span style="color: #000000;">(</span> <span style="color: #ff0000;">"PRGPATH"</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"/view.prg"</span> <span style="color: #000000;">)</span> %<span style="color: #000000;">}</span></div>[/code:22tltvpo]
Fuera de una función: ¿ qué es lo que se encierra entre {% ... %} ?[/quote:22tltvpo]
Es código que podemos usar [b:22tltvpo]antes[/b:22tltvpo] de que se compile y se ejecute nuestro código
Algo así como un preprocesado adicional previo. Esto es posible gracias a que la maquina virtual ya está funcionando <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
A professional web blog built with mod_harbour!!!
|
Antônio,
What else I must to know beyond FWH to use mod_harbour ? What i need to study ?
|
A programming-tool to create informations of a DBF-file
|
The tool creates a TXT-file ( ????.str ) with all informations
of the selected DBF, you need for programming.
The file includes : the structure-array, declaration of the different variables and so on...
you can download the file from the download-section
of the website <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
The program starts with a dialog ( no window )
Is there anybody who knows, why the dialog dosn't close,
when I use the system-exit button ( the X in the dialog head ) ?
The normal created Exit-Button works.
|
A promlem with the forum screen-display
|
Hello,
since some days I have a problem with the forum
At first entry, I see the same screen from some days before. ( NOT updated )
After opening a post, the screen is updated.
This problem I never noticed before.
The screens I see at startup and after reading a toppic
Who is online shows also wrong informations.
[img:10yrvz18]http://www.pflegeplus.com/IMAGES/Forum2.jpg[/img:10yrvz18]
any idea what can be the reason ?
regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A promlem with the forum screen-display
|
Could it be related to the browser cache ?
|
A promlem with the forum screen-display
|
Antonio,
I tested using a REFRESH-option ( right mouseclick ) from inside my file-manager.
The screen refreshed and it seems that it works again.
best regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
A qt contrib version ready for android
|
Uploaded is new QtContribs installer for Windows:
QtContribs_Mingw-482_Qt-530_r313_Setup.exe
and is downloadable from : <!-- m --><a class="postlink" href="https://sourceforge.net/projects/qtcontribs/files/?source=navbar">https://sourceforge.net/projects/qtcont ... rce=navbar</a><!-- m -->
I suggest install in new folder?
|
A que se debe??? Recursos???
|
Estoy con tema de empezar a planificar una aplicación... o portar, mas bien dicho.
El tema está en el comienzo, pues noto una baja rentabilidad en "recursos", puede ser???
Me explico. Tengo una WINDOW, con dos botones y un MENU.
El detalle está en redimensionar la ventana, si la estiro/encojo de lo ancho, los botones que estan por la WINDOW "tiemblan" al redimensionar la ventana... si el menu tiene imágenes (a partir de 5 o 6). Y cuantas más, mas tembleque. He provado de poner las imágenes con FILENAME o con RESOURCE... el efecto es el mismo.
Adjunto un ejemplo para que se pueda comprobar, y si algo estoy haciendo mal, corregir.
No se puede subir un fichero???
Pongo código...
[code=fw:1t9c7ajo]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">Static</span> oWnd<br /><span style="color: #00C800;">Static</span> oFont<br /><span style="color: #00C800;">Static</span> oFont1<br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</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;">"Calibri"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-16</span> <span style="color: #B900B9;">//Linia opcions MENU</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Calibri"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-15</span> BOLD<span style="color: #B900B9;">//Items SubMenus</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">800</span>, <span style="color: #000000;">1450</span> <span style="color: #0000ff;">PIXEL</span>;<br /> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Prueba FWH"</span>;<br /> <span style="color: #0000ff;">MENU</span> xMenu<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">125</span>,<span style="color: #000000;">645</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Btn&1"</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span><br /> @ <span style="color: #000000;">155</span>,<span style="color: #000000;">645</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Btn&2"</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTERED</span><br /><br /> <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /> <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont1<br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">Function</span> xMenu<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oMnu<br /><br /> <span style="color: #0000ff;">MENU</span> oMnu <span style="color: #000000;">2013</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">ADJUST</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion1"</span> COLORMENU CLR_BLUE <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"MenuFitxers"</span><br /> <span style="color: #0000ff;">MENU</span> <span style="color: #000000;">2013</span> NOINHERIT <span style="color: #0000ff;">FONT</span> oFont1 COLORMENU CLR_BLUE<br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion 101"</span> <span style="color: #B900B9;">//RESOURCE "MenuComptes"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion 102"</span> <span style="color: #B900B9;">//RESOURCE "MenuNivells"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion 103"</span> <span style="color: #B900B9;">//RESOURCE "MenuSeccions"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion 104"</span> <span style="color: #B900B9;">//RESOURCE "MenuConceptes"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion 105"</span> <span style="color: #B900B9;">//RESOURCE "MenuBancs"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion 106"</span> <span style="color: #B900B9;">//RESOURCE "MenuIVA"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion 107"</span> <span style="color: #B900B9;">//RESOURCE "MenuUsuaris"</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion2"</span> COLORMENU CLR_BLUE <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"MenuAssentaments"</span><br /> <span style="color: #0000ff;">MENU</span> <span style="color: #000000;">2013</span> NOINHERIT <span style="color: #0000ff;">FONT</span> oFont1 COLORMENU CLR_BLUE<br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion 201"</span> <span style="color: #B900B9;">//RESOURCE "MenuAssentamentsEntrada"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion 202"</span> <span style="color: #B900B9;">//RESOURCE "MenuAssentamentsVisio"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion 203"</span> <span style="color: #B900B9;">//RESOURCE "MenuAssentamentsEliminar"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion 204"</span> <span style="color: #B900B9;">//RESOURCE "MenuAssentamentsCopia"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion 205"</span> <span style="color: #B900B9;">//RESOURCE "MenuAssentamentsCanviCta"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion 206"</span> <span style="color: #B900B9;">//RESOURCE "MenuAssentamentsCanviIVA"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion 207"</span> <span style="color: #B900B9;">//RESOURCE "MenuAssentamentsExportar"</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion 208"</span> <span style="color: #B900B9;">//RESOURCE "MenuAssentamentsOrdenar"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion 209"</span> <span style="color: #B900B9;">//RESOURCE "MenuAssentamentsQuadre"</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion3"</span> COLORMENU CLR_BLUE <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"MenuLlistats"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion4"</span> COLORMENU CLR_BLUE <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"MenuVaris"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion5"</span> COLORMENU CLR_BLUE <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"MenuUtilitats"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Salir"</span> COLORMENU CLR_BLUE <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"MenuExit"</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 /> <span style="color: #0000ff;">ENDMENU</span><br /><br /><span style="color: #B900B9;">/*<br /> MENU oMnu 2013 FONT oFont ADJUST<br /> MENUITEM "Opcion1" COLORMENU CLR_BLUE FILENAME "MenuFitxers.ico"<br /> MENU 2013 NOINHERIT FONT oFont1 COLORMENU CLR_BLUE<br /> MENUITEM "Opcion 101" //RESOURCE "MenuComptes"<br /> MENUITEM "Opcion 102" //RESOURCE "MenuNivells"<br /> MENUITEM "Opcion 103" //RESOURCE "MenuSeccions"<br /> MENUITEM "Opcion 104" //RESOURCE "MenuConceptes"<br /> MENUITEM "Opcion 105" //RESOURCE "MenuBancs"<br /> MENUITEM "Opcion 106" //RESOURCE "MenuIVA"<br /> MENUITEM "Opcion 107" //RESOURCE "MenuUsuaris"<br /> ENDMENU<br /><br /> MENUITEM "Opcion2" COLORMENU CLR_BLUE FILENAME "MenuAssentaments.ico"<br /> MENU 2013 NOINHERIT FONT oFont1 COLORMENU CLR_BLUE<br /> MENUITEM "Opcion 201" //RESOURCE "MenuAssentamentsEntrada"<br /> MENUITEM "Opcion 202" //RESOURCE "MenuAssentamentsVisio"<br /> MENUITEM "Opcion 203" //RESOURCE "MenuAssentamentsEliminar"<br /> MENUITEM "Opcion 204" //RESOURCE "MenuAssentamentsCopia"<br /> MENUITEM "Opcion 205" //RESOURCE "MenuAssentamentsCanviCta"<br /> MENUITEM "Opcion 206" //RESOURCE "MenuAssentamentsCanviIVA"<br /> MENUITEM "Opcion 207" //RESOURCE "MenuAssentamentsExportar"<br /> SEPARATOR<br /> SEPARATOR<br /> MENUITEM "Opcion 208" //RESOURCE "MenuAssentamentsOrdenar"<br /> MENUITEM "Opcion 209" //RESOURCE "MenuAssentamentsQuadre"<br /> ENDMENU<br /><br /> MENUITEM "Opcion3" COLORMENU CLR_BLUE FILENAME "MenuLlistats.ico"<br /> MENUITEM "Opcion4" COLORMENU CLR_BLUE FILENAME "MenuVaris.ico"<br /> MENUITEM "Opcion5" COLORMENU CLR_BLUE FILENAME "MenuUtilitats.ico"<br /> MENUITEM "Salir" COLORMENU CLR_BLUE FILENAME "MenuExit.Jpg" ACTION oWnd:End()<br /> ENDMENU<br />*/</span><br /><span style="color: #00C800;">Return</span> oMnu<br /> </div>[/code:1t9c7ajo]
Gracias.
|
A que se debe??? Recursos???
|
De hecho... probando ejemplos, en Samples explbar3.prg tiene el mismo comportamiento.
De ahí mi inquietud se refuerza, es problema de gestión de recursos???
El "repintado" de algun control (en el caso de explbar3.prg) o imagen (si hay muchas en un Form) hace que "Tiemblen" los objetos contenidos.
|
A que se debe??? Recursos???
|
Un ejemplo lo mas sencillo para mostrar el "tembleque", utilizando una sola imagen BMP incluida en la distribución de FW
[code=fw:3stovfo7]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">Static</span> oWnd<br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> oBrush<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush FILENAME <span style="color: #ff0000;">"C:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\0</span>07.bmp"</span> STRETCH<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">600</span>, <span style="color: #000000;">800</span> <span style="color: #0000ff;">PIXEL</span>;<br /> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Prueba Tembleque Controles en FWH"</span>;<br /> <span style="color: #0000ff;">BRUSH</span> oBrush<br /> <br /> @ <span style="color: #000000;">50</span>,<span style="color: #000000;">350</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Btn&1"</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span><br /> @ <span style="color: #000000;">80</span>,<span style="color: #000000;">350</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Btn&2"</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /> </div>[/code:3stovfo7]
El efecto que tiene de "tembleque" es estirando y encogiendo del borde de la ventana iaquierda, o esquina sup.izq.
Pues es cuando "realoja"/"repinta" los controles contenidos en la ventana.
|
A que se debe??? Recursos???
|
Ahora el mismo ejemplo anterior, utilizando un DIALOG en lugar de un WINDOW
[code=fw:2riu0r0i]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">Static</span> oWnd<br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> oBrush<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush FILENAME <span style="color: #ff0000;">"C:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\0</span>07.bmp"</span> STRETCH<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oWnd <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;">600</span>, <span style="color: #000000;">800</span> <span style="color: #0000ff;">PIXEL</span>;<br /> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Prueba Tembleque Controles en FWH"</span>;<br /> <span style="color: #0000ff;">BRUSH</span> oBrush <br /> oWnd:<span style="color: #000000;">nStyle</span> := nOr<span style="color: #000000;">(</span> oWnd:<span style="color: #000000;">nStyle</span>, WS_THICKFRAME <span style="color: #000000;">)</span> <br /><br /> @ <span style="color: #000000;">50</span>,<span style="color: #000000;">350</span>/<span style="color: #000000;">2</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Btn&1"</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>/<span style="color: #000000;">2</span>, <span style="color: #000000;">30</span>/<span style="color: #000000;">2</span> <span style="color: #0000ff;">PIXEL</span><br /> @ <span style="color: #000000;">80</span>,<span style="color: #000000;">350</span>/<span style="color: #000000;">2</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Btn&2"</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>/<span style="color: #000000;">2</span>, <span style="color: #000000;">30</span>/<span style="color: #000000;">2</span> <span style="color: #0000ff;">PIXEL</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oWnd <span style="color: #0000ff;">CENTER</span><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /> </div>[/code:2riu0r0i]
Aquí, el tembleque prácticamente ha desaparecido, parpadea un poco la imagen y botones al redimensionar tirando de la esquina sup.izq. pero el efecto visual es muy CORRECTO.
Estoy en un intel i5 8Gb RAM
La pregu... Otro comportamiento distinto entre WINDOW y DIALOG ???
Se puede arreglar???
Como tenga en la ventana principal de una aplicacion en MDI, una foto de fondo, imagenes de opciones de menu, ExplBar... el efecto que hace al redimensionar va a quedar malamente!!!
Gracias por vuestro tiempo.
|
A que se debe??? Recursos???
|
Acabo de probar esos dos ejemplos en dos portátiles, y funcionan de maravilla, tanto en WINDOW como en DIALOG.
Problema de mi gráfica???
Problema de algunas gráficas???
Bien, si a nadie más le ha ocurrido, será un problema mínimo.
Gracias.
|
A question => New command: XBROWSER (FWH 8.08 )
|
Hello,In FWH 8.08 there is a new command XBROWSER.Because of hight screen-resolution, i want to change the font.I couln't find a sample/option for that ( maybe with SETUP ??? ).In the < readme > there was no solution for it.Syntax:XBROWSER [ <cAlias>/<oDbf>/<oRs>/<aArray> ] ; // defaults to active alias[ TITLE <cTitle> ] ; [ AUTOSORT ] ; // default false[ SETUP <fnSetUp(oBrw)> ] ; // optional function for user specified setup[ COLUMNS <listof columns> ] ; // optionally specify columns to be shown[ SELECT <fnSelect(oBrw,oCol)> ] // optional function for pick listsIs it possible to define a Font ?RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A question => New command: XBROWSER (FWH 8.08 )
|
Basic purpose of XBROWSER command, which gets translated into XBrowse( ... ) function is to "very quickly" show a browse with oneline code. If we want to use all power features of xbrowse, we better go the normal wayStilll we can set many parameters with the setuo clause.Examples:-----------1) Use customerXBROWSER-----------2) XBROWSER aArray-----------3) XBROWSER oRs------------In all the above examples, we do not need to construct a dialog, define xbrowse and define columnsWe can also setup some paramters of obrw like thisXBROWSER 'CUSTOMER' SETUP oBrw:bClrStd := { ..... }SETUP CLAUSE can call a functionlikeSETUP MySetUp( oBrw ) and we can configure anything in this function.I use this and this is very powerful and very simple and easy to use.But if we want to use all features, better we define our own window/dialog and browse and program the normal way
|
A question => New command: XBROWSER (FWH 8.08 )
|
NageswaraRao, G.Thank you very much for the informations,for a quick preview, the command saves some time.I noticed, that automaticly the font is used, defined in the dialogfrom where the browser is shown.RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A question about => FolderhDC and BMP-painting (solved)
|
Hello,I got a problem, trying to change colors and bitmaps from inside folders :I want to define new dialog-colors inside a folder with a bitmap-previewand than show the result in a extra preview-dialog.I don't want to change the Main-dialog-background.The preview is a extra-dialog and has nothing to do with the folder.The source, to define a color/brush for a bitmap and show the result in a extra dialog-preview :[code:3r5eepu9]
A Preview-Bitmap in folder-page 7
---------------------------------------
REDEFINE BITMAP oBmp22 ID 145 ADJUST RESOURCE "DlgSampl" OF oFld:aDialogs[7]
oBmp22:bPainted := { |hDC| OnPaint5( hDC, oBMP22) }
// ---------- The Bitmap-Refresh-Function -------------------------------------
FUNCTION ONPAINT5( hDC, oBmp22 )
LOCAL oBrush1
IF DLG_STYLE1 < 3
IF nHEADGRAD = 1
aGrad1 := { { nMOVE1, BR_COLOR1, BR_COLOR2 }, ;
{ nMOVE1, BR_COLOR2, BR_COLOR1 } }
ENDIF
IF nHEADGRAD = 2
aGrad1 := { { nMOVE1, BR_COLOR1, BR_COLOR1 }, ;
{ nMOVE1, BR_COLOR1, BR_COLOR1 } }
ENDIF
ENDIF
IF DLG_STYLE1 > 2 .and. DLG_STYLE1 < 5
IF nHEADGRAD = 1
aGrad1 := { { nMOVE7, DLG_COLOR1, DLG_COLOR2 }, ;
{ nMOVE7, DLG_COLOR2, DLG_COLOR1 } }
ENDIF
IF nHEADGRAD = 2
aGrad1 := { { nMOVE7, DLG_COLOR1, DLG_COLOR1 }, ;
{ nMOVE7, DLG_COLOR1, DLG_COLOR1 } }
ENDIF
ENDIF
// DLG_STYLE1
// 1 = Dialog-backgroung from xBrowse-Header Horizontal
// 2 = Dialog-background from xBrowse-Header Vertical
// 3 = New Gradient for Dialog-background Horizontal
// 4 = New Gradient for Dialog-background Vertical
// 5 = Mono-Color for Dialog-background from 1. xBrowse-header-color
// 6 = Brush-selection for Dialog-background
IF DLG_STYLE1 < 5
IF DLG_STYLE1 = 1 .or. DLG_STYLE1 = 3
GradientFill( hDC, 0, 0, 193, 255, aGrad1, .T. )
ENDIF
IF DLG_STYLE1 = 2 .or. DLG_STYLE1 = 4
GradientFill( hDC, 0, 0, 193, 255, aGrad1, .F. )
ENDIF
ENDIF
IF DLG_STYLE1 = 5
DEFINE BRUSH oBrush1 COLOR DLG_COLOR1
FillRect(oBmp22:hDC, GetClientRect( oBmp22:hWnd ), ;
oBrush1:hBrush )
oBrush1:End()
ENDIF
IF DLG_STYLE1 = 6
DEFINE BRUSH oBrush1 FILENAME LOGO3
FillRect(oBmp22:hDC, GetClientRect( oBmp2:hWnd ), oBrush1:hBrush )
oBrush1:End()
ENDIF
RETURN NIL
//--------- TEST-DATABASE ( The Action from the Preview-Button ) -------------//
STATIC FUNCTION Test_Browse5()
Local oDlg5, oLbx30, oBrush5, oBmp5
Local cAlias := cGetNewAlias( "CUST" )
LOCAL oBmp1, nBMPheight
nFOR := 1
REQUEST DBFCDX
USE CUSTOMER NEW ALIAS (cAlias) SHARED VIA "DBFCDX"
GO TOP
DEFINE DIALOG oDlg5 RESOURCE "TESTSOURCE"
....
....
....
ACTIVATE DIALOG oDlg5 CENTERED ;
ON PAINT DLG_BACK( oDlg5 ) ;
ON INIT ( oDlg5:Move( 30, 10, oDlg5:nWidth, oDlg5:nHeight, .f. ), ;
SHOW_BAR( oDlg5 ), OBRW_PEN( oLbx30) )
(cAlias)->( dbCloseArea() )
RETURN ( NIL )
[/code:3r5eepu9]The color-defines for a new dialog-background :[img:3r5eepu9]http://www.pflegeplus.com/pictures/hdc1.jpg[/img:3r5eepu9] If i change to the main-dialog with the preview-button.As soon, the button gets the focus,the tooltipp shows the color of the bitmap from the folder-page.[img:3r5eepu9]http://www.pflegeplus.com/pictures/hdc2a.jpg[/img:3r5eepu9] I do the preview :[img:3r5eepu9]http://www.pflegeplus.com/pictures/hdc3.jpg[/img:3r5eepu9] I close the preview and the main-dialog got the color from the preview-dialog.[img:3r5eepu9]http://www.pflegeplus.com/pictures/hdc4.jpg[/img:3r5eepu9] I don't know, why the main-dialog uses colors, defined inside a folder-page to show in a extra dialog.I think, it has to do something with < hDC >.RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A question about => FolderhDC and BMP-painting (solved)
|
I solved my painting-problems in folders.For the gradient-painting on the Main-dialog, i used the samefunction like for the Gradient-painting in the Preview-dialog. ( with funny results )That didn't work. I had to do a extra Gradpaint. The functions inside the folders have been OK.It works fine now.[code:10a3mtv3]
ACTIVATE DIALOG oDlg CENTERED NOWAIT ;
ON PAINT ( gradpaint0( hDC, oDlg ), SetDialogsGradient( oFld ) ) ;
ON INIT ( oDlg:Move( 30 , 10, oDlg:nWidth, oDlg:nHeight, .f. ), ;
RESULT_1_2(), oResult12:Refresh() )
RETURN ( NIL )
// --------- Gradient-Painting ( Main-Dialog ) ------------
static func gradpaint0( hDC, oDlg )
local aGrad1, oBrush1
aGrad1 := { { nMOVE1, BR_COLOR1, BR_COLOR2 },{ nMOVE1, BR_COLOR2, BR_COLOR1 } }
GradientFill( hDC, 0, 0, oDlg:nHeight, oDlg:nWidth, aGrad1, .T. )
RETURN NIL
// --------- Gradient-Painting ( Folder ) -------------------
FUNCTION SetDialogsGradient( oFld )
local n, oDlg
for n = 1 to Len( oFld:aDialogs )
oDlg = oFld:aDialogs[ n ]
oDlg:bPainted = { | hDC | GradientFill( hDC, 0, 0, oDlg:nHeight, ;
oDlg:nWidth, { { 0.50, 12609872, 16045947 } } ) }
next
RETURN NIL
[/code:10a3mtv3]RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A question about Dialog ON INIT and xBrowse
|
Hello,I finished testing the xBrowse-tools.I have a question about including PEN-styles insidethe xBrowse-structure.PEN-defines, i can get working only with Dialog ON INITIs there a reason for it and maybe another way, to include this inside the structure ?[img:cu8g2n22]http://www.pflegeplus.com/pictures/image9.jpg[/img:cu8g2n22][code:cu8g2n22]
FUNCTION Test_Browse5()
Local oDlg5, oLbx30, oBrush5, oBmp5
Local cAlias := cGetNewAlias( "CUST" )
nFOR := 1
REQUEST DBFCDX
USE CUSTOMER NEW ALIAS (cAlias) SHARED VIA "DBFCDX"
GO TOP
DEFINE DIALOG oDlg5 RESOURCE "TESTSOURCE"
oLbx30 := TXBrowse():New( oDlg5 )
// Here it doesn't work
//oLbx30:hColPen := CreatePen( PS_SOLID, BR_PEN, PEN_COLOR )
//oLbx30:hRowPen := CreatePen( PS_SOLID, BR_PEN, PEN_COLOR )
oCol := oLbx30:AddCol()
oCol:bStrData := { || (cAlias)->First}
oCol:cHeader := "First"
oCol:cFooter := "First"
....
....
....
Lbx30:SetRDD()
// Here it doesn't work
//oLbx30:hColPen := CreatePen( PS_SOLID, BR_PEN, PEN_COLOR )
//oLbx30:hRowPen := CreatePen( PS_SOLID, BR_PEN, PEN_COLOR )
oLbx30:CreateFromResource( 110 )
ACTIVATE DIALOG oDlg5 CENTERED ON INIT OBRW_PEN( oLbx30)
(cAlias)->( dbCloseArea() )
RETURN ( NIL )
// ----------- IT works only ON INIT ----------------------------------
STATIC FUNCTION OBRW_PEN( oLbx30)
oLbx30:hColPen := CreatePen( PS_SOLID, BR_PEN, PEN_COLOR )
oLbx30:hRowPen := CreatePen( PS_SOLID, BR_PEN, PEN_COLOR )
RETURN( NIL )
//-------------- The resource-part of sample TESTXBR3.prg ------------//
// It seems, it has to be ON INIT it works as well
static function RddBrwRes()
local oDlg, oBrw, oCol, cAlias := cGetNewAlias( "CUST" )
cFunc := ProcName( 0 )
USE CUSTOMER NEW ALIAS (cAlias) SHARED VIA "DBFCDX"
SET ORDER TO TAG FIRST
GO TOP
MakeTotal()
DEFINE DIALOG oDlg RESOURCE "TEST" //FONT WndMain():oFont
REDEFINE XBROWSE oBrw ID 101 OF oDlg ;
COLUMNS "First", "Salary" ;
FIELDS (cAlias)->State, (cAlias)->Age ;
HEADERS nil, nil, "State", "AGE" ;
JUSTIFY .F., nil, .F., .T. ;
ALIAS cAlias AUTOSORT LINES CELL
ADD TO oBrw DATA (cAlias)->CITY HEADER "City" CARGO { 1, 2 }
AEVAL( oBrw:aCols, { |o| o:bPopUp := { |o| ColMenu( o ) } } )
AEval( oBrw:aCols, { |o| o:cToolTip := { 'Column :' + CRLF + o:cHeader, 'ToolTip' } } )
ACTIVATE DIALOG oDlg CENTERED ON INIT ( OBRW_PEN( oBrw ), oBrw:SetFocus() )
(cAlias)->( dbCloseArea() )
return nil
// ---------------------------------------------
STATIC FUNCTION OBRW_PEN( oBrw )
oBrw:hColPen := CreatePen( PS_SOLID, 5, 128 )
oBrw:hRowPen := CreatePen( PS_SOLID, 5, 128 )
RETURN( NIL )
[/code:cu8g2n22]
|
A question about Dialog ON INIT and xBrowse
|
Uwe,>PEN-defines, i can get working only with Dialog ON INIT >Is there a reason for it and maybe another way, to include this inside the structure ?If you look at the xbrowse source, the pens are defined in the Adjust() method which is called from the Initate() method. So, you can't define them before the browse is intiatated, because they will just get overwritten by the pen definitions in the Adjust() method. Unfortunately, bInit is never eval'd in xBrowse so you can't use that either.So, the solution you found seems to be the only one (short of modifying the xbrowse source).Regards,James
|
A question about Dialog ON INIT and xBrowse
|
James,Thank you very much for the information.The rest of the job is done.Now the user can generate a mini-project of his xbrowse-creations.For users FWH Version >= 8.07[img:gweqlj4r]http://www.pflegeplus.com/pictures/project1.jpg[/img:gweqlj4r]For users FWH Version < 8.07[img:gweqlj4r]http://www.pflegeplus.com/pictures/project3.jpg[/img:gweqlj4r]RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A question about FWH-Release-Versions for function-use
|
Hello,In all my tool-application, i want to create different sources belongs to the FWH-versions.The user can add his FWH-version and the source will be writtenbelongs to his version.[img:op9yrwpu]http://www.pflegeplus.com/pictures/version.jpg[/img:op9yrwpu]There is a lot of GRADIENT-painting.Somebody knows the start-FWH-versions for these 3 functions ?I had a look at the whatsnew.txt, but i am not really shure.I don't know the release-version and if it is possible,to include the source to use for old FWH-versions------------------------------------------------------StretchBlt( hDC, nLeft, nTop, nWidth, nHeight )I think, this started with < September 2007 build > ( outlook 2003 )---------------------------------------------------------------------------aRect := GETCLIENTRECT( oDlg5:hWnd )Gradient( hDC, { aRect[1], aRect[2], aRect[3], aRect[4] }, ;COLOR1, COLOR2, .F. )I think, this started with FWH 8.08 ( new Buttonbar 2007 )------------------------------------------------------------------GradientFill( hDC, 0, 0, oWnd:nHeight, oWnd:nWidth, aGrad, .T. )Are these the correct FWH-versions to use the functions ?To make it possible for FWH-users with older versions,i would like to include a simple gradient-function to the source :I save a small dialog as BMP and use => StretchBltRegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A question about FWH-Release-Versions for function-use
|
Uwe,for all who don´t have the gradient function in their fwh release, here is a replacement (only vertical gradients)[code:lq7vfsx4]//-----------------------------------------------------------------//
STATIC FUNCTION Degrade ( hDC, aRect, nColor, nColorTo )
LOCAL nStep , nStepY
LOCAL oBrush
LOCAL i, r,g,b
LOCAL r0,g0,b0
LOCAL r1, g1, b1
LOCAL rD, gD, bD
DEFAULT nColorTo := nRGB (250,250,250)
//nColor := nRGB (255,0,0)
nStep := ( aRect[ 3 ] - aRect[ 1 ] )
nStepY := ( aRect[ 3 ] - aRect[ 1 ] ) / nStep
aRect[ 3 ] = aRect[ 1 ] + nStepY
r0 := nRGBRed (nColor)
g0 := nRGBGreen (nColor)
b0 := nRGBBlue (nColor)
r1 := nRGBRed (nColorTo)
g1 := nRGBGreen (nColorTo)
b1 := nRGBBlue (nColorTo)
rD := r1-r0
gD := g1-g0
bD := b1-b0
r := 256*rD/Max(nStep,1)
g := 256*gD/Max(nStep,1)
b := 256*bD/Max(nStep,1)
r0*=256
g0*=256
b0*=256
FOR i = 0 TO nStep-1 STEP nStepY
r0 += r
g0 += g
b0 += b
DEFINE BRUSH oBrush COLOR nRGB( r0/256, g0/256, b0/256 )
FILLRECT( hDC, aRect, oBrush:hBrush )
RELEASE BRUSH oBrush
aRect[ 1 ] += nStepY
aRect[ 3 ] += nStepY
NEXT
RETURN (nil)[/code:lq7vfsx4]
|
A question about FWH-Release-Versions for function-use
|
Hello Stefan,thank you for the function.I still need the start-date of the two grad-functions.( maybe Antonio knows the start, it is possible to use them )What i want to do is :sample : FW-release September / 2007would be : [code:1249kkol]
IF nFWFUNC < 7.9 // year.month
Degrade ( hDC, aRect, nColor, nColorTo )
ELSE
GRAD_PAINT()
ENDIF
[/code:1249kkol]Maybe another way to do it :Saving the window- and dialog-background as a small BMPand using it as a Brush. FWH-users with older versions, will have the same settings. ? RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A question about FWH-Release-Versions for function-use
|
Uwe just a litle contribution....Gradientfill() was included first time in July 2008 version of fivewin I meen FWH 8.07
|
A question about FWH-Release-Versions for function-use
|
Hi Uwe,the gradient function starts with Fwh 7.09
|
A question about FWH-Release-Versions for function-use
|
Hello,Thank you very much for the information.It means, I have to create 3 different sourcesto compile a running EXE-file :Version < 7.09No office-bar and extra Gradient-function-----------------------------------------------Version >= 7.09 and < 8.07Office-bar with GRADIENT - function-----------------------------------------------Version >= 8.07 Office-bar with GRADIENTFILL - function-----------------------------------------------That will make it possible, that the user can compilea running EXE-file for any FWH-versions without error-message, because of missing functions.I will add these extra functions this weekend.Also there will be a new IMAGE-Viewer for fivewin i'm working on.As a Graphic-editor, I do a connection to GIMP2 ( freeware )There will be still a Image-resize and more.A screenshot of the first result :[img:3o4ovixg]http://www.pflegeplus.com/pictures/imageview.jpg[/img:3o4ovixg]RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A question about Hash
|
Hi guys,
I have this Hash:
[code=fw:28y4aa8t]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">{</span><span style="color: #ff0000;">"Numero"</span>:<span style="color: #000000;">68825</span>,<span style="color: #ff0000;">"Serie"</span>:<span style="color: #ff0000;">"1"</span>,<span style="color: #ff0000;">"Filial"</span>:<span style="color: #ff0000;">""</span>,<span style="color: #ff0000;">"CNPJCli"</span>:<span style="color: #ff0000;">"01716341000120"</span>,<span style="color: #ff0000;">"TpDoc"</span>:<span style="color: #ff0000;">"6"</span>,<span style="color: #ff0000;">"InfAdic"</span>:<span style="color: #00C800;">null</span>,<span style="color: #ff0000;">"Erros"</span>:<span style="color: #000000;">{</span><span style="color: #ff0000;">"Erro"</span>:<span style="color: #000000;">[</span><span style="color: #000000;">{</span><span style="color: #ff0000;">"Codigo"</span>:<span style="color: #ff0000;">"033"</span>,<span style="color: #ff0000;">"Descricao"</span>:<span style="color: #ff0000;">"CNPJ emissor nao autorizado para averbar..."</span>,<span style="color: #ff0000;">"ValorInformado"</span>:<span style="color: #ff0000;">"009256139000175"</span><span style="color: #000000;">}</span><span style="color: #000000;">]</span><span style="color: #000000;">}</span><span style="color: #000000;">}</span></div>[/code:28y4aa8t]
How could I get the content of "Descricao" ?
|
A question about Hash
|
Así debería funcionar
[code=fw:3h0enliv]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />cDes := hElhash <span style="color: #000000;">[</span><span style="color: #ff0000;">"Erros"</span><span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #ff0000;">"Erro"</span><span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #ff0000;">"Descricao"</span><span style="color: #000000;">]</span><br /><br /> </div>[/code:3h0enliv]
|
A question about Hash
|
Thanks <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->
|
A question about MDI-child and Dialog-borders
|
Hello,
working on my new MDI-tools, I noticed a difference between MDI-child and Dialog-borders.
Update-info :
I added a missing Brush-selection for the MDI-frame.
If it is missing in Your download ( Upd. Vers. 1.2 ), it is fixed now.
MDI-child :
1. the upper corners ( round ) are not transparent.
2. the lower corners of MDI-child are square.
The Dialog shows a Shadow, possible for MDI-child as well ?
from Tools :
[img:28e47fiq]http://www.pflegeplus.com/pictures/border.jpg[/img:28e47fiq]
from FWH-sample :
[img:28e47fiq]http://www.pflegeplus.com/pictures/border7.jpg[/img:28e47fiq]
Best regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A question about download- and image - links
|
Dear Uwe,
Yes, we can do it.
Simply provide us the new name to use
|
A question about download- and image - links
|
Dear Antonio,
I am glad to hear that it is possible for You to change the domain-name
As soon the change is done I will tell You the new name <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: -->
samples for :
Download file from my website
http://[color=#FF0040:1mk4vbu9]www.pflegeplus.com[/color:1mk4vbu9]/fw_downloads/DbfCsv3.zip
Show Image from my website
[img]http://[color=#FF0000:1mk4vbu9]www.pflegeplus.com[/color:1mk4vbu9]/IMAGES/Move1.jpg[/img]
Show Image from my website
[img]http://[color=#FF0000:1mk4vbu9]www.service-fivewin.de[/color:1mk4vbu9]/IMAGES/Move1.jpg[/img]
[img:1mk4vbu9]http://www.service-fivewin.de/IMAGES/Move1.jpg[/img:1mk4vbu9]
thank You very much
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
A question about download- and image - links
|
Hello,
I have a question about the download-links of my website.
A company asked me, if I would like to sell the domain < PFLEGEPLUS.COM >
< PFLEGE > is a area of business and < PLUS > means < + > ( it is a desired name )
The problem : all samples and images I published inside the forum are
stored in this website.
Is it possible to keep everything activated after changing to a new name ?
( a global link replace)
best regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A question about download- and image - links
|
Uwe,
Have you thought about a central place to store all you samples/code ?
I've seen interesting software, but sometimes from maybe years ago, but still usefull.
|
A question about download- and image - links
|
Uwe,
I keep all forums images (that I post) at github
|
A question about download- and image - links
|
Dear Antonio,
the new domain-name seems to work
[size=150:3pyhtd2n][b:3pyhtd2n]OLD[/b:3pyhtd2n][/size:3pyhtd2n] <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: -->
samples for :
Download file from my website ( old domain )
<!-- m --><a class="postlink" href="http://www.pflegeplus.com/fw_downloads/DbfCsv3.zip">http://www.pflegeplus.com/fw_downloads/DbfCsv3.zip</a><!-- m -->
Show Image from my website
[img]http://[color=#FF0000:3pyhtd2n]www.pflegeplus.com[/color:3pyhtd2n]/IMAGES/Move1.jpg[/img]
[img:3pyhtd2n]http://www.pflegeplus.com/IMAGES/Move1.jpg[/img:3pyhtd2n]
[size=150:3pyhtd2n][b:3pyhtd2n]NEW[/b:3pyhtd2n][/size:3pyhtd2n] <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: -->
testing the new domain-name
<!-- m --><a class="postlink" href="http://www.service-fivewin.de">http://www.service-fivewin.de</a><!-- m -->
It is a copy of pflegeplus.com and will be redesigned
Show Image from the new domain
[color=#FF0000:3pyhtd2n]http://www.service-fivewin.de/IMAGES/Move1.jpg[/color:3pyhtd2n]
[img:3pyhtd2n]http://www.service-fivewin.de/IMAGES/Move1.jpg[/img:3pyhtd2n]
testing a download from the new domain
<!-- m --><a class="postlink" href="http://www.service-fivewin.de/fw_downloads/DbfCsv3.zip">http://www.service-fivewin.de/fw_downloads/DbfCsv3.zip</a><!-- m -->
The new domain / website ( english and german language ) will be redesigned and
will include all my images, downloads and useful infos and links
working on the safe-status still -> http must be https
testing save-status
<!-- m --><a class="postlink" href="https://www.service-fivewin.de/fw_downloads/DbfCsv3.zip">https://www.service-fivewin.de/fw_downloads/DbfCsv3.zip</a><!-- m -->
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
A question about download- and image - links
|
I changed the domain-name of the images ln topic :
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=28578&p=160062#p160062">viewtopic.php?f=3&t=28578&p=160062#p160062</a><!-- l -->
it works perfect without problem <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
regards
Uwe
|
A question about download- and image - links
|
Now the domain-change is complete
from
[b:180f6nnq]Pflegeplus.de[/b:180f6nnq]
to
[b:180f6nnq][size=150:180f6nnq]www.service-fivewin.de[/size:180f6nnq][/b:180f6nnq]
[img:180f6nnq]http://www.service-fivewin.de/IMAGES/Background2.jpg[/img:180f6nnq]
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
A question about download- and image - links
|
Not all images are ok yet.
[img:3vipaar1]http://www.maveco.be/fivewin/five0112.jpg[/img:3vipaar1]
|
A question about download- and image - links
|
Hello Marc,
Yes I still have to create a new Website only for Fivewin
including the downloads, images and Infos.
Now I have 3 existing Domains
1.) Esc-engineering.de ( main )
2.) [color=#008040:5yy25xwy][b:5yy25xwy]service-fivewin.de [/b:5yy25xwy][/color:5yy25xwy] ( new subdomain and replacement of 4. )
3.) pflege-tools.de ( new subdomain of internal software )
--- Your screenshot from above. This website has to be redesigned as well.
4.) pflegeplus.com ( [color=#FF0000:5yy25xwy]sold[/color:5yy25xwy] )
best regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
A question about function FW_Cdxcreate()
|
Hello,
I wanted to create individual indexes for 7 files
before I used < [color=#0000FF:2a4bc5x8]FW_Cdxcreate() [/color:2a4bc5x8]> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
everything works fine without problems
next I started to define extra indexes <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
The solution returns < [color=#FF0000:2a4bc5x8]corrupt index [/color:2a4bc5x8]>after restart
I saw that it is possible to define parameter in [color=#0000FF:2a4bc5x8]FW_Cdxcreate()[/color:2a4bc5x8] <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
Never before I had any problems creating indexfiles.
strange <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=9931&p=48111&hilit=cdx+error+1012#p48111">viewtopic.php?f=3&t=9931&p=48111&hilit=cdx+error+1012#p48111</a><!-- l -->
[img:2a4bc5x8]http://www.pflegeplus.com/IMAGES/Forum59.jpg[/img:2a4bc5x8]
With my external DBF-viewer I can open the file without problems
and the indexfiles are created.
NO problems using FW_Cdxcreate() <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
[img:2a4bc5x8]http://www.pflegeplus.com/IMAGES/Forum60.jpg[/img:2a4bc5x8]
[code=fw:2a4bc5x8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> DBSELECTAREA<span style="color: #000000;">(</span>cFileName<span style="color: #000000;">)</span> <span style="color: #B900B9;">// filenames from sample1 to 7</span><br /> FW_CdxCreate<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> ORDCREATE<span style="color: #000000;">(</span> ,<span style="color: #ff0000;">"TOPICNO"</span>, <span style="color: #ff0000;">"DESCEND( STR( TOPICNO ) )"</span>, ;<br /> <span style="color: #000000;">{</span>|| DESCEND<span style="color: #000000;">(</span>STR<span style="color: #000000;">(</span> TOPICNO <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> , .F. <span style="color: #000000;">)</span> <br /> ORDCREATE<span style="color: #000000;">(</span> ,<span style="color: #ff0000;">"FORUM"</span>,<span style="color: #ff0000;">"STR( FORUM )"</span>, ;<br /> <span style="color: #000000;">{</span>|| STR<span style="color: #000000;">(</span> FORUM <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> , .F. <span style="color: #000000;">)</span> <br /> ORDCREATE<span style="color: #000000;">(</span> ,<span style="color: #ff0000;">"DELETE"</span>,<span style="color: #ff0000;">"STR( T_DELETE )"</span>, ;<br /> <span style="color: #000000;">{</span>|| STR<span style="color: #000000;">(</span> T_DELETE <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> , .F. <span style="color: #000000;">)</span> <br /> ORDCREATE<span style="color: #000000;">(</span> ,<span style="color: #ff0000;">"DATE"</span>,<span style="color: #ff0000;">"DTOS( DATE )"</span>, ;<br /> <span style="color: #000000;">{</span>|| DTOS<span style="color: #000000;">(</span> DATE <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> , .F. <span style="color: #000000;">)</span> <br /> ORDCREATE<span style="color: #000000;">(</span> ,<span style="color: #ff0000;">"AUTHOR"</span>,<span style="color: #ff0000;">"AUTHOR + INFO1 + INFO2"</span>, ;<br /> <span style="color: #000000;">{</span>|| AUTHOR + INFO1 + INFO2 <span style="color: #000000;">}</span> , .F. <span style="color: #000000;">)</span><br /> ORDCREATE<span style="color: #000000;">(</span> ,<span style="color: #ff0000;">"LIKE"</span>, <span style="color: #ff0000;">"STR( LIKE ) + AUTHOR + INFO1 + INFO2 ) "</span>, ;<br /> <span style="color: #000000;">{</span>|| STR<span style="color: #000000;">(</span> <span style="color: #0000ff;">LIKE</span> <span style="color: #000000;">)</span> + AUTHOR + INFO1 + INFO2 <span style="color: #000000;">}</span> , .F. <span style="color: #000000;">)</span> <br /> ORDCREATE<span style="color: #000000;">(</span> ,<span style="color: #ff0000;">"INFO1"</span>,<span style="color: #ff0000;">"INFO1"</span>, ;<br /> <span style="color: #000000;">{</span>|| INFO1 <span style="color: #000000;">}</span> , .F. <span style="color: #000000;">)</span> <br /> ORDCREATE<span style="color: #000000;">(</span> ,<span style="color: #ff0000;">"INFO2"</span>,<span style="color: #ff0000;">"INFO2"</span>, ;<br /> <span style="color: #000000;">{</span>|| INFO2 <span style="color: #000000;">}</span> , .F. <span style="color: #000000;">)</span> <br /><br /> </div>[/code:2a4bc5x8]
There is nothing special opening a dbf with my NETTOOLS
The errorline
[color=#0000FF:2a4bc5x8]-> 37 USE &cFileName ALIAS &cAlias NEW SHARED[/color:2a4bc5x8]
[code=fw:2a4bc5x8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> NET_USE <span style="color: #000000;">(</span> cFileName, cAlias, nTrials, nTime, lNet <span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> lReturn := .T.<br /><span style="color: #00C800;">LOCAL</span> lOpen := .F.<br /><br />nTrcount := nTrials<br />YesNo := .F.<br /><br /><span style="color: #B900B9;">// SHARED all Users</span><br /><span style="color: #B900B9;">// EXCLUSIVE 1 User</span><br /><br /><span style="color: #00C800;">IF</span> FILE<span style="color: #000000;">(</span> cFileName <span style="color: #000000;">)</span><br /> nTrials := nTrcount<br /> <span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> !lOpen<br /> <span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> .T.<br /> <span style="color: #00C800;">IF</span> !lNet<br /> USE &cFileName <span style="color: #0000ff;">ALIAS</span> &cAlias <span style="color: #00C800;">NEW</span> EXCLUSIVE<br /> <span style="color: #00C800;">ELSE</span><br /> USE &cFileName <span style="color: #0000ff;">ALIAS</span> &cAlias <span style="color: #00C800;">NEW</span> SHARED<br /> <span style="color: #00C800;">ENDIF</span><br />,,,<br />,,,<br /> </div>[/code:2a4bc5x8]
Any idea <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A question about function FW_Cdxcreate()
|
Maybe:
[code=fw:1anj5ax9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> FW_CdxCreate<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> CLOSE DATABASE<br /><br /> USE SAMPLES EXCLUSIVE VIA <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #B900B9;">// or SHARED</span><br /><br /> </div>[/code:1anj5ax9]
Regards
|
A question about function FW_Cdxcreate()
|
Indexing 7 DBF's
[color=#0000FF:2s20tsnd]FW_CdxCreate()[/color:2s20tsnd] // WORKS !!!
I tested index by index ALL numerics ( red ) don*t work !
[color=#FF0000:2s20tsnd]//ORDCREATE( ,"TOPICNO", "DESCEND( STR( TOPICNO ) )", ;
// {|| DESCEND(STR( TOPICNO ) ) } , .F. )
//ORDCREATE( ,"FORUM","STR( FORUM )", ;
// {|| STR( FORUM ) } , .F. )
//ORDCREATE( ,"DELETE","STR( T_DELETE )", ;
// {|| STR( T_DELETE ) } , .F. ) [/color:2s20tsnd]
[color=#0000FF:2s20tsnd]ORDCREATE( ,"DATE","DTOS( DATE )", ;
{|| DTOS( DATE ) } , .F. )
ORDCREATE( ,"AUTHOR","AUTHOR + INFO1 + INFO2", ;
{|| AUTHOR + INFO1 + INFO2 } , .F. )[/color:2s20tsnd]
[color=#FF0000:2s20tsnd]//ORDCREATE( ,"LIKE", "STR( LIKE ) + AUTHOR + INFO1 + INFO2 ) ", ;
// {|| STR( LIKE ) + AUTHOR + INFO1 + INFO2 } , .F. ) [/color:2s20tsnd]
[color=#0000FF:2s20tsnd]ORDCREATE( ,"INFO1","INFO1", ;
{|| INFO1 } , .F. )
ORDCREATE( ,"INFO2","INFO2", ;
{|| INFO2 } , .F. ) [/color:2s20tsnd]
[color=#008000:2s20tsnd] DBCREATE( c_path + cFilename + ".DBF", { ;
{ "TOPICNO", 'N', 6, 0 }, ; <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: -->
{ "LINK", 'C', 70, 0 }, ;
{ "TOPIC", 'C', 65, 0 }, ;
{ "AUTHOR", 'C', 40, 0 }, ; <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
{ "DATE", 'D', 8, 0 }, ; <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
{ "LIKE", 'N', 1, 0 }, ; <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: -->
{ "T_DELETE", 'N', 1, 0 }, ; <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: -->
{ "INFO1", 'C', 15, 0 }, ; <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
{ "INFO2", 'C', 15, 0 }, ; <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
{ "FORUM", 'N', 1, 0 }, ; <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: -->
{ "CODE", 'M', 10, 0 } }, "DBFCDX", .T., "DB" )[/color:2s20tsnd]
creating indexes for files < Samples1 - 7 >
[code=fw:2s20tsnd]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />I := <span style="color: #000000;">1</span><br /><span style="color: #00C800;">FOR</span> I := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">7</span><br /> X := LTRIM<span style="color: #000000;">(</span>STR<span style="color: #000000;">(</span>I<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> cFileName := <span style="color: #ff0000;">"SAMPLES"</span> + X<br /> <span style="color: #00C800;">IF</span> !File<span style="color: #000000;">(</span> c_path + cFilename + <span style="color: #ff0000;">".CDX"</span> <span style="color: #000000;">)</span><br /><br /> DBSELECTAREA<span style="color: #000000;">(</span>cFileName<span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">//FW_CdxCreate() // WORKS !!!</span><br /> <br /> ORDCREATE<span style="color: #000000;">(</span> ,<span style="color: #ff0000;">"TOPICNO"</span>, <span style="color: #ff0000;">"DESCEND( STR( TOPICNO ) )"</span>, ;<br /> <span style="color: #000000;">{</span>|| DESCEND<span style="color: #000000;">(</span>STR<span style="color: #000000;">(</span> TOPICNO <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> , .F. <span style="color: #000000;">)</span> <br /> ORDCREATE<span style="color: #000000;">(</span> ,<span style="color: #ff0000;">"FORUM"</span>,<span style="color: #ff0000;">"STR( FORUM )"</span>, ;<br /> <span style="color: #000000;">{</span>|| STR<span style="color: #000000;">(</span> FORUM <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> , .F. <span style="color: #000000;">)</span> <br /> ORDCREATE<span style="color: #000000;">(</span> ,<span style="color: #ff0000;">"DELETE"</span>,<span style="color: #ff0000;">"STR( T_DELETE )"</span>, ;<br /> <span style="color: #000000;">{</span>|| STR<span style="color: #000000;">(</span> T_DELETE <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> , .F. <span style="color: #000000;">)</span> <br /> ORDCREATE<span style="color: #000000;">(</span> ,<span style="color: #ff0000;">"DATE"</span>,<span style="color: #ff0000;">"DTOS( DATE )"</span>, ;<br /> <span style="color: #000000;">{</span>|| DTOS<span style="color: #000000;">(</span> DATE <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> , .F. <span style="color: #000000;">)</span> <br /> ORDCREATE<span style="color: #000000;">(</span> ,<span style="color: #ff0000;">"AUTHOR"</span>,<span style="color: #ff0000;">"AUTHOR + INFO1 + INFO2"</span>, ;<br /> <span style="color: #000000;">{</span>|| AUTHOR + INFO1 + INFO2 <span style="color: #000000;">}</span> , .F. <span style="color: #000000;">)</span><br /> ORDCREATE<span style="color: #000000;">(</span> ,<span style="color: #ff0000;">"LIKE"</span>, <span style="color: #ff0000;">"STR( LIKE ) + AUTHOR + INFO1 + INFO2 ) "</span>, ;<br /> <span style="color: #000000;">{</span>|| STR<span style="color: #000000;">(</span> <span style="color: #0000ff;">LIKE</span> <span style="color: #000000;">)</span> + AUTHOR + INFO1 + INFO2 <span style="color: #000000;">}</span> , .F. <span style="color: #000000;">)</span> <br /> ORDCREATE<span style="color: #000000;">(</span> ,<span style="color: #ff0000;">"INFO1"</span>,<span style="color: #ff0000;">"INFO1"</span>, ;<br /> <span style="color: #000000;">{</span>|| INFO1 <span style="color: #000000;">}</span> , .F. <span style="color: #000000;">)</span> <br /> ORDCREATE<span style="color: #000000;">(</span> ,<span style="color: #ff0000;">"INFO2"</span>,<span style="color: #ff0000;">"INFO2"</span>, ;<br /> <span style="color: #000000;">{</span>|| INFO2 <span style="color: #000000;">}</span> , .F. <span style="color: #000000;">)</span> <br /><br /> <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">NEXT</span><br /> </div>[/code:2s20tsnd]
[color=#0000FF:2s20tsnd][b:2s20tsnd]I got it working deleting all STR( for only numeric fields [/b:2s20tsnd][/color:2s20tsnd]
but what to do with < STR( LIKE ) + AUTHOR + INFO1 + INFO2 > numeric + text + text + text <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
regards
Uwe <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
|
A question about function FW_Cdxcreate()
|
FW_CdxCreate( [caTagList], [lMemory] ) --> lSuccess
Works only for DBFCDX. It is desirable to delete the existing cdx and open the DBF in exclusive mode before calling this function.
Param.2: [lMemory] Defaults to .F.. If .t., creates temporary index in memory with bag name "TMP"
Param.1: [caTagList]
DEFAULT: All fields excepting memo fields. All character fields are indexed with UPPER(<fldname>). Other fields are indexed with their own data types, i.e., not converted as character type. In addition, a tag with name "DELETED" is created with expression "DELETED()". This tag is meant for optimization of navigation by setting filter to "!DELETED()".
caTagList can be specified as a comma-delimited list of field names. "DELETED" can also be specified as a field name.
caTaglist can also be specified as an array of fieldnames/expressions. Each if the element can be a field name or an array of {expression, tagname}.
|
A question about function FW_Cdxcreate()
|
Mr. Rao,
In many posts, i have seen the advice of creating ALL the indexes with a deleted() into it.
// Also do all your indexes "for ! deleted()"
// And you MUST USE the TAG clause!
use customer
index on chgno tag "custid" to customer for ! deleted()
index on descrip tag "company" to customer for ! deleted()
index on phone tag "phone" to customer for ! deleted()
...
You use a other approach with the set filter ?
In my case, in Xbrowse 1 have many indexes, and many deleted records. At a given moment I would like to show also the deleted one.
So best I set a Checkbox for toggle the Xbrowse deleted with a filter condition then ?
If so, I can search for samples here.
|
A question about function FW_Cdxcreate()
|
Mr. Rao,
thank You very much for the info
[code=fw:1rsvfo6x]<div class="fw" id="{CB}" style="font-family: monospace;">Other fields are indexed with their own <span style="color: #00C800;">data</span> types, i.e., not converted <br />as character type.</div>[/code:1rsvfo6x]
that seems to be the reason that it works without problems.
As soon a create a index with STR( field ) // numeric
I'm getting problems. But I have to define it with a index-mix of C and N.
I didn't test < cValToChar > lets see what happens.
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
A question about function FW_Cdxcreate()
|
[quote:1bhi2vwb]As soon a create a index with STR( field ) // numeric
I'm getting problems.[/quote:1bhi2vwb]
There is nothing wrong with it.
What kind of problems are you getting?
|
A question about function FW_Cdxcreate()
|
Mr. Rao,
the problem is a index numeric + text + text
I changed [color=#FF0000:1hxqnrsp]STR(nVal)[/color:1hxqnrsp] to [color=#0000FF:1hxqnrsp]cValtoChar(nVal)[/color:1hxqnrsp] and that seems to work <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
But now my external dbf-editor shows a errormessage because he doesn't know -> cValtoChar
I want to sort the two defined filters inside LIKE and it looks OK now
[img:1hxqnrsp]http://www.pflegeplus.com/IMAGES/Forum61.jpg[/img:1hxqnrsp]
[b:1hxqnrsp]seek LIKE 25, 50, 75 or 100 %[/b:1hxqnrsp]
[img:1hxqnrsp]http://www.pflegeplus.com/IMAGES/Forum62.jpg[/img:1hxqnrsp]
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
A question about function FW_Cdxcreate()
|
STR(..) should not give any error, if LIKE is a numeric field.
We need to use common functions only in index expressions.
|
A question about libxl
|
Hi to all.
I'm trying to use the LibXl dll library for writing an excel file, but I'm having a problem with numbers, that are not written in the file.
Anyone has tried to use this library ?
I'm using Xhb.com
Thanks a lot.
Massimo
[code=fw:b63vp8k7]<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 /><br /><span style="color: #00C800;">STATIC</span> hLib<br /><br />PROCEDURE MAIN<br /><span style="color: #00C800;">LOCAL</span> book, sheet, riga, font1, formato1<br /><span style="color: #00C800;">LOCAL</span> xFont_Text1, xFont_Text2<br /><span style="color: #00C800;">LOCAL</span> xfrm1, xf1, format1<br /><span style="color: #00C800;">LOCAL</span> xfrm2, xf2, format2<br /><span style="color: #00C800;">LOCAL</span> xfrm3, xf3, format3<br /><br />set date italian<br /><br />hLib = LOADLIBRARY<span style="color: #000000;">(</span><span style="color: #ff0000;">"LIBXL.DLL"</span><span style="color: #000000;">)</span><br /><br />book = xlCreateBook<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">If</span> book # <span style="color: #000000;">0</span><br /> xFont_Text1 = xlBookAddFont<span style="color: #000000;">(</span> Book <span style="color: #000000;">)</span> ; xlFontSetName<span style="color: #000000;">(</span> xFont_Text1 , <span style="color: #ff0000;">"Arial"</span> <span style="color: #000000;">)</span> ; xlFontSetSize<span style="color: #000000;">(</span> xFont_Text1 , <span style="color: #000000;">9</span> <span style="color: #000000;">)</span><br /> xFont_Text2 = xlBookAddFont<span style="color: #000000;">(</span> Book <span style="color: #000000;">)</span> ; xlFontSetName<span style="color: #000000;">(</span> xFont_Text2 , <span style="color: #ff0000;">"Arial"</span> <span style="color: #000000;">)</span> ; xlFontSetSize<span style="color: #000000;">(</span> xFont_Text2 , <span style="color: #000000;">10</span> <span style="color: #000000;">)</span> ; xlFontBold<span style="color: #000000;">(</span>xFont_Text2<span style="color: #000000;">)</span><br /> xFont_Text3 = xlBookAddFont<span style="color: #000000;">(</span> Book <span style="color: #000000;">)</span> ; xlFontSetName<span style="color: #000000;">(</span> xFont_Text3 , <span style="color: #ff0000;">"Arial"</span> <span style="color: #000000;">)</span> ; xlFontSetSize<span style="color: #000000;">(</span> xFont_Text1 , <span style="color: #000000;">9</span> <span style="color: #000000;">)</span><br /><br /> xfrm1 = <span style="color: #ff0000;">"###.###.###,##0"</span><br /> xf1 = xlBookAddCustomNumFormat<span style="color: #000000;">(</span> Book , xfrm1 <span style="color: #000000;">)</span><br /> format1 = xlBookAddFormat<span style="color: #000000;">(</span> Book <span style="color: #000000;">)</span><br /> xlFormatSetNumFormat<span style="color: #000000;">(</span> format1, xf1 <span style="color: #000000;">)</span><br /> xlFormatSetFont<span style="color: #000000;">(</span> format1, xFont_text1 <span style="color: #000000;">)</span><br /><br /> format2 = xlBookAddFormat<span style="color: #000000;">(</span> Book <span style="color: #000000;">)</span><br /> xlFormatSetFont<span style="color: #000000;">(</span> format2, xFont_text2 <span style="color: #000000;">)</span><br /><br /> format3 = xlBookAddFormat<span style="color: #000000;">(</span> Book <span style="color: #000000;">)</span><br /> xlFormatSetFont<span style="color: #000000;">(</span> format2, xFont_text3 <span style="color: #000000;">)</span><br /><br /> sheet = xlBookAddSheet<span style="color: #000000;">(</span>book, <span style="color: #ff0000;">"Sheet1"</span>, <span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /><br /> use <span style="color: #ff0000;">"EMPLOYEE"</span> <span style="color: #00C800;">NEW</span> <span style="color: #0000ff;">ALIAS</span> nomi<br /> dbgotop<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> riga = <span style="color: #000000;">0</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Nome"</span>, format2<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"Cognome"</span>, format2<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">2</span>, <span style="color: #ff0000;">"Indirizzo"</span>, format2<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">3</span>, <span style="color: #ff0000;">"Città"</span>, format2<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">4</span>, <span style="color: #ff0000;">"Stato"</span>, format2<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">5</span>, <span style="color: #ff0000;">"C.A.P."</span>, format2<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">6</span>, <span style="color: #ff0000;">"Data nascita"</span>, format2<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">7</span>, <span style="color: #ff0000;">"Sposato"</span>, format2<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"Età"</span>, format2<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">9</span>, <span style="color: #ff0000;">"Stipendio"</span>, format2<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> !eof<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> riga ++<br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">0</span>, nomi->FIRST, format3<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">1</span>, nomi->LAST, format3<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">2</span>, nomi->STREET, format3<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">3</span>, nomi->CITY, format3<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">4</span>, nomi->STATE, format3<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">5</span>, nomi->ZIP, format3<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">6</span>, dtoc<span style="color: #000000;">(</span>nomi->HIREDATE<span style="color: #000000;">)</span>, format3<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">7</span>, iif<span style="color: #000000;">(</span>nomi->MARRIED,<span style="color: #ff0000;">"X"</span>,<span style="color: #ff0000;">" "</span><span style="color: #000000;">)</span>, format3<span style="color: #000000;">)</span><br /> xlSheetWriteNum<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">8</span>, nomi->AGE, format1<span style="color: #000000;">)</span> <--- here is the problem<br /> xlSheetWriteNum<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">9</span>, nomi->SALARY, format1<span style="color: #000000;">)</span> <--- here is the problem<br /> dbskip<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">enddo</span><br /> nomi-><span style="color: #000000;">(</span>dbclosearea<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /> xlSheetSetAutoFitArea<span style="color: #000000;">(</span>sheet, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, riga, <span style="color: #000000;">5</span><span style="color: #000000;">)</span><br /> xlBookSave<span style="color: #000000;">(</span>book, <span style="color: #ff0000;">"example.xls"</span><span style="color: #000000;">)</span><br /> xlBookRelease<span style="color: #000000;">(</span>book<span style="color: #000000;">)</span><br /><span style="color: #00C800;">EndIf</span><br />freelibrary<span style="color: #000000;">(</span>hLib<span style="color: #000000;">)</span><br /><span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Finito"</span><span style="color: #000000;">)</span><br />quit<br /><br />DLL32 <span style="color: #00C800;">Function</span> xlBookSetKey<span style="color: #000000;">(</span>bookHandle As LONG, nome As LPSTR, chiave As LPSTR<span style="color: #000000;">)</span> AS LONG PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"xlBookSetKeyA"</span> Lib hlib<br />DLL32 <span style="color: #00C800;">Function</span> xlCreateBook<span style="color: #000000;">(</span><span style="color: #000000;">)</span> AS LONG PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"xlCreateBookA"</span> LIB hlib<br />DLL32 <span style="color: #00C800;">Function</span> xlBookAddSheet<span style="color: #000000;">(</span>bookHandle As LONG, <span style="color: #0000ff;">name</span> As LPSTR, sheetHandle As LONG<span style="color: #000000;">)</span> AS LONG PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"xlBookAddSheetA"</span> Lib hlib<br />DLL32 <span style="color: #00C800;">Function</span> xlSheetWriteStr<span style="color: #000000;">(</span>sheetHandle As LONG, riga As LONG, colonna As LONG, valore As LPSTR, formatHandle As LONG<span style="color: #000000;">)</span> AS VOID PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"xlSheetWriteStrA"</span> Lib hlib<br />DLL32 <span style="color: #00C800;">Function</span> xlSheetWriteNum<span style="color: #000000;">(</span>sheetHandle As LONG, riga As LONG, colonna As LONG, valore As LONG, formatHandle As LONG<span style="color: #000000;">)</span> AS VOID PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"xlSheetWriteNumA"</span> Lib hlib<br />DLL32 <span style="color: #00C800;">Function</span> xlBookInsertSheet<span style="color: #000000;">(</span>bookHandle As LONG, indice As LONG, <span style="color: #0000ff;">name</span> As LPSTR, sheetHandle As LONG<span style="color: #000000;">)</span> As LONG PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"xlBookInsertSheetA"</span> Lib hlib<br />DLL32 <span style="color: #00C800;">Function</span> xlBookDelSheet<span style="color: #000000;">(</span>bookHandle As LONG, indice As LONG<span style="color: #000000;">)</span> As LONG PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"xlBookDelSheetA"</span> Lib hlib<br />DLL32 <span style="color: #00C800;">Function</span> xlBookSave<span style="color: #000000;">(</span>bookHandle As LONG, filename As LPSTR<span style="color: #000000;">)</span> AS VOID PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"xlBookSaveA"</span> Lib hlib<br />DLL32 <span style="color: #00C800;">Function</span> xlBookRelease<span style="color: #000000;">(</span>bookHandle As LONG<span style="color: #000000;">)</span> As LONG PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"xlBookReleaseA"</span> Lib hlib<br />DLL32 <span style="color: #00C800;">Function</span> xlSheetSetAutoFitArea<span style="color: #000000;">(</span>sheetHandle As LONG, rowFirst As LONG, colFirst As LONG, rowLast As LONG, colLast As LONG<span style="color: #000000;">)</span> AS VOID PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"xlSheetSetAutoFitAreaA"</span> Lib hlib<br /><br />DLL32 <span style="color: #00C800;">Function</span> xlBookAddFont<span style="color: #000000;">(</span>bookHandle As LONG, fontHandle As LONG<span style="color: #000000;">)</span> AS LONG PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"xlBookAddFontA"</span> Lib hlib<br />DLL32 <span style="color: #00C800;">Function</span> xlFontSetName<span style="color: #000000;">(</span>fontHandle As LONG, nome As LPSTR<span style="color: #000000;">)</span> AS LONG PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"xlFontSetNameA"</span> Lib hlib<br />DLL32 <span style="color: #00C800;">Function</span> xlFontSetSize<span style="color: #000000;">(</span>fontHandle As LONG, <span style="color: #0000ff;">size</span> As LONG<span style="color: #000000;">)</span> AS VOID PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"xlFontSetSizeA"</span> Lib hlib<br />DLL32 <span style="color: #00C800;">Function</span> xlFontSetBold<span style="color: #000000;">(</span>fontHandle As LONG, bold As LONG<span style="color: #000000;">)</span> AS VOID PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"xlFontSetBoldA"</span> Lib hlib<br />DLL32 <span style="color: #00C800;">Function</span> xlFontBold<span style="color: #000000;">(</span>fontHandle As LONG<span style="color: #000000;">)</span> AS LONG PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"xlFontBoldA"</span> Lib hlib<br /><br />DLL32 <span style="color: #00C800;">Function</span> xlBookAddCustomNumFormat <span style="color: #000000;">(</span>bookHandle As LONG, customNumFormat As LPSTR<span style="color: #000000;">)</span> AS LONG PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"xlBookAddCustomNumFormatA"</span> Lib hlib<br />DLL32 <span style="color: #00C800;">Function</span> xlBookAddFormat<span style="color: #000000;">(</span>bookHandle As LONG, formatHandle As LONG<span style="color: #000000;">)</span> AS LONG PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"xlBookAddFormatA"</span> Lib hlib<br />DLL32 <span style="color: #00C800;">Function</span> xlFormatSetNumFormat<span style="color: #000000;">(</span>formatHandle As LONG, numFormat As LONG<span style="color: #000000;">)</span> AS VOID PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"xlFormatSetNumFormatA"</span> Lib hlib<br /><br />DLL32 <span style="color: #00C800;">Function</span> xlFormatSetFont<span style="color: #000000;">(</span>formatHandle As LONG, fontHandle As LONG<span style="color: #000000;">)</span> AS LONG PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"xlFormatSetFontA"</span> Lib hlib<br />DLL32 <span style="color: #00C800;">Function</span> xlBookSetDefaultFont<span style="color: #000000;">(</span>bookHandle As LONG, fontName As LPSTR, fontSize As LONG<span style="color: #000000;">)</span> AS VOID PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"xlBookSetDefaultFontA"</span> Lib hlib<br /> </div>[/code:b63vp8k7]
|
A question about libxl
|
Hi.
I resolved changing all the DLL32 calls with some functions in C and linking a lib.
This DLL is really, really fast and you don't need Excel. You can find a demo in the site and test it.
Thanks a lot.
Massimo
|
A question about libxl
|
Hi Massimo
Could you share your example corrected?
Thank you
regards
|
A question about libxl
|
Here it is. You must download the DLL and the library from the LIBXL site.
I made a test with a DBF of 5000 records. The procedure below has been executed in less than one second.
[code=fw:38vnx07i]<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 /><br />PROCEDURE MAIN<br /><span style="color: #00C800;">LOCAL</span> book, sheet, riga<br /><span style="color: #00C800;">LOCAL</span> xf<br /><span style="color: #00C800;">LOCAL</span> num_format1, date_format<br /><span style="color: #00C800;">LOCAL</span> Header_Font, header_Format<br /><span style="color: #00C800;">LOCAL</span> Line_Font, Line_Format<br /><br />set date italian<br />set century <span style="color: #0000ff;">on</span><br /><br />book = xlCreateBookC<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">If</span> book # <span style="color: #000000;">0</span><br /> Header_Font = xlBookAddFont<span style="color: #000000;">(</span> Book, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> xlFontSetName<span style="color: #000000;">(</span> Header_Font , <span style="color: #ff0000;">"Arial"</span> <span style="color: #000000;">)</span><br /> xlFontSetSize<span style="color: #000000;">(</span> Header_Font , <span style="color: #000000;">12</span> <span style="color: #000000;">)</span><br /> xlFontBold<span style="color: #000000;">(</span> Header_Font <span style="color: #000000;">)</span><br /><br /> Line_Font = xlBookAddFont<span style="color: #000000;">(</span> Book, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> xlFontSetName<span style="color: #000000;">(</span> Line_Font , <span style="color: #ff0000;">"Arial"</span> <span style="color: #000000;">)</span><br /> xlFontSetSize<span style="color: #000000;">(</span> Line_Font , <span style="color: #000000;">9</span> <span style="color: #000000;">)</span><br /><br /> Header_Format = xlBookAddFormat<span style="color: #000000;">(</span> Book, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> xlFormatSetFont<span style="color: #000000;">(</span> Header_Format, Header_Font <span style="color: #000000;">)</span><br /><br /> Line_Format = xlBookAddFormat<span style="color: #000000;">(</span> Book, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> xlFormatSetFont<span style="color: #000000;">(</span> Line_Format, Line_Font <span style="color: #000000;">)</span><br /><br /> num_format1 = xlBookAddFormat<span style="color: #000000;">(</span> Book, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> xf = xlBookAddCustomNumFormat<span style="color: #000000;">(</span> Book , <span style="color: #ff0000;">"###,###,###,##0"</span> <span style="color: #000000;">)</span><br /> xlFormatSetNumFormat<span style="color: #000000;">(</span> num_format1, xf <span style="color: #000000;">)</span><br /> xlFormatSetFont<span style="color: #000000;">(</span> num_format1, Line_Font <span style="color: #000000;">)</span><br /><br /> date_format = xlBookAddFormat<span style="color: #000000;">(</span> Book, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> xf = xlBookAddCustomNumFormat<span style="color: #000000;">(</span> Book , <span style="color: #ff0000;">"DD/MM/YYYY"</span> <span style="color: #000000;">)</span><br /> xlFormatSetNumFormat<span style="color: #000000;">(</span> date_format, xf <span style="color: #000000;">)</span><br /> xlFormatSetFont<span style="color: #000000;">(</span> date_format, Line_Font <span style="color: #000000;">)</span><br /><br /> sheet = xlBookAddSheet<span style="color: #000000;">(</span>book, <span style="color: #ff0000;">"Sheet1"</span>, <span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /><br /> use <span style="color: #ff0000;">"EMPLOYEE"</span> <span style="color: #00C800;">NEW</span> <span style="color: #0000ff;">ALIAS</span> nomi<br /> dbgotop<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> riga = <span style="color: #000000;">0</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Nome"</span>, Header_Format<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"Cognome"</span>, Header_Format<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">2</span>, <span style="color: #ff0000;">"Indirizzo"</span>, Header_Format<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">3</span>, <span style="color: #ff0000;">"Città"</span>, Header_Format<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">4</span>, <span style="color: #ff0000;">"Stato"</span>, Header_Format<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">5</span>, <span style="color: #ff0000;">"C.A.P."</span>, Header_Format<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">6</span>, <span style="color: #ff0000;">"Data nascita"</span>, Header_Format<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">7</span>, <span style="color: #ff0000;">"Sposato"</span>, Header_Format<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"Età"</span>, Header_Format<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">9</span>, <span style="color: #ff0000;">"Stipendio"</span>, Header_Format<span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> !eof<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> riga ++<br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">0</span>, nomi->FIRST, Line_Format<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">1</span>, nomi->LAST, Line_Format<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">2</span>, nomi->STREET, Line_Format<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">3</span>, nomi->CITY, Line_Format<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">4</span>, nomi->STATE, Line_Format<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">5</span>, nomi->ZIP, Line_Format<span style="color: #000000;">)</span><br /> xlSheetWriteStr<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">6</span>, dtoc<span style="color: #000000;">(</span>nomi->HIREDATE<span style="color: #000000;">)</span>, date_format<span style="color: #000000;">)</span><br /> xlSheetWriteBool<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">7</span>, nomi->MARRIED, Line_Format<span style="color: #000000;">)</span><br /> xlSheetWriteNum<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">8</span>, nomi->AGE, num_format1<span style="color: #000000;">)</span><br /> xlSheetWriteNum<span style="color: #000000;">(</span>sheet, riga, <span style="color: #000000;">9</span>, nomi->SALARY, num_format1<span style="color: #000000;">)</span><br /> dbskip<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">enddo</span><br /> nomi-><span style="color: #000000;">(</span>dbclosearea<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /> xlSheetWriteFormula<span style="color: #000000;">(</span>sheet, riga<span style="color: #000000;">+2</span>, <span style="color: #000000;">9</span>, <span style="color: #ff0000;">"=SUM(J2:J"</span> + alltrim<span style="color: #000000;">(</span>str<span style="color: #000000;">(</span>riga<span style="color: #000000;">)</span><span style="color: #000000;">)</span>+<span style="color: #ff0000;">")"</span>, num_format1<span style="color: #000000;">)</span><br /><br /> xlBookSave<span style="color: #000000;">(</span>book, <span style="color: #ff0000;">"example.xls"</span><span style="color: #000000;">)</span><br /> xlBookRelease<span style="color: #000000;">(</span>book<span style="color: #000000;">)</span><br /><span style="color: #00C800;">EndIf</span><br /><br /><span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Finito"</span><span style="color: #000000;">)</span><br />quit<br /><br /><br />*********************************************************************************<br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <shlobj.h><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapi.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbvm.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbstack.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapiitm.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"include<span style="color: #000000;">\l</span>ibxl.h"</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> XLCREATEBOOKC <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> hb_retni<span style="color: #000000;">(</span> <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> <span style="color: #000000;">(</span>BookHandle<span style="color: #000000;">)</span> xlCreateBookCA<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> XLBOOKSAVE <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> BookHandle handle = <span style="color: #000000;">(</span>BookHandle<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span>;<br /> const char* filename = <span style="color: #000000;">(</span>const char*<span style="color: #000000;">)</span> hb_parc<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span>;<br /><br /> hb_retl<span style="color: #000000;">(</span> <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> xlBookSaveA<span style="color: #000000;">(</span> handle , filename <span style="color: #000000;">)</span> != <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> XLBOOKADDSHEET <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> BookHandle handle = <span style="color: #000000;">(</span>BookHandle<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span>;<br /> const char* <span style="color: #0000ff;">name</span> = <span style="color: #000000;">(</span>const char*<span style="color: #000000;">)</span> hb_parc<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span>;<br /> SheetHandle initSheet = <span style="color: #000000;">(</span>SheetHandle<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">3</span><span style="color: #000000;">)</span>;<br /><br /> hb_retni<span style="color: #000000;">(</span> <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> <span style="color: #000000;">(</span>SheetHandle<span style="color: #000000;">)</span> xlBookAddSheetA<span style="color: #000000;">(</span> handle , <span style="color: #0000ff;">name</span> , initSheet <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> XLBOOKADDFORMAT <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> BookHandle handle = <span style="color: #000000;">(</span>BookHandle<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span>;<br /> FormatHandle initFormat = <span style="color: #000000;">(</span>FormatHandle<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span>;<br /><br /> hb_retni<span style="color: #000000;">(</span> <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> <span style="color: #000000;">(</span>FormatHandle<span style="color: #000000;">)</span> xlBookAddFormatA<span style="color: #000000;">(</span> handle , initFormat <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> XLBOOKADDFONT <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> BookHandle handle = <span style="color: #000000;">(</span>BookHandle<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span>;<br /> FontHandle initFont = <span style="color: #000000;">(</span>FontHandle<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span>;<br /><br /> hb_retni<span style="color: #000000;">(</span> <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> <span style="color: #000000;">(</span>FontHandle<span style="color: #000000;">)</span> xlBookAddFontA<span style="color: #000000;">(</span> handle , initFont <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> XLBOOKADDCUSTOMNUMFORMAT <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> BookHandle handle = <span style="color: #000000;">(</span>BookHandle<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span>;<br /> const char* customNumFormat = <span style="color: #000000;">(</span>const char*<span style="color: #000000;">)</span> hb_parc<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span>;<br /><br /> hb_retni<span style="color: #000000;">(</span> <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> xlBookAddCustomNumFormatA<span style="color: #000000;">(</span> handle , customNumFormat <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> XLBOOKCUSTOMNUMFORMAT <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> BookHandle handle = <span style="color: #000000;">(</span>BookHandle<span style="color: #000000;">)</span> hb_parptr<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span>;<br /> int fmt = <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span>;<br /><br /> hb_retc<span style="color: #000000;">(</span> <span style="color: #000000;">(</span>const char*<span style="color: #000000;">)</span> xlBookCustomNumFormatA<span style="color: #000000;">(</span> handle , fmt <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> XLFONTSETNAME <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> FontHandle handle = <span style="color: #000000;">(</span>FontHandle<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span>;<br /> const char* <span style="color: #0000ff;">name</span> = <span style="color: #000000;">(</span>const char*<span style="color: #000000;">)</span> hb_parc<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span>;<br /><br /> xlFontSetNameA<span style="color: #000000;">(</span> handle , <span style="color: #0000ff;">name</span> <span style="color: #000000;">)</span>;<br /> hb_retnl<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span>; <br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> XLFONTBOLD <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> FontHandle handle = <span style="color: #000000;">(</span>FontHandle<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span>;<br /><br /> hb_retni<span style="color: #000000;">(</span> <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> xlFontBoldA<span style="color: #000000;">(</span> handle <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> XLFONTSETSIZE <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> FontHandle handle = <span style="color: #000000;">(</span>FontHandle<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span>;<br /> int <span style="color: #0000ff;">size</span> = <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span>;<br /><br /> xlFontSetSizeA<span style="color: #000000;">(</span> handle , <span style="color: #0000ff;">size</span> <span style="color: #000000;">)</span>;<br /> hb_retnl<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span>; <br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> XLSHEETWRITESTR <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> SheetHandle handle = <span style="color: #000000;">(</span>SheetHandle<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span>;<br /> int row = <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span>;<br /> int col = <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">3</span><span style="color: #000000;">)</span>;<br /> const char* value = <span style="color: #000000;">(</span>const char*<span style="color: #000000;">)</span> hb_parc<span style="color: #000000;">(</span><span style="color: #000000;">4</span><span style="color: #000000;">)</span>;<br /> FormatHandle format = <span style="color: #000000;">(</span>FormatHandle<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">5</span><span style="color: #000000;">)</span>;<br /><br /> hb_retl<span style="color: #000000;">(</span> <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> xlSheetWriteStrA<span style="color: #000000;">(</span> handle , row , col , value , format <span style="color: #000000;">)</span> != <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> XLSHEETWRITENUM <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> SheetHandle handle = <span style="color: #000000;">(</span>SheetHandle<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span>;<br /> int row = <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span>;<br /> int col = <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">3</span><span style="color: #000000;">)</span>;<br /> double value = <span style="color: #000000;">(</span>double<span style="color: #000000;">)</span> hb_parnd<span style="color: #000000;">(</span><span style="color: #000000;">4</span><span style="color: #000000;">)</span>;<br /> FormatHandle format = <span style="color: #000000;">(</span>FormatHandle<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">5</span><span style="color: #000000;">)</span>;<br /><br /> hb_retl<span style="color: #000000;">(</span> <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> xlSheetWriteNumA<span style="color: #000000;">(</span> handle , row , col , value , format <span style="color: #000000;">)</span> != <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> XLSHEETWRITEBOOL <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> SheetHandle handle = <span style="color: #000000;">(</span>SheetHandle<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span>;<br /> int row = <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span>;<br /> int col = <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">3</span><span style="color: #000000;">)</span>;<br /> int value = <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> hb_parl<span style="color: #000000;">(</span><span style="color: #000000;">4</span><span style="color: #000000;">)</span>;<br /> FormatHandle format = <span style="color: #000000;">(</span>FormatHandle<span style="color: #000000;">)</span> hb_parptr<span style="color: #000000;">(</span><span style="color: #000000;">5</span><span style="color: #000000;">)</span>;<br /><br /> hb_retl<span style="color: #000000;">(</span> <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> xlSheetWriteBoolA<span style="color: #000000;">(</span> handle , row , col , value , format <span style="color: #000000;">)</span> != <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> XLFORMATSETFONT <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> FormatHandle handle = <span style="color: #000000;">(</span>FormatHandle<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span>;<br /> FontHandle fontHandle = <span style="color: #000000;">(</span>FontHandle<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span>;<br /><br /> hb_retni<span style="color: #000000;">(</span> <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> xlFormatSetFontA<span style="color: #000000;">(</span> handle , fontHandle <span style="color: #000000;">)</span> != <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> XLFORMATSETNUMFORMAT <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> FormatHandle handle = <span style="color: #000000;">(</span>FormatHandle<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span>;<br /> int numFormat = <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span>;<br /><br /> xlFormatSetNumFormatA<span style="color: #000000;">(</span> handle , numFormat <span style="color: #000000;">)</span>;<br /> hb_retni<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> XLSHEETWRITEFORMULA <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> SheetHandle handle = <span style="color: #000000;">(</span>SheetHandle<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span>;<br /> int row = <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span>;<br /> int col = <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">3</span><span style="color: #000000;">)</span>;<br /> const char* value = <span style="color: #000000;">(</span>const char*<span style="color: #000000;">)</span> hb_parc<span style="color: #000000;">(</span><span style="color: #000000;">4</span><span style="color: #000000;">)</span>;<br /> FormatHandle format = <span style="color: #000000;">(</span>FormatHandle<span style="color: #000000;">)</span> hb_parptr<span style="color: #000000;">(</span><span style="color: #000000;">5</span><span style="color: #000000;">)</span>;<br /><br /> hb_retl<span style="color: #000000;">(</span> <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> xlSheetWriteFormulaA<span style="color: #000000;">(</span> handle , row , col , value , format <span style="color: #000000;">)</span> != <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> XLBOOKRELEASE <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> BookHandle handle = <span style="color: #000000;">(</span>BookHandle<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span>;<br /><br /> xlBookReleaseA<span style="color: #000000;">(</span> handle <span style="color: #000000;">)</span>;<br /> hb_retnl<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span>; <br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /><br /> </div>[/code:38vnx07i]
|
A question about libxl
|
Hi Massimo
When compiling with the library I get this error
[code=fw:wth1e07p]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Error: <span style="color: #ff0000;">'C:<span style="color: #000000;">\F</span>WH1412<span style="color: #000000;">\S</span>AMPLES<span style="color: #000000;">\L</span>IBXL.LIB'</span> contains invalid OMF record, type 0x21 <span style="color: #000000;">(</span>possibly COFF<span style="color: #000000;">)</span><br /> </div>[/code:wth1e07p]
I imagine that the compiler BCC should. Is there any library that works with this compiler.
Thank you very much
|
A question about libxl
|
You must use the IMPLIB program to create the lib from the DLL.
implib -a libxl32.lib libxl32.dll
Take a look also here [url:sz2y0uee]http://www.ntkproject.com/forum_ntk/comments.php?DiscussionID=25[/url:sz2y0uee]
|
A question about libxl
|
Hi Massimo
I have managed to generate the library, compiles run smoothly but this error
[code=fw:8vw1wth7]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Application Internal Error - C:\libxl\stdcall\belgrano.exe<br />Terminated <span style="color: #00C800;">at</span>: <span style="color: #000000;">2016</span><span style="color: #000000;">-10</span><span style="color: #000000;">-07</span> <span style="color: #000000;">09</span>:<span style="color: #000000;">22</span>:<span style="color: #000000;">38</span><br />Unrecoverable error <span style="color: #000000;">6005</span>: <span style="color: #000000;">Exception</span> error:<br /><br /> Exception Code:<span style="color: #000000;">C0000005</span> ACCESS_VIOLATION<br /> Exception Address:<span style="color: #000000;">00000000</span><br /> EAX:006BE704 EBX:<span style="color: #000000;">00000001</span> ECX:02025B10 EDX:<span style="color: #000000;">00000002</span><br /> ESI:<span style="color: #000000;">00478994</span> EDI:0054A3A0 EBP:0018FDF4<br /> CS:<span style="color: #000000;">EIP</span>:<span style="color: #000000;">0023</span>:<span style="color: #000000;">00000000</span> SS:<span style="color: #000000;">ESP</span>:002B:0018FDE8<br /> DS:002B ES:002B FS:<span style="color: #000000;">0053</span> GS:002B<br /> Flags:<span style="color: #000000;">00010212</span><br /> Exception Parameters: <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span><br /> CS:<span style="color: #000000;">EIP</span>:<br /> SS:<span style="color: #000000;">ESP</span>: <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> 0018FF08 00472A42 <span style="color: #000000;">00000002</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000001</span> 00670F7C <span style="color: #000000;">00003170</span> <span style="color: #000000;">00671528</span> 00319A3C 006BEA60 <span style="color: #000000;">00000011</span> 0018FE30 0048F853<br /><br /> C stack:<br /> EIP: EBP: Frame: <span style="color: #000000;">OldEBP</span>, RetAddr, Params...<br /> <span style="color: #000000;">00000000</span> 0018FDF4 0018FF08 00472A42 <span style="color: #000000;">00000002</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000001</span> 00670F7C <span style="color: #000000;">00003170</span> <span style="color: #000000;">00671528</span> 00319A3C 006BEA60<br /> 00472A42 0018FF08 0018FF30 <span style="color: #000000;">00401564</span> 0054A348 0054A0A4 <span style="color: #000000;">00478994</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000018</span><br /> <span style="color: #000000;">00401564</span> 0018FF30 0018FF44 00471D17 <span style="color: #000000;">00000000</span> 0054A034 007B2218<br /> 00471D17 0018FF44 0018FF50 004A2D12 <span style="color: #000000;">00000001</span><br /> 004A2D12 0018FF50 0018FF80 0054688F <span style="color: #000000;">00400000</span> <span style="color: #000000;">00000000</span> 007B2218 0000000A <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> 7EFDE000 <span style="color: #000000;">00000000</span><br /> 0054688F 0018FF80 0018FF94 <span style="color: #000000;">00000000</span> 0054A034 75BE336A 7EFDE000<br /> <span style="color: #000000;">00000000</span> 0018FF94 0018FFD4 772A9882 7EFDE000 77345C48 <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> 7EFDE000 <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span><br /> 772A9882 0018FFD4 0018FFEC 772A9855 004013E4 7EFDE000 <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span><br /><br /><br />Modules:<br /><span style="color: #000000;">00400000</span> 002E6000 C:\libxl\stdcall\belgrano.exe<br /><span style="color: #000000;">77270000</span> <span style="color: #000000;">00180000</span> C:\Windows\SysWOW64\ntdll.dll<br />75BD0000 <span style="color: #000000;">00110000</span> C:\Windows\syswow64\kernel32.dll<br />76E20000 <span style="color: #000000;">00047000</span> C:\Windows\syswow64\KERNELBASE.dll<br /><span style="color: #000000;">10000000</span> 0064F000 C:\libxl\stdcall\LIBXL.DLL<br />74CE0000 <span style="color: #000000;">00090000</span> C:\Windows\syswow64\GDI32.dll<br />76CC0000 <span style="color: #000000;">00100000</span> C:\Windows\syswow64\USER32.dll<br />758D0000 000A1000 C:\Windows\syswow64\ADVAPI32.dll<br />75A10000 000AC000 C:\Windows\syswow64\msvcrt.dll<br />74D70000 <span style="color: #000000;">00019000</span> C:\Windows\SysWOW64\sechost.dll<br />769E0000 000F0000 C:\Windows\syswow64\RPCRT4.dll<br />74BE0000 <span style="color: #000000;">00060000</span> C:\Windows\syswow64\SspiCli.dll<br />74BD0000 0000C000 C:\Windows\syswow64\CRYPTBASE.dll<br />769C0000 0000A000 C:\Windows\syswow64\LPK.dll<br />74C40000 0009D000 C:\Windows\syswow64\USP10.dll<br />75D70000 00C4B000 C:\Windows\syswow64\SHELL32.dll<br />74DC0000 <span style="color: #000000;">00057000</span> C:\Windows\syswow64\SHLWAPI.dll<br />73FE0000 <span style="color: #000000;">00009000</span> C:\Windows\system32\VERSION.DLL<br />70B20000 <span style="color: #000000;">00051000</span> C:\Windows\system32\WINSPOOL.DRV<br />70FD0000 <span style="color: #000000;">00084000</span> C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5<span style="color: #000000;">.82</span><span style="color: #000000;">.7601</span>.18837_none_ec86b8d6858ec0bc\COMCTL32.DLL<br /><span style="color: #000000;">75010000</span> 0007B000 C:\Windows\syswow64\COMDLG32.DLL<br /><span style="color: #000000;">70400000</span> <span style="color: #000000;">00005000</span> C:\Windows\system32\MSIMG32.DLL<br /><span style="color: #000000;">75680000</span> 0015C000 C:\Windows\syswow64\OLE32.DLL<br />757E0000 0008F000 C:\Windows\syswow64\OLEAUT32.DLL<br />71B10000 0001C000 C:\Windows\system32\OLEDLG.DLL<br />76DC0000 <span style="color: #000000;">00060000</span> C:\Windows\system32\IMM32.DLL<br />755B0000 000CC000 C:\Windows\syswow64\MSCTF.dll<br /><br />Called <span style="color: #0000ff;">from</span> XLBOOKADDFONT<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br />Called <span style="color: #0000ff;">from</span> MAIN<span style="color: #000000;">(</span><span style="color: #000000;">24</span><span style="color: #000000;">)</span> in belgrano.prg<br />------------------------------------------------------------------------<br />Application Internal Error - C:\libxl\stdcall\belgrano.exe<br />Terminated <span style="color: #00C800;">at</span>: <span style="color: #000000;">2016</span><span style="color: #000000;">-10</span><span style="color: #000000;">-07</span> <span style="color: #000000;">09</span>:<span style="color: #000000;">22</span>:<span style="color: #000000;">41</span><br />Unrecoverable error <span style="color: #000000;">6005</span>: <span style="color: #000000;">Exception</span> error:<br /><br /> Exception Code:<span style="color: #000000;">C0000005</span> ACCESS_VIOLATION<br /> Exception Address:<span style="color: #000000;">00000000</span><br /> EAX:006BE704 EBX:<span style="color: #000000;">00000001</span> ECX:02025B10 EDX:<span style="color: #000000;">00000002</span><br /> ESI:<span style="color: #000000;">00478994</span> EDI:0054A3A0 EBP:0018FDF4<br /> CS:<span style="color: #000000;">EIP</span>:<span style="color: #000000;">0023</span>:<span style="color: #000000;">00000000</span> SS:<span style="color: #000000;">ESP</span>:002B:0018FDE8<br /> DS:002B ES:002B FS:<span style="color: #000000;">0053</span> GS:002B<br /> Flags:<span style="color: #000000;">00010212</span><br /> Exception Parameters: <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span><br /> CS:<span style="color: #000000;">EIP</span>:<br /> SS:<span style="color: #000000;">ESP</span>: <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> 0018FF08 00472A42 <span style="color: #000000;">00000002</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000001</span> 00670F7C <span style="color: #000000;">00003170</span> <span style="color: #000000;">00671528</span> 00319A3C 006BEA60 <span style="color: #000000;">00000011</span> 0018FE30 0048F853<br /><br /> C stack:<br /> EIP: EBP: Frame: <span style="color: #000000;">OldEBP</span>, RetAddr, Params...<br /> <span style="color: #000000;">00000000</span> 0018FDF4 0018FF08 00472A42 <span style="color: #000000;">00000002</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000001</span> 00670F7C <span style="color: #000000;">00003170</span> <span style="color: #000000;">00671528</span> 00319A3C 006BEA60<br /> 00472A42 0018FF08 0018FF30 <span style="color: #000000;">00401564</span> 0054A348 0054A0A4 <span style="color: #000000;">00478994</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000018</span><br /> <span style="color: #000000;">00401564</span> 0018FF30 0018FF44 00471D17 <span style="color: #000000;">00000000</span> 0054A034 007B2218<br /> 00471D17 0018FF44 0018FF50 004A2D12 <span style="color: #000000;">00000001</span><br /> 004A2D12 0018FF50 0018FF80 0054688F <span style="color: #000000;">00400000</span> <span style="color: #000000;">00000000</span> 007B2218 0000000A <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> 7EFDE000 <span style="color: #000000;">00000000</span><br /> 0054688F 0018FF80 0018FF94 <span style="color: #000000;">00000000</span> 0054A034 75BE336A 7EFDE000<br /> <span style="color: #000000;">00000000</span> 0018FF94 0018FFD4 772A9882 7EFDE000 77345C48 <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> 7EFDE000 C0000005 75C076E7 75C076E7<br /> 772A9882 0018FFD4 0018FFEC 772A9855 004013E4 7EFDE000 <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span><br /><br /><br />Modules:<br /><span style="color: #000000;">00400000</span> 002E6000 C:\libxl\stdcall\belgrano.exe<br /><span style="color: #000000;">77270000</span> <span style="color: #000000;">00180000</span> C:\Windows\SysWOW64\ntdll.dll<br />75BD0000 <span style="color: #000000;">00110000</span> C:\Windows\syswow64\kernel32.dll<br />76E20000 <span style="color: #000000;">00047000</span> C:\Windows\syswow64\KERNELBASE.dll<br /><span style="color: #000000;">10000000</span> 0064F000 C:\libxl\stdcall\LIBXL.DLL<br />74CE0000 <span style="color: #000000;">00090000</span> C:\Windows\syswow64\GDI32.dll<br />76CC0000 <span style="color: #000000;">00100000</span> C:\Windows\syswow64\USER32.dll<br />758D0000 000A1000 C:\Windows\syswow64\ADVAPI32.dll<br />75A10000 000AC000 C:\Windows\syswow64\msvcrt.dll<br />74D70000 <span style="color: #000000;">00019000</span> C:\Windows\SysWOW64\sechost.dll<br />769E0000 000F0000 C:\Windows\syswow64\RPCRT4.dll<br />74BE0000 <span style="color: #000000;">00060000</span> C:\Windows\syswow64\SspiCli.dll<br />74BD0000 0000C000 C:\Windows\syswow64\CRYPTBASE.dll<br />769C0000 0000A000 C:\Windows\syswow64\LPK.dll<br />74C40000 0009D000 C:\Windows\syswow64\USP10.dll<br />75D70000 00C4B000 C:\Windows\syswow64\SHELL32.dll<br />74DC0000 <span style="color: #000000;">00057000</span> C:\Windows\syswow64\SHLWAPI.dll<br />73FE0000 <span style="color: #000000;">00009000</span> C:\Windows\system32\VERSION.DLL<br />70B20000 <span style="color: #000000;">00051000</span> C:\Windows\system32\WINSPOOL.DRV<br />70FD0000 <span style="color: #000000;">00084000</span> C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5<span style="color: #000000;">.82</span><span style="color: #000000;">.7601</span>.18837_none_ec86b8d6858ec0bc\COMCTL32.DLL<br /><span style="color: #000000;">75010000</span> 0007B000 C:\Windows\syswow64\COMDLG32.DLL<br /><span style="color: #000000;">70400000</span> <span style="color: #000000;">00005000</span> C:\Windows\system32\MSIMG32.DLL<br /><span style="color: #000000;">75680000</span> 0015C000 C:\Windows\syswow64\OLE32.DLL<br />757E0000 0008F000 C:\Windows\syswow64\OLEAUT32.DLL<br />71B10000 0001C000 C:\Windows\system32\OLEDLG.DLL<br />76DC0000 <span style="color: #000000;">00060000</span> C:\Windows\system32\IMM32.DLL<br />755B0000 000CC000 C:\Windows\syswow64\MSCTF.dll<br /><br />Called <span style="color: #0000ff;">from</span> XLBOOKADDFONT<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br />Called <span style="color: #0000ff;">from</span> MAIN<span style="color: #000000;">(</span><span style="color: #000000;">24</span><span style="color: #000000;">)</span> in belgrano.prg<br />------------------------------------------------------------------------<br /> </div>[/code:8vw1wth7]
Regards
|
A question about libxl
|
Sorry, I don't know what could be.
I use the Xharbour.com compiler.
|
A question about moving between pages
|
Hi.
In one main prg I have a request of login that is validated. Then the user can go in different pages with datas and browses.
I've places a button in the menu for logging out and this clears the string in the cookie so if you
click on main the program launch the login process again. But if you press the previous page different times
you can see the pages that are loaded before. How can I prevent this ?
TIA
Massimo
|
A question about moving between pages
|
Massimo,
Try with this:
? '<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">'
|
A question about moving between pages
|
Antonio,
I've tried your code and you see that the url seems to be refreshed (in Safari you see the meter below the url)
but the page is the last you saw. If you click on the previous page of the browser in the url there is written
"http://192.168.10.180/samples/BSTUDIO/utenti.prg?reload" but the first lines of code of the prg are not executed
again until you make a manual refresh of the page.
|
A question about using TEXTOUT on different images.
|
Hello,
using [size=150:3skbf8hh]TEXTOUT[/size:3skbf8hh], painting text on a [color=#0000FF:3skbf8hh][b:3skbf8hh]alphablended[/b:3skbf8hh][/color:3skbf8hh] image,
I noticed the TEXTCOLOR is painted related to a defined background.
The text itself doesn't use a solid defined textcolor.
the screenshot shows the problem :
A defined red textcolor changes on different positions, mixed with the background-color ( not solid )
[img:3skbf8hh]http://www.pflegeplus.com/IMAGES/Textout10.jpg[/img:3skbf8hh]
On a NON transparent images, the textcolor is painted solid and works fine.
Is there a source-file of TEXTOUT, maybe to change something ?
[img:3skbf8hh]http://www.pflegeplus.com/IMAGES/Textout12.jpg[/img:3skbf8hh]
I added a transparent [color=#0000FF:3skbf8hh][b:3skbf8hh]TTITLE[/b:3skbf8hh][/color:3skbf8hh] as a test,
but it works only for painting. For saving, I have to paint on < [color=#FF0000:3skbf8hh][b:3skbf8hh]hMemDC[/b:3skbf8hh][/color:3skbf8hh] >
Maybe it is possible, to paint a TTITLE on hMemDC instead on oDrawImg ???
----------------------------
STATIC FUNCTION CL_DT( hMemDC, nStyle, oDrawImg )
[color=#008000:3skbf8hh]LOCAL hOldFont := SelectObject( hMemDC, oFont3:hFont )[/color:3skbf8hh], oTitle1
[color=#0000FF:3skbf8hh]@ aPoints[1][1], aPoints[1][2] TITLE oTitle1 SIZE 300, 50 OF oDrawImg NOBORDER
oTitle1:nShadow := 0
oTitle1:aGrdBack := {}
oTitle1:lTransparent := .T.
@ 1, 1 TITLETEXT OF oTitle1 TEXT TIME() FONT oFont3 COLOR nPenColor [/color:3skbf8hh]
[color=#008000:3skbf8hh][b:3skbf8hh]//SetBkMode( hMemDC, 1 )
//SetTextColor( hMemDC, nPenColor )
//TextOut( hMemDC, aPoints[1][1], aPoints[1][2], TIME() )
//SelectObject ( hMemDC, hOldFont )[/b:3skbf8hh][/color:3skbf8hh]
RETURN( NIL )
----------------------------
[b:3skbf8hh]The TTITLE - result[/b:3skbf8hh]
[img:3skbf8hh]http://www.pflegeplus.com/IMAGES/Textout13.jpg[/img:3skbf8hh]
best regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A question for Mr. Rao
|
Mr Rao:
Why this code does not work (There is not conection)
[code=fw:2fdjxrnr]<div class="fw" id="{CB}" style="font-family: monospace;"><br />FWCONNECT oCn HOST <span style="color: #ff0000;">"localhost"</span> USER <span style="color: #ff0000;">"root"</span> PASSWORD <span style="color: #ff0000;">"secret"</span> DB <span style="color: #ff0000;">"AppSap"</span><br /> </div>[/code:2fdjxrnr]
But this one yes (There is conection)
[code=fw:2fdjxrnr]<div class="fw" id="{CB}" style="font-family: monospace;"><br />FWCONNECT oCn HOST <span style="color: #ff0000;">"192.178.100.3"</span> USER <span style="color: #ff0000;">"root"</span> PASSWORD <span style="color: #ff0000;">"secret"</span> DB <span style="color: #ff0000;">"AppSap"</span><br /> </div>[/code:2fdjxrnr]
The only diference is the host name.
Regards
|
A question for Mr. Rao
|
[quote="Armando":3av9d4u5]Mr Rao:
Why this code does not work (There is not conection)
[code=fw:3av9d4u5]<div class="fw" id="{CB}" style="font-family: monospace;"><br />FWCONNECT oCn HOST <span style="color: #ff0000;">"localhost"</span> USER <span style="color: #ff0000;">"root"</span> PASSWORD <span style="color: #ff0000;">"secret"</span> DB <span style="color: #ff0000;">"AppSap"</span><br /> </div>[/code:3av9d4u5]
But this one yes (There is conection)
[code=fw:3av9d4u5]<div class="fw" id="{CB}" style="font-family: monospace;"><br />FWCONNECT oCn HOST <span style="color: #ff0000;">"192.178.100.3"</span> USER <span style="color: #ff0000;">"root"</span> PASSWORD <span style="color: #ff0000;">"secret"</span> DB <span style="color: #ff0000;">"AppSap"</span><br /> </div>[/code:3av9d4u5]
The only diference is the host name.
Regards[/quote:3av9d4u5]
Armando no soy Mr.Rao, pero para localhost prueba con 127.0.0.1, saludos, gracias... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
|
A question for Mr. Rao
|
José Luis:
También funciona, muchas gracias.
Solo queda la incógnita, por que con localhost no?
Saludos
|
A question for Mr. Rao
|
[quote="Armando":23je6jd9]José Luis:
También funciona, muchas gracias.
Solo queda la incógnita, por que con localhost no?
Saludos[/quote:23je6jd9]
Check your hosts file in the path \Windows\system32\drivers\etc
|
A question for Mr. Rao
|
anserkk:
Thanks for your answer.
I made the change as follow but there is no way.
[code=fw:3cmxjgcz]<div class="fw" id="{CB}" style="font-family: monospace;"><br /># localhost <span style="color: #0000ff;">name</span> resolution is handled within DNS itself.<br /> <span style="color: #000000;">127.0</span><span style="color: #000000;">.0</span><span style="color: #000000;">.1</span> localhost<br /># ::<span style="color: #000000;">1</span> localhost<br /> </div>[/code:3cmxjgcz]
Regards
|
A question for Mr. Rao
|
You said that it is working fine if you try 127.0.0.1 instead of localhost, right ?
Can I get the exact error message that you get when you try to connect to localhost ?
There are few possibilities for this issue, based on the error we shall try to identify the problem
|
A question for Mr. Rao
|
anserkk:
You said that it is working fine if you try 127.0.0.1 instead of localhost, right ?
Yes that's right.
The message is
2003
Can't connect to MySQL server on 'localhost' (10061)
Thanks for your help
Regards
|
A question for Mr. Rao
|
What is the value of the entry
bind-address
in my.cnf (in case your OS is linux) or my.ini
Is that uncommented or commented?
The users in the DB ?
[url=https://imgbb.com/:2xg1xgq0][img:2xg1xgq0]https://i.ibb.co/jynwkgH/My-Sql-Users.jpg[/img:2xg1xgq0][/url:2xg1xgq0]
|
A question for Mr. Rao
|
anserkk:
There is no bind-address entry in mysql.ini (I have windows 10)
and the users is
root localhost
Regards
|
A question regarding TCombobox
|
The following sample doesn't show the string "Other" on the combobox. Is it expected?
[code:3s6goopj]#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
LOCAL cVar := "Other"
LOCAL aItems := { "Test 1", "Test 2", "Test 3" }
DEFINE DIALOG oDlg
@ 1 , 1 COMBOBOX cVar;
ITEMS aItems
@ 3, 1 BUTTON "&Close";
ACTION oDlg:End()
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL[/code:3s6goopj]
EMG
|
A question regarding TCombobox
|
Enrico,
>The following sample doesn't show the string "Other" on the combobox. Is it expected?
I would not expect it. A combobox is supposed to be limited to those choices in the array.
James
|
A question regarding TCombobox
|
Ok, thank you.
EMG
|
A question regarding TDialog
|
Antonio, what was the exact reason why you commented out the following statement from TDialog?
// 28/06/05 AL
// ::nResult:LostFocus() // updates related variable
EMG
|
A reason a existing post is -moved- ?
|
Hello,On Sunday, there was a solution of mine in the forum,how to change the format of a PNG-file to 24-Bit BMP(transparent)with a good freeware-Icon-editor, as well to add this bitmap to a dialog-title.There was nothing special.Is there a reason, why my post is deleted ? (edited: it was moved, not deleted)RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.