wxSizeEvent for wxPalmTLW. wxScrollEvent for wxSlider.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2005-02-07 15:20:01 +00:00
parent 95b838bed2
commit 721a962699
4 changed files with 161 additions and 17 deletions

View File

@@ -20,7 +20,10 @@
class WXDLLEXPORT wxSlider : public wxSliderBase
{
public:
wxSlider();
wxSlider()
{
Init();
}
wxSlider(wxWindow *parent, wxWindowID id,
int value, int minValue, int maxValue,
@@ -30,6 +33,7 @@ public:
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxSliderNameStr)
{
Init();
Create(parent, id, value, minValue, maxValue, pos, size, style, validator, name);
}
@@ -53,7 +57,7 @@ public:
// For trackbars only
void SetTickFreq(int n, int pos);
int GetTickFreq() const { return GetPageSize(); }
int GetTickFreq() const;
void SetPageSize(int pageSize);
int GetPageSize() const;
void ClearSel();
@@ -72,10 +76,18 @@ public:
// send a notification event, return true if processed
bool SendUpdatedEvent();
bool SendScrollEvent(EventType* event);
protected:
virtual wxSize DoGetBestSize() const;
private:
void Init();
int m_oldPos;
int m_lineSize;
DECLARE_DYNAMIC_CLASS_NO_COPY(wxSlider)
};