示例#1
0
        public BoxSizer AddFileRow(Panel page, Option option, FileRow outParam)
        {
            BoxSizer   row   = new BoxSizer(Orientation.wxHORIZONTAL);
            StaticText label = new StaticText(page, wxID_ANY, Globals.localize(option._descr));

            //row.Add(label);
            row.Add(label, 55, SizerFlag.wxALIGN_LEFT | SizerFlag.wxLEFT | SizerFlag.wxRIGHT | SizerFlag.wxTOP, 4);
            outParam._path       = new TextCtrl(page, wxID_ANY);
            outParam._path.Value = (option._sValue);
            //row.Add(outParam._path);
            row.Add(outParam._path, 75, SizerFlag.wxRIGHT | SizerFlag.wxGROW | SizerFlag.wxTOP, 4);
            outParam._button = new Button(page, wxID_ANY, wxPorting.T("..."));
            //row.Add(outParam._button);
            row.Add(outParam._button, 20, SizerFlag.wxRIGHT | SizerFlag.wxTOP, 4);
            outParam._option = option;
            return(row);
        }