huda wrote:
> hi
> i want to click on the image to get to points
> x and y but i can not do it or even start with
> can i find anyone help me?
> 
> #include <fltk/run.h>
> #include <fltk/Window.h>
> #include <fltk/SharedImage.h>
> int main() {
>    fltk::register_images();
>    fltk::Window win(720,486);
>     win.border(0); // borderless window
>     win.image(*fltk::SharedImage::get("/image/show.jpg"));
>    win.end();
>      win.show();
>     return(fltk::run());
>  }
> 
> 
> also i copied this code of image from this site but it gave
> me an error "e:\robot_project_all\testfltk\sample.cpp(2) : fatal error C1083: 
> Cannot open include file: 'fltk/run.h': No such file or directory"

        The above is an FLTK 2.x.x program, so you would need FLTK2 to build it.

        If you have FLTK 1.x.x, then the above program will not work.
        See Ian's suggestion which shows an FLTK1 example that does what you 
want.

        If you have FLTK 2.x.x and are getting the above error,
        the above should compile, but you need to make sure you've
        configured the compiler correctly to include the fltk directories
        for fltk include dir and lib files. (Refer to any of the code examples
        in the fltk/examples directory to see how to configure the compiler 
flags)
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to