[haiku-3rdparty-dev] Re: Finding property changes in a widget or BControl

  • From: "Yashasvi A.C." <yashasviac@xxxxxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Tue, 17 Nov 2009 17:06:22 +1300

On Fri, Nov 13, 2009 at 10:18 PM, Stephan Assmus <superstippi@xxxxxx> wrote:

> Hi,
>
> IIRC, I already replied to your problem with one specific solution. But I
> just now have Internet access again, so I have a lot of catching up to do.
> I don't know if you already replied to my message. In any case, it sounds
> like you still have the exact same problem as before, and my original reply
> would still be a good solution. If you have not already responded, please
> try to ask specific questions you have with regards to the solution I
> already provided.
>


> Best regards,
> -Stephan
>
>
Hi!

Last time, you had mentioned that SendNotices() would be the right method to
use in this case. However, in the BeBook, it says that this method will send
a 
B_OBSERVER_NOTICE_CHANGE<http://www.haiku-os.org/legacy-docs/bebook/TheApplicationKit_MessageConstants.html#B_OBSERVER_NOTICE_CHANGE>message
to the handler. The problem is that I would need to also pass in
parameters (uint32 what, const BMessage* msg = 0).

So, does this mean that I would need to create a new message and pass this
as a parameter? Because that would not be useful to me. I want to be able to
listen to messages regarding the property change. I don't think I completely
understand the description that is given. If I implement the method
directly, will it provide me with property change messages? I am a bit
confused. :(

Thanks and regards,
Yash

Other related posts: