[interfacekit] Object token -> Object, restoring focus...
- From: "Stefano Ceccherini" <burton666@xxxxxxxxx>
- To: "interfacekit" <interfacekit@xxxxxxxxxxxxx>
- Date: Mon, 27 Dec 2004 11:06:07 +0100
I have a small problem:
in BMenuBar there are two functions: StealFocus() and RestoreFocus(), which,
respectively, steal the focus (amazing, isn't it?) from the current focused
BView, saving the object token, and give it to the BMenu/BMenuBar, and give it
back to the previous focused object.
Now, stealing the focus it easy enough, and I could grab the object token using
"_get_object_token_()", but how do the reverse process ? How do I find the right
BView/object from a token ?
I guess I could change this to store a pointer to a BView instead of an object
token, but there has to be a way, right?
Check here:
http://cvs.sourceforge.net/viewcvs.py/open-beos/current/src/kits/interface/MenuBar.cpp?rev=1.3&view=markup
StealFocus() and RestoreFocus()
Thanks.
____________________________________________________________
Regala e regalati Libero ADSL: 3 mesi gratis e navighi veloce. 1.2 Mega di
musica, film, video e sport.
Abbonati subito senza costi di attivazione su http://www.libero.it
- Follow-Ups:
- [interfacekit] Re: Object token -> Object, restoring focus...
- From: Ingo Weinhold
Other related posts:
- » [interfacekit] Object token -> Object, restoring focus...
- » [interfacekit] Re: Object token -> Object, restoring focus...
- » [interfacekit] Re: Object token -> Object, restoring focus...
- » [interfacekit] Re: Object token -> Object, restoring focus...
- » [interfacekit] Re: Object token -> Object, restoring focus...
- [interfacekit] Re: Object token -> Object, restoring focus...
- From: Ingo Weinhold