ALIASES += leftCurly="{"
ALIASES += rightCurly="}"
+# Sample documentation related aliases
# For indicating the a directory containing a sample
ALIASES += sampledir{1}="\verbatim Location: samples/\1\endverbatim"
-# For refering to a sample introduction in a class document or a overview
+# For refering to the corresponding sample in a class document or a overview
# Usually placed in the queue of @see
ALIASES += sample{1}="\ref page_samples_\1"
-# For generating a general description for a sample by associating it with a class
+# For generating a general description for a sample
+# \1 could be a class or an overview or a descriptive sentence
# Shall be replaced by manual written description soon
ALIASES += sampleabout{1}="This sample demonstrates \1."
# For indicating the necessary condition of a sample or a class
m_panel = new wxScrolledWindow( this, wxID_ANY );
m_panel->SetBackgroundColour( *wxLIGHT_GREY );
- // Keep this code to verify if mouse events work, they're required if
+ // Keep this code to verify if mouse events work, they're required if
// you're making a control like a combobox where the items are highlighted
// under the cursor, the m_panel is set focus in the Popup() function
m_panel->Connect(wxEVT_MOTION,
m_button = new wxButton(m_panel, Minimal_PopupButton, wxT("Press Me"));
m_spinCtrl = new wxSpinCtrl(m_panel, Minimal_PopupSpinctrl, wxT("Hello"));
- m_mouseText = new wxStaticText(m_panel, wxID_ANY,
+ m_mouseText = new wxStaticText(m_panel, wxID_ANY,
wxT("<- Test Mouse ->"));
wxBoxSizer *topSizer = new wxBoxSizer( wxVERTICAL );
wxColour colour(*wxLIGHT_GREY);
if (rect.Contains(event.GetPosition()))
- {
+ {
colour = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT);
- wxLogMessage( wxT("0x%lx SimpleTransientPopup::OnMouse pos(%d, %d)"), long(event.GetEventObject()), event.GetX(), event.GetY());
+ wxLogMessage( wxT("0x%lx SimpleTransientPopup::OnMouse pos(%d, %d)"),
+ long(event.GetEventObject()), event.GetX(), event.GetY());
}
if (colour != m_mouseText->GetBackgroundColour())
void SimpleTransientPopup::OnSpinCtrl(wxSpinEvent& event)
{
- wxLogMessage( wxT("0x%lx SimpleTransientPopup::OnSpinCtrl ID %d Value %d"), long(this), event.GetId(), event.GetInt());
+ wxLogMessage( wxT("0x%lx SimpleTransientPopup::OnSpinCtrl ID %d Value %d"),
+ long(this), event.GetId(), event.GetInt());
event.Skip();
}