From: Christian on 3 Jun 2010 17:21 Hi¡¡¡ I have a problem with eventdata in a GUI. When I use the KeyPressFcn function in a edit box or in a figure (main) it produce an error. function txtResultado_KeyPressFcn(hObject, eventdata, handles) % hObject handle to txtResultado (see GCBO) % eventdata structure with the following fields (see UICONTROL) % Key: name of the key that was pressed, in lower case % Character: character interpretation of the key(s) that was pressed % Modifier: name(s) of the modifier key(s) (i.e., control, shift) pressed % handles structure with handles and user data (see GUIDATA) a=eventdata.Modifier; I observed that if I use this function in a GUI made programmatically it works¡¡¡, but I'm working with GUIDE and I don't know how can i obtain a word with this GUIDE. I'm Sorry, but I don't have enough experience with it. Thanks everybody.
|
Pages: 1 Prev: matlab subplots with different ranges Next: bug with MATLAB example avifile |