🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.framemaker
2 messages
2 total messages Started by Stanislav_Kurik Thu, 18 Sep 2008 09:56
How to detect overflowed text?
#2351
Author: Stanislav_Kurik
Date: Thu, 18 Sep 2008 09:56
9 lines
909 bytes
Hello,

I'd like to programatically detect overflowed text (ie. text which is not visible in its entirety). In reference guide I found that it should work be obtaining FP_Overflowed property of FO_SubCol, but it doesn't work for me. Here's sample document:

 <http://twoflower.matfyz.cz/inc/overflow_text.fm>

How can I detect it properly?

Thank you.
Re: How to detect overflowed text?
#2359
Author: Scott_Prentice
Date: Thu, 18 Sep 2008 18:50
21 lines
1689 bytes
Hi Stanislav...

I've used the following code to detect an overflow ..

F_ObjHandleT pageId = F_ApiGetId(FV_SessionId, docId, FP_FirstBodyPageInDoc);
  while (pageId) {
    F_ObjHandleT pageFrameId = F_ApiGetId(docId, pageId, FP_PageFrame);
    F_ObjHandleT frameId = F_ApiGetId(docId, pageFrameId, FP_FirstGraphicInFrame);
    F_ObjHandleT subcolId = F_ApiGetId(docId, frameId, FP_LastSubCol);
    F_Printf(NULL, "pageFrameId %d; frameId %d; subcolId %d\n", pageFrameId, frameId, subcolId);
    if (F_ApiGetInt(docId, subcolId, FP_Overflowed) == True) {
      // do something
    }
    pageId = F_ApiGetId(docId, pageId, FP_PageNext);
  }

When I run this on your file, it appears that your small overflowed textframe has no subcols, thus no place to check for the FP_Overflowed property. I'm not sure exactly why there would be no subcols (an Esc,g,o shows that it has one column .. ??).

Good luck,

...scott
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