Thread View: adobe.indesign.sdk
2 messages
2 total messages
Started by Hans Stoessel
Fri, 20 Mar 2009 16:29
CS3 / Win: Lock text for input
Author: Hans Stoessel
Date: Fri, 20 Mar 2009 16:29
Date: Fri, 20 Mar 2009 16:29
8 lines
722 bytes
722 bytes
Hi Is it possible to lock parts of a text for user input? I can lock the whole text box, but not a part of it. Can I do that? Thanks Hans
Re: CS3 / Win: Lock text for input
Author: toan.nguyen
Date: Wed, 07 Nov 2012 08:29
Date: Wed, 07 Nov 2012 08:29
30 lines
2181 bytes
2181 bytes
On Friday, March 20, 2009 11:29:28 PM UTC+7, hstoess...@pm-medici.ch wrote:
> Hi
>
> Is it possible to lock parts of a text for user input? I can lock the whole text box, but not a part of it.
>
> Can I do that?
>
> Thanks
> Hans
InterfacePtr<ICommand> ipSetStoryLockStateCmd(CmdUtils::CreateCommand(kSetItemLockDataCmdBoss));
InterfacePtr<IBoolData> ipLockData(ipSetStoryLockStateCmd, IID_IBOOLDATA);
// ipTextModel - >this is an interface <ITextModel>
InterfacePtr<IItemLockData> ipTextLockData(ipTextModel, UseDefaultIID());
if(ipTextLockData == nil)
{
break;
}
// set the command data
if (ipTextLockData->GetInsertLock()) {
ipLockData->Set(kFalse); // unlock
} else {
ipLockData->Set(kTrue); // lock
}
ipSetStoryLockStateCmd->SetItemList(UIDList(ipTextModel));
if (CmdUtils::ProcessCommand(ipSetStoryLockStateCmd) != kSuccess)
{
ASSERT_FAIL("SetStoryLockStateCmd failed");
break;
}
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