[haiku-development] Re: Obtaining name of BViews

  • From: "Rene Gollent" <anevilyak@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 8 Jul 2008 18:32:56 -0500

On Tue, Jul 8, 2008 at 6:25 PM, James Kim <jkim202@xxxxxxxxxxxxxxxxx> wrote:
> Hi!
>
> I need to get names of BViews (including BButton, BTextControl, etc).
> Names would be same as those defined at initialization of BView objects.
> In C#, it is possible to extract the name of controls by substringing
> relevant information from the ToString() method. I have looked at BView
> header files and the BeBook, but I couldn't find anything similar.
>

BView names are in fact BHandler names, and the methods dealing with
those are inherited from there. The one you want is const char *Name()
const (see headers/os/app/Handler.h line 44).

Regards,

Rene



> Thanks.
>
>
> Regards,
>
> James Kim
>
>
>

Other related posts: