1 / 23

FLTK Introduction

FLTK Introduction. I4B 02 張博淳 I4B 04 黃貞雯. Let ’ s Download FLTK. FLTK Source : Download FLTK ( 網路硬碟二 分享名稱: FLTK) Open fltk-1.1.6->fluid-> fluidd.exe 連結. Using FLTK Open a Window. 1. File->New-> 命名為 * .fl 2. Press “Function”, then clear all to press “OK”

mareo
Download Presentation

FLTK Introduction

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. FLTK Introduction I4B 02 張博淳 I4B 04 黃貞雯

  2. Let’s Download FLTK FLTK Source : • Download FLTK (網路硬碟二 分享名稱:FLTK) • Open fltk-1.1.6->fluid-> fluidd.exe 連結

  3. Using FLTK Open a Window 1. File->New->命名為 *.fl 2. Press “Function”, then clear all to press “OK” • Press “Window” to adjust position and size. (fig 1) 4. File->Save, and File->Write code.

  4. Using FLTK Open a Window Example : (fig 1)

  5. FLTK Work Environment Add library : • Open VC • Press Tools->Options->Directories • Add “FLTK-1.1.6” to “Include files” and “FLTK-1.1.6\Lib” to “Library files”

  6. Project Setting : • Use VC to open “ *.cxx ” • Press compile • Press Project->Setting

  7. Select C/C++ • In Category select “Code Generation”

  8. In Use run-time library select “Debug Multithreaded DLL”

  9. Press OK, then build and run

  10. How to use Button • Press “Button” and adjust its position and size • Click button to input label name

  11. Use Button callback 3. Click button to input callback (eg. button_cb(); )

  12. 4. Press “Function” (Name : button_cb(), Type : void)

  13. 5. Press “F2” to put button_cb() up 6. Press “code” and “OK” 7. Press “Declaration” and input “#include <stdio.h>”, then put it up 8. File->Save, and File->Write code 9. Use VC to open .cxx file and run

  14. Example :

  15. Button Type • URL : Document->index.htm->3. Common Widgets and Attributes • Example : test\buttonsd.exe

  16. Radio & Group • Example : test\radiod.exe

  17. Button Enactive/Deactive • Example : test\inactived.exe

  18. Box Type • URL : Document->index.htm->Box Types • Example : test\boxtyped.exe

  19. Label • URL : Document->index.htm->Labels and Label Types • Example : test\symbolsd.exe, labeld.exe

  20. Valuators • URL : Document->index.htm->3. Common Widgets and Attributes • Example : test\valuatorsd.exe

  21. I/O • URL : Document->index.htm->A – Class Reference • Example : test\inputd.exe, outputd.exe • Notes : ^J = (Ctrl + J) to next line

  22. Example : Calculator

  23. Menu Bar • Example : test\menubard.exe

More Related