Plugin Cafe's original forum is still archived and available for searches. The ability to post here has been disabled.
 
Developer's Forum [PREV] [NEXT]
Subject: SetBit(BIT_ADOC) doesnt work?
From: Samir Kharchi
Date: 10/11/2002 12:51 PM GMT
    Hi,

    I cannot "activate" my document. There are two documents open. newdoc, that is currently active and another document that I store in fd:

    var newdoc = GetActiveDocument();

    var fd = newdoc->GetNext();
    if(!fd) return FALSE;
    newdoc->DelBit(BIT_ADOC);
    if(!newdoc->Remove()) return FALSE;
    if(!fd->SetBit(BIT_ADOC)) {println("nope");return FALSE;}
    fd->Message(MSG_UPDATE);
    GeEventAdd(DOCUMENT_CHANGED);

    As you can see DOCUMENT_CHANGE or MSG_UPDATE doesn´t force the document either to be "activated". I always have to manually activate the document fd from the list of open documents.

    Any suggestion? Thanks. Always in a hurry. ;)
    Samir
Current Message String
new SetBit(BIT_ADOC) doesnt work? - Samir Kharchi - 10/11/2002 12:51 PM GMT
 new RE: SetBit(BIT_ADOC) doesnt work? - Remotion - 10/11/2002 12:57 PM GMT
 new unfortunately not. Still need help.. - Samir Kharchi - 10/11/2002 1:02 PM GMT
 new That is not C++ o (nT) - Remotion - 10/11/2002 1:03 PM GMT
 new RE: unfortunately not. Still need help.. - Remotion - 10/11/2002 1:08 PM GMT
 new RE: unfortunately not. Still need help.. - Samir Kharchi - 10/11/2002 1:17 PM GMT
[PREV] [NEXT]