[[Property:title|Bmpview]] [[Property:weight|-15]] [[Property:uuid|c3df2d26-d913-e298-c7bc-929451617903]] [[Image:bmpview|bmpview]]

==Compiling== To compile the example: * Launch EiffelStudio. * Click '''Add project''' * Browse to ''$ISE_EIFFEL\examples\wel\bmpview\''. * Choose ''bmpview.ecf'' * Choose the location where the project will be compiled, by default the same directory containing the configuration file. * Click '''OK'''. ==Running== After launching the program, a window will be displayed as illustrated above, although no child windows will be present. Selecting "Open" from the "File" menu will allow you to browse for a .BMP file to view. Multiple files may be opened and each opens in a new child window. The options on the "Window" menu provide features for positioning the child windows. Selecting "Close" will close the currently selected child window, while selecting "Exit" or closing the window manually will exit the program. ==Under the Hood== MAIN_WINDOW inherits [[ref:libraries/wel/reference/wel_mdi_frame_window_chart|WEL_MDI_FRAME_WINDOW]] and redefines on_menu_command to handle the menu selections. CHILD_WINDOW inherits [[ref:libraries/wel/reference/wel_mdi_child_window_chart|WEL_MDI_CHILD_WINDOW]] and implements make to load a named bitmap, while on_paint has been redefined to re-draw the bitmap. A [[ref:libraries/wel/reference/wel_open_file_dialog_chart|WEL_OPEN_FILE_DIALOG]] is used to select files for viewing. This sample contains the following classes: * BMP_VIEW * MAIN_WINDOW * CHILD_WINDOW * APPLICATION_IDS {{seealso|
[[WEL_OPEN_FILE_DIALOG|WEL_OPEN_FILE_DIALOG]]
[[MDI (Multiple Document Interface)|Mdi sample]] }}