Bonjour,
j'ai voulu ajouter un textControl a mon dialogue mais j'obtiens (quelle que soit la taille que je veux assigner a mon controle), un textControl qui prend toute la taille du dialogue.
Voici le code :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 
 
 
void wxSecFrame::Configuration(wxCommandEvent& WXUNUSED(event))
{
  this->Disable();
  wxSecConfig *config = new wxSecConfig(this, -1,L"Select Files", wxDefaultPosition, wxDefaultSize,wxDEFAULT_DIALOG_STYLE,L"config");
}  
 
wxSecConfig::wxSecConfig(wxWindow* parent, wxWindowID id,\
				 const wxString& title, const wxPoint& pos,\
				 const wxSize& size,long style,\
				 const wxString& name)
  : wxDialog(parent,id,title,pos,size,style, name)
{
  file = new wxTextCtrl(this, -1, L"", wxPoint(10, 10),wxSize(10,10), 0, wxDefaultValidator, L"file");  
  Show();
}