Hi,
Thanks for contacting us. You might find the responses in
this thread useful. There are many adaptations of the tutorial discussed here, including for a window similar to yours.
I hope that helps, please let me know if you have any further questions.
Many Thanks,
Paul