[psychtoolbox] GUI Buttons on PTB screen?

Hi all,
 
I'm wondering if anyone knows how to incorporate GUI buttons with event handlers (such as those produced by MatLab GUIDE), into a PTB window. I been drawing rectangles and placing text for my buttons using Screen('FillRect',...) and ('DrawText') commands in conjunction with GetMouse, but would like to make them prettier!
 
Any ideas would be greatly appreciated.
 
Regards

Chris
Chris,

I guess you could produce "pretty" buttons by placing an image in the place of your rect.
You can find examples of how to read in images and display them in many of the PTB
demos (e.g. AlphaImageDemo). End result only limited by your creative and Photoshop (or
other drawing) abilities ;-)

Gr.
Frans


--- In psychtoolbox@yahoogroups.com, "Christopher Hatherly"
<Christopher.Hatherly@...> wrote:
>
> Hi all,
>
> I'm wondering if anyone knows how to incorporate GUI buttons with event
> handlers (such as those produced by MatLab GUIDE), into a PTB window. I
> been drawing rectangles and placing text for my buttons using
> Screen('FillRect',...) and ('DrawText') commands in conjunction with
> GetMouse, but would like to make them prettier!
>
> Any ideas would be greatly appreciated.
>
> Regards
>
> Chris
>