pushbutton to screen

Hey guys,I like to add a pushbutton to the current screen. I tried w=Screen('OpenWindow', 0);h = uicontrol('Parent',w,'Style', 'pushbutton', 'String', 'OK');
I couldn't make it work. Any suggestion is appreciated.
Thanks
KZ
You're confusing things here, uicontrol is for a matlab figure window, not for a PTB window.
Best,
Dee

On Sat, Aug 14, 2010 at 08:45, KZ <gumusz@...> wrote:

Hey guys,I like to add a pushbutton to the current screen. I tried w=Screen('OpenWindow', 0);h = uicontrol('Parent',w,'Style', 'pushbutton', 'String', 'OK');
I couldn't make it work. Any suggestion is appreciated.
Thanks
KZ