comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » iTools Layout - Some help for once :-)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: iTools Layout - Some help for once :-) [message #48156 is a reply to message #47832] Thu, 30 March 2006 22:17 Go to previous message
Antonio Santiago is currently offline  Antonio Santiago
Messages: 201
Registered: February 2004
Senior Member
Michael Galloy wrote:
> Antonio Santiago wrote:
>
>> Thanks for the tip James.
>>
>> I just take a look at DoSetProperty, and I saw it uses the
>> SET_PROPERTY service that is nothing mora than an operation
>> (IDLitopSetProperty) and , also it uses de CommandBuffer to bring
>> redo/undo options.
>>
>> I have a problem with this (the undo/redo) method because in my
>> program I don't want to offer this possibility, and also I dont want
>> to use extra space storing the previous value of a property or an
>> image. If you know some tips to avoid the command buffer I will
>> appreciate to you a lot.
>
>
> You can bypass doSetProperty by using setProperty directly on the object
> whose properties you want to modify. Remember that doSetProperty is a
> method of the tool object which takes an argument that is the identifier
> of the component whose properties you are changing. This would be like:
>
> status = oTool->doSetProperty(id, 'COLOR', [255, 0, 0])
>
> If you want to use setProperty directly, then use getByIdentifier method
> of the tool like:
>
> oComponent = otool->getByIdentifier(id)
> oComponent->setProperty, COLOR=[255, 0, 0]
>
> to get the object reference of the component. This bypasses the
> undo/redo system.
>
> -Mike

Thanks Mike,
but since I was write the post I learn more on iTools. Now I am some
kind of Master Of the iTools :) (sorry, it's a bad joke).

PD: I am a fan of IDLdoc.


--
-----------------------------------------------------
Antonio Santiago P�rez
( email: santiago<<at>>grahi.upc.edu )
( www: http://www.grahi.upc.edu/santiago )
( www: http://asantiago.blogsite.org )
-----------------------------------------------------
GRAHI - Grup de Recerca Aplicada en Hidrometeorologia
Universitat Polit�cnica de Catalunya
-----------------------------------------------------
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Optimization help
Next Topic: Re: CONTOUR & TRIGRID/TRIANGULATE

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 21:06:59 PDT 2025

Total time taken to generate the page: 0.97912 seconds