]> git.saurik.com Git - wxWidgets.git/commitdiff
Help text for regions
authorRobin Dunn <robin@alldunn.com>
Tue, 13 Jun 2006 19:08:21 +0000 (19:08 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 13 Jun 2006 19:08:21 +0000 (19:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_cshelp.i
wxPython/src/_radio.i
wxPython/src/_window.i

index 6fc709d291a88b2f52d30b12246b60717682c754..f9f0bae2dd9a3c980cbec633f527fb4524f53a71 100644 (file)
@@ -255,6 +255,16 @@ help is associated with the window.", "");
         "Shows help for the given window. Uses GetHelp internally if
 applicable. Returns True if it was done, or False if no help was
 available for this window.", "");
+
+    DocDeclStr(
+        virtual bool , ShowHelpAtPoint(wxWindowBase *window,
+                                       const wxPoint& pt,
+                                       wxHelpEvent::Origin origin),
+        "Show help for the given window (uses window.GetHelpAtPoint()
+internally if applicable), return true if it was done or false if no
+help available for this window.", "");
+    
+
     
     DocDeclStr(
         void , AddHelp(wxWindow *window, const wxString& text),
index abd79bba1e6f5cdf8ee6a8d1250b5dc48793fc6d..d9da1d4890e93ed1a95b091a3facd97f2f77cfe0 100644 (file)
@@ -86,7 +86,14 @@ public:
     // get the individual items tooltip; returns NULL if none
     wxToolTip *GetItemToolTip(unsigned int item) const;
 
+    // set helptext for a particular item, pass an empty string to erase it
+    void SetItemHelpText(unsigned int n, const wxString& helpText);
+
+    // retrieve helptext for a particular item, empty string means no help text
+    wxString GetItemHelpText(unsigned int n) const;
     
+    virtual int GetItemFromPoint(const wxPoint& pt) const;
+
 //    bool IsValid(int n) const;  ** not public
         
     static wxVisualAttributes
index 628e4169457bf9464eb5ef5d949b33b7045ffaeb..3f57c17e6d4081c69c79cd51d2fac3aeb0405e06 100644 (file)
@@ -1776,6 +1776,16 @@ one.", "");
     
 
     DocDeclStr(
+        virtual wxString , GetHelpTextAtPoint(const wxPoint& pt,
+                                              wxHelpEvent::Origin origin) const,
+        "Get the help string associated with the given position in this window.
+
+Notice that pt may be invalid if event origin is keyboard or unknown
+and this method should return the global window help text then
+", "");
+    
+    
+   DocDeclStr(
         wxString , GetHelpText() const,
         "Gets the help text to be used as context-sensitive help for this
 window.  Note that the text is actually stored by the current