Re: get textbox value in c++

Neil <[email protected]> Mon, 31 Mar 2014 09:58:33 +0100
Newsgroups gmane.comp.mozilla.devel.xpfe
Message-ID <[email protected]>
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.