Re: [Dclib-devel] DLIB C++ Library
Brought to you by:
davisking
From: Davis K. <da...@dl...> - 2010-09-16 00:31:53
|
The dlib GUI isn't quite as full featured as others like Qt are. So in particular, there isn't currently any way to tell a scroll bar to go to the bottom. There is also only one style of text box, although it does let you define your own. The interface you have to implement is defined here: http://dlib.net/dlib/gui_widgets/style_abstract.h.html#text_box_style and you can look at the default style here for a working example: header: http://dlib.net/dlib/gui_widgets/style.h.html#text_box_style_default <http://dlib.net/dlib/gui_widgets/style.h.html#text_box_style_default> body: http://dlib.net/dlib/gui_widgets/style.cpp.html#draw_text_box <http://dlib.net/dlib/gui_widgets/style.cpp.html#draw_text_box>I'm not sure what you mean by a resizable bool? All the examples I have are in the examples folder. There are 48 of them already, how many do you really need? :) If you are looking for a bigger example involving the GUI you should look at the bayes_net_gui_ex.cpp. It's moderately large and has a lot of interesting things going on in it. Cheers, Davis On Wed, Sep 15, 2010 at 7:59 AM, DaVieS <da...@im...> wrote: > Hi Davis. > > I'm writing you because I get stucked some GUI funcs. > > Could you please tell me an example for these: > > - How can I use and apply a style on text_box > - How can I handle a resizable bool on drawable_window > - How can I set text_box's scroll to be stay always bottom, so I want see > a last line. > > Thank You! > > BTW, > > Can you share me more examples, or applications' source what uisng dlib if > you have? > > Waiting for your reply, Regards! > |