Join today! Get your plugin IDs and discuss developer-related topics with members around the world:
» Forum Index
» Search the Forum
» Search (archived) Forum
» Plugin IDs
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) doesn´t work? From: Samir Kharchi Date: 10/11/2002 12:51 PM GMT
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
| |||||||||||||||||||
![]() | |||||||||||||||||||
[PREV] [NEXT] |