Get/SetValue() and other improvements to the native PalmOS controls.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -75,9 +75,17 @@ public:
|
|||||||
WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
|
WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
// regardless how deeply we are in wxWidgets hierarchy always get correct form
|
||||||
|
FormType* GetParentForm() const;
|
||||||
|
|
||||||
// choose the default border for this window
|
// choose the default border for this window
|
||||||
virtual wxBorder GetDefaultBorder() const;
|
virtual wxBorder GetDefaultBorder() const;
|
||||||
|
|
||||||
|
// on/off-like controls
|
||||||
|
void SetBoolValue(bool value);
|
||||||
|
bool GetBoolValue() const;
|
||||||
|
void SetIntValue(int val);
|
||||||
|
|
||||||
// return default best size (doesn't really make any sense, override this)
|
// return default best size (doesn't really make any sense, override this)
|
||||||
virtual wxSize DoGetBestSize() const;
|
virtual wxSize DoGetBestSize() const;
|
||||||
|
|
||||||
@@ -108,6 +116,15 @@ protected:
|
|||||||
ControlType *m_control;
|
ControlType *m_control;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
// Label stores label in case of wxButton, wxCheckBox, wxToggleButton etc.
|
||||||
|
// We must ensure that it persists for as long as it is being displayed
|
||||||
|
// (that is, for as long as the control is displayed or until we call
|
||||||
|
// CtlSetLabel() with a new string), and we must free the string after
|
||||||
|
// it is no longer in use (typically after the form containing the
|
||||||
|
// control is freed).
|
||||||
|
wxString m_label;
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxControl)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxControl)
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
};
|
};
|
||||||
|
@@ -252,11 +252,6 @@ public:
|
|||||||
virtual bool PalmOnScroll(int orientation, WXWORD nSBCode,
|
virtual bool PalmOnScroll(int orientation, WXWORD nSBCode,
|
||||||
WXWORD pos, WXHWND control);
|
WXWORD pos, WXHWND control);
|
||||||
|
|
||||||
// child control notifications
|
|
||||||
#ifdef __WIN95__
|
|
||||||
virtual bool PalmOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result);
|
|
||||||
#endif // __WIN95__
|
|
||||||
|
|
||||||
// owner-drawn controls need to process these messages
|
// owner-drawn controls need to process these messages
|
||||||
virtual bool PalmOnDrawItem(int id, WXDRAWITEMSTRUCT *item);
|
virtual bool PalmOnDrawItem(int id, WXDRAWITEMSTRUCT *item);
|
||||||
virtual bool PalmOnMeasureItem(int id, WXMEASUREITEMSTRUCT *item);
|
virtual bool PalmOnMeasureItem(int id, WXMEASUREITEMSTRUCT *item);
|
||||||
@@ -431,10 +426,6 @@ private:
|
|||||||
bool HandleMoving(wxRect& rect);
|
bool HandleMoving(wxRect& rect);
|
||||||
bool HandleJoystickEvent(WXUINT msg, int x, int y, WXUINT flags);
|
bool HandleJoystickEvent(WXUINT msg, int x, int y, WXUINT flags);
|
||||||
|
|
||||||
#ifdef __WIN95__
|
|
||||||
bool HandleNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result);
|
|
||||||
#endif // __WIN95__
|
|
||||||
|
|
||||||
// list of disabled children before last call to our Disable()
|
// list of disabled children before last call to our Disable()
|
||||||
wxWindowList *m_childrenDisabled;
|
wxWindowList *m_childrenDisabled;
|
||||||
|
|
||||||
|
@@ -85,7 +85,9 @@
|
|||||||
// static data
|
// static data
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
#if defined(__WXPM__)
|
#if defined(__WXPALMOS__)
|
||||||
|
int wxWindowBase::ms_lastControlId = 65535;
|
||||||
|
#elif defined(__WXPM__)
|
||||||
int wxWindowBase::ms_lastControlId = 2000;
|
int wxWindowBase::ms_lastControlId = 2000;
|
||||||
#else
|
#else
|
||||||
int wxWindowBase::ms_lastControlId = -200;
|
int wxWindowBase::ms_lastControlId = -200;
|
||||||
@@ -537,7 +539,7 @@ static bool wxHasRealChildren(const wxWindowBase* win)
|
|||||||
return (realChildCount > 0);
|
return (realChildCount > 0);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void wxWindowBase::InvalidateBestSize()
|
void wxWindowBase::InvalidateBestSize()
|
||||||
{
|
{
|
||||||
m_bestSizeCache = wxDefaultSize;
|
m_bestSizeCache = wxDefaultSize;
|
||||||
@@ -2693,7 +2695,7 @@ wxAccStatus wxWindowAccessible::GetName(int childId, wxString* name)
|
|||||||
#endif
|
#endif
|
||||||
title = GetWindow()->GetName();
|
title = GetWindow()->GetName();
|
||||||
|
|
||||||
if (!title.IsEmpty())
|
if (!title.empty())
|
||||||
{
|
{
|
||||||
*name = title;
|
*name = title;
|
||||||
return wxACC_OK;
|
return wxACC_OK;
|
||||||
@@ -2799,7 +2801,7 @@ wxAccStatus wxWindowAccessible::GetDescription(int WXUNUSED(childId), wxString*
|
|||||||
return wxACC_FAIL;
|
return wxACC_FAIL;
|
||||||
|
|
||||||
wxString ht(GetWindow()->GetHelpText());
|
wxString ht(GetWindow()->GetHelpText());
|
||||||
if (!ht.IsEmpty())
|
if (!ht.empty())
|
||||||
{
|
{
|
||||||
*description = ht;
|
*description = ht;
|
||||||
return wxACC_OK;
|
return wxACC_OK;
|
||||||
@@ -2815,7 +2817,7 @@ wxAccStatus wxWindowAccessible::GetHelpText(int WXUNUSED(childId), wxString* hel
|
|||||||
return wxACC_FAIL;
|
return wxACC_FAIL;
|
||||||
|
|
||||||
wxString ht(GetWindow()->GetHelpText());
|
wxString ht(GetWindow()->GetHelpText());
|
||||||
if (!ht.IsEmpty())
|
if (!ht.empty())
|
||||||
{
|
{
|
||||||
*helpText = ht;
|
*helpText = ht;
|
||||||
return wxACC_OK;
|
return wxACC_OK;
|
||||||
|
@@ -151,6 +151,10 @@ wxSize wxButtonBase::GetDefaultSize()
|
|||||||
|
|
||||||
void wxButton::SetDefault()
|
void wxButton::SetDefault()
|
||||||
{
|
{
|
||||||
|
FormType* form = GetParentForm();
|
||||||
|
if(form==NULL)
|
||||||
|
return;
|
||||||
|
FrmSetDefaultButtonID(form,GetId());
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxButton::SetTmpDefault()
|
void wxButton::SetTmpDefault()
|
||||||
|
@@ -117,11 +117,12 @@ wxSize wxCheckBox::DoGetBestSize() const
|
|||||||
|
|
||||||
void wxCheckBox::SetValue(bool val)
|
void wxCheckBox::SetValue(bool val)
|
||||||
{
|
{
|
||||||
|
SetBoolValue(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxCheckBox::GetValue() const
|
bool wxCheckBox::GetValue() const
|
||||||
{
|
{
|
||||||
return false;
|
return GetBoolValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxCheckBox::Command(wxCommandEvent& event)
|
void wxCheckBox::Command(wxCommandEvent& event)
|
||||||
|
@@ -96,27 +96,23 @@ bool wxControl::PalmCreateControl(ControlStyleType style,
|
|||||||
const wxPoint& pos,
|
const wxPoint& pos,
|
||||||
const wxSize& size)
|
const wxSize& size)
|
||||||
{
|
{
|
||||||
wxWindow* parentTLW = parent;
|
|
||||||
while ( parentTLW && !parentTLW->IsTopLevel() )
|
|
||||||
{
|
|
||||||
parentTLW = parentTLW->GetParent();
|
|
||||||
}
|
|
||||||
wxTopLevelWindowPalm* tlw = wxDynamicCast(parentTLW, wxTopLevelWindowPalm);
|
|
||||||
if(!tlw)
|
|
||||||
return false;
|
|
||||||
FormType* form = tlw->GetForm();
|
|
||||||
|
|
||||||
SetParent(parent);
|
SetParent(parent);
|
||||||
|
SetId( id == wxID_ANY ? NewControlId() : id );
|
||||||
|
FormType* form = GetParentForm();
|
||||||
|
if(form==NULL)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
m_label = label;
|
||||||
|
|
||||||
m_control = CtlNewControl(
|
m_control = CtlNewControl(
|
||||||
(void **)&form,
|
(void **)&form,
|
||||||
id,
|
GetId(),
|
||||||
style,
|
style,
|
||||||
label.c_str(),
|
m_label.c_str(),
|
||||||
pos.x,
|
( pos.x == wxDefaultCoord ) ? winUndefConstraint : pos.x,
|
||||||
pos.y,
|
( pos.y == wxDefaultCoord ) ? winUndefConstraint : pos.y,
|
||||||
size.x,
|
( size.x == wxDefaultCoord ) ? winUndefConstraint : size.x,
|
||||||
size.y,
|
( size.y == wxDefaultCoord ) ? winUndefConstraint : size.y,
|
||||||
boldFont,
|
boldFont,
|
||||||
0,
|
0,
|
||||||
false
|
false
|
||||||
@@ -133,6 +129,19 @@ bool wxControl::PalmCreateControl(ControlStyleType style,
|
|||||||
// various accessors
|
// various accessors
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
FormType* wxControl::GetParentForm() const
|
||||||
|
{
|
||||||
|
wxWindow* parentTLW = GetParent();
|
||||||
|
while ( parentTLW && !parentTLW->IsTopLevel() )
|
||||||
|
{
|
||||||
|
parentTLW = parentTLW->GetParent();
|
||||||
|
}
|
||||||
|
wxTopLevelWindowPalm* tlw = wxDynamicCast(parentTLW, wxTopLevelWindowPalm);
|
||||||
|
if(!tlw)
|
||||||
|
return NULL;
|
||||||
|
return tlw->GetForm();
|
||||||
|
}
|
||||||
|
|
||||||
wxBorder wxControl::GetDefaultBorder() const
|
wxBorder wxControl::GetDefaultBorder() const
|
||||||
{
|
{
|
||||||
// we want to automatically give controls a sunken style (confusingly,
|
// we want to automatically give controls a sunken style (confusingly,
|
||||||
@@ -141,6 +150,33 @@ wxBorder wxControl::GetDefaultBorder() const
|
|||||||
return wxBORDER_SUNKEN;
|
return wxBORDER_SUNKEN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxControl::SetIntValue(int val)
|
||||||
|
{
|
||||||
|
FormType* form = GetParentForm();
|
||||||
|
if(form==NULL)
|
||||||
|
return;
|
||||||
|
uint16_t index = FrmGetObjectIndex(form, GetId());
|
||||||
|
if(index==frmInvalidObjectId)
|
||||||
|
return;
|
||||||
|
FrmSetControlValue(form, index, val);
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxControl::SetBoolValue(bool val)
|
||||||
|
{
|
||||||
|
SetIntValue(val?1:0);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool wxControl::GetBoolValue() const
|
||||||
|
{
|
||||||
|
FormType* form = GetParentForm();
|
||||||
|
if(form==NULL)
|
||||||
|
return false;
|
||||||
|
uint16_t index = FrmGetObjectIndex(form, GetId());
|
||||||
|
if(index==frmInvalidObjectId)
|
||||||
|
return false;
|
||||||
|
return ( FrmGetControlValue(form, index) == 1 );
|
||||||
|
}
|
||||||
|
|
||||||
wxSize wxControl::DoGetBestSize() const
|
wxSize wxControl::DoGetBestSize() const
|
||||||
{
|
{
|
||||||
return wxSize(16, 16);
|
return wxSize(16, 16);
|
||||||
@@ -170,10 +206,16 @@ bool wxControl::IsShown() const
|
|||||||
|
|
||||||
bool wxControl::Show( bool show )
|
bool wxControl::Show( bool show )
|
||||||
{
|
{
|
||||||
|
FormType* form = GetParentForm();
|
||||||
|
if(form==NULL)
|
||||||
|
return false;
|
||||||
|
uint16_t index = FrmGetObjectIndex(form,GetId());
|
||||||
|
if(index==frmInvalidObjectId)
|
||||||
|
return false;
|
||||||
if(show)
|
if(show)
|
||||||
CtlShowControl(m_control);
|
FrmShowObject(form,index);
|
||||||
else
|
else
|
||||||
CtlHideControl(m_control);
|
FrmHideObject(form,index);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -184,7 +226,10 @@ void wxControl::SetLabel(const wxString& label)
|
|||||||
( wxDynamicCast(this,wxCheckBox) != NULL ) ||
|
( wxDynamicCast(this,wxCheckBox) != NULL ) ||
|
||||||
( wxDynamicCast(this,wxToggleButton) != NULL ) )
|
( wxDynamicCast(this,wxToggleButton) != NULL ) )
|
||||||
{
|
{
|
||||||
CtlSetLabel(m_control,label);
|
m_label = label;
|
||||||
|
// TODO: as manual states, it crashes here
|
||||||
|
// needs own manipulation on used string pointers
|
||||||
|
// CtlSetLabel(m_control,m_label);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -195,7 +240,7 @@ wxString wxControl::GetLabel()
|
|||||||
wxDynamicCast(this,wxCheckBox) ||
|
wxDynamicCast(this,wxCheckBox) ||
|
||||||
wxDynamicCast(this,wxToggleButton) )
|
wxDynamicCast(this,wxToggleButton) )
|
||||||
{
|
{
|
||||||
return CtlGetLabel(m_control);
|
return m_label;
|
||||||
}
|
}
|
||||||
|
|
||||||
return wxEmptyString;
|
return wxEmptyString;
|
||||||
|
@@ -109,21 +109,15 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id,
|
|||||||
const wxValidator& validator,
|
const wxValidator& validator,
|
||||||
const wxString& name)
|
const wxString& name)
|
||||||
{
|
{
|
||||||
wxWindow* parentTLW = GetParent();
|
|
||||||
while ( parentTLW && !parentTLW->IsTopLevel() )
|
|
||||||
{
|
|
||||||
parentTLW = parentTLW->GetParent();
|
|
||||||
}
|
|
||||||
wxTopLevelWindowPalm* tlw = wxDynamicCast(parentTLW, wxTopLevelWindowPalm);
|
|
||||||
if(!tlw)
|
|
||||||
return false;
|
|
||||||
FormType* form = tlw->GetForm();
|
|
||||||
|
|
||||||
SetParent(parent);
|
SetParent(parent);
|
||||||
|
SetId( id == wxID_ANY ? NewControlId() : id );
|
||||||
|
FormType* form = GetParentForm();
|
||||||
|
if(form==NULL)
|
||||||
|
return false;
|
||||||
|
|
||||||
SliderControlType *slider = CtlNewSliderControl (
|
SliderControlType *slider = CtlNewSliderControl (
|
||||||
(void **)&form,
|
(void **)&form,
|
||||||
id,
|
GetId(),
|
||||||
feedbackSliderCtl,
|
feedbackSliderCtl,
|
||||||
NULL,
|
NULL,
|
||||||
0,
|
0,
|
||||||
@@ -138,9 +132,7 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id,
|
|||||||
value
|
value
|
||||||
);
|
);
|
||||||
|
|
||||||
m_control = (ControlType*) slider;
|
if(slider==NULL)
|
||||||
|
|
||||||
if(m_control==NULL)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
Show();
|
Show();
|
||||||
@@ -181,6 +173,7 @@ int wxSlider::GetValue() const
|
|||||||
|
|
||||||
void wxSlider::SetValue(int value)
|
void wxSlider::SetValue(int value)
|
||||||
{
|
{
|
||||||
|
SetIntValue(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxSlider::DoGetSize(int *width, int *height) const
|
void wxSlider::DoGetSize(int *width, int *height) const
|
||||||
|
@@ -63,11 +63,10 @@ bool wxStatusBarPalm::Create(wxWindow *parent,
|
|||||||
|
|
||||||
SetName(name);
|
SetName(name);
|
||||||
SetParent(parent);
|
SetParent(parent);
|
||||||
|
SetId( id == wxID_ANY ? NewControlId() : id );
|
||||||
|
|
||||||
parent->AddChild(this);
|
parent->AddChild(this);
|
||||||
|
|
||||||
m_windowId = id == wxID_ANY ? NewControlId() : id;
|
|
||||||
|
|
||||||
SetFieldsCount(1);
|
SetFieldsCount(1);
|
||||||
SubclassWin(m_hWnd);
|
SubclassWin(m_hWnd);
|
||||||
|
|
||||||
|
@@ -76,11 +76,12 @@ wxSize wxToggleButton::DoGetBestSize() const
|
|||||||
|
|
||||||
void wxToggleButton::SetValue(bool val)
|
void wxToggleButton::SetValue(bool val)
|
||||||
{
|
{
|
||||||
|
SetBoolValue(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxToggleButton::GetValue() const
|
bool wxToggleButton::GetValue() const
|
||||||
{
|
{
|
||||||
return false;
|
return GetBoolValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxToggleButton::Command(wxCommandEvent & event)
|
void wxToggleButton::Command(wxCommandEvent & event)
|
||||||
|
@@ -98,12 +98,14 @@ bool wxTopLevelWindowPalm::Create(wxWindow *parent,
|
|||||||
if ( parent )
|
if ( parent )
|
||||||
parent->AddChild(this);
|
parent->AddChild(this);
|
||||||
|
|
||||||
m_windowId = id == wxID_ANY ? NewControlId() : id;
|
SetId( id == wxID_ANY ? NewControlId() : id );
|
||||||
|
|
||||||
WinConstraintsType constraints;
|
WinConstraintsType constraints;
|
||||||
memset(&constraints, 0, sizeof(WinConstraintsType));
|
memset(&constraints, 0, sizeof(WinConstraintsType));
|
||||||
|
// position
|
||||||
constraints.x_pos = ( pos.x == wxDefaultCoord ) ? winUndefConstraint : pos.x;
|
constraints.x_pos = ( pos.x == wxDefaultCoord ) ? winUndefConstraint : pos.x;
|
||||||
constraints.y_pos = ( pos.y == wxDefaultCoord ) ? winUndefConstraint : pos.y;
|
constraints.y_pos = ( pos.y == wxDefaultCoord ) ? winUndefConstraint : pos.y;
|
||||||
|
// size
|
||||||
constraints.x_min = winUndefConstraint;
|
constraints.x_min = winUndefConstraint;
|
||||||
constraints.x_max = winMaxConstraint;
|
constraints.x_max = winMaxConstraint;
|
||||||
constraints.x_pref = ( size.x == wxDefaultCoord ) ? winUndefConstraint : size.x;
|
constraints.x_pref = ( size.x == wxDefaultCoord ) ? winUndefConstraint : size.x;
|
||||||
@@ -112,7 +114,7 @@ bool wxTopLevelWindowPalm::Create(wxWindow *parent,
|
|||||||
constraints.y_pref = ( size.y == wxDefaultCoord ) ? winUndefConstraint : size.y;
|
constraints.y_pref = ( size.y == wxDefaultCoord ) ? winUndefConstraint : size.y;
|
||||||
|
|
||||||
FrameForm = FrmNewFormWithConstraints(
|
FrameForm = FrmNewFormWithConstraints(
|
||||||
m_windowId,
|
GetId(),
|
||||||
title.c_str(),
|
title.c_str(),
|
||||||
winFlagBackBuffer,
|
winFlagBackBuffer,
|
||||||
&constraints,
|
&constraints,
|
||||||
|
@@ -2,10 +2,10 @@
|
|||||||
// Name: src/palmos/windows.cpp
|
// Name: src/palmos/windows.cpp
|
||||||
// Purpose: wxWindow
|
// Purpose: wxWindow
|
||||||
// Author: William Osborne - minimal working wxPalmOS port
|
// Author: William Osborne - minimal working wxPalmOS port
|
||||||
// Modified by:
|
// Modified by: Wlodzimierz ABX Skiba - more than minimal functionality
|
||||||
// Created: 10/13/04
|
// Created: 10/13/04
|
||||||
// RCS-ID: $Id$
|
// RCS-ID: $Id$
|
||||||
// Copyright: (c) William Osborne
|
// Copyright: (c) William Osborne, Wlodzimierz Skiba
|
||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
@@ -83,10 +83,7 @@
|
|||||||
#include "wx/textctrl.h"
|
#include "wx/textctrl.h"
|
||||||
#include "wx/notebook.h"
|
#include "wx/notebook.h"
|
||||||
#include "wx/listctrl.h"
|
#include "wx/listctrl.h"
|
||||||
|
#include "wx/window.h"
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include "wx/palmos/window.h"
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// global variables
|
// global variables
|
||||||
@@ -96,12 +93,6 @@
|
|||||||
wxMenu *wxCurrentPopupMenu = NULL;
|
wxMenu *wxCurrentPopupMenu = NULL;
|
||||||
#endif // wxUSE_MENUS_NATIVE
|
#endif // wxUSE_MENUS_NATIVE
|
||||||
|
|
||||||
#ifdef __WXWINCE__
|
|
||||||
extern wxChar *wxCanvasClassName;
|
|
||||||
#else
|
|
||||||
extern const wxChar *wxCanvasClassName;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// true if we had already created the std colour map, used by
|
// true if we had already created the std colour map, used by
|
||||||
// wxGetStdColourMap() and wxWindow::OnSysColourChanged() (FIXME-MT)
|
// wxGetStdColourMap() and wxWindow::OnSysColourChanged() (FIXME-MT)
|
||||||
static bool gs_hasStdCmap = false;
|
static bool gs_hasStdCmap = false;
|
||||||
@@ -706,37 +697,6 @@ bool wxWindowPalm::PalmCreate(const wxChar *wclass,
|
|||||||
// Palm message handlers
|
// Palm message handlers
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
|
||||||
// WM_NOTIFY
|
|
||||||
// ---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifdef __WIN95__
|
|
||||||
|
|
||||||
bool wxWindowPalm::HandleNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
#if wxUSE_TOOLTIPS
|
|
||||||
|
|
||||||
bool wxWindowPalm::HandleTooltipNotify(WXUINT code,
|
|
||||||
WXLPARAM lParam,
|
|
||||||
const wxString& ttip)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // wxUSE_TOOLTIPS
|
|
||||||
|
|
||||||
bool wxWindowPalm::PalmOnNotify(int WXUNUSED(idCtrl),
|
|
||||||
WXLPARAM lParam,
|
|
||||||
WXLPARAM* WXUNUSED(result))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // __WIN95__
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// end session messages
|
// end session messages
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user