Chinaunix首页 | 论坛 | 博客
  • 博客访问: 8294516
  • 博文数量: 1413
  • 博客积分: 11128
  • 博客等级: 上将
  • 技术积分: 14685
  • 用 户 组: 普通用户
  • 注册时间: 2006-03-13 10:03
个人简介

follow my heart...

文章分类

全部博文(1413)

文章存档

2013年(1)

2012年(5)

2011年(45)

2010年(176)

2009年(148)

2008年(190)

2007年(293)

2006年(555)

分类: C/C++

2006-09-12 13:37:12


[点评:从这些截图,我们可以窥FLTK之一斑。它提供了非常多的控件,而且他们是跨平台的。还包含菜单及绘图,对于基本的图形界面开发,他是完全可以满足的.]

FLTK Widgets

FLTK includes all of the usual widgets to develop your applications, and new widgets can be created easily through C++ subclassing. All widgets support keyboard shortcuts and can be controlled both via the keyboard or mouse.

The class supports push, check (), round (), and "light" () button styles; all styles can operate in momentary (press and release), toggle (press on, press off), or radio (press one of many) modes, so it is possible to create almost any kind of button from a single widget.

The , , and widgets provide simple to complex text input and output facilities. The Fl_Text_Display widget is based on a C++ version of the software's extensible text editor API.

The class provides a variety of numeric input controls including scrollbars () and sliders ().

The class provides several menu-based controls including menubars () and combo boxes ().

The class is the basis for list controls. The widget shown at right lists lines of plain text. Other widgets list files, widgets, and so forth.

User interfaces can be organized using scroll areas (), tabs (), tiles (), and wizards ().

FLTK also provides standard dialogs for alerts, button choosers, color choosers, file choosers, help browsers, messages, passwords, and text input.

Finally, FLTK 1.1.x offers two appearance schemes: "standard" and "plastic". FLTK 2.0 will extend this to include platform schemes as well as user-defined schemes. Colors and fonts automatically adjust to the current user preferences.

   


FLTK Widgets w/Standard Scheme


FLTK Widgets w/Plasic Scheme

Fast Light User-Interface Designer (FLUID)

FLUID allows you to develop complex applications quickly. You can build complete applications within FLUID, drawing your user-interface and creating functions, classes, and variables as needed.

FLUID creates C++ source and header files that can be compiled by themselves or included as part of a larger project. In fact, several of the FLTK dialog widgets were created and are maintained using FLUID.

The main FLUID window (at right) shows the widget browser along with any classes, functions, and variables you have. You can create simple user-interfaces using a function and global widget variables or define C++ classes for a fully encapsulated user-interface.


FLUID Widget Bin

   


FLUID Window for Sample Widgets Above

New items in the widget browser are added by via pop-up menus or the widget bin (above) and can be placed in windows by clicking and dragging. Each widget's attributes are controlled through the widget attribute panel (right). Class, function, and variable definitions are created using simple dialogs like the one below:


FLUID Function/Method Dialog

The user-interface was done completely with FLUID and is pictured below.

   


FLUID Widget Attribute Panel


FLUID w/flPhoto Project

阅读(4465) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~