topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
|---|---|
Any infos about function < C5RoundRect > ? ( solved )
|
Antonio,
all four forms are working perfect now.
Circles are a ONE-click solution on image Top / Left
Ellipses are a TWO-click solution on image Top / Left and Bottom / Right
A circle works like a image. The basic-diameter can be define inside the extra-dialog.
Inside the Main-painting area, You can select a resize-factor of the defined size and any pensize and color.
[img:ic211spr]http://www.pflegeplus.com/pictures/form1.jpg[/img:ic211spr]
[img:ic211spr]http://www.pflegeplus.com/pictures/form2.jpg[/img:ic211spr]
the circle function
[code=fw:ic211spr]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// -------------- CIRCLE -----</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> CL_ROUND<span style="color: #000000;">(</span> hMemDC, nStyle <span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> hOldBrush, oBrush<br /><span style="color: #00C800;">LOCAL</span> hOldPen := SELECTOBJECT<span style="color: #000000;">(</span> hMemDC, hPen <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">IF</span> nStyle = <span style="color: #000000;">1</span> <span style="color: #B900B9;">// transparent</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush <span style="color: #0000ff;">STYLE</span> <span style="color: #00C800;">NULL</span> <br /><span style="color: #00C800;">ELSE</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush <span style="color: #0000ff;">COLOR</span> nPenColor<br /><span style="color: #00C800;">ENDIF</span><br />hOldBrush := SelectObject<span style="color: #000000;">(</span> hMemDC, oBrush:<span style="color: #000000;">hBrush</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">IF</span> nWFactor > <span style="color: #000000;">1</span> .and. nHFactor > <span style="color: #000000;">1</span> <span style="color: #B900B9;">// image < painting area</span><br /> MOVETO<span style="color: #000000;">(</span> hMemDC, aPoints<span style="color: #000000;">[</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">]</span>, aPoints<span style="color: #000000;">[</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> ROUNDRECT<span style="color: #000000;">(</span> hMemDC, aPoints<span style="color: #000000;">[</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">]</span>, ; <span style="color: #B900B9;">// Left</span><br /> aPoints<span style="color: #000000;">[</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>, ; <span style="color: #B900B9;">// Top</span><br /> aPoints<span style="color: #000000;">[</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> + <span style="color: #000000;">(</span> nCircle * <span style="color: #000000;">(</span> nLIResize / <span style="color: #000000;">100</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, ; <span style="color: #B900B9;">// Right</span><br /> aPoints<span style="color: #000000;">[</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> + <span style="color: #000000;">(</span> nCircle * <span style="color: #000000;">(</span> nLIResize / <span style="color: #000000;">100</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, ; <span style="color: #B900B9;">// Bottom </span><br /> nCircle * <span style="color: #000000;">(</span> nLIResize / <span style="color: #000000;">100</span> <span style="color: #000000;">)</span>, ; <span style="color: #B900B9;">// Width</span><br /> nCircle * <span style="color: #000000;">(</span> nLIResize / <span style="color: #000000;">100</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// Height</span><br /><span style="color: #00C800;">ELSE</span> <span style="color: #B900B9;">// image > painting area</span><br /> <span style="color: #00C800;">IF</span> nWFactor < nHFactor .OR. nWFactor < <span style="color: #000000;">1</span> .and. nHFactor > <span style="color: #000000;">1</span> <br /> MOVETO<span style="color: #000000;">(</span> hMemDC, aPoints<span style="color: #000000;">[</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> / nWFactor, aPoints<span style="color: #000000;">[</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> / nWFactor <span style="color: #000000;">)</span><br /> ROUNDRECT<span style="color: #000000;">(</span> hMemDC, aPoints<span style="color: #000000;">[</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> / nWFactor, ; <span style="color: #B900B9;">// Left</span><br /> aPoints<span style="color: #000000;">[</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> / nWFactor, ; <span style="color: #B900B9;">// Top</span><br /> <span style="color: #000000;">(</span> aPoints<span style="color: #000000;">[</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> / nWFactor <span style="color: #000000;">)</span> + ;<br /> <span style="color: #000000;">(</span> <span style="color: #000000;">(</span> nCircle / nWFactor <span style="color: #000000;">)</span> * <span style="color: #000000;">(</span> nLIResize / <span style="color: #000000;">100</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, ; <span style="color: #B900B9;">// Right</span><br /> <span style="color: #000000;">(</span> aPoints<span style="color: #000000;">[</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> / nWFactor <span style="color: #000000;">)</span> + ;<br /> <span style="color: #000000;">(</span> <span style="color: #000000;">(</span> nCircle / nWFactor <span style="color: #000000;">)</span> * <span style="color: #000000;">(</span> nLIResize / <span style="color: #000000;">100</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, ; <span style="color: #B900B9;">// Bottom </span><br /> nCircle / nWFactor * <span style="color: #000000;">(</span> nLIResize / <span style="color: #000000;">100</span> <span style="color: #000000;">)</span>, ; <span style="color: #B900B9;">// Width</span><br /> nCircle / nWFactor * <span style="color: #000000;">(</span> nLIResize / <span style="color: #000000;">100</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// Height</span><br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">IF</span> nWFactor > nHFactor .OR. nWFactor > <span style="color: #000000;">1</span> .and. nHFactor < <span style="color: #000000;">1</span> <br /> MOVETO<span style="color: #000000;">(</span> hMemDC, aPoints<span style="color: #000000;">[</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> / nHFactor, aPoints<span style="color: #000000;">[</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> / nHFactor <span style="color: #000000;">)</span><br /> ROUNDRECT<span style="color: #000000;">(</span> hMemDC, aPoints<span style="color: #000000;">[</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> / nHFactor, ; <span style="color: #B900B9;">// Left</span><br /> aPoints<span style="color: #000000;">[</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> / nHFactor, ; <span style="color: #B900B9;">// Top</span><br /> <span style="color: #000000;">(</span> aPoints<span style="color: #000000;">[</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> / nHFactor <span style="color: #000000;">)</span> + ;<br /> <span style="color: #000000;">(</span> <span style="color: #000000;">(</span> nCircle / nHFactor <span style="color: #000000;">)</span> * <span style="color: #000000;">(</span> nLIResize / <span style="color: #000000;">100</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, ; <span style="color: #B900B9;">// Right</span><br /> <span style="color: #000000;">(</span> aPoints<span style="color: #000000;">[</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> / nHFactor <span style="color: #000000;">)</span> + ;<br /> <span style="color: #000000;">(</span> <span style="color: #000000;">(</span> nCircle / nHFactor <span style="color: #000000;">)</span> * <span style="color: #000000;">(</span> nLIResize / <span style="color: #000000;">100</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, ; <span style="color: #B900B9;">// Bottom </span><br /> nCircle / nHFactor * <span style="color: #000000;">(</span> nLIResize / <span style="color: #000000;">100</span> <span style="color: #000000;">)</span>, ; <span style="color: #B900B9;">// Width</span><br /> nCircle / nHFactor * <span style="color: #000000;">(</span> nLIResize / <span style="color: #000000;">100</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// Height</span><br /> <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">ENDIF</span><br /><br />DeleteObject<span style="color: #000000;">(</span> hOldPen <span style="color: #000000;">)</span><br />DeleteObject<span style="color: #000000;">(</span> oBrush <span style="color: #000000;">)</span><br />DeleteObject<span style="color: #000000;">(</span> hOldBrush <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">// C5RoundRect( hMemDC, 80, 80, 400, 400, 250, 250 )</span><br /><span style="color: #B900B9;">// That function is just a wrapper for the Windows API function RoundRect()</span><br /><span style="color: #B900B9;">// In order to use a brush with it, </span><br /><span style="color: #B900B9;">// you should first create the brush</span><br /><span style="color: #B900B9;">// and select it to the current hDC and later on, </span><br /><span style="color: #B900B9;">// save the current brush using </span><br /><span style="color: #B900B9;">// hOldBrush := SelectObject( hDC, oBrush:hBrush ), </span><br /><span style="color: #B900B9;">// paint, </span><br /><span style="color: #B900B9;">// select the previous brush with SelectObject( hDC, hOldBrush ) </span><br /><span style="color: #B900B9;">// and finally destroy the brush ( oBrush:End() )</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:ic211spr]
Best regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
Any means to stop using SQLLIB!?
|
Hi Linares and friends!Currently we work with the lib SQLLIB to carry out the "conversation" with the MySQL database and PostgreSQL database too.Is there any way, native, to do the same process?It would be basically a command or class which has the property to do the following: Run any ANSI SQL statement in the database server, return errors and realize backups.I have updated my fivewin to version 8.05, but I am depending on the update of SQLLIB to use it. This is not good enough.There is any way? Please!Thanks to everybody for all!
|
Any means to stop using SQLLIB!?
|
JCI know of no better solution then Win32ole .. better known as ADO .. lots of samples on the native xHarbour class .. just do a search in this forum for ADO ..I think you will find what you are looking for.Rick LipkinSC Dept of Health, USA
|
Any means to stop using SQLLIB!?
|
JC..As Rick says... there's A SOLUTION... ADO...I've done some tests with the same code but different connection strings to access MYSQL, Postgress, MS Sql, Oracle (XE Version ) with no problems at all.You can use it by pure code, you can use ADORDD, you can use my class ADOBASE ( although is a work in progress ) or you can create your own solution.Theres lot of info on ADO in the web, you can contact me if you can't find them.A new and more complete version of my class will be posted this monday.You can look the earlier version here...<!-- m --><a class="postlink" href="http://200.72.140.34/privado">http://200.72.140.34/privado</a><!-- m --> adobase.rarFrom ChileAdolfo
|
Any news about compatibility with xHarbour changes ( CVS ) ?
|
Hi ! Today I read in xHarbour.news that are some critical changes which are affected to FWH libs as errors . It seems that for xHarbour new changes , if you are not FTDN user , can say good bye ... Can you inform , what can help in this situation ?
With best regards !
|
Any news about compatibility with xHarbour changes ( CVS ) ?
|
Rimantas,
We have not reviewed the current CVS files yet. So FWH is not compatible yet (the same applies for FTDN users).
|
Any news about compatibility with xHarbour changes ( CVS ) ?
|
FWH has been already modified to work with current xHarbour CVS code.
We are actually testing it to be totally sure everything is ok.
It has been modified in a way that FiveHC.lib remains being just the same file for both Harbour and xHarbour <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
|
Any other encryption system besides Blowfish?
|
Since I can't get a solution to the hugely excessive length of the Blowfish key (over 4000 bytes) that makes encryption/decryption painfully slow, can anyone recommend another widely recognized encryption system that works with FWH?
|
Any other encryption system besides Blowfish?
|
Roger;
ADS remote as well as the free local server RDDs allow you to encrypt a .dbf. Here is some text from the help file:
[quote:2d3lv674]
Advantage provides security for your data in a number of important ways. Some of these are associated with how Advantage transmits data across the network, and others are associated with access rights conferred by a data dictionary. But the most fundamental of data security features is provided at the table level. Specifically, individual tables can be encrypted with a password.
When a table is encrypted with a password, both the table and its memo file are encoded using the password. (If you are using a data dictionary and ADT tables, it is possible to also have the index encrypted.) The effect of this encoding is that the raw table and memo files appear scrambled to anyone who attempts to view their contents. Without encryption, it would be possible for someone with a file viewer, or even Windows Notepad (for small tables), to open the table and view its contents.
Once the table is encrypted, you must provide the password for the table each time the table is opened. For database tables, which can only be accessed through a data dictionary, the data dictionary supplies the password automatically. Note, however, that a data dictionary itself provides security, and when the data dictionary is configured correctly, you will not be able to access the data dictionary without supplying a user name and password. The data dictionary user name and password are separate from a table's password.
If you want to view an encrypted free table using the Advantage Data Architect, you will be prompted for the password when you open the table. Similarly, before an encrypted table can be accessed from a client application, that application must submit the password.
How you submit a table's password from a client application depends on the data access mechanism you are using. For example, if you are using the ACE API, you must make a call to AdsEnableEncryption (for Advantage tables) or AdsStmtSetTablePassword (for executing SQL statements against the table), passing the table name or handle and the password as the arguments to the function call. You need to make one of these calls once per Advantage table, prior to accessing it.
[/quote:2d3lv674]
I will try to find time to post some samples on encrypting tables for the first time and then using a table that has been encrypted, but you can easily figure it out by reading from the help file. Search for ACE functions AdsEncryptTable(), AdsEnableEncryption(), AdsDecryptTable(), AdsDisableEncryption(). There are also stored procedures to do the same as the ACE api functions if you rather use SQL syntax. The full ACE api is available to you when linking rddads.lib to your apps.
Hope that helps,
Reinaldo.
|
Any other encryption system besides Blowfish?
|
Roger
I posted this code some time ago which has served me well..
Rick Lipkin
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=27189&p=152637#p152637">viewtopic.php?f=3&t=27189&p=152637#p152637</a><!-- l -->
|
Any other encryption system besides Blowfish?
|
Reinaldo and Rick,
Thanks very much for your info. Those are very workable encryption systems, but unfortunately (as far as can see) are not certified as acceptable under the U.S. govt. HIPAA rules (Health Insurance Portability and Accountability Act). An app that I'm developing right now has to be HIPAA compliant, which means it has to use one of the encryption systems that the govt. has found acceptable under HIPAA. The approved list of encryption systems includes DES (though it is being deprecated), Blowfish, RSA, RC5, PGP and IDEA. Other proprietary encryption systems are generally not allowed, unless certified by an independent encryption review agency (an expensive process). Thus FiveWin's built-in encryption system (except for Blowfish), the ADS encryption system, and encryption using the Clipper Tools model, appear to be unacceptable under HIPAA.
Because Blowfish is acceptable under the U.S. govt. HIPAA rules, and we have it in Harbour, that is why I keep asking to get the problem with its overly long encryption key resolved.
|
Any other encryption system besides Blowfish?
|
I see we are running two different threads on the same subject and I have already shown that ADS is FIPS compliant, however, here is more information on ADS encryption:
[quote:hmjlwfd0]
Advantage provides the capability to encrypt tables and associated data. Data encryption is just one part of the process of creating a secure system. The following are some of the steps that can be taken to secure a database:
· Restrict physical access: Prevent direct user access by keeping all data on a physically remote server and using Advantage Database Server to access the data.
· Use access controls: Use a data dictionary with user logins to restrict who can connect to the database.
· Permissions: Use database roles and assign user and group permissions to fine-tune levels of access that users can have.
· Require logins: Disable free connections on the Advantage Database Server to force all connections to authenticate through a data dictionary.
· Encrypt communications: Enable the encryption of communications between the client and server application with Transport Layer Security (TLS) available beginning in v10.1 or with the existing encryption available with both UDP and TCP/IP communications.
· If requirements call for it, enable FIPS mode to ensure that only encryption algorithms approved for the Federal Information Processing Standard (FIPS) 140-2 are used.
· Encrypt data: Enable table encryption at the data dictionary level or in individual free tables.
[/quote:hmjlwfd0]
Keep in mind that encryption wouldn't even be necessary to secure you data as long as you don't keep the data on a shared folder. With ADS you keep your data on a server that is NOT being shared. There is absolutely no way to see the data unless you can connect using one of the ADS clients. The client makes TCP requests to the server and as long as the client has authenticated, the server answers back with the info being requested by the client. .dbf tables, indexes, and memo files are not visible or accessible to the operating system.
Reinaldo.
|
Any other encryption system besides Blowfish?
|
Reinaldo,
Thanks for the excellent info. I'll discuss it will my customer. Hopefully, they'll increase my project's budget to allow using ADS with all of its advantages.
All the best,
- Roger
|
Any other encryption system besides Blowfish?
|
I got Blowfish to work fine. See separate thread, "How to work with Blowfish".
|
Any plans for ipv6 ??
|
If fivewin compatible with ipv6 sockets ???
Thanks
Mike
|
Any problems with FiveWin and the DBFCDX & SIX3 drivers?
|
I can't manage to produce a program with FiveWin that runs ok when linking the DBFCDX driver from CA or the defunct SIX3 driver from SuccessWare.We've been using the SIX3 driver since 1996 without any problems on production systems.Is there any know issues with any of the above?
|
Any problems with FiveWin and the DBFCDX & SIX3 drivers?
|
What errors do you get ?Are they linking errors ? or runtime errors ?
|
Any problems with FiveWin and the DBFCDX & SIX3 drivers?
|
Linking errors:[color=red:u5ekkrei]BLINKER : 1115 : TST.OBJ(TST) : 'SIXCDX' : unresolved external
BLINKER : 1115 : TST.OBJ(TST) : 'SX_SETTRIG' : unresolved external
BLINKER : 1115 : SIXCDX.OBJ(SIXCDX) : '_VSXDBF' : unresolved external [/color:u5ekkrei]Thank you.Link Script:[color=blue:u5ekkrei]
BLINKER INCREMENTAL OFF
BLINKER EXECUTABLE NODELETE
BLINKER EXECUTABLE COMPRESS
BLINKER EXECUTABLE CLIPPER F99
PACKDATA
PACKCODE
NOEXTDIC
READONLY
FILE TST
OUTPUT TST
@SIX3.LNK
DEFBEGIN
NAME Tutorial_01_FiveWin
DESCRIPTION "Primer programa en Fivewin"
EXETYPE Windows 3.1
CODE preload moveable discardable
DATA preload moveable
STACKSIZE 9500
HEAPSIZE 2048
SEGMENT "PLANKTON_TEXT" NONDISCARDABLE
SEGMENT "EXTEND_TEXT" NONDISCARDABLE
SEGMENT "OM_TEXT" NONDISCARDABLE
SEGMENT "OSMEM_TEXT" NONDISCARDABLE
SEGMENT "SORTOF_TEXT" NONDISCARDABLE
SEGMENT "STACK_TEXT" NONDISCARDABLE
DEFEND
FILE SIXCDX
SEARCH FIVE, FIVEC, OBJECTS
LIB WINAPI [/color:u5ekkrei]
|
Any problems with FiveWin and the DBFCDX & SIX3 drivers?
|
Gustavo,There is a SixDriver RDD for 32 bits. We recommend you to migrate your application to 32 bits using Harbour/xHarbour and FWH.Also, you should consider to migrate from Six to Comix (built-in with Harbour/xHarbour) as it is the most popular and supported RDD in 32 bits.
|
Any problems with FiveWin and the DBFCDX & SIX3 drivers?
|
Antonio: Thank you for your support. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Before migrating to Comix, as you suggested, does Comix under xHarbour supports table encryption like the SIX driver ? In the short term I need to port a report module to Clipper/FiveWin using the SIx driver. Do you know if it is possible to have Six & FiveWin linked together (using Blinker) ? Thanks !
|
Any problems with FiveWin and the DBFCDX & SIX3 drivers?
|
You can use FiveWin for Clipper and Six Driver working together without problems.Regarding the functionality that you ask for in 32 bits, we don't know it for sure. You may ask the Six RDD manufacturer. Though again, we recommend you to use the builtin DBFCDX RDD in Harbour/xharbour.
|
Any problems with FiveWin and the DBFCDX & SIX3 drivers?
|
Thank you Antonio.
|
Any sample about splitter in resources and Vertical button?
|
Hi,I need a sample of splitter with resources and how to make a button with Vertical text.Example:[code:168vva6k]
+---+
| |
| N |
| A |
| M |
| E |
| |
+---+
+---+
| |
| P |
| H |
| O |
| N |
| E |
| |
+---+
[/code:168vva6k]
|
Any sample about splitter in resources and Vertical button?
|
Hello,To draw fonts like this on a bitmap, you have to do calculations.For each char of the text, you have to calculate the positioninside a bitmap to get the text vertical centered.There is no standard for this.For the moment, the tools can do the needed calculation for you.My next project will be a < button-creator > for Fivewin,there i want to make it possible, that the user can create buttons like these, you are looking for.About splitters, you can find some samples in FWH/samples/[img:1tmk67w0]http://www.pflegeplus.com/pictures/voolsfont.jpg[/img:1tmk67w0]For the calculation you can use the VTOOLS. Inside the application is a button : < PRG > to get the source for the calculation. You have to add :< oBmp:bLClicked := {|| Msgalert( "Your action" ) } >,because the BMP is used as Titels and not as a button.The function < OnPaintV > you will find in the source.[code:1tmk67w0]
REDEFINE BITMAP oBmp ID 110 ADJUST RESOURCE "Blanc" OF oDlg
oBmp:bLClicked := {|| Msgalert( "Your action" ) }
oBMP:bPainted := { |hDC|OnPaintV( hDC,oBMP, ;
13003573,15779475,16777215, ;
"Vertical-Text Button ", ;
oBfont1, 0 ,"TEST.BMP" ,3 ) }
[/code:1tmk67w0]Download :<!-- m --><a class="postlink" href="http://www.pflegeplus.com/fw_downloads/vtools.zip">http://www.pflegeplus.com/fw_downloads/vtools.zip</a><!-- m -->If you still need more informations, just tell me.RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
Any sample using < ChangeImg > of class TTitle ?
|
Hello,
any sample of usage METHOD [b:3uq2hw4g]ChangeImg[/b:3uq2hw4g]g of class TTitle ?
Tested, but returns a error
I want to replace the first defined Image with the new Image < cFile[1] >
The first Image :
[color=#008040:3uq2hw4g]@ 10, 10 TITLEIMG oImg[1] OF oTitle BITMAP cFile[5] SIZE 80, 80 REFLEX TRANSPARENT ANIMA [/color:3uq2hw4g]
Changing cFile[5] to cFile[1]
[color=#0000FF:3uq2hw4g]oTitle:ChangeImg( cFile[1], 1 )[/color:3uq2hw4g]
Error description: Error BASE/1004 Class: 'NIL' has no exported method: CHANGEIMG
Args:
[color=#FF0000:3uq2hw4g][ 1] = U[/color:3uq2hw4g]
[ 2] = C D:\P_QUOTATION\SYSTEM\Star5b.bmp
[ 3] = N 1
METHOD ChangeImg( cBitmap, nImg ) // change image in ::aImgs nImg position
Best Regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
Any sample using < ChangeImg > of class TTitle ?
|
It looks like the method ChangeImg is there. You could also call oTitle:LoadBitmaps() directly, see below.
[code=fw:js4qki7m]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> ChangeImg<span style="color: #000000;">(</span> cBitmap, nImg <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TTitle <br /> <span style="color: #00C800;">DEFAULT</span> nImg := <span style="color: #000000;">1</span><br /> ::<span style="color: #000000;">LoadBitmaps</span><span style="color: #000000;">(</span> cBitmap, , , , , ;<br /> , , , ;<br /> , , nImg <span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span> <br /><br /> </div>[/code:js4qki7m]
|
Any sample using < ChangeImg > of class TTitle ?
|
oTitle is NIL at the moment you try to call its ChangeImg() method.
EMG
|
Any sample using < ChangeImg > of class TTitle ?
|
Gale, Enrico,
Thank You, it works fine now
oTitle has been defined STATIC, but was NIL inside the Function.
because of needed resizing, I cannot use ChangeImg ( shows full size ), I had to use :
oTitle:LoadBitmaps( cFile[1], , ,[color=#FF0000:3cj5qxzj]80,80[/color:3cj5qxzj], , , , , , 1 )
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
Any side affects of adding hbcompat.ch?
|
I noticed in FWH9.03's fivewin.ch, hbcompat.ch has been remmed out. Any problem if I reenable it?
TIA
|
Any side affects of adding hbcompat.ch?
|
I can not say what are the side effects. But I remember having removed it after being advised to do so.
The xhb.lib we include in the link script takes care of most of the requirements.
Fivewin.ch itself has some essential cross translates.
Can you add to your link script all the libraries included in buildh.bat and then try your programs without hbcompat.ch.
|
Any side affects of adding hbcompat.ch?
|
For now I added the following to fivewin.ch
[code=fw:1dvel8m9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> #translate <span style="color: #000000;">(</span> <exp1> HAS <exp2> <span style="color: #000000;">)</span> => hb_regexHas<span style="color: #000000;">(</span> <exp2>, <exp1> <span style="color: #000000;">)</span><br /> #xtranslate Str<span style="color: #000000;">(</span> <x>, <n>, <d>, <l> <span style="color: #000000;">)</span> => iif<span style="color: #000000;">(</span> <l>, LTrim<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> <x>, <n>, <d> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, Str<span style="color: #000000;">(</span> <x>, <n>, <d> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> #xtranslate Str<span style="color: #000000;">(</span> <x>, <n>,, <l> <span style="color: #000000;">)</span> => iif<span style="color: #000000;">(</span> <l>, LTrim<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> <x>, <n> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, Str<span style="color: #000000;">(</span> <x>, <n> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> #xtranslate Str<span style="color: #000000;">(</span> <x>,,, <l> <span style="color: #000000;">)</span> => iif<span style="color: #000000;">(</span> <l>, hb_ntos<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span>, Str<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> </div>[/code:1dvel8m9]
|
Any std. FWH Browse control that allows me columnwise font ?
|
Hello All,
Is there any standard FWH Browse control that allows me to define columnwise font ?
I want to use Indian Language fonts but only for a few columns of the Listbox.
Can anybody guide me ?
TIA
Milan.
|
Any std. FWH Browse control that allows me columnwise font ?
|
Milan,
No, neither TWBrowse nor TCBrowse supports individual fonts for each column.
If you are willing to use a non-standard control, then TSBrowse does support them. You can get a copy of TSBrowse on my website.
James
|
Any tests drawing text with GDIPLUS ?
|
Hello,
I tested drawing text with GDIPLUS with
Methods
[color=#0000FF:3jbbrz77]oGraphics:DrawText( nTop, nLeft, cText, cFont, nFont, oBrush )
oGraphics:DrawTextLFont( nTop, nLeft, cText, oFont, nH, oBrush, hDC, lB, lIt, lUnd, lStr, nOri, nEsc )[/color:3jbbrz77]
NO text displayed <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
There aren't any tests or informations about it.
I can show text a different way but would like to
include it inside my GDIPLUS-paintings
does it work ?
regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
Any tests drawing text with GDIPLUS ?
|
Look
<!-- m --><a class="postlink" href="https://bitbucket.org/fivetech/fivewin-contributions/downloads/TESTGDI.prg">https://bitbucket.org/fivetech/fivewin- ... ESTGDI.prg</a><!-- m -->
|
Any tests drawing text with GDIPLUS ?
|
Christobal,
thank You very much I remember <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
I tested using a brushed font but that doesn't work ( just a idea )
aPalBmp := oWnd:ReadImage( c_Path1 + "Blustone.bmp", nil, .t. )
[color=#0000FF:27swwc6a]pBrush[/color:27swwc6a] := GDIP_IMAGEBRUSH( aPalBmp[ 1 ] )
oGraphics:DrawText( nTop + ( nWidth / 2 ) - 15, nLeft + ( nWidth / 2 ) - 50, nPercent, uFont, nFont, [color=#0000FF:27swwc6a][b:27swwc6a]pBrush[/b:27swwc6a][/color:27swwc6a] )
with normal text
[img:27swwc6a]http://www.pflegeplus.com/IMAGES/Progress3.jpg[/img:27swwc6a]
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
Any tests drawing text with GDIPLUS ?
|
Please try this code
[code=fw:3obfwv3a]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">local</span> aImage, pBrush, oFont, oWnd<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;">"IMPACT"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-80</span> BOLD<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /> aImage := oWnd:<span style="color: #000000;">ReadImage</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\b</span>ackgrnd<span style="color: #000000;">\p</span>ebbles.bmp"</span>,, .t. <span style="color: #000000;">)</span><br /> pBrush := GDIP_ImageBrush<span style="color: #000000;">(</span> aImage<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /><br /> oWnd:<span style="color: #000000;">bPainted</span> := <||<br /> oWnd:<span style="color: #000000;">SayText</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"SEABMP"</span>, <span style="color: #000000;">{</span> <span style="color: #000000;">20</span>,<span style="color: #000000;">20</span>,<span style="color: #000000;">200</span>,<span style="color: #000000;">500</span><span style="color: #000000;">}</span>, <span style="color: #00C800;">nil</span>, oFont, pBrush <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> ><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTERED</span><br /><br /> <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /> GDIP_DeleteBrush<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> PalBmpFree<span style="color: #000000;">(</span> aImage <span style="color: #000000;">)</span><br /> </div>[/code:3obfwv3a]
[url=https://imageshack.com/i/poy8KUuSp:3obfwv3a][img:3obfwv3a]https://imagizer.imageshack.com/v2/xq90/924/y8KUuS.png[/img:3obfwv3a][/url:3obfwv3a]
|
Any tests drawing text with GDIPLUS ?
|
What I'm trying to do is different
I want to add the text to a oGraphics-form
not as a window-title
There are 2 methods in GdiPlus I don't know how to use them
maybe it is possible to use them for a solution.
[color=#0000FF:3mnu2abf]METHOD DrawText( nTop, nLeft, cText, cFont, nFont, oBrush )
METHOD DrawTextLFont( nTop, nLeft, cText, oFont, nH, oBrush, hDC, lB, lIt, lUnd, lStr, nOri, nEsc )[/color:3mnu2abf]
[img:3mnu2abf]http://www.pflegeplus.com/IMAGES/Gdiplus5.bmp[/img:3mnu2abf]
[img:3mnu2abf]http://www.pflegeplus.com/IMAGES/Gdiplus6.bmp[/img:3mnu2abf]
[color=#0000FF:3mnu2abf]FUNCTION DRAWROUNDRECT(oWnd, oFont1)
LOCAL hdc := oWnd:getdc(), aImage
LOCAL oPen := Pen():New( 255, 0, 0, 255 , 10, .T.)
LOCAL oBrush := Brush():NewSolidBrush( 255, 255, 128, 0 ) // Orange
LOCAL oPath := Path():new()
LOCAL oGraphics := Graphics():New( oWnd:hDC )
// oPen, [oBrush], nLeft, nTop, nWidth, nHight, nRound
oGraphics:DrawRoundRect( oPen, , 250, 50, 200, 200, 50 )
oGraphics:Destroy()
oGraphics := Graphics():New( oWnd:hDC )
oPath:AddRoundRect( 250, 300, 200, 200, 50 )
oGraphics:FillPath( oBrush, oPath)
oGraphics:DrawRoundRect( oPen, , 250, 300, 200, 200, 50 )
oGraphics:Destroy()
oGraphics := Graphics():New( oWnd:hDC )
oPath := Path():new()
// , oBrush, nLeft, nTop, nWidth, nHight
oPath:AddRoundRect( 550, 300, 200, 200, 50 )
oGraphics:FillPath( oBrush, oPath)
oGraphics:Destroy()
oPen:Destroy()
oWnd:releasedc()
RETURN NIL[/color:3mnu2abf]
regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
Any tests drawing text with GDIPLUS ?
|
why do you continuously destroy and re-create the graphics?
|
Any tests drawing text with GDIPLUS ?
|
Antonino,
[b:2swpq95v]Yes I agree not needed to be defined for each sample[/b:2swpq95v]
FUNCTION DRAWROUNDRECT(oWnd, oFont1)
LOCAL hdc := oWnd:getdc(), aImage
LOCAL oPen := Pen():New( 255, 0, 0, 255 , 10, .T.)
LOCAL oBrush1 := Brush():NewSolidBrush( 255, 255, 128, 0 ) // Orange
LOCAL oBrush2 := Brush():NewGradientBrush( 300, 200, 200, 200, 1,;
255, 255, 128, 0,;
255, 255, 255, 255 )
LOCAL oPath := Path():new()
[color=#0000FF:2swpq95v]LOCAL oGraphics := Graphics():New( oWnd:hDC ) [/color:2swpq95v]
// sample 1
// oPen, [oBrush], nLeft, nTop, nWidth, nHight, nRound
oGraphics:DrawRoundRect( oPen, , 250, 50, 200, 200, 50 )
// sample 2
oPath:AddRoundRect( 250, 300, 200, 200, 50 )
oGraphics:FillPath( oBrush1, oPath)
oGraphics:DrawRoundRect( oPen, , 250, 300, 200, 200, 50 )
// sample 3
oPath := Path():new()
// , oBrush, nLeft, nTop, nWidth, nHight
oPath:AddRoundRect( 550, 300, 200, 200, 50 )
oGraphics:FillPath( oBrush2, oPath)
[color=#0000FF:2swpq95v]oGraphics:Destroy()[/color:2swpq95v]
oPen:Destroy()
oWnd:releasedc()
RETURN NIL
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
Any tests drawing text with GDIPLUS ?
|
It is working now
LOCAL oBrush1 := [color=#0000FF:2sdwsgvy]Brush():NewSolidBrush[/color:2sdwsgvy]( 255, 255, 128, 0 ) // Orange
DEFINE FONT oFontLarge NAME "Arial" SIZE 0, -30 BOLD ITALIC
// font and size
oGraphics:DrawTextLFont( 50, 125, "mod harbour", [color=#0000FF:2sdwsgvy]oFontLarge, 30[/color:2sdwsgvy], oBrush1, hDC )
oGraphics:DrawTextLFont( 80, 125, "install", [color=#0000FF:2sdwsgvy]oFontLarge, 20[/color:2sdwsgvy], oBrush1, hDC )
The 1. and 3. one works fine
METHOD NewSolidBrush( nTrans, nRed, nGreen, nBlue ) <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
METHOD [color=#BF0040:2sdwsgvy]NewTextureBrush( oGdiBmp )[/color:2sdwsgvy] <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
( wanted to be used for text )
METHOD NewGradientBrush( nTop, nLeft, nWidth, nHeight, nType,; <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
nTrans1, nRed1, nGreen1, nBlue1,;
nTrans2, nRed2, nGreen2, nBlue2 )
regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
Any try with Visual Studio 2013?
|
As topic. Thanks.
|
Any try with Visual Studio 2013?
|
I have tried VS 2013 Express. It compiles Ok with below settings.
VCDIR="C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC"
SDKDIR="C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A"
|
Any volunteer to check my ActiveX Control with March build ?
|
Hello Everybody,
I have an ActiveX control demo version. At present I use Nov-2005 build. I have been told that it should work with Mar-2006 build. If that works I am planning to buy that activeX control and Mar-2006 build.
Can anybody Mar-2006 build user help me ? I can send the control on their private mail.
TIA
Milan.
|
Any's xHarbour function support it?
|
Hi
I have a 123 number
What's function that let me show these
123,132,213,231,312,321
|
Any's xHarbour function support it?
|
[quote="richard-service":rze7dp4b]Hi
I have a 123 number
What's function that let me show these
123,132,213,231,312,321[/quote:rze7dp4b]
Please, test
[code=fw:rze7dp4b]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #B900B9;">// Program: Permutations of string -> number of permutations = factorial len( string )</span><br /><span style="color: #B900B9;">// Date: 08/02/2010</span><br /><span style="color: #B900B9;">// Autor: Cristobal Navarro</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">Static</span> cString<br /><span style="color: #00C800;">Static</span> aString<br /><span style="color: #00C800;">Static</span> aTmpString<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> x<br /> aString := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /> aTmpString := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /> cString := <span style="color: #ff0000;">"ABC"</span><br /> SetArray<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> Permutations<span style="color: #000000;">(</span> <span style="color: #000000;">1</span>, Len<span style="color: #000000;">(</span> cString <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> ? Len<span style="color: #000000;">(</span> aString <span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">//AEVal( aString, { | a | a := Val( a ) } )</span><br /> <span style="color: #0000ff;">XBrowse</span><span style="color: #000000;">(</span> aString <span style="color: #000000;">)</span> <span style="color: #B900B9;">//Add 23/05/2016</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> Permutations<span style="color: #000000;">(</span> nIni, nLen <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> x<br /> <span style="color: #00C800;">if</span> nIni <> nLen<br /> <span style="color: #00C800;">For</span> x = nIni <span style="color: #0000ff;">to</span> nLen<br /> SwapArray<span style="color: #000000;">(</span> nIni, x <span style="color: #000000;">)</span><br /> Permutations<span style="color: #000000;">(</span> nIni + <span style="color: #000000;">1</span>, nLen <span style="color: #000000;">)</span><br /> SwapArray<span style="color: #000000;">(</span> nIni, x <span style="color: #000000;">)</span> <br /> <span style="color: #00C800;">Next</span> x<br /> <span style="color: #00C800;">else</span><br /> AAdd<span style="color: #000000;">(</span> aString, SetString<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> SwapArray<span style="color: #000000;">(</span> nIni, nAct <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> cTemp<br /> cTemp := aTmpString<span style="color: #000000;">[</span> nIni <span style="color: #000000;">]</span><br /> aTmpString<span style="color: #000000;">[</span> nIni <span style="color: #000000;">]</span> := aTmpString<span style="color: #000000;">[</span> nAct <span style="color: #000000;">]</span><br /> aTmpString<span style="color: #000000;">[</span> nAct <span style="color: #000000;">]</span> := cTemp<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> SetArray<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> x<br /> <span style="color: #00C800;">For</span> x = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span> cString <span style="color: #000000;">)</span><br /> AAdd<span style="color: #000000;">(</span> aTmpString, <span style="color: #0000ff;">Substr</span><span style="color: #000000;">(</span> cString, x, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Next</span> x<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> SetString<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> x<br /> <span style="color: #00C800;">local</span> cCad := <span style="color: #ff0000;">""</span><br /> <span style="color: #00C800;">For</span> x = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span> aTmpString <span style="color: #000000;">)</span><br /> cCad += aTmpString<span style="color: #000000;">[</span> x <span style="color: #000000;">]</span><br /> <span style="color: #00C800;">Next</span> x<br /><br /><span style="color: #00C800;">Return</span> cCad<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /> </div>[/code:rze7dp4b]
|
Any's xHarbour function support it?
|
Buen dia, a eso se le llama PERMUTA...muy utilizado en los sistemas de loteria, habia hecho una hace bastante tiempo en la universidad como proyecto, pero ya ni recordaba como lo hice, gracias NAVARRO por tenerla publica, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
|
Any's xHarbour function support it?
|
Hi
Now, it's work.
|
Anybody have experience converting FWH to cloud
|
Anybody have experience converting FWH to cloud. I'd like to know if there is some methodology to doing this???
|
Anybody using TSBrowse with FWH10.10?
|
When I compile/link my apps that use tsbrowse with FWH10.10 the scrollbars desappear. Both tsbrowse 8 and 9 give same result. FWH9.11 works OK. I already mailed mr. Mercado but did no get any answer. Any idea?
|
Anybody with success with NSLock ?
|
Dear All,
Has anybody met success with NSLock ? I am using FWH May-2006 build and Win-Xp SP2. But my following code gives me GPF.
Can somebody help me ?
TIA
Milan.
-----------------------Cut-------------------------------
// FiveWin ActiveX support demo - Using Adobe Acrobat Reader
#include "FiveWin.ch"
function Main()
local oWnd, oActiveX, cLiberationKey := space(16)
DEFINE WINDOW oWnd TITLE "FiveWin ActiveX Support"
oActiveX = TActiveX():New( oWnd, "nslock15vb5.ActiveLock" )
oActiveX:Do( "Password" , "rochinha" )
oActiveX:Do( "SoftwareName" , "5Volution" )
oActiveX:Do( "LiberationKeyLength", 16 )
oActiveX:Do( "SoftwareCodeLength" , 16 )
//? oActiveX:GetProp( "SoftwareCode" )
if ! oActiveX:GetProp( "RegisteredUser" )
MsgGet( "Entre a chave de liberacao",; // Title
"Chave:",; // Label
@cLiberationKey ) // A variable by reference
oActiveX:Do( "LiberationKey", cLiberationKey )
endif
if ! oActiveX:GetProp( "RegisteredUser" )
if oActiveX:GetProp( "LastRunDate" ) > date()
? 'Data foi retrocedida. Programa sera encerrado'
else
? 'Faltam ' + Str( 30 - oActiveX:GetProp( "UsedDays" ) ) + ' dias.'
endif
? 'DEMONSTRACAO'
oWnd:cCaption := 'DEMONSTRACAO'
SysRefresh()
else
? 'REGISTRADO'
oWnd:cCaption := 'REGISTRADO'
SysRefresh()
endif
//oWnd:oClient = oActiveX // To fill the entire window surface
ACTIVATE WINDOW oWnd
return nil
-------------------------------------Paste----------------------------
|
Anybody with success with NSLock ?
|
The Sentinel Super Pro hardkey has a native (x)Harbour driver developed by ourselves.
It supports all the features of the lock using both, native C functions or the TSentinel Class.
|
Anybody with success with NSLock ?
|
Hello,
What GPF you found?
I test the example in a Windows Server 2003 and XP/ME in virtual PC.
|
Anybody with success with NSLock ?
|
This is the new code
[code:re71dspy]
// FiveWin ActiveX support demo - Using Adobe Acrobat Reader
#include "FiveWin.ch"
function Main()
local oWnd, oActiveX, cLiberationKey := space(16)
DEFINE WINDOW oWnd TITLE "FiveWin ActiveX Support"
oActiveX = TActiveX():New( oWnd, "nslock15vb5.ActiveLock" )
oActiveX:SetProp( "Password", "rochinha" )
oActiveX:SetProp( "SoftwareName", "5Volution" )
oActiveX:SetProp( "LiberationKeyLength", 8 )
oActiveX:SetProp( "SoftwareCodeLength" , 8 )
if ! oActiveX:GetProp( "RegisteredUser" )
MsgGet( "Entre a chave de liberacao",; // Title
"Chave: ("+oActiveX:GetProp( "SoftwareCode" )+")",; // Label
@cLiberationKey ) // A variable by reference
oActiveX:SetProp( "LiberationKey", alltrim(cLiberationKey) )
endif
if ! oActiveX:GetProp( "RegisteredUser" )
if oActiveX:GetProp( "LastRunDate" ) > date()
? 'Data foi retrocedida. Programa sera encerrado'
else
? 'Faltam ' + Str( 30 - oActiveX:GetProp( "UsedDays" ) ) + ' dias.'
endif
? 'DEMONSTRACAO'
oWnd:cCaption := 'DEMONSTRACAO'
SysRefresh()
else
? 'REGISTRADO'
oWnd:cCaption := 'REGISTRADO'
SysRefresh()
endif
//oWnd:oClient = oActiveX // To fill the entire window surface
ACTIVATE WINDOW oWnd
return nil
[/code:re71dspy]
Remember if you registered the .OCX in your system:
C:\WINDOWS\SYSTEM32\REGSVR32 C:\???\NSLOCK15VB5.OCX
|
Anybody with success with NSLock ?
|
Dear Rochina,
Thanks. It worked like that.
Where can I get information in English abt NSLock ? Does it generate different key for the different computer ?
TIA
Milan.
|
Anybody with success with NSLock ?
|
Dear RF,
Your <!-- w --><a class="postlink" href="http://www.google.com">www.google.com</a><!-- w --> seems to be down today. I am not able to access it. Can you send me more information about Sentinel Super Pro ?
TIA
Milan.
[quote="RF":13mzozlf]The Sentinel Super Pro hardkey has a native (x)Harbour driver developed by ourselves.
It supports all the features of the lock using both, native C functions or the TSentinel Class.[/quote:13mzozlf]
|
Anybody with success with NSLock ?
|
Milan
The last example work fine with NSLOCK15VB5.OCX. I made modifications to Activex SetProp/GetProp.
I found <!-- m --><a class="postlink" href="http://www.activelock.com">http://www.activelock.com</a><!-- m --> with more informations about this .OCX.
|
Anybody with success with NSLock ?
|
[quote="Milan Mehta":p9ij6jb7]Dear RF,
Your <!-- w --><a class="postlink" href="http://www.google.com">www.google.com</a><!-- w --> seems to be down today. I am not able to access it. Can you send me more information about Sentinel Super Pro ?
TIA
Milan.
[/quote:p9ij6jb7]
The driver was developed for the Sentinel Company, it should be included with all the Sentinel Super Pro Developer Kits.
|
Anybody with success with NSLock ?
|
Dear Rochina,
I visited the site <!-- w --><a class="postlink" href="http://www.activelock.com">www.activelock.com</a><!-- w -->. But it does not alllow me to register as new member. But anyway, they offer new version 1.8 also. Does that work too with xHarbour ? Let me know if you have experemented.
Does NSLock can work with pure xHarbour (no GUI) ?
TIA
Milan.
|
Anyone able to convert code to programmatically burn CD/DVD?
|
Can anyone convert [url=http://stackoverflow.com/questions/82993/windows-cd-burning-api:2zqzhbcf]this code[/url:2zqzhbcf] for use in FWH?
Able to programmatically burn to CD/DVD would be a very nice feature to have eventhough it's only available from XP onwards.
|
Anyone able to convert code to programmatically burn CD/DVD?
|
Hua,
it would be a hard job, writing a CD-burner-app.
I found a useful freeware, because of possible [color=#FF0000:e3x1zp61]COMMANDLINE-options [/color:e3x1zp61]to burn from inside a FWH-app.
[img:e3x1zp61]http://www.pflegeplus.com/pictures/burnaware.jpg[/img:e3x1zp61]
Download
<!-- m --><a class="postlink" href="http://www.burnaware.com">http://www.burnaware.com</a><!-- m -->
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
Anyone able to convert code to programmatically burn CD/DVD?
|
Thanks for the reply Uwe. It's just that some customers want to be able to backup directly to a CD hence my research into this area
|
Anyone able to convert code to programmatically burn CD/DVD?
|
Hua,
for XP there is a dll to burn out of fwh, it´s called xpBurnObj. But it´s no more working with vista and Win 7. <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
Download here [url:21opje5u]http://www.bayden.com/delphi/cdburner.htm[/url:21opje5u]
[code=fw:21opje5u]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//****</span><br /><span style="color: #00C800;">FUNCTION</span> BurnCDInXP<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #B900B9;">//****</span><br /><span style="color: #00C800;">LOCAL</span> cBurnPath<br /><span style="color: #B900B9;">//</span><br /><span style="color: #00C800;">IF</span> <span style="color: #000000;">(</span> oCD := XPBurnObj<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> != <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span><br /> oFSO := CreateObject<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Scripting.FileSystemObject"</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// If we get here we're in XP and this shouldn't fail...</span><br /> <span style="color: #B900B9;">//</span><br /> WITH OBJECT <span style="color: #000000;">(</span> oCD <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">ClearFiles</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// Erases ALL files from burning area...</span><br /> <span style="color: #B900B9;">//</span><br /> MakeDir<span style="color: #000000;">(</span> cBurnPath := <span style="color: #000000;">(</span> :<span style="color: #000000;">BurnArea</span> + <span style="color: #ff0000;">"<span style="color: #000000;">\B</span>ackup"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// Build your directory structure...</span><br /> MakeDir<span style="color: #000000;">(</span> cBurnPath += <span style="color: #ff0000;">"<span style="color: #000000;">\c</span>ompanyname"</span> <span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">//</span><br /> :<span style="color: #000000;">AddFile</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\y</span>ourfile.ext"</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// This method add the file to the root of the CD..</span><br /> oFSO:<span style="color: #000000;">CopyFile</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"u:<span style="color: #000000;">\y</span>ourfile.zip"</span>, cBurnPath + <span style="color: #ff0000;">"<span style="color: #000000;">\b</span>ackup.ext"</span> <span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">// Copy to the directory you just created...</span><br /> <span style="color: #B900B9;">//</span><br /> :<span style="color: #000000;">StartBurn</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// Invokes the XP Burning wizard...</span><br /> END<br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">(</span>.T.<span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//***</span><br /><span style="color: #00C800;">FUNCTION</span> XPBurnObj<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #B900B9;">//***</span><br /> <span style="color: #00C800;">LOCAL</span> oBurn<br /> <span style="color: #B900B9;">//</span><br /> <span style="color: #00C800;">IF</span> Os_IsWinXP<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">TRY</span><br /> oBurn := CreateObject<span style="color: #000000;">(</span> <span style="color: #ff0000;">"BaydenBurn.XPBurn"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> !<span style="color: #000000;">(</span> oBurn:<span style="color: #000000;">Equipped</span> <span style="color: #000000;">)</span><br /> oBurn := <span style="color: #00C800;">NIL</span><br /> <span style="color: #00C800;">ENDIF</span><br /> CATCH<br /> END<br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #B900B9;">//</span><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">(</span> oBurn <span style="color: #000000;">)</span></div>[/code:21opje5u]
|
Anyone able to convert code to programmatically burn CD/DVD?
|
Thanks for the reply Stefan. I'm now looking into scripting + IMAPIv2.
If I could get that down, I'd be able to do it on PCs with XP SP2 up to Win 7, hopefully <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
|
Anyone able to convert code to programmatically burn CD/DVD?
|
Dear stephan
????
|
Anyone could convert Crystal button C# into prg?
|
<!-- m --><a class="postlink" href="http://www.programfan.com/article/showarticle.asp?id=2456">http://www.programfan.com/article/showa ... sp?id=2456</a><!-- m -->
open source :
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
using System.Drawing.Text;
namespace WindowsControlLibrary1
{
/// <summary>
/// UserControl1 的摘要说明。descrip
/// </summary>
public class UserControl1 : Button
{
/// <summary>
/// 必需的设计器变量。counter var
/// </summary>
private System.ComponentModel.Container components = null;
private bool XiaCen=false;
private bool mouseMove=false;
private Color backColor;
public UserControl1()
{
// 该调用是 Windows.Forms 窗体设计器所必需的。
InitializeComponent();
// TODO: 在 InitComponent 调用后添加任何初始化
backColor=this.backColor;
//this.Text=this.ShowFocusCues.ToString();
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if( components != null )
components.Dispose();
}
base.Dispose( disposing );
}
#region 组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器
/// 修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
//
// UserControl1
//
this.MouseUp += new System.Windows.Forms.MouseEventHandler(this.UserControl1_MouseUp);
this.Paint += new System.Windows.Forms.PaintEventHandler(this.UserControl1_Paint);
this.MouseEnter += new System.EventHandler(this.UserControl1_MouseEnter);
this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.UserControl1_KeyUp);
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.UserControl1_KeyDown);
this.BackColorChanged += new System.EventHandler(this.UserControl1_BackColorChanged);
this.MouseLeave += new System.EventHandler(this.UserControl1_MouseLeave);
this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.UserControl1_MouseDown);
}
#endregion
protected GraphicsPath GetGraphicsPath(Rectangle rect)
{
GraphicsPath ClientPath = new System.Drawing.Drawing2D.GraphicsPath();
if(rect.Width<=0)
{
rect.Width=1;
}
if(rect.Height<=0)
{
rect.Height=1;
}
ClientPath.AddArc(rect.Left,rect.Top,rect.Height,rect.Height,90f,180f);
ClientPath.AddArc(rect.Right-rect.Height,rect.Top,rect.Height,rect.Height,270f,180f);
ClientPath.CloseFigure();
return ClientPath;
}
protected GraphicsPath GetGraphicsPath1(Rectangle rect)
{
GraphicsPath ClientPath = new System.Drawing.Drawing2D.GraphicsPath();
if(rect.Width<=0)
{
rect.Width=1;
}
if(rect.Height<=0)
{
rect.Height=1;
}
ClientPath.AddArc(rect.Left,rect.Top,rect.Height,rect.Height,190f,80f);
ClientPath.AddArc(rect.Right-rect.Height,rect.Top,rect.Height,rect.Height,270f,80f);
ClientPath.CloseFigure();
return ClientPath;
}
private void DrawYinYing(Graphics gr,bool xiacen)
{
Rectangle rect= this.ClientRectangle;
rect.Inflate(-(rect.Width/10),-(rect.Height)/4);
float bf1=rect.Width/100f;
float bf2=rect.Height/100f;
rect.Y=rect.Y+this.ClientRectangle.Height/4;
if(xiacen)
{
rect.Y=rect.Y+4;
}
GraphicsPath path;
for(int a=1;a<33;a++)
{
float bf3=bf1*a;
float bf4=bf2*a;
Rectangle rect1=rect;
rect1.Inflate(-(int)bf3,-(int)bf4);
path=GetGraphicsPath(rect1);
int r=backColor.R;
int g=backColor.G;
int b=backColor.B;
r=r+3*a;
g=g+3*a;
b=b+3*a;
if(r>255) r=255;
if(g>255) g=255;
if(b>255) b=255;
gr.FillPath(new SolidBrush(Color.FromArgb(r,g,b)),path);
}
}
private void DrawGaoLiang(Graphics g,bool xiacen)
{
Rectangle rect= this.ClientRectangle;
rect.Inflate(-4,-4);
if(xiacen)
{
rect.Y=rect.Y+4;
}
GraphicsPath path=GetGraphicsPath1(rect);
RectangleF rect1=path.GetBounds();
rect1.Height=rect1.Height+1;
g.FillPath(new LinearGradientBrush(rect1,
Color.FromArgb(0xff,0xff,0xff,0xff),
Color.FromArgb(0xff,backColor),LinearGradientMode.Vertical),path);
}
private void DrawText(Graphics g,bool xiacen)
{
Rectangle rect= this.ClientRectangle;
Rectangle rect1= this.ClientRectangle;
StringFormat stringFormat=new StringFormat();
stringFormat.Alignment=StringAlignment.Center;
stringFormat.LineAlignment=StringAlignment.Center;
rect.Y=this.ClientRectangle.Height/5;
if(xiacen)
{
rect.Y=rect.Y+4;
rect1.Y=rect1.Y+4;
}
Font font=this.Font;
if(mouseMove)
{
font=new Font(this.Font,FontStyle.Underline);
}
g.DrawString(this.Text,font,
new SolidBrush(Color.FromArgb(0x66,backColor)),rect,stringFormat);
g.DrawString(this.Text,font,new SolidBrush(this.ForeColor),rect1,stringFormat);
}
private void UserControl1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if(XiaCen==false)
{
XiaCen=true;
this.Refresh();
}
}
private void UserControl1_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
{
if(XiaCen==true)
{
XiaCen=false;
this.Refresh();
}
}
private void UserControl1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
}
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
e.Graphics.FillRectangle(new SolidBrush(backColor),0,0,this.Width,this.Height);
e.Graphics.SmoothingMode=SmoothingMode.HighQuality;
e.Graphics.TextRenderingHint=TextRenderingHint.AntiAliasGridFit;
Rectangle rect=new Rectangle(0,0,this.Width,this.Height);
GraphicsPath ClientPath=GetGraphicsPath(rect);
e.Graphics.FillPath(new SolidBrush(backColor),ClientPath);
this.Region=new System.Drawing.Region(ClientPath);
DrawYinYing(e.Graphics,XiaCen);
DrawGaoLiang(e.Graphics,XiaCen);
DrawText(e.Graphics,XiaCen);
if(this.Focused)
{
e.Graphics.DrawPath(new Pen(Color.FromArgb(0x22,0xff,0xff,0xff), 3), ClientPath);
}
}
private void UserControl1_BackColorChanged(object sender, System.EventArgs e)
{
int r=BackColor.R;
int g=BackColor.G;
int b=BackColor.B;
r=r+0x22;
g=g+0x22;
b=b+0x22;
if(r>255) r=255;
if(g>255) g=255;
if(b>255) b=255;
backColor=Color.FromArgb(r,g,b);
}
private void UserControl1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
{
if(XiaCen==false && e.KeyCode==Keys.Space)
{
XiaCen=true;
this.Refresh();
}
}
private void UserControl1_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
{
if(XiaCen==true && e.KeyCode==Keys.Space)
{
XiaCen=false;
this.Refresh();
}
}
private void UserControl1_MouseEnter(object sender, System.EventArgs e)
{
if(mouseMove==false)
{
mouseMove=true;
this.Refresh();
}
}
private void UserControl1_MouseLeave(object sender, System.EventArgs e)
{
if(mouseMove==true)
{
mouseMove=false;
this.Refresh();
}
}
}
}
|
Anyone has any idea why button in xBrowse flashes?
|
I placed an xBrowse control on a non-modal dialog and in the source code, I defined the following:
[code=fw:2zvcjv4q]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> ::<span style="color: #000000;">oBrw</span>:<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;">nEditType</span> := EDIT_GET_BUTTON<br /> ::<span style="color: #000000;">oBrw</span>:<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;">addResource</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"down"</span> <span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">oBrw</span>:<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;">nBtnBmp</span> := <span style="color: #000000;">1</span><br /> </div>[/code:2zvcjv4q]
The good news, the button appears. The bad news, everytime the window is maximized or minimized, the button's image flashes. The flashing will only stop once I click the window's border.These can be seen here <!-- m --><a class="postlink" href="http://screencast.com/t/iSy86cLCWF">http://screencast.com/t/iSy86cLCWF</a><!-- m --> . Anyone has any idea how to solve this? I'm using FWH 9.04
TIA
|
Anyone has any idea why button in xBrowse flashes?
|
Hello Hua...
What version do you use?
Do you strech any column?
|
Anyone has any idea why button in xBrowse flashes?
|
Hi Daniel,
Thank you for replying. This is a self-contained sample to illustrate the problem. I am using FWH9.04
[code=fw:26mvambp]<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: #00D7D7;">#define</span> BLK_ARR <span style="color: #000000;">{</span>space<span style="color: #000000;">(</span><span style="color: #000000;">5</span><span style="color: #000000;">)</span>,space<span style="color: #000000;">(</span><span style="color: #000000;">50</span><span style="color: #000000;">)</span>, <span style="color: #000000;">0.00</span>, <span style="color: #000000;">0.00</span><span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">static</span> oWnd, oDlg, oBrw<br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> aFiledbf<br /><br /> aFiledbf := <span style="color: #000000;">{</span> BLK_ARR, BLK_ARR<span style="color: #000000;">}</span><br /><br /> <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">window</span> oWnd<br /> <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">dialog</span> oDlg <span style="color: #0000ff;">resource</span> <span style="color: #ff0000;">"journal"</span> <span style="color: #0000ff;">of</span> oWnd<br /><br /> <span style="color: #0000ff;">redefine</span> <span style="color: #0000ff;">xbrowse</span> oBrw <span style="color: #0000ff;">id</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">of</span> oDlg ;<br /> columns <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">4</span> ;<br /> headers <span style="color: #ff0000;">"Account"</span>, <span style="color: #ff0000;">"Description"</span>, <span style="color: #ff0000;">"Debit"</span>, <span style="color: #ff0000;">"Credit"</span> ;<br /> pictures <span style="color: #ff0000;">"@!"</span>,,<span style="color: #ff0000;">"@Z 999,999.99"</span>, <span style="color: #ff0000;">"@Z 999,999.99"</span> ;<br /> array aFiledbf ;<br /> fastedit lines cell <span style="color: #0000ff;">update</span> ;<br /><br /> aeval<span style="color: #000000;">(</span>oBrw:<span style="color: #000000;">aCols</span>,<span style="color: #000000;">{</span>|o| o:<span style="color: #000000;">lAutoSave</span> := .t., o:<span style="color: #000000;">nEditType</span> := EDIT_GET<span style="color: #000000;">}</span><span style="color: #000000;">)</span><br /><br /> oBrw:<span style="color: #000000;">lHScroll</span> := .f.<br /> oBrw:<span style="color: #000000;">nStretchCol</span> := <span style="color: #000000;">2</span><br /> oBrw:<span style="color: #000000;">bKeyDown</span> := <span style="color: #000000;">{</span>| nKey | <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nKey == VK_F2, <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Invoke picklist"</span><span style="color: #000000;">)</span>, <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oBrw:<span style="color: #000000;">lAutoAppend</span> := .t.<br /> oBrw:<span style="color: #000000;">bPastEof</span> := <span style="color: #000000;">{</span>|| aadd<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aArrayData</span>, BLK_ARR <span style="color: #000000;">)</span>, ;<br /> oBrw:<span style="color: #000000;">GoLeftMost</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBrw:<span style="color: #000000;">GoDown</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #00C800;">edit</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /><br /> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bEditValid</span> := <span style="color: #000000;">{</span>|oGet, oCol| ChkAccn<span style="color: #000000;">(</span>oGet, oCol<span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /><br /> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">nEditType</span> := EDIT_GET_BUTTON<br /> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">addResource</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"down"</span> <span style="color: #000000;">)</span><br /> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">nBtnBmp</span> := <span style="color: #000000;">1</span><br /><br /> with object oBrw:<span style="color: #000000;">Debit</span><br /> :<span style="color: #000000;">lTotal</span> := .t.<br /> :<span style="color: #000000;">nTotal</span> := <span style="color: #000000;">0</span> <span style="color: #B900B9;">//::nDrTotal</span><br /> end<br /><br /><br /> with object oBrw:<span style="color: #000000;">Credit</span><br /> :<span style="color: #000000;">lTotal</span> := .t.<br /> :<span style="color: #000000;">nTotal</span> := <span style="color: #000000;">0</span><br /> end<br /><br /> <span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">dialog</span> oDlg ;<br /> nomodal <span style="color: #0000ff;">valid</span> <span style="color: #000000;">(</span>oWnd:<span style="color: #000000;">end</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, .t.<span style="color: #000000;">)</span><br /><br /> oWnd:<span style="color: #000000;">bGotFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> := <span style="color: #000000;">{</span>|| oDlg:<span style="color: #000000;">setFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">(</span> ;<br /> oWnd:<span style="color: #000000;">bResized</span> := <span style="color: #000000;">{</span>|| resize<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span> ;<br /> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">MAXIMIZED</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------</span><br /><span style="color: #00C800;">function</span> ChkAccn<span style="color: #000000;">(</span>oGet, oCol<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> lRet<br /> <span style="color: #00C800;">if</span> <span style="color: #0000ff;">left</span><span style="color: #000000;">(</span>oGet:<span style="color: #000000;">value</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,<span style="color: #000000;">2</span><span style="color: #000000;">)</span> == <span style="color: #ff0000;">"CA"</span><br /> lRet := .t.<br /> <span style="color: #00C800;">else</span><br /> msgalert<span style="color: #000000;">(</span><span style="color: #ff0000;">"Invalid prefix"</span><span style="color: #000000;">)</span><br /> lRet := .f.<br /> <span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">return</span> lRet<br /><span style="color: #B900B9;">//----------------------------------------------------------------------</span><br /><span style="color: #00C800;">function</span> resize<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00D7D7;">#define</span> SM_CXVSCROLL <span style="color: #000000;">2</span> <span style="color: #B900B9;">// Width of arrow bitmap on a vertical scroll bar.</span><br /><br /> oDlg:<span style="color: #000000;">nWidth</span> := oWnd:<span style="color: #000000;">nWidth</span><br /> oDlg:<span style="color: #000000;">nHeight</span> := oWnd:<span style="color: #000000;">nHeight</span> <span style="color: #B900B9;">//- oWnd:oMsgBar:nHeight</span><br /> oBrw:<span style="color: #000000;">nWidth</span> := oDlg:<span style="color: #000000;">nWidth</span> - GetSysMetrics<span style="color: #000000;">(</span>SM_CXVSCROLL<span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------</span><br /> </div>[/code:26mvambp]
The rc
[code=fw:26mvambp]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><br />journal <span style="color: #0000ff;">DIALOG</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">440</span>, <span style="color: #000000;">281</span><br /><span style="color: #0000ff;">STYLE</span> DS_3DLOOK | WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN<br />CAPTION <span style="color: #ff0000;">""</span><br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">10</span>, <span style="color: #ff0000;">"System"</span><br /><span style="color: #000000;">{</span><br /> CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">101</span>, <span style="color: #ff0000;">"TXBrowse"</span>, WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_HSCROLL | WS_TABSTOP, <span style="color: #000000;">0</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">364</span>, <span style="color: #000000;">202</span><br /><span style="color: #000000;">}</span><br /><br /><span style="color: #0000ff;">down</span> BITMAP LOADONCALL MOVEABLE DISCARDABLE<br /><span style="color: #000000;">{</span><br /> <span style="color: #ff0000;">'42 4D 06 01 00 00 00 00 00 00 76 00 00 00 28 00'</span><br /> <span style="color: #ff0000;">'00 00 10 00 00 00 12 00 00 00 01 00 04 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 90 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 80'</span><br /> <span style="color: #ff0000;">'00 00 00 80 80 00 80 00 00 00 80 00 80 00 80 80'</span><br /> <span style="color: #ff0000;">'00 00 80 80 80 00 C0 C0 C0 00 00 00 FF 00 00 FF'</span><br /> <span style="color: #ff0000;">'00 00 00 FF FF 00 FF 00 00 00 FF 00 FF 00 FF FF'</span><br /> <span style="color: #ff0000;">'00 00 FF FF FF 00 88 88 88 88 88 88 88 88 88 88'</span><br /> <span style="color: #ff0000;">'88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'</span><br /> <span style="color: #ff0000;">'88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'</span><br /> <span style="color: #ff0000;">'00 00 00 08 88 88 88 88 88 88 88 88 88 88 88 88'</span><br /> <span style="color: #ff0000;">'88 80 88 88 88 88 88 88 88 00 08 88 88 88 88 88'</span><br /> <span style="color: #ff0000;">'80 00 00 88 88 88 88 88 00 00 00 08 88 88 88 88'</span><br /> <span style="color: #ff0000;">'88 00 08 88 88 88 88 88 88 00 08 88 88 88 88 88'</span><br /> <span style="color: #ff0000;">'88 00 08 88 88 88 88 88 88 88 88 88 88 88 88 88'</span><br /> <span style="color: #ff0000;">'88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'</span><br /> <span style="color: #ff0000;">'88 88 88 88 88 88'</span><br /><span style="color: #000000;">}</span><br /> </div>[/code:26mvambp]
I was also wondering how to get the footer to appear. I'm sure I'll have more questions as I slowly starts to get more familiar with xBrowse.
TIA
|
Anyone has any idea why button in xBrowse flashes?
|
if this line
oBrw:nStretchCol := 2
is removed or commented out the button does not flicker
This is a long outstanding bug
|
Anyone has any idea why button in xBrowse flashes?
|
This can be the fix in xbrowse.prg for this problem:
In xbrowse.prg:
1. Remove line "::ColStretch()" in METHOD Paint()
2. Add a new method in TXBrowse Class:
[code=fw:2tmanuc5]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">METHOD</span> Resize<span style="color: #000000;">(</span> nSizeType, nWidth, nHeight <span style="color: #000000;">)</span> <span style="color: #00C800;">INLINE</span> <span style="color: #000000;">(</span> ::<span style="color: #000000;">ColStretch</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #00C800;">Super</span>:<span style="color: #000000;">ReSize</span><span style="color: #000000;">(</span> nSizeType, nWidth, nHeight <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> </div>[/code:2tmanuc5]
With this fix the button does not blink
|
Anyone has any idea why button in xBrowse flashes?
|
Thanks Rao! That solved it!
Any idea why the footers won't appear even though I changed the above xbrowse statement to:
redefine xbrowse oBrw id 101 of oDlg ;
columns 1, 2, 3, 4 ;
headers "Account", "Description", "Debit", "Credit" ;
pictures "@!",,"@Z 999,999.99", "@Z 999,999.99" ;
array aFiledbf ;
[b:3b7toi26]footers[/b:3b7toi26] fastedit lines cell update ;
|
Anyone has any idea why button in xBrowse flashes?
|
Possibly because of resizing in your application.
Try creating in a normal window or dialog, footers show up
|
Anyone has any idea why button in xBrowse flashes?
|
The footers appears once I remove WS_HSCROLL attribute from TXBrowse in the rc file.
|
Anyone has any mingw+harbour+hbmk2+fwh .hbp sample?
|
Anyone has any sample .hbp to compile app using MingW+Harbour+FWH+hbmk2 ?
TIA
|
Anyone has any mingw+harbour+hbmk2+fwh .hbp sample?
|
So far using fwh\samples\buildg.bat to build any of the samples is unsuccessful <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
|
Anyone has any mingw+harbour+hbmk2+fwh .hbp sample?
|
Hua,
Using this Harbour for MinGW:
[url:2tmbjn1i]http://harbour-and-xharbour-builds.googlecode.com/files/harbour_mingw_20110711.zip[/url:2tmbjn1i]
And this samples\buildg.bat, it works fine except that AlphaBlend() external is not solved:
[code=fw:2tmbjn1i]<div class="fw" id="{CB}" style="font-family: monospace;">@ECHO OFF<br />CLS<br />ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿<br />ECHO ³ FiveWin <span style="color: #00C800;">for</span> Harbour <span style="color: #000000;">11.06</span> and GCC - Jun. <span style="color: #000000;">2011</span> Harbour development <span style="color: #0000ff;">power</span> ³Ü<br />ECHO ³ <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> FiveTech, <span style="color: #000000;">1993</span><span style="color: #000000;">-2011</span> <span style="color: #00C800;">for</span> Microsoft Windows 9X/NT/200X/ME/XP/Vista/<span style="color: #000000;">7</span> ³Û<br />ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ<br />ECHO ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß<br /><br /><span style="color: #00C800;">if</span> A%<span style="color: #000000;">1</span> == A GOTO :<span style="color: #000000;">SINTAX</span><br /><span style="color: #00C800;">if</span> NOT EXIST %<span style="color: #000000;">1</span>.prg GOTO :<span style="color: #000000;">NOEXIST</span><br /><br />ECHO Compiling...<br /><br />set hdir=%HBDIR%<br />set hdirc=%hdir%\bin\harbour.exe<br />set hlibs=%hdir%\lib\gcc<br />set fwh=c:\fwteam<br />set mingw=c:\mingw<br />set path=c:\mingw\bin<br /><br />%hdirc% %<span style="color: #000000;">1</span> /n /i%fwh%\include;%hdir%\include /w /p %<span style="color: #000000;">2</span> %<span style="color: #000000;">3</span> > comp.log<br /><span style="color: #00C800;">IF</span> ERRORLEVEL <span style="color: #000000;">1</span> GOTO COMPILEERROR<br />@type comp.log<br /><br />%mingw%\bin\gcc -c %<span style="color: #000000;">1</span>.c -o%<span style="color: #000000;">1</span>.o -I%hdir%\include -I%mingw%\include -Wall<br /><span style="color: #00C800;">IF</span> ERRORLEVEL <span style="color: #000000;">1</span> GOTO COMPILEERROR<br /><br /><span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.rc %mingw%\bin\windres -D__FLAT__ -DDIALOG=DIALOGEX -i%<span style="color: #000000;">1</span>.rc -o_%<span style="color: #000000;">1</span>.o<br /><span style="color: #00C800;">IF</span> ERRORLEVEL <span style="color: #000000;">1</span> GOTO RESOURCESERROR<br /><br /><span style="color: #00C800;">if</span> not exist %<span style="color: #000000;">1</span>.rc %mingw%\bin\gcc -o%<span style="color: #000000;">1</span>.exe %<span style="color: #000000;">1</span>.o -Wall -s -mwindows -L%mingw%\lib -L%hlibs% -L%fwh%\lib -mno-cygwin -Wl,--start-group -lfivehg -lfivehgc -lgtgui -luser32 -lwinspool -lcomctl32 -lcomdlg32 -lgdi32 -lole32 -loleaut32 -luuid -lwinmm -lvfw32 -lwsock32 -lmsimg32 -lhbcommon -lhbcpage -lhbcplr -lhbct -lhbhsx -lhblang -lhbmacro -lhbmainstd -lhbmzip -lodbc32 -lhbpcre -lhbpp -lhbrdd -lhbrtl -lhbsix -lhbsqlit3 -lhbtip -lhbusrrdd -lhbvm -lhbwin -lhbzlib -lrddcdx -lrddfpt -lrddntx -lxhb -Wl,--end-group<br /><span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.rc %mingw%\bin\gcc -o%<span style="color: #000000;">1</span>.exe %<span style="color: #000000;">1</span>.o _%<span style="color: #000000;">1</span>.o -Wall -s -mwindows -L%mingw%\lib -L%hlibs% -L%fwh%\lib -mno-cygwin -Wl,--start-group -lfivehg -lfivehgc -lgtgui -luser32 -lwinspool -lcomctl32 -lcomdlg32 -lgdi32 -lole32 -loleaut32 -luuid -lwinmm -lvfw32 -lwsock32 -lmsimg32 -lhbcommon -lhbcpage -lhbcplr -lhbct -lhbhsx -lhblang -lhbmacro -lhbmainstd -lhbmzip -lodbc32 -lhbpcre -lhbpp -lhbrdd -lhbrtl -lhbsix -lhbsqlit3 -lhbtip -lhbusrrdd -lhbvm -lhbwin -lhbzlib -lrddcdx -lrddfpt -lrddntx -lxhb -Wl,--end-group<br /><br /><span style="color: #00C800;">IF</span> ERRORLEVEL <span style="color: #000000;">1</span> GOTO LINKERROR<br />ECHO * Application successfully built<br />%<span style="color: #000000;">1</span><br />rem delete temporary files<br />@del %<span style="color: #000000;">1</span>.c<br />@<span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.rc del _%<span style="color: #000000;">1</span>.o<br />GOTO EXIT<br />ECHO<br /><br />:<span style="color: #000000;">RESOURCESERROR</span><br />ECHO * Resources errors *<br />GOTO EXIT<br /><br />:<span style="color: #000000;">COMPILEERROR</span><br />@type comp.log<br />ECHO * Compile errors *<br />GOTO EXIT<br /><br />:<span style="color: #000000;">LINKERROR</span><br />ECHO * Link errors *<br />GOTO EXIT<br /><br />:<span style="color: #000000;">SINTAX</span><br />ECHO SYNTAX: <span style="color: #000000;">Buildg</span> <span style="color: #000000;">[</span>Program<span style="color: #000000;">]</span> <span style="color: #000000;">{</span>-- No especifiques la extensi¢n PRG<br />ECHO <span style="color: #000000;">{</span>-- Don<span style="color: #ff0000;">'t specify .PRG extension<br />GOTO EXIT<br /><br />:NOEXIST<br />ECHO The specified PRG %1 does not exist<br /><br />:EXIT</span></div>[/code:2tmbjn1i]
|
Anyone has any mingw+harbour+hbmk2+fwh .hbp sample?
|
That's good to know. I'll try redownloading the latest MingW, run a svn update for Harbour source and retry everything again.
Your buildg.bat also seems to be newer than mine by having the following additional libs:
i. hbclipsm
ii. hbhpdf
iii. hbmisc
iv. hbnf
v. hbodbc
Thanks Antonio.
|
Anyone has any mingw+harbour+hbmk2+fwh .hbp sample?
|
Still couldn't make it work. I compiled Harbour from r16910 using MingW 4.5.2.
Here's the error I get even after using the latest buildg.bat
[code=fw:wkey93u9]<div class="fw" id="{CB}" style="font-family: monospace;"><br />rbdesign.o:<span style="color: #000000;">rbdesign</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x798<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB_FUN_CHOOSEGRADIENT<span style="color: #ff0000;">'<br />j:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\l</span>ib/fivehg.lib(CONTROL.o):CONTROL.c:(.data+0xe78): undefined reference to `HB_FUN_APPHASMANIFEST'</span><br />j:\harbour\fwh\lib/fivehg.lib<span style="color: #000000;">(</span>TRICHEDI.o<span style="color: #000000;">)</span>:<span style="color: #000000;">TRICHEDI</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x198<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB_FUN_REDLLVERSION<span style="color: #ff0000;">'<br />j:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\l</span>ib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x1b8): undefined reference to `HB_FUN_REGETPARAFORMAT'</span><br />j:\harbour\fwh\lib/fivehg.lib<span style="color: #000000;">(</span>TRICHEDI.o<span style="color: #000000;">)</span>:<span style="color: #000000;">TRICHEDI</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x1d8<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB_FUN_REGETBULLET<span style="color: #ff0000;">'<br />j:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\l</span>ib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x1e8): undefined reference to `HB_FUN_REGETCHARFORMAT'</span><br />j:\harbour\fwh\lib/fivehg.lib<span style="color: #000000;">(</span>TRICHEDI.o<span style="color: #000000;">)</span>:<span style="color: #000000;">TRICHEDI</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x208<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB_FUN_REGETHIGHLIGHT<span style="color: #ff0000;">'<br />j:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\l</span>ib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x278): undefined reference to `HB_FUN_REGETNUMBERING'</span><br />j:\harbour\fwh\lib/fivehg.lib<span style="color: #000000;">(</span>TRICHEDI.o<span style="color: #000000;">)</span>:<span style="color: #000000;">TRICHEDI</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x2d8<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB_FUN_REGETZOOM<span style="color: #ff0000;">'<br />j:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\l</span>ib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x398): undefined reference to `HB_FUN_REINSERTPICTURE'</span><br />j:\harbour\fwh\lib/fivehg.lib<span style="color: #000000;">(</span>TRICHEDI.o<span style="color: #000000;">)</span>:<span style="color: #000000;">TRICHEDI</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x438<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB_FUN_RELEN<span style="color: #ff0000;">'<br />j:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\l</span>ib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x4c8): undefined reference to `HB_FUN_REPAGEBREAK'</span><br />j:\harbour\fwh\lib/fivehg.lib<span style="color: #000000;">(</span>TRICHEDI.o<span style="color: #000000;">)</span>:<span style="color: #000000;">TRICHEDI</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x4f8<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB_FUN_REPASTESPECIAL<span style="color: #ff0000;">'<br />j:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\l</span>ib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x578): undefined reference to `HB_FUN_RESAVEASRTF'</span><br />j:\harbour\fwh\lib/fivehg.lib<span style="color: #000000;">(</span>TRICHEDI.o<span style="color: #000000;">)</span>:<span style="color: #000000;">TRICHEDI</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x628<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB_FUN_RESETFONTNAME<span style="color: #ff0000;">'<br />j:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\l</span>ib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x638): undefined reference to `HB_FUN_RESETFONTSIZE'</span><br />j:\harbour\fwh\lib/fivehg.lib<span style="color: #000000;">(</span>TRICHEDI.o<span style="color: #000000;">)</span>:<span style="color: #000000;">TRICHEDI</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x658<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB_FUN_RESETHIGHLIGHT<span style="color: #ff0000;">'<br />j:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\l</span>ib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x688): undefined reference to `HB_FUN_RESETOLEINIT'</span><br />j:\harbour\fwh\lib/fivehg.lib<span style="color: #000000;">(</span>TRICHEDI.o<span style="color: #000000;">)</span>:<span style="color: #000000;">TRICHEDI</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x6a8<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB_FUN_RESETOLECALLBACK<span style="color: #ff0000;">'<br />j:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\l</span>ib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x6b8): undefined reference to `HB_FUN_REGETOLEINTERFACE'</span><br />j:\harbour\fwh\lib/fivehg.lib<span style="color: #000000;">(</span>TRICHEDI.o<span style="color: #000000;">)</span>:<span style="color: #000000;">TRICHEDI</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x6d8<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB_FUN_RESETPOS<span style="color: #ff0000;">'<br />j:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\l</span>ib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x6f8): undefined reference to `HB_FUN_RESETSELECTION'</span><br />j:\harbour\fwh\lib/fivehg.lib<span style="color: #000000;">(</span>TRICHEDI.o<span style="color: #000000;">)</span>:<span style="color: #000000;">TRICHEDI</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x718<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB_FUN_RESETTEXTCOLOR<span style="color: #ff0000;">'<br />j:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\l</span>ib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x728): undefined reference to `HB_FUN_RESETZOOM'</span><br />j:\harbour\fwh\lib/fivehg.lib<span style="color: #000000;">(</span>TRICHEDI.o<span style="color: #000000;">)</span>:<span style="color: #000000;">TRICHEDI</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0xaf8<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB_FUN_RESETCHARFORMAT<span style="color: #ff0000;">'<br />j:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\l</span>ib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0xc78): undefined reference to `HB_FUN_REFINDTEXT'</span><br />j:\harbour\fwh\lib/fivehg.lib<span style="color: #000000;">(</span>TRICHEDI.o<span style="color: #000000;">)</span>:<span style="color: #000000;">TRICHEDI</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0xcb8<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB_FUN_REGETINDENT<span style="color: #ff0000;">'<br />j:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\l</span>ib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0xce8): undefined reference to `HB_FUN_REGETPARAGRAPH'</span><br />j:\harbour\fwh\lib/fivehg.lib<span style="color: #000000;">(</span>TRICHEDI.o<span style="color: #000000;">)</span>:<span style="color: #000000;">TRICHEDI</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0xd28<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB_FUN_REGETSELECTION<span style="color: #ff0000;">'<br />j:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\l</span>ib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0xd78): undefined reference to `HB_FUN_LOCKWINDOWUPDATE'</span><br />j:\harbour\fwh\lib/fivehg.lib<span style="color: #000000;">(</span>TRICHEDI.o<span style="color: #000000;">)</span>:<span style="color: #000000;">TRICHEDI</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0xf38<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB_FUN_RELOADASRTF<span style="color: #ff0000;">'<br />j:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\l</span>ib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0xfc8): undefined reference to `HB_FUN_REGETNMHDRLINK'</span><br />j:\harbour\fwh\lib/fivehg.lib<span style="color: #000000;">(</span>TRICHEDI.o<span style="color: #000000;">)</span>:<span style="color: #000000;">TRICHEDI</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x1058<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB_FUN_REPREVIEW<span style="color: #ff0000;">'<br />j:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\l</span>ib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x10a8): undefined reference to `HB_FUN_REPRINT'</span><br />j:\harbour\fwh\lib/fivehg.lib<span style="color: #000000;">(</span>TRICHEDI.o<span style="color: #000000;">)</span>:<span style="color: #000000;">TRICHEDI</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x1108<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB_FUN_REPRINTBOX<span style="color: #ff0000;">'<br />j:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\l</span>ib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x12c8): undefined reference to `HB_FUN_RESETPARAFORMAT'</span><br />j:\harbour\fwh\lib/fivehg.lib<span style="color: #000000;">(</span>TRICHEDI.o<span style="color: #000000;">)</span>:<span style="color: #000000;">TRICHEDI</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x12d8<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB_FUN_RESETATTRIBUTE<span style="color: #ff0000;">'<br />j:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\l</span>ib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x12e8): undefined reference to `HB_FUN_RESETAUTOURLDETECT'</span><br />j:\harbour\fwh\lib/fivehg.lib<span style="color: #000000;">(</span>TRICHEDI.o<span style="color: #000000;">)</span>:<span style="color: #000000;">TRICHEDI</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x12f8<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB_FUN_RESETBULLET<span style="color: #ff0000;">'<br />j:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\l</span>ib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x1328): undefined reference to `HB_FUN_RESETINDENT'</span><br />j:\harbour\fwh\lib/fivehg.lib<span style="color: #000000;">(</span>TRICHEDI.o<span style="color: #000000;">)</span>:<span style="color: #000000;">TRICHEDI</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x1338<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB_FUN_RESETNUMBERING<span style="color: #ff0000;">'<br />j:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\l</span>ib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x1348): undefined reference to `HB_FUN_RESETPARAGRAPH'</span><br />j:\harbour\fwh\lib/fivehg.lib<span style="color: #000000;">(</span>RPREVIEW.o<span style="color: #000000;">)</span>:<span style="color: #000000;">RPREVIEW</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x12e8<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB_FUN_WINWORDOBJ<span style="color: #ff0000;">'<br />j:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\l</span>ib/fivehgc.lib(BRUSHES.o):BRUSHES.C:(.text+0x23f3): undefined reference to `AlphaBlend'</span><br /> </div>[/code:wkey93u9]
It's kinda perplexing as libmsimg32.a and libcomctl32.a have been linked-in and should have resolved all of this.
[url=http://fivetechsupport.com/forums/viewtopic.php?f=3&t=20721&start=0:wkey93u9]Saving a link of a post that might be related[/url:wkey93u9]
|
Anyone has disk of Clipper A Developer's Guide book?
|
Hi guys,
I have the book [b:1dg38t3n]Clipper 5.2[/b:1dg38t3n] [i:1dg38t3n]A Developer's Guide[/i:1dg38t3n] by Joseph Booth, Greg Lief and Craig Yellick.
It came with a disk that contains the source that are in the book but I've lost that disk.
Does anyone has it and could you be so kind to email me a copy of that disk contents?
TIA
|
Anyone has disk of Clipper A Developer's Guide book?
|
Hua,
What is your email?
|
Anyone has disk of Clipper A Developer's Guide book?
|
k*****@gmail.com George.
Thank you!
|
Anyone know of a good source code formatter?
|
Anyone know of a free, good source code formatter for prg's?
Had to inspect a prg which is about 3000 lines long and the indentation is totally whack out.
|
Anyone using QBFC 5.0 ?
|
I am working on a Quick Books interface using FWH and xHarbour ( all latest versions) I must use the QBFC from Intuit.
I'm able to connect to a QB file, and when I post a request to add a client, the transaction takes place. I supply a name, opening balance amount, and a transaction date, and QB adds the account, enters the name, enters the opening balance, and enters the date. To me, this could not happen if the connection was not valid.
The value returned is supposed to be a "response list" which is a data object. However, when I try to parse the response list, I'm getting a NIL value.
So, the connection is established, the values passed are processed, but the return value appears to my program as NIL. The QB Request Processor should not be returning a NIL value if the actions were able to take place. This leads me to suspect that saving the return value to a LOCAL value may be the problem.
Any thoughts or suggestions would be greatly appreciated.
<!-- s:idea: --><img src="{SMILIES_PATH}/icon_idea.gif" alt=":idea:" title="Idea" /><!-- s:idea: -->
|
Anyway to Send CC and BCC in TMail Class ?
|
Hello All,
Is there any way to include CC and BCC in TMail Class ?
What is the alterrnative to achieve the same thing ?
TIA
Milan.
|
Anyway to Send CC and BCC in TMail Class ?
|
TIA
In the x:\FWH\Samples folder you will find an example (TestMail.Prg) using MAPI, it works fine. Perhaps that is what you need.
Regards, Armando
|
Anyway to Send CC and BCC in TMail Class ?
|
Dear Armando,
I am working on that only but there I did not see any CC and BCC option. Can u guide further.
TIA
Milan.
[quote="Armando":ecvruwp7]TIA
In the x:\FWH\Samples folder you will find an example (TestMail.Prg) using MAPI, it works fine. Perhaps that is what you need.
Regards, Armando[/quote:ecvruwp7]
|
Anyway to Send CC and BCC in TMail Class ?
|
Hi,Is there a solution to use bcc in tMail?Thanks,Marc
|
Apache Internal Error
|
Please help...
When I link the libmysql.lib into my Fiveweb application, the browser (on windows) shows the error: Internal Server Error or Misconfiguration.
When I do not use this library, the Fiveweb application runs fine.
Please guide what to do.
|
Apagar el computador
|
Amigos del foro tengan buen dia.....Alguien sabe como puedo hacer para apagar el computador desde una aplicacion de fw? bueno no se si se puede? <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> de antemano gracias
|
Apagar el computador
|
[quote="leandro":2tbilr7g]Amigos del foro tengan buen dia.....
Alguien sabe como puedo hacer para apagar el computador desde una aplicacion de fw? bueno no se si se puede? <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
de antemano gracias[/quote:2tbilr7g]<!-- m --><a class="postlink" href="http://forums.fivetechsoft.com/viewtopic.php?t=1628">http://forums.fivetechsoft.com/viewtopic.php?t=1628</a><!-- m -->Busca 'ShutDown'SaludosCarlos G.
|
Apagar el computador
|
Hola, mira se ayuda:[code:3rcqabm0]
#Include "FiveWin.Ch"
#Define WM_SYSCOMMAND 274 // &H112
#Define SC_TASKLIST 61744 // &HF130
#Define SC_SCREENSAVE 61760 // &HF140
#Define SW_HIDE 0 // &H0
#Define SW_SHOWNA 8 // &H8
#Define SW_SHOW 5 // &H5
#Define SW_SHOWNORMAL 1
#Define SC_MONITORPOWER 61808 // &HF170 Gracias a Ramon Ramirez por la info
#Define SM_CLEANBOOT 67
//
//Apagar el Equipo si nos deja otras aplicaciones que esten abiertas
DEFINE BUTTON OF oBar PROMPT "Apagar Maquina Confirma." ;
FONT oFnt ACTION ( Apaga(1,0) )
//Reiniciar el equipo
DEFINE BUTTON OF oBar PROMPT "Reiniciar a Maquina." ;
FONT oFnt ;
ACTION ( Apaga(2,0) )
//Apagar el Equipo sin pedir confirmacion ni nada. Las aplicaciones abiertas que se las apañen.. ;)
DEFINE BUTTON OF oBar PROMPT "Apaga e Vai P/XD." ;
FONT oFnt ;
ACTION ( Apaga(5,0) )
//
DLL32 Function Apaga(uFlags As LONG,dwReserved AS LONG) ;
AS LONG PASCAL FROM "ExitWindowsEx" LIB "USER32.DLL"
[/code:3rcqabm0]
|
Apagar el computador
|
Para apagar el pc yo hago asi: cExec := "C:\Windows\System32\ShutDown.exe" ShellExecute( 0, "Open", cExec, " -s", 0, 1 )Salu2!
|
Aparece solo una vez (Mr. Rao) (SOLUCIONADO)
|
Mr. Rao y amigos:
Tengo este código con un xBrowse:
[code=fw:2gr4u4y7]<div class="fw" id="{CB}" style="font-family: monospace;"><br />COLUMNS <span style="color: #ff0000;">"HDR_ODC"</span>,<span style="color: #ff0000;">"Date2Txt(HDR_FDE)"</span>,<span style="color: #ff0000;">"HDR_PRV"</span>,<span style="color: #ff0000;">"PRO_NOM"</span>,<span style="color: #ff0000;">"HDR_PRO"</span>,VerType<span style="color: #000000;">(</span>oRsHdr:<span style="color: #000000;">Fields</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"HDR_TIP"</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">)</span><br />….<br />….<br />….<br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> VerType<span style="color: #000000;">(</span>nType<span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span>nType<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> nType > <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">RETURN</span><span style="color: #000000;">(</span>acOrd<span style="color: #000000;">[</span>nType<span style="color: #000000;">]</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">(</span><span style="color: #00C800;">NIL</span><span style="color: #000000;">)</span><br /> </div>[/code:2gr4u4y7]
El problema es que el mensaje aparece una sola vez y la descripción es la misma
para todos los renglones aunque no debería ser
Alguna sugerencia?
|
Aparece solo una vez (Mr. Rao) (SOLUCIONADO)
|
Instead of
[code=fw:299vnj9n]<div class="fw" id="{CB}" style="font-family: monospace;">VerType<span style="color: #000000;">(</span>oRsHdr:<span style="color: #000000;">Fields</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"HDR_TIP"</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">)</span></div>[/code:299vnj9n]
use
[code=fw:299vnj9n]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">{</span> || VerType<span style="color: #000000;">(</span>oRsHdr:<span style="color: #000000;">Fields</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"HDR_TIP"</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span></div>[/code:299vnj9n]
|
Aparece solo una vez (Mr. Rao) (SOLUCIONADO)
|
Mr. Rao:
Thanks so much for your help (As Usually)
Regards
|
Apartir de que version trabaja oBrw:SetTree con xbrowse
|
DEFINE WINDOW oDtree TITLE "Mostrar menu de opciones como tree en XBrowse"
Apartir de que version de FWH trabaja oBrw:SetTree con xbrowse
[code=fw:l1yqwjln]<div class="fw" id="{CB}" style="font-family: monospace;"><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> oDtree <br /> oBrw:<span style="color: #000000;">nMarqueeStyle</span> = MARQSTYLE_HIGHLROW<br /> <br /> oBrw:<span style="color: #000000;">lHScroll</span> := .f.<br /> <br /> oBrw:<span style="color: #000000;">SetTree</span><span style="color: #000000;">(</span> BuildTree<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #000000;">{</span> <span style="color: #ff0000;">"menos"</span>, <span style="color: #ff0000;">"mas"</span>, <span style="color: #ff0000;">"si"</span>,<span style="color: #ff0000;">"no"</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">//Imagenes en un recurso</span><br /> <br /> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">cHeader</span> = <span style="color: #ff0000;">"Opciones"</span><br /> <br /> oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oDtree:<span style="color: #000000;">oClient</span> = oBrw<br /> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oDtree<br /><span style="color: #000000;">[</span></div>[/code:l1yqwjln]
|
Apartir de que version trabaja oBrw:SetTree con xbrowse
|
Ruben,
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=16&t=10685&p=52195&hilit=xbrowse+settree#p52195">viewtopic.php?f=16&t=10685&p=52195&hilit=xbrowse+settree#p52195</a><!-- l -->
|
Apertura de Dbf con Nombres largos
|
Hola:
Requiero abrir bases de datos de un sistema el cual tiene mas de 8 caracteres, por ejemplo:
tb15050701.dbf
hay alguna forma de abrirla sin necesidad de renombrarla o copiarla a 8 caracteres ?????
use fw23,blinker 6.0, clip53
gracias x su ayuda
salu2
veracruz, mexico
|
Apertura de Dbf con Nombres largos
|
Yo tengo esta funcion que convierte nombres largos en cortos...
[code:1r3hszi9]function cShortName( cLong )
local cShort :=space(164)+Chr(0)
local nBuffer:=164
local nLen
nLen :=GetSPName(cLong,@cShort,nBuffer)
cShort:=left(cShort,nLen)
return cShort
DLL32 STATIC FUNCTION GetSPName(lpszLongPath AS STRING,;
lpszShortPath AS STRING,;
lBuffer AS LONG ) ;
AS LONG PASCAL FROM "GetShortPathNameA" LIB "kernel32"[/code:1r3hszi9]
Haz algo asi [b:1r3hszi9]dbUseArea(.T.,"",cShortName(cNombreLargo),"DBF")[/b:1r3hszi9], en tu caso dbUseArea(.T.,"",cShortName("tb15050701.dbf"),"DBF")
Por si quieres te doy la funcion inversa:
[code:1r3hszi9]function cLongName(cShort)
local cLong:=space(164)+chr(0)
local nBuffer:=164
local nLen
nLen:=GetLPName(cShort,@cLong,nBuffer)
cLong:=left(cLong,nLen) && Quitar para Windows NT
return cLong
DLL32 STATIC FUNCTION GetLPName(lpszShortPath AS STRING,;
lpszLongPath AS STRING,;
lBuffer AS LONG) ;
AS LONG PASCAL FROM "GetLongPathNameA" LIB "kernel32"[/code:1r3hszi9]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.