[Date Prev][Date Next]
[Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[New search]
Subject: Re: Automating the Find command
From: Chris Despopoulos <cud@xxxxxxxxxxxx>
Date: Wed, 14 Nov 2001 11:06:50 +0100
References: <3cee95f6.2474051538@smtp.omsys.com>
Sender: owner-framers@xxxxxxxxx
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1
Hi Sue... The following code sets up find to look for any text that has the font weight that is defined in the document's first char format. Not useful, but illustrative, I hope. (You don't need to specify FS_FindCharFmt - find is smart enough to deduce the find type if you have a charFmt property. But you can specify it if that makes you feel better.) charFmt = F_ApiGetId(FV_SessionId, docId, FP_FirstCharFmtInDoc); findParams = F_ApiAllocatePropVals((IntT)1); findParams.val[0] = F_ApiGetPropVal(docId, charFmt, FP_FontWeight); Cheers cud ** To unsubscribe, send a message to majordomo@omsys.com ** ** with "unsubscribe framers" (no quotes) in the body. **