🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.framemaker.sgml
5 messages
5 total messages Started by alma Mon, 06 Oct 2008 13:23
FDK 7.2 : Props of each Char of an object
#665
Author: alma
Date: Mon, 06 Oct 2008 13:23
18 lines
1052 bytes
Hi,

I need to obtain Props of each character of a text inside an object.

I can get the ID of the object.

But I can't find a way :
1)to get his text
2)to get (loop) each character of his text in order to get his Props.

I have tried TextRange, TextItem ... but it seems that i am not using them well.

I want to use : F_PropValsT F_ApiGetTextProps(F_ObjHandleT docId, F_TextLocT *textLocp);

Some ideas?

Thanks,
Alexandre
Re: FDK 7.2 : Props of each Char of an object
#553
Author: alma
Date: Fri, 10 Oct 2008 13:30
21 lines
1390 bytes
Hi,

1)
I have found a way to do this thanks to :
* F_ElementRangeT
* method F_ApiElementLocToTextLoc(...) = ElementRangeT to TextRangeT

and after I get props char per char of the text.

2)About :

* F_PropValsT F_ApiGetTextProps(F_ObjHandleT docId, F_TextLocT *tLocp);

* VoidT F_ApiSetTextProps(F_ObjHandleT docId,F_TextRangeT *ttRgep, F_PropValsT *setVal);

I have one remark : For F_ApiGetTextProps, we need to use F_TextLocT and for F_ApiSetTextProps we need to use TextRangeT which is 2 F_TextLocT in a structure.

This is the first time that i see in a language that the type of param of a set method is different than the param of a get method.

Thanks,
Alexandre
Re: FDK 7.2 : Props of each Char of an object
#554
Author: Russ Ward
Date: Fri, 10 Oct 2008 14:21
5 lines
898 bytes
Alexandre,

The difference is because the format properties are only absolute at a single location, so you couldn't reliably retrieve them for a range. However, it is likely that you would want to set them over a range, hence the ability to set them that way.

Russ
Re: FDK 7.2 : Props of each Char of an object
#479
Author: shootermv
Date: Mon, 22 Dec 2008 11:02
1 lines
721 bytes
hi ! i'm new to FDK. what i need is to find the end od the document and to add there the empty paragrah. Wich functions i ought to use?
Re: FDK 7.2 : Props of each Char of an object
#485
Author: Russ Ward
Date: Tue, 23 Dec 2008 13:21
5 lines
903 bytes
shooter,

I might recommend starting with the FDK Developer's Guide. It has lots of good information about text management with the FDK. It would be a bit much to try to coach you through it here. Besides, there are a number of approaches, depending on your intended goal.

Russ
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads