【发布时间】:2011-11-22 10:19:52
【问题描述】:
我基本上有一个带有收件箱和输入按钮的窗口。我怎样才能使窗口保持打开和绘制,直到用户输入收件箱并点击输入按钮。
Window w(Point(100,100),200,200, "Category Sales");
Button enter(Point(25,25),110,25,"Enter",enter);
In_box cat_in(Point(75,75),100,20,"Category:");
w.attach(cat_in);
w.attach(enter);
Fl::wait();
if(ent==true)
{
category = cat_in.get_string();
reference_to<My_button>(addr).receiver->do_categories();
}
有没有比输入按钮更好的方法来做到这一点?
【问题讨论】:
标签: c++ user-interface fltk