Re: get textbox value in c++

YuLo <[email protected]> Mon, 31 Mar 2014 13:03:53 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.xpfe
Message-ID <[email protected]>
On Monday, March 31, 2014 12:58:33 PM UTC+4, Neil wrote:
> YuLo wrote:
> 
> 
> 
> >I tried to get value from <datepicker> element in C++ without success.
> 
> >May be you can offer me where can I find information about xul elements interfaces and their dependencies to make QI to needed interface.
> 
> >  
> 
> >
> 
> Use the following steps to find out which interfaces, if any, a given 
> 
> XUL element provides:
> 
> 
> 
>    1. Find the CSS for the element in xul.css and look for the
> 
>       -moz-binding property, in this case datetimepicker.xml#datepicker
> 
>    2. Open the binding file and search for the binding (the name is the
> 
>       part after the #, so datepicker in this case)
> 
>    3. In the binding, look for e.g. <implementation
> 
>       implements="nsIDOMXULControlElement">
> 
>    4. If you don't find an implementation in the binding, look for an
> 
>       extends attribute which refers to the parent binding
> 
> 
> 
> In this case the parent of datepicker is datetimepicker-base but that 
> 
> doesn't implement any interfaces either. The parent of 
> 
> datetimepicker-base is basecontrol which implements the control element 
> 
> interface. Unfortunately that interface only provides the tabindex and 
> 
> disabled attributes, so there's no way to get the value.
> 
> 
> 
> -- 
> 
> Warning: May contain traces of nuts.

Thank you Neil,
so, as far as I understand there is no way to know what user selected
in datepicker in the c++ program?
Is it really?