📄 listctrl_mac.cpp
字号:
/////////////////////////////////////////////////////////////////////////////// Name: src/mac/listctrl_mac.cpp// Purpose: wxListCtrl// Author: Julian Smart// Modified by: Agron Selimaj// Created: 04/01/98// RCS-ID: $Id: listctrl_mac.cpp,v 1.47 2006/12/08 15:05:03 SC Exp $// Copyright: (c) Julian Smart// Licence: wxWindows licence/////////////////////////////////////////////////////////////////////////////// ============================================================================// declarations// ============================================================================// ----------------------------------------------------------------------------// headers// ----------------------------------------------------------------------------// For compilers that support precompilation, includes "wx.h".#include "wx/wxprec.h"#ifdef __BORLANDC__ #pragma hdrstop#endif#if wxUSE_LISTCTRL#include "wx/listctrl.h"#ifndef WX_PRECOMP #include "wx/intl.h"#endif#include "wx/mac/uma.h"#include "wx/imaglist.h"#include "wx/sysopt.h"#include "wx/timer.h"#define wxMAC_ALWAYS_USE_GENERIC_LISTCTRL wxT("mac.listctrl.always_use_generic")#if wxUSE_EXTENDED_RTTIWX_DEFINE_FLAGS( wxListCtrlStyle )wxBEGIN_FLAGS( wxListCtrlStyle ) // new style border flags, we put them first to // use them for streaming out wxFLAGS_MEMBER(wxBORDER_SIMPLE) wxFLAGS_MEMBER(wxBORDER_SUNKEN) wxFLAGS_MEMBER(wxBORDER_DOUBLE) wxFLAGS_MEMBER(wxBORDER_RAISED) wxFLAGS_MEMBER(wxBORDER_STATIC) wxFLAGS_MEMBER(wxBORDER_NONE) // old style border flags wxFLAGS_MEMBER(wxSIMPLE_BORDER) wxFLAGS_MEMBER(wxSUNKEN_BORDER) wxFLAGS_MEMBER(wxDOUBLE_BORDER) wxFLAGS_MEMBER(wxRAISED_BORDER) wxFLAGS_MEMBER(wxSTATIC_BORDER) wxFLAGS_MEMBER(wxBORDER) // standard window styles wxFLAGS_MEMBER(wxTAB_TRAVERSAL) wxFLAGS_MEMBER(wxCLIP_CHILDREN) wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW) wxFLAGS_MEMBER(wxWANTS_CHARS) wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE) wxFLAGS_MEMBER(wxALWAYS_SHOW_SB ) wxFLAGS_MEMBER(wxVSCROLL) wxFLAGS_MEMBER(wxHSCROLL) wxFLAGS_MEMBER(wxLC_LIST) wxFLAGS_MEMBER(wxLC_REPORT) wxFLAGS_MEMBER(wxLC_ICON) wxFLAGS_MEMBER(wxLC_SMALL_ICON) wxFLAGS_MEMBER(wxLC_ALIGN_TOP) wxFLAGS_MEMBER(wxLC_ALIGN_LEFT) wxFLAGS_MEMBER(wxLC_AUTOARRANGE) wxFLAGS_MEMBER(wxLC_USER_TEXT) wxFLAGS_MEMBER(wxLC_EDIT_LABELS) wxFLAGS_MEMBER(wxLC_NO_HEADER) wxFLAGS_MEMBER(wxLC_SINGLE_SEL) wxFLAGS_MEMBER(wxLC_SORT_ASCENDING) wxFLAGS_MEMBER(wxLC_SORT_DESCENDING) wxFLAGS_MEMBER(wxLC_VIRTUAL)wxEND_FLAGS( wxListCtrlStyle )IMPLEMENT_DYNAMIC_CLASS_XTI(wxListCtrl, wxControl,"wx/listctrl.h")wxBEGIN_PROPERTIES_TABLE(wxListCtrl) wxEVENT_PROPERTY( TextUpdated , wxEVT_COMMAND_TEXT_UPDATED , wxCommandEvent ) wxPROPERTY_FLAGS( WindowStyle , wxListCtrlStyle , long , SetWindowStyleFlag , GetWindowStyleFlag , EMPTY_MACROVALUE , 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // stylewxEND_PROPERTIES_TABLE()wxBEGIN_HANDLERS_TABLE(wxListCtrl)wxEND_HANDLERS_TABLE()wxCONSTRUCTOR_5( wxListCtrl , wxWindow* , Parent , wxWindowID , Id , wxPoint , Position , wxSize , Size , long , WindowStyle )/* TODO : Expose more information of a list's layout etc. via appropriate objects (
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -