Course list http://www.c-jump.com/bcc/
In Lab 12 we made a list of choices for drawing shapes. In this exercise, we add a check box (Fl_Check_Button) to specify an optional "Filled" selection for circles and rectangles:
When "Line" shape is selected, the "Filled" check box becomes disabled (grayed out on the user screen.)
Make a copy of Lab 12 subfolder
c255labs\labs\c255_lab12_radio_btn
or download and unzip Lab_12_radio_btn.zip
Rename the new folder as c255_lab13_check_box.
Open solution file in Visual Studio and finish the usual steps to rename the project.
Start FLUID program and open project
c255labs\labs\c255_lab13_check_box\fluid_project\CFluidWindow.fl
Select Window win_app object in FLUID tree view. Use menu
New/Buttons/Check_button...
Verify that the properties/C++ class type is set to Toggle.
Name the widget in Properties/C++ as chk_filled
Save FLUID project and generate C++ code by
File/Write Code...
Open solution
c255labs\labs\c255_lab13_check_box\c255_lab13.sln
in Visual Studio.
Download the new versions of
Compile and test the program.
Use WinMerge to compare the old and the new versions of the files. What are the differences? Explain the implementation of functions
CMainWindow::show() CMainWindow::callback_check_button() CMainWindow::click_check_button() CMainWindow::click_radio_button()
This is a self-learning lab. There are no files to submit. Make sure to complete all required steps to build and test the project on your own home computer.