At this moment, I have a target to write a simple text editor using C++. Due to the fact that I need my textbox to be inside of my window, so when I change my window size, it has to change it size too. Here's my code:
int main(int argc, char **argv) {
{ window_main = new Fl_Double_Window(624, 644, "Text editor");
window_main->labelfont(1);
window_main->align(Fl_Align(FL_ALIGN_CLIP|FL_ALIGN_INSIDE));
{ File = new Fl_Menu_Button(0, 0, 69, 20, "File");
File->labelfont(13);
File->menu(menu_File);
} // Fl_Menu_Button* File
{ File_text = new Fl_Text_Editor(5, 25, 0, 615);
Fl_Group::current()->resizable(File_text);
} // Fl_Text_Editor* File_text
window_main->size_range(0, 0, 1280, 660);
window_main->end();
} // Fl_Double_Window* window_main
File_text->resize(5, 25, Fl::w - 5, Fl::h - 25);
window_main->show(argc, argv);
return Fl::run();
}
But I didn't find the function in this class for resising Fl_Text_Editor class.
Could you help me, please?