void wxAdvancedListCtrl::OnCreateControl(wxWindowCreateEvent &event) { ItemShade = wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE); BgColor = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW); // Set up the image list. AddImageSmall(wxNullImage); }
void wxAdvancedListCtrl::OnCreateControl(wxWindowCreateEvent &event) { SortOrder = 0; SortCol = 0; ItemShade.Set(wxUint8(245), wxUint8(245), wxUint8(245)); // Set up the image list. AddImageSmall(NULL); }
void LstOdaServerList::SetupServerListColumns() { wxFileConfig ConfigInfo; wxInt32 WidthName, WidthPing, WidthPlayers, WidthWads, WidthMap, WidthType; wxInt32 WidthIwad, WidthAddress; DeleteAllColumns(); // Read in the column widths ConfigInfo.Read(wxT("ServerListWidthName"), &WidthName, 150); ConfigInfo.Read(wxT("ServerListWidthPing"), &WidthPing, 60); ConfigInfo.Read(wxT("ServerListWidthPlayers"), &WidthPlayers, 80); ConfigInfo.Read(wxT("ServerListWidthWads"), &WidthWads, 150); ConfigInfo.Read(wxT("ServerListWidthMap"), &WidthMap, 60); ConfigInfo.Read(wxT("ServerListWidthType"), &WidthType, 80); ConfigInfo.Read(wxT("ServerListWidthIwad"), &WidthIwad, 100); ConfigInfo.Read(wxT("ServerListWidthAddress"), &WidthAddress, 130); // set up the list columns InsertColumn(serverlist_field_name, wxT("Server name"), wxLIST_FORMAT_LEFT, WidthName); InsertColumn(serverlist_field_ping, wxT("Ping"), wxLIST_FORMAT_LEFT, WidthPing); InsertColumn(serverlist_field_players, wxT("Players"), wxLIST_FORMAT_LEFT, WidthPlayers); InsertColumn(serverlist_field_wads, wxT("WADs"), wxLIST_FORMAT_LEFT, WidthWads); InsertColumn(serverlist_field_map, wxT("Map"), wxLIST_FORMAT_LEFT, WidthMap); InsertColumn(serverlist_field_type, wxT("Type"), wxLIST_FORMAT_LEFT, WidthType); InsertColumn(serverlist_field_iwad, wxT("Game IWAD"), wxLIST_FORMAT_LEFT, WidthIwad); InsertColumn(serverlist_field_address, wxT("Address : Port"), wxLIST_FORMAT_LEFT, WidthAddress); // Passworded server icon ImageList_Padlock = AddImageSmall(padlock_xpm); ImageList_PingGreen = AddImageSmall(wxXmlResource::Get()->LoadBitmap(wxT("bullet_green")).ConvertToImage()); ImageList_PingOrange = AddImageSmall(wxXmlResource::Get()->LoadBitmap(wxT("bullet_orange")).ConvertToImage()); ImageList_PingRed = AddImageSmall(wxXmlResource::Get()->LoadBitmap(wxT("bullet_red")).ConvertToImage()); ImageList_PingGray = AddImageSmall(wxXmlResource::Get()->LoadBitmap(wxT("bullet_gray")).ConvertToImage()); }