NO

Poll

error #2138 - Using PellesC

null
0 (0%)
null
1 (100%)

Total Members Voted: 1

Voting closed: September 01, 2010, 06:09:20 pm

Author Topic: curses.h  (Read 2165 times)

ldalcorso

  • Guest
curses.h
« on: August 24, 2010, 06:09:20 pm »
I'm using the library curses.h moving the mouse but an error occurs at compile -  error #2138: Too many arguments to 'getmouse' -
in the stretch :
while(1)
   {
      keypad(stdscr, TRUE);
      c = getch();
      switch(c)
      {   case KEY_MOUSE:
          if(getmouse(&event) == OK) <========== here the error
         {   /* When the user clicks left mouse button */
            if(event.bstate & BUTTON1_CLICKED)
            {   
               report_choice(event.x + 1, event.y + 1, &choice);
               if(choice == -1) //Exit chosen
                  goto end;
               mvprintw(22, 1, "Choice made is : %d String Chosen is \"%10s\"", choice, choices[choice - 1]);
               refresh();
            }
         }
         print_menu(menu_win, choice);
         break;
      }
   }      
I am grateful for the help
ldalcorso