i found something that works on a figure..now i wont that to work on my GUI.Especially i want it to work on a handle.axes1 on my GUI.
%%%%%%%%%%%%%%%%%%%%%%%%%%%
clf
clear all
figure;
%the mouse-click sets a flag for point aquisition
set(gcf,'windowbuttondownfcn','hit=1;');
%start looping...