topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
10.3 xBrowse date display error | I just recompiled my program with FWH 10.3. Date fields are now displaying the date and then a time, ie. 03/30/2010 00:00:00:00
This is causing problems with the column sizing.
Is there a setting or fix ? |
10.3 xBrowse date display error | Immediate workaround is
oCol:cEditPicture := '@D'
The behavior is :
In case of Harbour, if the ValType() is 'T', the value is shown along with time and if the ValType() is 'D', the value is shown as Date without timepart, if oCol:cEditPicture is undefined.
In case of xHarbour, if HB_IsDateTime( <value> ) is true, the value is shown with time part and otherwise date is shown without timepart, if oCol:cEditPicture is undefined.
All xbrowse samples in the samples folder, where the fieldtype is 'D', xbrowse is displaying the values as pure dates only without the timepart.
Example:
[code=fw:2cspn1l8]<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;">'xbrowse.ch'</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> SET DATE ITALIAN<br /> SET CENTURY <span style="color: #0000ff;">ON</span><br /> SET TIME FORMAT <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">'HH:MM:SS'</span><br /><br /> xbrowser <span style="color: #000000;">{</span><span style="color: #000000;">{</span> <span style="color: #000000;">{</span>^ <span style="color: #000000;">2009</span>/<span style="color: #000000;">10</span>/<span style="color: #000000;">10</span><span style="color: #000000;">}</span>, <span style="color: #000000;">{</span>^ <span style="color: #000000;">2009</span>/<span style="color: #000000;">10</span>/<span style="color: #000000;">10</span> <span style="color: #000000;">15</span>:<span style="color: #000000;">15</span>:<span style="color: #000000;">15</span><span style="color: #000000;">}</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:2cspn1l8]
Display:
[url=http://img62.imageshack.us/my.php?image=75256106.jpg:2cspn1l8][img:2cspn1l8]http://img62.imageshack.us/img62/2946/75256106.jpg[/img:2cspn1l8][/url:2cspn1l8]
Will you please inform Harbour or xHarbour version and what data source you are browsing? Is it possible to post a small self contained sample so that a proper fix can be found. |
10.3 xBrowse date display error | FWH 10.3
xHarbour Professional November 2009
The code:
add to oLbxo header "Due Date" data oWrkOrd:duedat ALIGN LEFT SIZE 100
The field is a date field drawn from the database.
This is a new behavior starting with 10.3. Prior to this, xBrowse displayed the date with no problem, so there was apparently a change made on this release. |
10.3 xBrowse date display error | Rao,
I have never seen this caret syntax.
{^ 2009/10/10}
Does this automatically convert the value to a date format?
James |
10.3 xBrowse date display error | [quote="James Bott":3vi3wwgx]Rao,
I have never seen this caret syntax.
{^ 2009/10/10}
Does this automatically convert the value to a date format?
James[/quote:3vi3wwgx]
Yes. This is the new way of writing Date / DateTime constants. Has been there for quite sometime.
Now we can assign date constants to static variables easily.
static tDate := {^ 2000/10/09 15:15:15 }.
This was not possible earlier.
Works both in Harbour and xHarbour. |
10.3 xBrowse date display error | Rao,
Now we can assign date constants to static variables easily.
static tDate := {^ 2000/10/09 15:15:15 }
Hmm, only for statics, not locals?
What does valtype( tDate ) return?
James |
10.3 xBrowse date display error | [quote:28ifsv6r]Hmm, only for statics, not locals?[/quote:28ifsv6r]
We can use it anywhere.
Earlier there was no way of initializing static variables with datevalues. Now we can. Thats what I was trying to emphasize.
In Harbour, ValType of DateTime variables is 'T' and pure date ( without time-part ) is 'D'.
In xHarbour ValType of both DateTime and Date varables is 'D'. We can find if a variable has time-part or not by HB_IsDateTime( <dVar> ) --> .t. or .f. |
10.3 xBrowse date display error | Mr. Tim
The xHarbour function HB_isDateTime( <var> ) is expected to return .f. when the date variable does not have timepart and .t. when the variable has timepart also.
Several versions back, XBrowse used HB_IsDateTime() to ascertain whether the variable has time-part or not. But in some versions of xHarbour, there was a bug in this function and HB_isDateTime() was returning .t. for all dates, even without time part. At that time XBrowse had a temporary workaround to check if the variable has time-part or not. Now that the bug is resolved in the recent versions of xHarbour, XBrowse again reverted to the old code ( in version 10.3 ) and is now depending on HB_IsDateTime().
Will you please help by checking what is the result of ? HB_IsDateTime( Date() ) in your version of xHarbour?
This will help reinstating the time-part check. |
10.3 xBrowse date display error | It may not be out of place to mention a few hints to take the best advantage of XBrowse's built-in capabilities.
If we use the syntax, XBROWSE .... COLUMNS 'col1', 'col2' ... ALIAS <calias> or OBJECT <dataobj>, XBrowse extracts the exact information about the datatype, datalen and datadec from the DbStruct() or oData:aStruct and appropriately decides the correct format, alignment and column width for display. In addition, XBrowse constructs the bOnPostEdit blocks, with shares and locking appropriately/
If we use FIELDS clause or ADD COLUMN syntax, we are preventing XBrowse to learn the information and we naturally take more responsibility to define picture clause, width, bOnPostEdit block, etc.
Using COLUMNS clause not only compacts the code and easier to maintain but also gets a superior performance. |
10.3 xBrowse date display error | Rao,
[quote:e2of2cf0]If we use the syntax, XBROWSE .... COLUMNS 'col1', 'col2' ... ALIAS <calias> or OBJECT <dataobj>,[/quote:e2of2cf0]
Can you explain in more detail about using the OBJECT clause, perhaps by providing an example. I am particularly wondering about how you would specify only some fields--not all fields.
James |
10.3 xBrowse date display error | I am adding PICTURE "@D" to my xbrowses that use a date. When I first started coding with xbrowse it did not automatically format the fields correctly, so I did it this way. Eventually I may be able to revise the code but there is too much to do at this time. The PICTURE statement is a quick fix for now. |
10.3 xBrowse date display error | I'm using Nov 2009 which was the last comprehensive build ... non-beta.
When running your test function, it returns .t.
Tim |
10.3 xBrowse date display error | [quote="TimStone":2nqezu8t]
When running your test function, it returns .t.
Tim[/quote:2nqezu8t]
This is a bug. It should return .f. .
HB_IsDateTime( DateTime() ) should return .t.
and
HB_IsDateTime( Date() ) should return .f..
This was fixed in subsequent versions of xHarbour and XBrowse 10.3 works same way as earlier with recent versions of xHarbour.
If you include valblank.prg of version 10.2 or earlier from \fwh\source\function\valblank.prg, you should get the earlier behavior.
Probably it may be desirable for FWH to continue the earlier work around for the above bug in xHarbour, because some programmers could still be using older versions of xHarbour commerical.
Also, as I said earlier, if the columns are defined with COLUMNS clause of XBROWSE command, the XBrowse examines the DBF structure and knows that the field is Date and not DateTime. When we use ADD COLUMN syntax, we are denying XBrowse the opportunity to ascertain the real data type of the column. |
10.3 xBrowse date display error | [quote="James Bott":12rmi30l]Rao,
[quote:12rmi30l]If we use the syntax, XBROWSE .... COLUMNS 'col1', 'col2' ... ALIAS <calias> or OBJECT <dataobj>,[/quote:12rmi30l]
Can you explain in more detail about using the OBJECT clause, perhaps by providing an example. I am particularly wondering about how you would specify only some fields--not all fields.
James[/quote:12rmi30l]
\fwh\samples\testxbr3.prg has two samples of using TDataBase object also. This program has samples for RDD, RecordSets, Trees, Arrays, Hashes, etc.
Here is a simplified sample using TDataBase object. Please compile and test this sample as it is and then try changing TDataBase to TData. I expect the same results:
[code=fw:12rmi30l]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'fivewin.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'ord.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'xbrowse.ch'</span><br /><br />REQUEST DBFCDX<br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDbf, oDlg, oBrw<br /><br /> SET DATE ITALIAN<br /> SET CENTURY <span style="color: #0000ff;">ON</span><br /> SET TIME FORMAT <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">'HH:MM:SS'</span><br /><br /> RDDSetDefault<span style="color: #000000;">(</span> <span style="color: #ff0000;">'DBFCDX'</span> <span style="color: #000000;">)</span><br /> oDbf := TDataBase<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span> , <span style="color: #ff0000;">'CUSTOMER'</span> <span style="color: #000000;">)</span><br /> oDbf:<span style="color: #000000;">SetOrder</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">'FIRST'</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">550</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span><br /> @ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-10</span>,<span style="color: #000000;">-10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> COLUMNS <span style="color: #ff0000;">'First'</span>, <span style="color: #ff0000;">'Married'</span>, <span style="color: #ff0000;">'HireDate'</span>, <span style="color: #ff0000;">'Salary'</span>, <span style="color: #ff0000;">'Age'</span> ;<br /> OBJECT oDbf ;<br /> AUTOSORT CELL LINES NOBORDER<br /><br /> oBrw:<span style="color: #000000;">Married</span>:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oBrw:<span style="color: #000000;">nStretchCol</span> := <span style="color: #000000;">1</span><br /> oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /> oDbf:<span style="color: #000000;">Close</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:12rmi30l]
I think TData class has a DATA aStruct, which is similar to DbStruct. If so, xBrowse ascertains the datatypes from oDbf:aStruct and if not, makes best guess by examining the ValType of the expressions.
If Mr. Tim is using TData class, he may try this sample with TData class. This example shows HireDate as Date but not as DateTime, because the fieldtype is 'D' and not 'T' or '@'.
[url=http://img180.imageshack.us/my.php?image=xbdt.jpg:12rmi30l][img:12rmi30l]http://img180.imageshack.us/img180/9994/xbdt.jpg[/img:12rmi30l][/url:12rmi30l] |
10.3 xBrowse date display error | Mr TimStone
It is desirable to modify FWH library to retain compatibility with the xHb version (Nov 2009) than your modifying your source code.
Can you help by testing this small sample with your version of xHb ?
[code=fw:15bw2fq5]<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;">'xbrowse.ch'</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> d<br /><br /> d := Date<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ? HasTimePart<span style="color: #000000;">(</span> d <span style="color: #000000;">)</span> <span style="color: #B900B9;">// should return .f.</span><br /> d := DateTime<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ? HasTimePart<span style="color: #000000;">(</span> d <span style="color: #000000;">)</span> <span style="color: #B900B9;">// should return .t.</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #00C800;">function</span> HasTimePart<span style="color: #000000;">(</span> d <span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">(</span> d - Int<span style="color: #000000;">(</span> d <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> > <span style="color: #000000;">0</span><br /> </div>[/code:15bw2fq5] |
10.6 installer | Hi, I want the installer of the version 10.6 to verify what changes I made through all these years.
Im planning to update to the latest version.
PS.: I have the rights of 10.6 version acquired with the brazilian partner Gilmer. |
10.6 installer | Samir,
Already sent to your email |
10.7 GetApps.Prg Linking errors | I got this error with buildh getapps
[code=fw:1m6zc7d2]<div class="fw" id="{CB}" style="font-family: monospace;">Compiling...<br />Borland C++ <span style="color: #000000;">5.82</span> <span style="color: #00C800;">for</span> Win32 Copyright <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> <span style="color: #000000;">1993</span>, <span style="color: #000000;">2005</span> Borland<br />getapps.c:<br /><span style="color: #000000;">Warning</span> W8075 getapps.prg <span style="color: #000000;">45</span>: <span style="color: #000000;">Suspicious</span> pointer conversion in <span style="color: #00C800;">function</span> HB_FUN_GETWINDOWMODULEFILENAME<br />Turbo Incremental Link <span style="color: #000000;">5.69</span> Copyright <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> <span style="color: #000000;">1997</span><span style="color: #000000;">-2005</span> Borland<br />* Application successfully built *<br /> </div>[/code:1m6zc7d2]
With buildx getapps
[code=fw:1m6zc7d2]<div class="fw" id="{CB}" style="font-family: monospace;">Generating C source output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'getapps.c'</span>...<br />Done.<br />Borland C++ <span style="color: #000000;">5.82</span> <span style="color: #00C800;">for</span> Win32 Copyright <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> <span style="color: #000000;">1993</span>, <span style="color: #000000;">2005</span> Borland<br />getapps.c:<br /><span style="color: #000000;">Warning</span> W8075 getapps.prg <span style="color: #000000;">45</span>: <span style="color: #000000;">Suspicious</span> pointer conversion in <span style="color: #00C800;">function</span> HB_FUN_GETWINDOWMODULEFILENAME<br />Turbo Incremental Link <span style="color: #000000;">5.69</span> Copyright <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> <span style="color: #000000;">1997</span><span style="color: #000000;">-2005</span> Borland<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'GetModuleFileNameExA'</span> referenced <span style="color: #0000ff;">from</span> C:\FWH\SAMPLES\GETAPPS.OBJ<br />* Linking errors *<br /> </div>[/code:1m6zc7d2]
Using harbour and xharbour downloaded with fwh10.7.
Please help |
10.7 GetApps.Prg Linking errors | Dear Rao,
Please change this line in GetApps.prg:
DWORD processId = 0;
Also, you have to link in samples\buildx.bat:
echo %bcdir%\lib\psdk\psapi.lib + >> b32.bc |
100 Days FiveWin | hi,
thx for Answer.
[quote:27iyuzf4]When you have downloaded your Fivewin software version, you have also found the download links for the latest versions of Harbour built for the Borland and MSVC compilers.[/quote:27iyuzf4]
i have got that Link and Download FiveWin.
after unpack i saw no harbour, BCC or MinGW and no IDE to start for a Newbie <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
i have to say when start with harbour i want to "jump" to 64 bit so i "oversee" those 32 Bit, sorry
i ask Antonio and he gave me the Link to download BCC7.3064.
i begin to build Sample but some Sample fail and i do not understand why (see "poker")
while FiveWin was "to high" i start with lower Level
i try HMG Contribution which have a IDE where i can use F9, F8 and F5 and Debugger.
after a while i got used "where" to "search" and understand Error Message so i start to write own harbour Apps.
---
next Level was MiniGUI Extendet Version which use OOP Code.
it does have a IDE and use BCC but i can't get Debugger running ... same like FivEdit <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
btw. i only need F9, F8, F5 and Debugger from IDE.
i still use my DOS ETP Editor with vDOS under 64 Bit which i bought 1985 when start with Cl*pper S87
so my Question are most about Environment where i have Problem to work with FiveWin.
---
i got Dshow Sample running after install \MSVC LIBs.
now next Step : i like to enhance it e.g. choise which CAM to use
but here again my Question is : how get Debugger working <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
---
Request : can Sample "sort" in Sub-Directory which include "the BAT" which is need for those Type of Sample |
100 Days FiveWin | hi,
since 100 Days i have FiveWin but it is hard to start for a FiveWin Newbie.
it is not "out-of-box" working ... you need harbour (with MSVC LIB) and BCC
i have download harbour but it does NOT include \MSVC so i guess i can't use any VC Sample. <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
where do i get those LIB for harbour 3x (my files was from harbour v1.x) <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
---
there are 22 x Build*.BAT.
DOC say use BUILD.BAT and it "seems" to work with most Sample but other give Error.
Error are like : missing FiveWin.ch <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
i guess there are some Environment Variable missing in some BUILD*.BAT.
so i like to ask again which Environment Variable FiveWin use <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
[quote:301c1k81]
bcdir=c:\bcc7
FWDIR=c:\fwh
fwh=c:\fwh
GT=gtgui
HBDIR=c:\harbour
hdir=c:\harbour
hdirl=c:\harbour\lib
[/quote:301c1k81]
Question : as i have also Xbase++ install i have
[quote:301c1k81]
INCLUDE=C:\ALASKA\XBTW32\INCLUDE;C:\ALASKA\XPPW32\INCLUDE;C:\exp20\include;
LIB=C:\ALASKA\XPPW32\LIB;C:\ALASKA\XBTW32\LIB;C:\exp20\lib;
[/quote:301c1k81]
does it make Problem with FiveWin <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
---
IDE : i have try FivEdit ... it start "missing *.FLV" <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
next it show Form with with "Hello" <!-- s:o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":o" title="Surprised" /><!-- s:o -->
FiveWin Sample have no *.PRJ file which can be assign to start IDE.
Preference ( Crtl-F2 ) : in Tab "FiveWin", "Harbour" and "C Compiler" i press "Default Libs" and Save.
Question : there is a Tab "Project" ... and a lot of Space. do i need it to run FW \Sample <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
---
after 100 Days i'm a bit frustrated while i'm not able to work in FiveWin Environment.
i have also HMG and Extendet Version and was able to wrote some harbour Apps with it.
my 1st work was to get HMG Debugger work while this is the Tool i use when not writing Code.
but how to activate FW Debugger with FW Sample <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
i got Error Message like "FWDBG.DLL not found" <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> (it is in C:\FWH\FWDBG.DLL)
---
please help me to fix my FiveWin Environment.
need LIB from c:\harbour\lib\win\msvc\
need to get FW Debugger work (no IDE need)
please help a Newbie to get into FiveWin world, Thx |
100 Days FiveWin | Dear Jimmy
When you have downloaded your Fivewin software version, you have also found the download links for the latest versions of Harbour built for the Borland and MSVC compilers.
[img:1i3gv2h8]https://i.postimg.cc/ZnJYTd5s/Fivetech.png[/img:1i3gv2h8]
Also, you have previous versions of Harbour in
<!-- m --><a class="postlink" href="https://bitbucket.org/fivetech/harbour-xharbour-builds/downloads/">https://bitbucket.org/fivetech/harbour- ... downloads/</a><!-- m -->
Other versions of (x) Harbour and Compilers can be found at:
<!-- m --><a class="postlink" href="http://whosaway.com/">http://whosaway.com/</a><!-- m -->
You need to install MSVC from the official Microsoft website
[quote:1i3gv2h8]
IDE : i have try FivEdit ... it start "missing *.FLV" <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
next it show Form with with "Hello" <!-- s:o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":o" title="Surprised" /><!-- s:o -->
FiveWin Sample have no *.PRJ file which can be assign to start IDE.
Preference ( Crtl-F2 ) : in Tab "FiveWin", "Harbour" and "C Compiler" i press "Default Libs" and Save.
Question : there is a Tab "Project" ... and a lot of Space. do i need it to run FW \Sample <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
[/quote:1i3gv2h8]
For use FivEdit ( I recommend it ), please read
<!-- m --><a class="postlink" href="http://wiki.fivetechsoft.com/doku.php?id=fivedit_instalation">http://wiki.fivetechsoft.com/doku.php?i ... nstalation</a><!-- m -->
After, Read this post about FivEdit
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=29991&start=495#p227745">viewtopic.php?f=3&t=29991&start=495#p227745</a><!-- l -->
If you enter the Slack, you will have a lot of information about the Editor, including videos that can help you install it, and if that is not enough, you can contact me, that with pleasure, I can connect by Anydesk, for example and configure your FivEdit in 5 minutes.
But, in summary, if you install your C compilers (Borland, MSVC, ...) correctly, along with the versions of Harbour you need, and edit the BUILD * .BAT files that appear in the Fivewin distribution in case you have to Modify the installation paths, you should not have any problem to use.
Anything you need, do not hesitate to contact. |
100 Days FiveWin | Many of us use the latest Community version of Visual Studio. It is free.
Also use the latest Harbour for MSVC from the FiveTech downloads page.
With those two installed, I use a GO32.bat:
[code=fw:2b0p9oje]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@set oldpath=%path%<br />@set oldinclude=%include%<br />@set oldlib=%lib%<br />@set oldlibpath=%libpath%<br /><br /><span style="color: #00C800;">if</span> exist <span style="color: #ff0000;">"%ProgramFiles(x86)%<span style="color: #000000;">\M</span>icrosoft Visual Studio<span style="color: #000000;">\2</span>019<span style="color: #000000;">\C</span>ommunity<span style="color: #000000;">\V</span>C<span style="color: #000000;">\A</span>uxiliary<span style="color: #000000;">\B</span>uild<span style="color: #000000;">\v</span>cvarsall.bat"</span> call <span style="color: #ff0000;">"%ProgramFiles(x86)%<span style="color: #000000;">\M</span>icrosoft Visual Studio<span style="color: #000000;">\2</span>019<span style="color: #000000;">\C</span>ommunity<span style="color: #000000;">\V</span>C<span style="color: #000000;">\A</span>uxiliary<span style="color: #000000;">\B</span>uild<span style="color: #000000;">\v</span>cvarsall.bat"</span> x86<br />cd c:\projects\mls11\source\<br />c:\<span style="color: #ff0000;">"Program Files (x86)<span style="color: #000000;">\M</span>icrosoft Visual Studio"</span>\<span style="color: #000000;">2019</span>\Community\VC\Tools\MSVC\<span style="color: #000000;">14.23</span><span style="color: #000000;">.28105</span>\bin\HostX86\x86\nmake -fMLS32.mak<br /><br />@set path=%oldpath%<br />@set include=%oldinclude%<br />@set lib=%oldlib%<br />@set libpath=%oldlibpath%<br />@set oldpath=<span style="color: #ff0000;">""</span><br />@set oldinclude=<span style="color: #ff0000;">""</span><br />@set oldlib=<br />@set oldlibpath=<br /> </div>[/code:2b0p9oje]
My MLS32.mak ( you can use any name you want ) is:
[code=fw:2b0p9oje]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />#Microsoft VS2015 make sample, <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> FiveTech Software <span style="color: #000000;">2014</span><br /><br />HBDIR=c:\harbour<br />FWDIR=c:\fwh<br />VCDIR=<span style="color: #ff0000;">"c:<span style="color: #000000;">\P</span>rogram Files (x86)<span style="color: #000000;">\M</span>icrosoft Visual Studio<span style="color: #000000;">\2</span>019<span style="color: #000000;">\C</span>ommunity<span style="color: #000000;">\V</span>C"</span><br />SDKDIR=<span style="color: #ff0000;">"c:<span style="color: #000000;">\P</span>rogram Files (x86)<span style="color: #000000;">\W</span>indows Kits<span style="color: #000000;">\1</span>0"</span><br />RCDIR=<span style="color: #ff0000;">"c:<span style="color: #000000;">\P</span>rogram Files (x86)<span style="color: #000000;">\W</span>indows Kits<span style="color: #000000;">\1</span>0<span style="color: #000000;">\b</span>in<span style="color: #000000;">\x</span>86"</span><br />PRLIB=<span style="color: #ff0000;">"c:<span style="color: #000000;">\P</span>rojects<span style="color: #000000;">\L</span>ibs"</span><br /><br />PRGS = aMLS11.prg \<br />rem Here you will add in all <span style="color: #0000ff;">of</span> the .prg files you wish <span style="color: #0000ff;">to</span> include in the project.<br /><br />.SUFFIXES: .prg .c .obj .rc .res<br /><br />MLS11.exe : $<span style="color: #000000;">(</span>PRGS:.prg=.obj<span style="color: #000000;">)</span> MLS11.res. rem You only specify the .res file <span style="color: #00C800;">if</span> you use one. The MLS11.exe should be replaced with the <span style="color: #0000ff;">name</span> <span style="color: #0000ff;">of</span> your .exe output file. <br /> echo $<span style="color: #000000;">(</span>PRGS:.prg=.obj<span style="color: #000000;">)</span> > msvc.tmp<br /> echo $<span style="color: #000000;">(</span>FWDIR<span style="color: #000000;">)</span>\lib\FiveH32.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>FWDIR<span style="color: #000000;">)</span>\lib\fivehc32.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbrtl.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbvm.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\gtgui.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hblang.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbmacro.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbrdd.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\rddntx.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\rddcdx.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\rddfpt.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbsix.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbdebug.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbcommon.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbpp.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbcpage.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbwin.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbct.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbziparc.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbmzip.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbzlib.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbpcre.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\minizip.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\xhb.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbcplr.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\gtwin.lib >> msvc.tmp<br /><br /> rem Uncomment these two lines <span style="color: #0000ff;">to</span> use Advantage RDD<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\rddads.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\ace32.lib >> msvc.tmp<br /><br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbtipssl.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\ssleay32.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\libeay32.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbtip.lib >> msvc.tmp<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbssl.lib >> msvc.tmp<br /><br /> echo kernel32.lib >> msvc.tmp<br /> echo user32.lib >> msvc.tmp<br /> echo gdi32.lib >> msvc.tmp<br /> echo winspool.lib >> msvc.tmp<br /> echo comctl32.lib >> msvc.tmp<br /> echo comdlg32.lib >> msvc.tmp<br /> echo advapi32.lib >> msvc.tmp<br /> echo shell32.lib >> msvc.tmp<br /> echo ole32.lib >> msvc.tmp<br /> echo oleaut32.lib >> msvc.tmp<br /> echo uuid.lib >> msvc.tmp<br /> echo odbc32.lib >> msvc.tmp<br /> echo odbccp32.lib >> msvc.tmp<br /> echo iphlpapi.lib >> msvc.tmp<br /> echo mpr.lib >> msvc.tmp<br /> echo version.lib >> msvc.tmp<br /> echo wsock32.lib >> msvc.tmp<br /> echo msimg32.lib >> msvc.tmp<br /> echo oledlg.lib >> msvc.tmp<br /> echo psapi.lib >> msvc.tmp<br /> echo gdiplus.lib >> msvc.tmp<br /> echo winmm.lib >> msvc.tmp<br /> echo libcmt.lib >> msvc.tmp<br /> echo libcpmt.lib >> msvc.tmp<br /> echo WS2_32.lib >> msvc.tmp<br /> echo oldnames.lib >> msvc.tmp<br /> echo strmiids.lib >> msvc.tmp<br /><br /> <span style="color: #00C800;">IF</span> EXIST mls11.res echo mls11.res >> msvc.tmp<br /><br /> link @msvc.tmp /nologo /subsystem:<span style="color: #000000;">windows</span> /machine:<span style="color: #000000;">x86</span> /NODEFAULTLIB:<span style="color: #000000;">MSVCRT</span> > link.log<br /> @type link.log<br /> @del $<span style="color: #000000;">(</span>PRGS:.prg=.obj<span style="color: #000000;">)</span><br /> @del $<span style="color: #000000;">(</span>PRGS:.prg=.c<span style="color: #000000;">)</span><br /><br />$<span style="color: #000000;">(</span>PRGS:.prg=.obj<span style="color: #000000;">)</span> : $<span style="color: #000000;">(</span>PRGS:.prg=.c<span style="color: #000000;">)</span><br />$<span style="color: #000000;">(</span>PRGS:.prg=.c<span style="color: #000000;">)</span> : $<span style="color: #000000;">(</span>PRGS<span style="color: #000000;">)</span><br /><br />rem. This is my .rc, but use your own. <br />mls11.res : <span style="color: #000000;">mls11</span>.rc<br /> rc.exe -r -d__FLAT__ mls11.rc<br /><br />.prg.c:<br /> $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\bin\harbour $< /n /i$<span style="color: #000000;">(</span>FWDIR<span style="color: #000000;">)</span>\include;$<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\include<br /><br />.c.obj:<br /> <span style="color: #000000;">cl</span>.exe -c -TP -W3 -O2 -I$<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\include -I$<span style="color: #000000;">(</span>SDKDIR<span style="color: #000000;">)</span>\include -I$<span style="color: #000000;">(</span>VCDIR<span style="color: #000000;">)</span>\include $<<br /> </div>[/code:2b0p9oje]
My projects are quite large, but simply executing the GO32.bat results in a working build quickly. I hope this helps. Note the paths may vary according to your setup. |
100% cpu when printing | Hi All,
the sample below puts the CPU at 100% with FWH 27 (March 06) - xH 0.99.60 - Bcc 5.5
The time consuming process is not "oPrn:Say()", but "PAGE/ENDPAGE"
Does this happens with latest FWH also ?
How can this be solved ?
Thanks,
Davide
[code:1x6800o6]
#include "Fivewin.ch"
function Main() // Test 100% CPU
Local oPrn,i
PRINT oPrn NAME "Test" FROM USER PREVIEW
if Empty( oPrn:hDC ) ; return nil ; endif
For i := 1 to 5000
SysRefresh() // This does not help
PAGE
oPrn:Say( 100, 100, Str(i) )
ENDPAGE
Next i
ENDPRINT
Return nil
[/code:1x6800o6] |
100% cpu when printing | Try using
[code:3utylkn5]HB_IdleSleep( 0.001 )[/code:3utylkn5]
instead of SysRefresh(). Anyway the process will be slowed down and I don't know if it worth the while.
EMG |
100% cpu when printing | Enrico,
[quote:3vke38sd]Try using HB_IdleSleep( 0.001 )[/quote:3vke38sd]
Does this means that latest FWH do have the same behaviour ?
HB_IdleSleep() is not applicable because the sample runs for 2 minutes instead of 10 seconds.
Thank you,
Davide |
100% cpu when printing | [quote="Davide":213dg0tg]Enrico,
[quote:213dg0tg]Try using HB_IdleSleep( 0.001 )[/quote:213dg0tg]
Does this means that latest FWH do have the same behaviour ?[/quote:213dg0tg]
Yes.
[quote="Davide":213dg0tg]HB_IdleSleep() is not applicable because the sample runs for 2 minutes instead of 10 seconds.[/quote:213dg0tg]
Try Sleep( 1 ).
[code:213dg0tg]#pragma BEGINDUMP
#include "windows.h"
#include "hbapi.h"
HB_FUNC( SLEEP )
{
Sleep( hb_parnl( 1 ) );
}
#pragma ENDDUMP[/code:213dg0tg]
EMG |
100% cpu when printing | [quote="EnricoMaria":1umyleki]Try Sleep( 1 ).[/quote:1umyleki]
YES!, this one works much better. It still slow down the process, but I can call it just before PAGE and after ENDPAGE (and the real life is not like the sample above).
Maybe it could be added to Printer.Prg - What do you think ? - Do you see any contraindication doing so ?
My concern is: if there is already a sleep() function in Kernel32.dll, why the need for developing a SysRefresh() or HB_IdleSleep() ?
Thank you so much!
Davide |
100% cpu when printing | [quote="Davide":32yyq5qi][quote="EnricoMaria":32yyq5qi]Try Sleep( 1 ).[/quote:32yyq5qi]
YES!, this one works much better. It still slow down the process, but I can call it just before PAGE and after ENDPAGE (and the real life is not like the sample above).[/quote:32yyq5qi]
Or you may call it each n iterations.
[quote="Davide":32yyq5qi]Maybe it could be added to Printer.Prg - What do you think ? - Do you see any contraindication doing so ?[/quote:32yyq5qi]
I don't know. The 100% CPU behavior has never been a problem for me. I prefer maximum speed of print generation process.
EMG |
100% cpu when printing | [quote="EnricoMaria":1vw61j33]I don't know. The 100% CPU behavior has never been a problem for me. I prefer maximum speed of print generation process.[/quote:1vw61j33]
unless you want to install your application on a Terminal Server. If different users print simultaneously the server may sit down ... |
100% cpu when printing | Agreed. But we have just seen how to deal with that situation. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
EMG |
10K entries in forum | I couldn't resist <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> |
10K entries in forum | +1
Congratulations to all the friends and members of these forums <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
11.07 Build Error MSVC | Using FWH 11.07 with my build ( from Antonio last month ) of the Microsoft version of Harbour, yields the following error:
FiveH32.lib(GETTASKS.obj) : error LNK2019: unresolved external symbol _GetModuleFileNameExA@16 referenced in function _HB_FUN_GETWINDOWMODULEFILENAME
Solution ?
Tim |
11.07 Build Error MSVC | Tim,
You have to link psapi.lib also:
In samples\buildh32.bat
echo %sdkdir%\lib\psapi.lib >> msvc.tmp |
11.10 & xBuilder | I notice there are several threads about problems with FWH 11.10 and xBuilder ( plus some other builds ). The solution was supposedly to add a new send32.lib to our builds. I tried this and still had program shut downs when trying to modify a get within a folder. I know the problems exist in other areas also.
The recommended solution was to switch away from the Pelles C compiler. I appreciate this suggestion, and several months ago I worked very hard to move to Microsoft Visual C++ 2010 with FWH. Antonio's help was wonderful, and I "almost got it done". However, I had problems with trying to get my external programs ( CodeJock Calendar and others ) to work. Then Harbour 3.0 came out, and the problems increased. After that, illness and deaths in our family took me off project ... so I'm still using xBuilder.
I would appreciate having FWH support the xHarbour.com product for awhile longer. At this point I had to rollback to 11.09 which works fine. If we can get a few more months ( past this holiday season ) I will make a renewed effort to move to FWH + Harbour + MSVC 2010 as Antonio has suggested. I do believe that is a good direction for us.
I can work with 11.09 for now, but would like to have the new features still available. I would appreciate the fixes to this new Send issue in 11.10.
Thanks for all the hard work.
Tim |
11.10 & xBuilder | Tim,
We posted several fixes for method GoNextCtrl() that was the one using SendKey() and where the bug was coming from.
I email you the most recent libs so you can try them <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
11.10 & xBuilder | [quote:1it9esul]I would appreciate having FWH support the xHarbour.com product for awhile longer.[/quote:1it9esul]
Antonio,
I agree 100% with Tim.
Regards,
George |
11.10 & xBuilder | I did download the file - twice - but the program still throws an error when trying to change a get value in a dialog on a folder page.
It is not exactly a simple edit. Once the value is changed, a function is called to perform a calculation:
Example:
REDEFINE GET oDlarTim VAR oDlar:labtim BITMAP "TFIND" PICTURE "999.99" ID 516 OF oFld:aDialogs[ 3 ] ;
VALID (oDlar := LaborCost( oDlar, aTECHS ), oDlarTot:refresh( ), oLabCst:refresh( ), .T. ) ;
ACTION ( LaborChart( oDlar, cOrdVeh ) ) MESSAGE aMsg[ 96 ] UPDATE
I am using BITMAP Gets, data objects ( tdata / tdatabase ), and Advantage ( Local and/or Client Server ) so this may create a complication. This works perfectly in 11.09.
Tim |
11.10 & xBuilder | I totally agree, and I could work with the 11.09, I had to go back and solve my problems with the 10.10
And really, I have the water to the neck, my clients need solutions and I'm late with the development, and at this point I must give something functional, even without the new features of the FWH11.10
Once a day, look for solutions
best Regards |
11.10 & xBuilder | Tim, Oscar,
Just to double check that Method GoNextCtrl() may be the cause for these troubles, please copy that method from 11.09 into 11.10 and try you code again, thanks
Also, if you could provide an example to reproduce it, that would help very much, thanks |
12.07 build errors | New errors with 12.07 when linking:
With xHarbour ( .com ) __iob from FiveHMX.lib ( unresolved External )
With MSVC _HB_FUN_HB_COMPILEFROMBUF ( unresolved External )
How are these resolved ?
Thanks.
Tim |
12.07 build errors | Tim,
What is the complete error for With xHarbour ( .com ) __iob from FiveHMX.lib ( unresolved External ) ?
it may report the name of the module that uses it.
thanks |
12.07 build errors | unresolved extrernal symbol '__iob referenced from FiveHMX.lib( HARBOUR.obj)'. |
12.07 build errors | We must be very grateful to Antonio who have the patience to help us with external products like xHarbour.com. I think that xHarbour.com should provide assistance to its customers, not Antonio.
EMG |
12.07 build errors | The function HB_CompileFromBuf() is available only in Harbour. Not available in XHarbour or XHb. This function is called by the new Execute(..) function in harbour.prg. But this is included only harbour build but not xharbour (org) build. |
12.07 build errors | I have no problem with the reasoning, but while I complete the transition for my clients, it would be nice to be able to exclude that new function. Also, I posted a missing file for the Harbour / MSVC compiler builds.
I am in total agreement that we should move to Harbour / MSVC ... thats why Antonio and I worked out all the issues. Transitioning my clients, however, is a slower process.
Tim |
12.07 build errors | [quote="TimStone":9ahq5pdb]I am in total agreement that we should move to Harbour / MSVC[/quote:9ahq5pdb]
Why do you want to make that move? Do you have a concrete reason to do it? I have a pair of it to [b:9ahq5pdb]not[/b:9ahq5pdb] do it: the bad attitude of the Harbour developers and their lack of respect for back compatibility.
EMG |
12.07 build errors | Tim,
Please link hbcplr.lib for hb_CompileFromBuf() with MSVC and Harbour
Regarding __iob
With xHarbour ( .com ) __iob from FiveHMX.lib ( unresolved External )
it seems as caused by this function recently added to harbour.prg FREOPEN_STDERR().
So it should get solved if we extend the #ifndef __XHARBOUR__ section:
[code=fw:3s8j4r5x]<div class="fw" id="{CB}" style="font-family: monospace;">...<br /><br /><span style="color: #00D7D7;">#include</span> <stdio.h><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> FREOPEN_STDERR <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> hb_retnl<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> HB_ULONG <span style="color: #000000;">)</span> freopen<span style="color: #000000;">(</span> hb_parc<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>, hb_parc<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>, stderr <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /><br />#endif <span style="color: #B900B9;">// <== here !!!</span><br /> </div>[/code:3s8j4r5x] |
12.07 build errors | Hi,
Antonio provides very good support. Other xBase companies can´t say the same...
For FWH and FWHX the best compilers are BCC and MSVC. Viktor and others prefer gCC, but they are not focused on Windows apps.
In fact, BCC will be available in 64 bits next september:
<!-- m --><a class="postlink" href="http://edn.embarcadero.com/article/39934">http://edn.embarcadero.com/article/39934</a><!-- m -->
<!-- m --><a class="postlink" href="http://dn.embarcadero.com/article/42275">http://dn.embarcadero.com/article/42275</a><!-- m --> |
12.07 build errors | hi all
Missing function calpos() used in TFOLDEX
bye |
12.07 build errors | Mauri,
Doing a FWH\samples\buildh.bat testfx1
builds fine and executes fine.
How to reproduce what you say ? thanks |
12.07 build errors | Antonio
I run: buildh testfx1 I got this error:
_HB_FUN_CALPOS unresolved external reference from c: \ FWH \ LIB \ FIVEH.LIB | tfoldex.
I rebuilt the library FIVEH.LIB because there was no function: Browse ()
I have not found the source of the function.
bye |
12.07 build errors | Hello
the function CalPos() is a internal function, you need use the original fivewin lib... |
12.07 build errors | Mauri,
Browse() is inside FWH\sources\function\browse.prg
Please check if you have this file |
12.07 build errors | hi Antonio
The browse function is present between the source functions, but not in the library of the package FWH.
The program scintila.prg I changed the line 1147
# include ". \ .. \ include \ scintila.h"
in
# include "\ FWH \ include \ scintila.h"
The program filename.prg I modified the function: cTempFile
if ! "." $ cExtension
cExtension = "." + cExtension
endif
in
if .not. empty (cExtension)
if ! "." $ cExtension
cExtension = "." + cExtension
endif
endif
if the extension is empty I do not to add the point.
Thanks for your interest
bye |
12.07 build errors | Enrico,
Regarding two of your comments.
1) I only use an older version of xHarbour for some issues that my clients have with older versions of software, like an older server version of ADS. Antonio has been very gracious to keep the updates compatible with the xHarbour.com. If that became difficult for him to do, I would simply freeze those updates to the FWH version that last was compatible.
2) I have moved to Harbour and MSVC for several reasons. Antonio works closely with the Harbour people, and he writes all of his code to Harbour. I switched from xHarbour.com because there seemed to be no activity ( development ) there any logner. I moved to MSVC because it is the most compatible with WIndows, and since Microsoft has 690 million Windows 7 users alone ( or over a billion counting the older OS's ), I think that's a pretty good marketplace to serve. Also, I have spent the last 6 months focusing on new Microsoft technologies, and I do believe we need to be compatible, which old versions of BCC simply won't do.
Tim |
12.07 build errors | [quote="TimStone":2fszxurh]2) I have moved to Harbour and MSVC for several reasons. Antonio works closely with the Harbour people, and he writes all of his code to Harbour. I switched from xHarbour.com because there seemed to be no activity ( development ) there any logner.[/quote:2fszxurh]
First, I sadly agree on what you said about xHarbour.com. Second, I already express my thoughts regarding Harbour.
[quote="TimStone":2fszxurh]I moved to MSVC because it is the most compatible with WIndows, and since Microsoft has 690 million Windows 7 users alone ( or over a billion counting the older OS's ), I think that's a pretty good marketplace to serve. Also, I have spent the last 6 months focusing on new Microsoft technologies, and I do believe we need to be compatible, which old versions of BCC simply won't do.[/quote:2fszxurh]
Can you list some Windows technologies that BCC is not compatible with? I'm not against changing compiler, if it's worth to do. I love BCC for its compactness.
EMG |
12.07 build errors | Enrico,
Antonio did a great comparison in a previous thread of all the compilers ... what they can, and cannot, do. There were also several other threads that discussed this in depth. I can't relate to BCC because I don't use it. I last used it in the very earliest days of the Harbour Project. That's a lot of years ago.
Antonio has also posted some material on Harbour. Perhaps the most important issue is that, if you use FWH, you can be sure Harbour is compatible because that is what he is using.
The truth is that everything changes on October 26th. Windows 8, Office 2013, Windows 2012 Server, the Microsoft Cloud services ... its all very different than our traditional forms based applications. We are not going away, and we can be a player, but we have several issues that must be met to "stay in the game". For all the debate, Windows 8 IS going to gain acceptance because it really will meet the needs of users.
Tim |
12.07 build errors | Mauri,
It is included in the FWH makefile:
PRG = \
ACTIVEX.PRG \
ALERT.PRG \
BAR.PRG \
BARTABS.PRG \
BITMAP.PRG \
BLOCK.PRG \
BROWSE.PRG \ <== Here !
BRUSH.PRG \
...
have you recompiled FWH yourself ? |
12.07 build errors | Mauri,
Included you function cTempFile() fix this way:
[code=fw:3ovagldc]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">(</span> cExtension <span style="color: #000000;">)</span> .and. ! <span style="color: #ff0000;">"."</span> $ cExtension<br /> cExtension = <span style="color: #ff0000;">"."</span> + cExtension<br /> <span style="color: #00C800;">endif</span><br /> </div>[/code:3ovagldc] |
12.07 build errors | Antonio,
Unfortunately I was not able to get the "fix" you gave me for my original problem ( the hb_func ) to compile. It didn't like the stdio.h from xHB, and it reported an IF error with the hb include file.
Will you have a fix for this issue in 12.08 ?
For now I had to do the xHb builds with FWH 12.06, and I can use the 12.07 with my Harbour / MSVC builds.
Thanks.
Tim |
12.07 build errors | Tim,
Do you mean the unresolved extrernal symbol '__iob error ? |
12.07 build errors | Antonio,
Sorry for the delay. Yes it is the __iob error.
I took the code you provided, put it in a .prg file, and linked it to the program ... except it wouldn't link. It did not like the .h files.
Tim |
12.07 build errors | Did I miss a fix for this ? |
12.07 build errors | Tim,
The fix that I proposed here has to work fine, I think you implemented it wrongly.
Here you have the complete harbour.prg
[code=fw:19f0u3zv]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"error.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fwerror.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> CRLF Chr<span style="color: #000000;">(</span> <span style="color: #000000;">13</span> <span style="color: #000000;">)</span> + Chr<span style="color: #000000;">(</span> <span style="color: #000000;">10</span> <span style="color: #000000;">)</span><br /><br />#ifdef __HARBOUR__<br /> #ifndef __XHARBOUR__<br /> <span style="color: #00C800;">function</span> HB_DBG_VMSTKLCOUNT<span style="color: #000000;">(</span> x <span style="color: #000000;">)</span> ; <span style="color: #00C800;">return</span> __DBGVMSTKLCOUNT<span style="color: #000000;">(</span> x <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">function</span> HB_DBG_VMPARLLIST<span style="color: #000000;">(</span> x <span style="color: #000000;">)</span> ; <span style="color: #00C800;">return</span> __DBGVMPARLLIST<span style="color: #000000;">(</span> x <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">function</span> HB_DBG_VMVARLGET<span style="color: #000000;">(</span> x, y <span style="color: #000000;">)</span> ; <span style="color: #00C800;">return</span> __DBGVMVARLGET<span style="color: #000000;">(</span> x, y <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">function</span> HB_DBG_VMVARSLEN<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ; <span style="color: #00C800;">return</span> __DBGVMVARSLEN<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> #endif<br />#endif<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />#ifndef __XHARBOUR__<br /><br /><span style="color: #00C800;">function</span> Execute<span style="color: #000000;">(</span> cCode, ... <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oHrb, cResult, bOldError, uRet<br /> <span style="color: #00C800;">local</span> cFWheaders := <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> lIsDir<span style="color: #000000;">(</span> <span style="color: #ff0000;">".<span style="color: #000000;">\i</span>nclude"</span> <span style="color: #000000;">)</span>, <span style="color: #ff0000;">".<span style="color: #000000;">\i</span>nclude"</span>, <span style="color: #ff0000;">"c:<span style="color: #000000;">\F</span>WH<span style="color: #000000;">\i</span>nclude"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> cHBheaders := <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> lIsDir<span style="color: #000000;">(</span> <span style="color: #ff0000;">".<span style="color: #000000;">\i</span>nclude"</span> <span style="color: #000000;">)</span>, <span style="color: #ff0000;">".<span style="color: #000000;">\i</span>nclude"</span>, <span style="color: #ff0000;">"c:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\i</span>nclude"</span> <span style="color: #000000;">)</span><br /><br /> FReOpen_Stderr <span style="color: #000000;">(</span> <span style="color: #ff0000;">"comp.log"</span>, <span style="color: #ff0000;">"w"</span> <span style="color: #000000;">)</span><br /> oHrb = HB_CompileFromBuf<span style="color: #000000;">(</span> cCode, <span style="color: #ff0000;">"-n"</span>, <span style="color: #ff0000;">"-I"</span> + cFWheaders, <span style="color: #ff0000;">"-I"</span> + cHBheaders <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">(</span> oHrb <span style="color: #000000;">)</span><br /> BEGIN SEQUENCE<br /> bOldError = ErrorBlock<span style="color: #000000;">(</span> <span style="color: #000000;">{</span> | o | DoBreak<span style="color: #000000;">(</span> o <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> uRet = hb_HrbDo<span style="color: #000000;">(</span> hb_HrbLoad<span style="color: #000000;">(</span> oHrb <span style="color: #000000;">)</span>, ... <span style="color: #000000;">)</span><br /> END SEQUENCE<br /> ErrorBlock<span style="color: #000000;">(</span> bOldError <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> uRet<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------//</span><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <stdio.h><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> FREOPEN_STDERR <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> hb_retnl<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> HB_ULONG <span style="color: #000000;">)</span> freopen<span style="color: #000000;">(</span> hb_parc<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>, hb_parc<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>, stderr <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /><br />#endif<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> DoBreak<span style="color: #000000;">(</span> oError <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> cInfo := oError:<span style="color: #000000;">operation</span>, n<br /><br /> <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">(</span> oError:<span style="color: #000000;">Args</span> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"A"</span><br /> cInfo += <span style="color: #ff0000;">" Args:"</span> + CRLF<br /> <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span> oError:<span style="color: #000000;">Args</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> oError:<span style="color: #000000;">Args</span><span style="color: #000000;">[</span> n <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> cInfo += <span style="color: #ff0000;">"["</span> + Str<span style="color: #000000;">(</span> n, <span style="color: #000000;">4</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"] = "</span> + ValType<span style="color: #000000;">(</span> oError:<span style="color: #000000;">Args</span><span style="color: #000000;">[</span> n <span style="color: #000000;">]</span> <span style="color: #000000;">)</span> + ;<br /> <span style="color: #ff0000;">" "</span> + cValToChar<span style="color: #000000;">(</span> oError:<span style="color: #000000;">Args</span><span style="color: #000000;">[</span> n <span style="color: #000000;">]</span> <span style="color: #000000;">)</span> + CRLF<br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">endif</span><br /><br /> MsgStop<span style="color: #000000;">(</span> oError:<span style="color: #000000;">Description</span> + CRLF + cInfo,;<br /> <span style="color: #ff0000;">"Script error at line: "</span> + AllTrim<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> ProcLine<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">BREAK</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> LocalCount<span style="color: #000000;">(</span> nProcLevel <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> HB_DBG_VMSTKLCOUNT<span style="color: #000000;">(</span> nProcLevel + <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> - ParamCount<span style="color: #000000;">(</span> nProcLevel + <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> ParamCount<span style="color: #000000;">(</span> nProcLevel <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> Len<span style="color: #000000;">(</span> HB_DBG_VMPARLLIST<span style="color: #000000;">(</span> nProcLevel + <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> GetParam<span style="color: #000000;">(</span> nProcLevel, nParam <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> HB_DBG_VMPARLLIST<span style="color: #000000;">(</span> nProcLevel + <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><span style="color: #000000;">[</span> nParam <span style="color: #000000;">]</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> MemUsed<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> Memory<span style="color: #000000;">(</span> <span style="color: #000000;">1001</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> MemMax<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> Memory<span style="color: #000000;">(</span> <span style="color: #000000;">1002</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> NtxPos<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> uLoadObject<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// dummy function waiting to become ready</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> VbxEvent<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> LoadVbx<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> VbxClassName<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> <span style="color: #ff0000;">""</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> TVbControl<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> WindowsFix<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// no needed for Harbour</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> ChildLevel<span style="color: #000000;">(</span> o, oClass <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> o:<span style="color: #000000;">IsDerivedFrom</span><span style="color: #000000;">(</span> oClass <span style="color: #000000;">)</span> .or. ;<br /> Upper<span style="color: #000000;">(</span> o:<span style="color: #000000;">ClassName</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> == Upper<span style="color: #000000;">(</span> oClass:<span style="color: #000000;">ClassName</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> OClone<span style="color: #000000;">(</span> o <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> __objClone<span style="color: #000000;">(</span> o <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> LoadLib32<span style="color: #000000;">(</span> cDLL <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> LoadLibrary<span style="color: #000000;">(</span> cDLL <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> FreeLib32<span style="color: #000000;">(</span> hDLL <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> FreeLibrary<span style="color: #000000;">(</span> hDLL <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> SetMultiple<span style="color: #000000;">(</span> lOnOff <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> GetLocal<span style="color: #000000;">(</span> nProcLevel, nLocal <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> HB_DBG_VMVARLGET<span style="color: #000000;">(</span> nProcLevel + <span style="color: #000000;">1</span>, ParamCount<span style="color: #000000;">(</span> nProcLevel + <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> + nLocal <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> NInitDSSize<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> NSYMPSIZE<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> nStackSize<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> nHeapSize<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> nStatics<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> HB_DBG_VMVARSLEN<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> _GenError<span style="color: #000000;">(</span> nError, cClassName, cMsg <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oError := ErrorNew<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> oError:<span style="color: #000000;">SubSystem</span> = <span style="color: #ff0000;">"BASE"</span><br /> oError:<span style="color: #000000;">SubCode</span> = nError<br /> oError:<span style="color: #000000;">Severity</span> = ES_ERROR<br /> oError:<span style="color: #000000;">Description</span> = <span style="color: #ff0000;">"Message not found"</span><br /> oError:<span style="color: #000000;">Operation</span> = cClassName + <span style="color: #ff0000;">":"</span> + cMsg<br /><br /><span style="color: #00C800;">return</span> oError<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> _CLSSETERROR<span style="color: #000000;">(</span> oError <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> Eval<span style="color: #000000;">(</span> ErrorBlock<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oError <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />#ifndef __XHARBOUR__<br /><span style="color: #00C800;">function</span> ASend<span style="color: #000000;">(</span> aObjects, cMsg, ... <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> n<br /> <span style="color: #00C800;">if</span> aObjects == <span style="color: #00C800;">nil</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span> aObjects <span style="color: #000000;">)</span><br /> OSend<span style="color: #000000;">(</span> aObjects<span style="color: #000000;">[</span> n <span style="color: #000000;">]</span>, cMsg, ... <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />#else<br /><span style="color: #00C800;">function</span> ASend<span style="color: #000000;">(</span> ... <span style="color: #000000;">)</span> <span style="color: #B900B9;">//aObjects, cMsg, uPar1,...</span><br /> <span style="color: #00C800;">local</span> aParams := hb_aParams<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> aObjects, n, j<br /> <span style="color: #00C800;">local</span> aParams2 := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /><br /> <span style="color: #00C800;">if</span> aParams<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> == <span style="color: #00C800;">nil</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> <span style="color: #00C800;">endif</span><br /> aObjects = aParams<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span><br /><br /> <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span> aObjects <span style="color: #000000;">)</span><br /> AAdd<span style="color: #000000;">(</span> aParams2, aObjects<span style="color: #000000;">[</span> n <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">for</span> j = <span style="color: #000000;">2</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span> aParams <span style="color: #000000;">)</span><br /> AAdd<span style="color: #000000;">(</span> aParams2, aParams<span style="color: #000000;">[</span> j <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span> j<br /> hb_execFromArray<span style="color: #000000;">(</span> @OSend<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, aParams2 <span style="color: #000000;">)</span><br /> aParams2 = <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />#endif<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />#ifndef __XHARBOUR__<br /><span style="color: #00C800;">function</span> OSend<span style="color: #000000;">(</span> oObj, cMsg, ... <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> <span style="color: #ff0000;">"("</span> $ cMsg<br /> cMsg = StrTran<span style="color: #000000;">(</span> cMsg, <span style="color: #ff0000;">"()"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">return</span> __ObjSendMsg<span style="color: #000000;">(</span> oObj, cMsg, ... <span style="color: #000000;">)</span><br />#else<br /><span style="color: #00C800;">function</span> OSend<span style="color: #000000;">(</span> ... <span style="color: #000000;">)</span> <span style="color: #B900B9;">// oObj, cMsg, uPar1,...</span><br /> <span style="color: #00C800;">local</span> aParams := hb_aParams<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> <span style="color: #ff0000;">"("</span> $ aParams<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span><br /> aParams<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> = StrTran<span style="color: #000000;">(</span> aParams<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span>, <span style="color: #ff0000;">"()"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">return</span> hb_execFromArray<span style="color: #000000;">(</span> @__ObjSendMsg<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, aParams <span style="color: #000000;">)</span><br />#endif<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><br />#ifndef __XHARBOUR__<br /><span style="color: #00C800;">function</span> OleInvoke<span style="color: #000000;">(</span> hObj, cMethod, ... <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> __ObjSendMsg<span style="color: #000000;">(</span> TOleAuto<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> hObj <span style="color: #000000;">)</span>, cMethod, ... <span style="color: #000000;">)</span><br />#else<br /><span style="color: #00C800;">function</span> OleInvoke<span style="color: #000000;">(</span> ... <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> aParams := hb_aParams<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> hObj, cMethod, aParams2 := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /> hObj = aParams<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span><br /> cMethod = aParams<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span><br /><br /> <span style="color: #00C800;">if</span> Len<span style="color: #000000;">(</span> aParams <span style="color: #000000;">)</span> > <span style="color: #000000;">2</span><br /> AEval<span style="color: #000000;">(</span> aParams, <span style="color: #000000;">{</span>| uVal | AAdd<span style="color: #000000;">(</span> aParams2, uVal <span style="color: #000000;">)</span> <span style="color: #000000;">}</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> aParams2<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> = TOleAuto<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> hObj <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">return</span> hb_execFromArray<span style="color: #000000;">(</span> @__ObjSendMsg<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, aParams2 <span style="color: #000000;">)</span><br />#endif<br /><br /><br /><span style="color: #00C800;">function</span> OleSetProperty<span style="color: #000000;">(</span> hObj, cPropName, uValue <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> __ObjSendMsg<span style="color: #000000;">(</span> TOleAuto<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> hObj <span style="color: #000000;">)</span>, <span style="color: #ff0000;">"_"</span> + cPropName, uValue <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">function</span> OleGetProperty<span style="color: #000000;">(</span> hObj, cPropName <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> __ObjSendMsg<span style="color: #000000;">(</span> TOleAuto<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> hObj <span style="color: #000000;">)</span>, cPropName <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />#ifdef __XHARBOUR__<br /><br /><span style="color: #B900B9;">// Keep this C code here so only xHarbour uses it</span><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br /><span style="color: #B900B9;">//char * hb_parc( int iParam, ... );</span><br /><span style="color: #B900B9;">//ULONG hb_parclen( int iParam, ... );</span><br /><span style="color: #B900B9;">//int hb_parni( int iParam, ... );</span><br /><span style="color: #B900B9;">//LONG hb_parnl( int iParam, ... );</span><br /><span style="color: #B900B9;">//int hb_parl( int iParam, ... );</span><br /><span style="color: #B900B9;">//void hb_storc( const char * szText, int iParam, ... );</span><br /><span style="color: #B900B9;">//void hb_storclen( const char * szText, ULONG ulLength, int iParam, ... );</span><br /><span style="color: #B900B9;">//void hb_storl( int iLogical, int iParam, ... );</span><br /><span style="color: #B900B9;">//void hb_storni( int iValue, int iParam, ... );</span><br /><span style="color: #B900B9;">//void hb_stornl( LONG lValue, int iParam, ... );</span><br /><span style="color: #B900B9;">//void hb_stords( const char * szDate, int iParam, ... );</span><br /><span style="color: #B900B9;">//void hb_stornd( double dValue, int iParam, ... );</span><br /><br />char * hb_parvc<span style="color: #000000;">(</span> int iParam, int iIndex <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> <span style="color: #00C800;">return</span> <span style="color: #000000;">(</span> char * <span style="color: #000000;">)</span> hb_parc<span style="color: #000000;">(</span> iParam, iIndex <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br />ULONG hb_parvclen<span style="color: #000000;">(</span> int iParam, int iIndex <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> <span style="color: #00C800;">return</span> hb_parclen<span style="color: #000000;">(</span> iParam, iIndex <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br />int hb_parvni<span style="color: #000000;">(</span> int iParam, int iIndex <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> <span style="color: #00C800;">return</span> hb_parni<span style="color: #000000;">(</span> iParam, iIndex <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br />long hb_parvnl<span style="color: #000000;">(</span> int iParam, int iIndex <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> <span style="color: #00C800;">return</span> hb_parnl<span style="color: #000000;">(</span> iParam, iIndex <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br />BOOL hb_parvl<span style="color: #000000;">(</span> int iParam, int iIndex <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> <span style="color: #00C800;">return</span> hb_parl<span style="color: #000000;">(</span> iParam, iIndex <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br />void hb_storvc<span style="color: #000000;">(</span> char * szText, int iParam, int iIndex <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> hb_storc<span style="color: #000000;">(</span> szText, iParam, iIndex <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br />void hb_storvclen<span style="color: #000000;">(</span> char * szText, ULONG ulLength, int iParam <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> hb_storclen<span style="color: #000000;">(</span> szText, ulLength, iParam <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br />void hb_storvl<span style="color: #000000;">(</span> BOOL bValue, int iParam, int iIndex <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> hb_storl<span style="color: #000000;">(</span> bValue, iParam, iIndex <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br />void hb_storvnl<span style="color: #000000;">(</span> LONG lValue, int iParam, int iIndex <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> hb_stornl<span style="color: #000000;">(</span> lValue, iParam, iIndex <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br />void hb_storvni<span style="color: #000000;">(</span> int iValue, int iParam, int iIndex <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> hb_storni<span style="color: #000000;">(</span> iValue, iParam, iIndex <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br />void hb_storvds<span style="color: #000000;">(</span> char * szDate, int iParam, int iIndex <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> hb_stords<span style="color: #000000;">(</span> szDate, iParam, iIndex <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br />void hb_storvnd<span style="color: #000000;">(</span> double dValue, int iParam, int iIndex <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> hb_stornd<span style="color: #000000;">(</span> dValue, iParam, iIndex <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><br />void hb_storvnll<span style="color: #000000;">(</span> LONG lValue, int iParam, int iIndex <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> hb_stornl<span style="color: #000000;">(</span> lValue, iParam, iIndex <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /><br />#else<br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> ASPTR <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> hb_retptr<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> void * <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</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> ASLONG <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> hb_retnl<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> HB_LONG <span style="color: #000000;">)</span> hb_parptr<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /><br />#endif<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> </div>[/code:19f0u3zv] |
12.07 build errors | Thank you. That worked out.
Tim |
12.10 ? | I was wondering if there would be an October update ?
I am asking because I just encountered a problem with erratic xbrowse behavior in a folder. I have to check it further so I can't give specifics yet. However, I am operating with files that Antonio provided as a supplement to 12.9.
Thank you. |
12.10 ? | Tim,
We are delayed cause recent FiveWeb development, but it is ready and we will publish it this next week <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
13.08 Error w/ xHarbour ( .com ) vmPushSize | Building with xHarbour (.com ) and 13.08.
The following error occurs: _hb_vmPushSize Unresolved External symbol |
13.08 Error w/ xHarbour ( .com ) vmPushSize | Tim,
Please add this function to your app:
[code=fw:3tut9n9n]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br />void hb_vmPushSize<span style="color: #000000;">(</span> LONG l <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> hb_vmPushLong<span style="color: #000000;">(</span> l <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /> </div>[/code:3tut9n9n] |
13.08 Error w/ xHarbour ( .com ) vmPushSize | We are publishing a revised FWH 13.08 that solves it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
13.08 Error w/ xHarbour ( .com ) vmPushSize | The function you posted worked.
I just rebuilt with the latest 13.08 download, without the additional function, and it built normally.
Thank you. |
13.08 Error w/ xHarbour ( .com ) vmPushSize | Tim,
thanks for your feedback <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
13.08 Error w/ xHarbour ( .com ) vmPushSize | Hey Tim,
[quote="TimStone":3ovu6jq9]I just rebuilt with the latest 13.08 download, without the additional function, and it built normally.
[/quote:3ovu6jq9]
Is this with latest xHarbour Builder posted yesterday?
Thanks! <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
Patrick |
13.08 Error w/ xHarbour ( .com ) vmPushSize | No ! Its with the latest FWH 13.08 updated release.
Sadly, I had to make a few "business decisions" regarding ongoing expenses, and the ROI for xHarbour ( .com ) was not sufficient to continue the subscription. So, I'm using the build from 8/21/2010. At the time all of the work seemed to be going into the Visual xHarbour which I was not using.
I also wanted to use Microsoft Visual Studio as the compiler. Therefore I now have a parallel version of my application built with Harbour and MSVC 2012.
Tim |
1402 PRINTER oPrn NAME ""Cuentas"" PREVIEW MODAL | Estimados amigos: Gracias Antonio.
Me funciona bien con la clausula MODAL pero si no la coloco y se incrusta en la ventana se ve mal, estirado para los costados.
Gracias y saludos. |
1402 PRINTER oPrn NAME ""Cuentas"" PREVIEW MODAL | [quote="RDFernandez":1usgoxy7]Estimados amigos: Gracias Antonio.
Me funciona bien con la clausula MODAL pero si no la coloco y se incrusta en la ventana se ve mal, estirado para los costados.
Gracias y saludos.[/quote:1usgoxy7]
Se sabe algo de este error?
Acabo de actualizar a FWH 1402 y el preview se ve estirado a los lados. Lo tengo funcionando bajo ventanas MDI.
Gracias, |
1402 PRINTER oPrn NAME ""Cuentas"" PREVIEW MODAL | rpreview.prg linha 1477
if ! ::lZoom .and. ! lInit
// ::Zoom( .T. ) // anular esta line
endif esta linha |
1402 PRINTER oPrn NAME ""Cuentas"" PREVIEW MODAL | [quote="Sistem":x6z24oko]rpreview.prg linha 1477
if ! ::lZoom .and. ! lInit
// ::Zoom( .T. ) // anular esta line
endif esta linha[/quote:x6z24oko]
Muchísimas gracias, funcionó perfecto. |
15.01 problem with rpreview | I have a problem on Win xp with rpreview .
I Know lListViewHide but the problem is not on zoom page but when I show the page on orizontal
[img:3pjzms5o]http://www.eoeo.it/wp-content/uploads/2015/03/rprev.jpg[/img:3pjzms5o]
how I can resolve it ? |
15.02 BUTTONBARs | It is possible to specify almost any image file as a bitmap for btnbmp and so buttons on the buttonbar, eg. bmp, png, ico, gif, jpg, etc (acceptable by freeimage). Larger image files will be reduced to fit the buttonsize, if necessary. It is also possible to specify a bitmap handle of memory buffer of an image.
In addition an exe file also can be specified and in that case, the first icon of the exe will be shown as the bitmap.
Resources and files need not be specified separately. We can use either FILE or RESOURCE clause followed by any files and/or resources.
Large image files are automatically re-sized to fit the size of the button. In the following example, some pngs and jpg are resized. This feature largely reduces the need to maintain bmp files of different sizes of the same image.
A small example showing a buttonbar built with ICO,EXE,GIF,PNG,AlphaBmp and JPG.
[url=https://imageshack.com/i/ipk4zcPHj:70t8l2tt][img:70t8l2tt]http://imagizer.imageshack.us/v2/xq90/673/k4zcPH.jpg[/img:70t8l2tt][/url:70t8l2tt]
[code=fw:70t8l2tt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> AnyImageBtn<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oWnd, oBar, oFont<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"BUTTONAR ANY IMAGE 15.02"</span><br /> oWnd:<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span> oFont <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">72</span>,<span style="color: #000000;">96</span> <span style="color: #000000;">2007</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar FILE <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\i</span>cons<span style="color: #000000;">\f</span>ivetech.ico"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"fivetech"</span>+ CRLF+ <span style="color: #ff0000;">"ICO"</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar FILE <span style="color: #ff0000;">"c:<span style="color: #000000;">\P</span>rogram Files<span style="color: #000000;">\M</span>icrosoft Office<span style="color: #000000;">\O</span>ffice14<span style="color: #000000;">\E</span>xcel.exe"</span> ;<br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Excel"</span> + CRLF + <span style="color: #ff0000;">"EXE"</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar FILE <span style="color: #ff0000;">"c:<span style="color: #000000;">\P</span>rogram Files<span style="color: #000000;">\M</span>icrosoft Office<span style="color: #000000;">\O</span>ffice14<span style="color: #000000;">\p</span>owerpnt.exe"</span> ;<br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Excel"</span> + CRLF + <span style="color: #ff0000;">"EXE"</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar FILE <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\g</span>ifs<span style="color: #000000;">\g</span>if05.gif"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"gif06"</span> + CRLF + <span style="color: #ff0000;">"GIF"</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar FILE <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\c</span>ase.bmp"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"32x32"</span> + CRLF + <span style="color: #ff0000;">"BMP"</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar FILE <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\p</span>ngs<span style="color: #000000;">\i</span>mage3.png"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"image3"</span> + CRLF + <span style="color: #ff0000;">"PNG"</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar FILE <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\A</span>lphaBmp<span style="color: #000000;">\i</span>chat.bmp"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"IChat"</span> + CRLF + <span style="color: #ff0000;">"ALPHABMP"</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar FILE <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\o</span>lga1.jpg"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"olga1"</span> + CRLF + <span style="color: #ff0000;">"JPG"</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTERED</span><br /> <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:70t8l2tt]
In earlier versions, btnbmp can be shown transparently. Though this is not of a regular use, it is possible to show buttonbars also transparently like this:
[url=https://imageshack.com/i/exuNSblgj:70t8l2tt][img:70t8l2tt]http://imagizer.imageshack.us/v2/xq90/537/uNSblg.jpg[/img:70t8l2tt][/url:70t8l2tt]
[code=fw:70t8l2tt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> TranspBtnBar<br /><br /> <span style="color: #00C800;">local</span> oWnd, oBar, oBtn, oFont, oBrush<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush FILE <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\o</span>lga1.jpg"</span> RESIZE<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"TRANSPARENT BUTTONBAR"</span> <span style="color: #0000ff;">BRUSH</span> oBrush<br /> oWnd:<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span> oFont <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">72</span>,<span style="color: #000000;">96</span><br /> oBar:<span style="color: #000000;">lTransparent</span> := .t.<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar FILE <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\m</span>etro<span style="color: #000000;">\m</span>etro-back-48.png"</span> ;<br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Back"</span> + CRLF + <span style="color: #ff0000;">"metro"</span> FLAT TRANSPARENT<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar FILE <span style="color: #ff0000;">"c:<span style="color: #000000;">\P</span>rogram Files<span style="color: #000000;">\M</span>icrosoft Office<span style="color: #000000;">\O</span>ffice14<span style="color: #000000;">\E</span>xcel.exe"</span> ;<br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Excel"</span> + CRLF + <span style="color: #ff0000;">"exe"</span> FLAT TRANSPARENT<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar FILE <span style="color: #ff0000;">"c:<span style="color: #000000;">\P</span>rogram Files<span style="color: #000000;">\M</span>icrosoft Office<span style="color: #000000;">\O</span>ffice14<span style="color: #000000;">\w</span>inword.exe"</span> ;<br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Word"</span> + CRLF + <span style="color: #ff0000;">"EXE"</span> FLAT TRANSPARENT<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar FILE <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\g</span>ifs<span style="color: #000000;">\l</span>oading.gif"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"loading"</span>+ CRLF+ <span style="color: #ff0000;">"gif"</span> FLAT TRANSPARENT<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar FILE <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\c</span>opy.bmp"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"copy"</span> + CRLF + <span style="color: #ff0000;">"bmp"</span> FLAT TRANSPARENT<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar FILE <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\p</span>aste.bmp"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"paste"</span> + CRLF + <span style="color: #ff0000;">"bmp"</span> FLAT TRANSPARENT<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar FILE <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\p</span>ngs<span style="color: #000000;">\i</span>mage3.png"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"image3"</span> + CRLF + <span style="color: #ff0000;">"png"</span> FLAT TRANSPARENT<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar FILE <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\A</span>lphaBmp<span style="color: #000000;">\v</span>isa.bmp"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Visa"</span> + CRLF + <span style="color: #ff0000;">"Alpha"</span> FLAT TRANSPARENT<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar FILE <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\A</span>lphaBmp<span style="color: #000000;">\i</span>chat.bmp"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"IChat"</span> + CRLF + <span style="color: #ff0000;">"Alpha"</span> FLAT TRANSPARENT<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar FILE <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\m</span>etro<span style="color: #000000;">\u</span>sers.bmp"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"users"</span> + CRLF + <span style="color: #ff0000;">"metro"</span> FLAT TRANSPARENT<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar FILE <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\m</span>etro<span style="color: #000000;">\e</span>xit.bmp"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"exit"</span> + CRLF + <span style="color: #ff0000;">"metro"</span> FLAT TRANSPARENT<br /><br /> <span style="color: #00C800;">for</span> each oBtn in oBar:<span style="color: #000000;">aControls</span><br /> oBtn:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> CLR_WHITE, CLR_BLACK <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTERED</span><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;">BRUSH</span> oBrush<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:70t8l2tt]
In the same manner, any image file (including exe file) can be specified as bitmap for XBrowse. Here is an example showing list of applications with their icons shown as bitmaps.
[url=https://imageshack.com/i/ipj7Rvqgj:70t8l2tt][img:70t8l2tt]http://imagizer.imageshack.us/v2/xq90/673/j7Rvqg.jpg[/img:70t8l2tt][/url:70t8l2tt]
[code=fw:70t8l2tt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> XbrExeIcons<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> cPath := <span style="color: #ff0000;">"c:<span style="color: #000000;">\\</span>Program Files<span style="color: #000000;">\\</span>Microsoft Office<span style="color: #000000;">\\</span>Office14<span style="color: #000000;">\\</span>"</span><br /> <span style="color: #00C800;">local</span> aDir, aExe := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">local</span> ownd, oBrw, oFont<br /><br /> aDir := Directory<span style="color: #000000;">(</span> cPath + <span style="color: #ff0000;">"*.exe"</span> <span style="color: #000000;">)</span><br /> AEval<span style="color: #000000;">(</span> aDir, <span style="color: #000000;">{</span> |a| AAdd<span style="color: #000000;">(</span> aExe, cPath + a<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-16</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"MS OFFICE PROGRAMS"</span><br /> oWnd:<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span> oFont <span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oWnd DATASOURCE aDir COLUMNS <span style="color: #000000;">1</span> HEADERS <span style="color: #ff0000;">"Program"</span> ;<br /> LINES NOBORDER<br /><br /> WITH OBJECT oBrw<br /> :<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">(</span> aExe <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">{</span> || oBrw:<span style="color: #000000;">nArrayAt</span> <span style="color: #000000;">}</span><br /> <span style="color: #B900B9;">//</span><br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> END<br /> oWnd:<span style="color: #000000;">oClient</span> := oBrw<br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTERED</span><br /> <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:70t8l2tt] |
15.02 BUTTONBARs | Mr Rao, thanks |
15.02 BUTTONBARs | nages ...
[code=fw:27ytct46]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">METHOD</span> CreateButtons<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TXBrwColumn<br /><br /> .......<br /><br /> @ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">BTNBMP</span> ::<span style="color: #000000;">oBtnElip</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oBrw</span> NOBORDER <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><br /><br /> WITH OBJECT ::<span style="color: #000000;">oBtnElip</span><br /> <span style="color: #00C800;">if</span> Empty<span style="color: #000000;">(</span> aBitmap <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">cCaption</span> := IfNil<span style="color: #000000;">(</span> ::<span style="color: #000000;">cBtnCaption</span>, <span style="color: #ff0000;">"..."</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> :<span style="color: #000000;">hBitmap1</span> := aBitmap<span style="color: #000000;">[</span> BITMAP_HANDLE <span style="color: #000000;">]</span><br /> :<span style="color: #000000;">hPalette1</span> := aBitmap<span style="color: #000000;">[</span> BITMAP_PALETTE <span style="color: #000000;">]</span><br /> :<span style="color: #000000;">cCaption</span> := <span style="color: #ff0000;">""</span><br /> :<span style="color: #000000;">HasAlpha</span><span style="color: #000000;">(</span> :<span style="color: #000000;">hBitmap1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// added transparent for png files ...</span><br /> <span style="color: #00C800;">endif</span><br /> :<span style="color: #000000;">bAction</span> := <span style="color: #000000;">{</span>|| ::<span style="color: #000000;">RunBtnAction</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">DataFont</span> <span style="color: #000000;">)</span><br /> aColors:= Eval<span style="color: #000000;">(</span> ::<span style="color: #000000;">bClrBtn</span> ,.f. <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> aColors<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>, aColors<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> END<br /><br /> </div>[/code:27ytct46] |
15.02 BUTTONBARs | [quote="mastintin":1xeuos31]nages ...
[code=fw:1xeuos31]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">METHOD</span> CreateButtons<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TXBrwColumn<br /><br /> .......<br /><br /> @ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">BTNBMP</span> ::<span style="color: #000000;">oBtnElip</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oBrw</span> NOBORDER <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><br /><br /> WITH OBJECT ::<span style="color: #000000;">oBtnElip</span><br /> <span style="color: #00C800;">if</span> Empty<span style="color: #000000;">(</span> aBitmap <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">cCaption</span> := IfNil<span style="color: #000000;">(</span> ::<span style="color: #000000;">cBtnCaption</span>, <span style="color: #ff0000;">"..."</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> :<span style="color: #000000;">hBitmap1</span> := aBitmap<span style="color: #000000;">[</span> BITMAP_HANDLE <span style="color: #000000;">]</span><br /> :<span style="color: #000000;">hPalette1</span> := aBitmap<span style="color: #000000;">[</span> BITMAP_PALETTE <span style="color: #000000;">]</span><br /> :<span style="color: #000000;">cCaption</span> := <span style="color: #ff0000;">""</span><br /> :<span style="color: #000000;">HasAlpha</span><span style="color: #000000;">(</span> :<span style="color: #000000;">hBitmap1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// added transparent for png files ...</span><br /> <span style="color: #00C800;">endif</span><br /> :<span style="color: #000000;">bAction</span> := <span style="color: #000000;">{</span>|| ::<span style="color: #000000;">RunBtnAction</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">DataFont</span> <span style="color: #000000;">)</span><br /> aColors:= Eval<span style="color: #000000;">(</span> ::<span style="color: #000000;">bClrBtn</span> ,.f. <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> aColors<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>, aColors<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> END<br /><br /> </div>[/code:1xeuos31][/quote:1xeuos31]
Thanks
1) Present code of this method is different than this.
2) Still painting of these buttons is somewhat primitive. We are considering total revision. |
15.02 BUTTONBARs | ok ...
nages in tgdiplus this change is hight recomendable...
[code=fw:2ysy39yt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span> cFile , cResname <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> GDIBmp<br /><br /><span style="color: #B900B9;">/*<br />elseif !Empty(cFile)<br /> if File( cFile )<br /> cBuffer := MemoRead( cFile )<br /> nLen:= len(cBuffer)<br /> // msginfo(nLen )<br /> if nLen < 65000<br /> ::hBmp:=GdiPlusImageLoadPNGFromSTR(cBuffer, Len( cBuffer ) )<br /> else<br /> msginfo("grande")<br /> ::hBmp:=GDIPLUSCREATEIMAGEFROMFILE( Ansitowide(cFile ) )<br /> endif<br /> else<br /> msginfo( "fichero no encontrado" )<br /> endif<br /> endif<br />*/</span><br /><br /> elseif !Empty<span style="color: #000000;">(</span>cFile<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> File<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">hBmp</span>:= GDIPLUSIMAGELOADCACHEDFILE<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"fichero no encontrado"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /><br /> </div>[/code:2ysy39yt]
and cpp code ...
[code=fw:2ysy39yt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /> <span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> GDIPLUSIMAGELOADCACHEDFILE <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /><br /> FILE * fil = fopen <span style="color: #000000;">(</span> hb_parc<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span> , <span style="color: #ff0000;">"rb"</span> <span style="color: #000000;">)</span> ;<br /> fseek <span style="color: #000000;">(</span> fil , <span style="color: #000000;">0</span> , SEEK_END <span style="color: #000000;">)</span> ;<br /> int filesize = ftell <span style="color: #000000;">(</span> fil <span style="color: #000000;">)</span> ;<br /><br /> fseek <span style="color: #000000;">(</span> fil , <span style="color: #000000;">0</span> , SEEK_SET <span style="color: #000000;">)</span> ;<br /> HGLOBAL hglobal = GlobalAlloc <span style="color: #000000;">(</span> GMEM_MOVEABLE , filesize <span style="color: #000000;">)</span> ;<br /><br /> char * adr = <span style="color: #000000;">(</span>char *<span style="color: #000000;">)</span>GlobalLock <span style="color: #000000;">(</span> hglobal <span style="color: #000000;">)</span> ;<br /> int nbytes = fread <span style="color: #000000;">(</span> adr , <span style="color: #000000;">1</span> , filesize , fil <span style="color: #000000;">)</span> ;<br /> fclose <span style="color: #000000;">(</span> fil <span style="color: #000000;">)</span> ;<br /><br /> <span style="color: #00C800;">if</span> <span style="color: #000000;">(</span> nbytes != filesize <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> MessageBox<span style="color: #000000;">(</span> GetActiveWindow<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"fallo"</span>, <span style="color: #ff0000;">"No carga la imagen"</span>, 0x30 <span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span> ;<br /><br /> LPSTREAM pstm = <span style="color: #00C800;">NULL</span> ;<br /> GlobalUnlock <span style="color: #000000;">(</span> hglobal <span style="color: #000000;">)</span> ;<br /><br /> CreateStreamOnHGlobal <span style="color: #000000;">(</span> hglobal, <span style="color: #00C800;">TRUE</span>, &pstm <span style="color: #000000;">)</span> ;<br /><br /> Bitmap *original = <span style="color: #00C800;">new</span> Bitmap<span style="color: #000000;">(</span> pstm,<span style="color: #00C800;">FALSE</span> <span style="color: #000000;">)</span>;<br /><br /> int nWidth = original->GetWidth<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;<br /> int nHeight = original->GetHeight<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;<br /><br /> Bitmap* newImage = <span style="color: #00C800;">new</span> Bitmap<span style="color: #000000;">(</span> nWidth, nHeight, original->GetPixelFormat<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /><br /> Graphics * graphics = <span style="color: #00C800;">new</span> Graphics<span style="color: #000000;">(</span> newImage <span style="color: #000000;">)</span>;<br /> graphics->DrawImage<span style="color: #000000;">(</span> original ,<span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, nWidth, nHeight<span style="color: #000000;">)</span>;<br /><br /> delete graphics ;<br /> delete original ;<br /> GlobalFree<span style="color: #000000;">(</span> hglobal <span style="color: #000000;">)</span>;<br /> pstm->Release<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /><br /> hb_retnl<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> HB_LONG <span style="color: #000000;">)</span> newImage <span style="color: #000000;">)</span>;<br /><br /><span style="color: #000000;">}</span><br /><br /> </div>[/code:2ysy39yt] |
15.02 BUTTONBARs | Thank you for all your help.
I would like to be in touch with you by personal email for further work on gdiplus. |
15.09 Menu problem still | I know there was another thread on menus with 15.09 but there appears to be no resolution.
Specifically, using a menu on a button bar, the first level displayed is fine. However, a submenu does not inherit the font of the first one. In my case, it is much larger and poorly spaced:
MENU
MENUITEM "Abc"
MENUITEM "Def"
MENUITEM "Options"
MENU
MENUITEM "Ghi"
MENUITEM "JKL"
ENDMENU
ENDMENU
In this case, the first menu items will be with a font of size 8, but the submenu items will be of size 12. It is a significant difference. Also, the right margin is fine on the main menu, but not properly extended on the submenu.
I have reviewed other threads on this. A am using Build 2 of 15.09
Tim
This is when I call menus from a button on a button bar, and it was working correctly in 15.05 ( my last useable FWH prior to 15.09 ). |
15.09 Menu problem still | Tim
We are doing many tests and adjustments to not happen again and maintain compatibility with previous versions of the FWH 15.05.
This issue is practically resolved
Thank you and sorry for the inconvenience |
15.09 Menu problem still | If you can get it resolved soon, perhaps Antonio can issue a Build 3 of 15.09 with the fix.
Thank you. |
15.09 Menu problem still | Tim
You will not have to wait long
We are also reconciles with the theme of Unicode
Please
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=16&t=31378&p=182461#p182461">viewtopic.php?f=16&t=31378&p=182461#p182461</a><!-- l -->
Thanks |
15.09 Menu problem still | FWH1509 Build 3 please. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> |
15.09 Menu problem still | <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=16&t=31378&p=182709#p182709">viewtopic.php?f=16&t=31378&p=182709#p182709</a><!-- l --> |
15.09 Menu problem still | Hi Antonio,
just to inform you there is also a further problem to fix on the menu with 15.09 build 2:
the menu items on the right disappear moving the mouse on the left.
Consider I'm working on a cloud environment. See video:
<!-- m --><a class="postlink" href="http://www.softwarexp.co.uk/beta/test/test.html">http://www.softwarexp.co.uk/beta/test/test.html</a><!-- m --> |
15.09 Menu problem still | <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=16&t=31378&p=182736#p182736">viewtopic.php?f=16&t=31378&p=182736#p182736</a><!-- l --> |
15.1.2015 Facturae 3.2 ¡ obligatorio ! | Hola,
En España, a partir del 15.1.2015 las AAPP sólo admitirán facturas electronicas firmadas version 3.2. (<!-- m --><a class="postlink" href="http://www.facturae.gob.es/que-desea/Paginas/administraciones-publicas.aspx">http://www.facturae.gob.es/que-desea/Pa ... licas.aspx</a><!-- m --> )
¿ Alguna idea de por donde empezar para poder generar la Facturae 3.2 firmada ?
Gracias |
15.1.2015 Facturae 3.2 ¡ obligatorio ! | ¿ Sólo yo en España tengo que tener un programa para generar facturae 3.2 firmada ?
Me voy ahora mismo a hablar con el gobierno... se van a enterar <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> |
15.1.2015 Facturae 3.2 ¡ obligatorio ! | ¡Dales caña!
Lo cierto es que yo voy con bastante retraso ... aunque después de las prisas en meter el SEPA y ver que la mayoría de mis clientes siguen enviando normas 19, 32 y 58 como si nada ... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> |
15.1.2015 Facturae 3.2 ¡ obligatorio ! | Yo también tengo el tema bastante parado.
Como dice Ángel, como después pase igual que con el sepa, es para afilar cuchillos.
En algunas administraciones, ya sólo aceptan facturas electrónicas.
Pero no tienen todavía definido si usar 3.1 o 3.2,
y lo que es mas importante, todavía no tienen definido que formato de firma usar (parece que el estándar va ha ser XadES)
En definitiva, aunque sólo aceptan facturas electrónicas, no hay forma que validen una correcta. (Ni generadas con el programa facturae)
Solución que han optado, han creado una página web, donde picas la factura a mano.
Una vez dicho esto:
Parece que el formato estándar a usar va ha ser XadES
Con la aplicación facturae se puede firmar, llamando a la aplicación desde línea de comandos.
Pero en la última versión va preguntando por el certificado que quieres usar para firmar, factura a factura. (poco práctico)
P.D.
Lo que entiendo es como el destinatario, puede validar que esa factura está firmada correctamente. |
15.1.2015 Facturae 3.2 ¡ obligatorio ! | Estimados amigos,
¿Qué tal lleváis el tema de la factura electrónica?
¿Qué herramientas habéis decidido usar?
La aplicación factuae, firma con el estandar XadES y parece que va a ser el estandar en España.
Como ya comenté en el anterior post, tiene línea de comando, pero en las ultimas versiones tienes ejecutar factura a factura y por cada una pregunta por el certificado.
Parece que para vb .net existen librerías, ¿podemos usar algo parecido o eso mismo nosotros?
¿Cómo podemos verificar la firma y la fecha de caducidad de las factura electrónicas que se reciben? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.