Eugen Rosu wrote: > 2. How can I keep a window (that includes a button and an edit > field, for copy and paste) in front of all the other windows and > applications opened and do not lose the focus of the elements ? Maybe kUtilityWindowClass could be your friend. Here's a start: '------------ include "Tlbx CarbonEvents.incl" // MacWindows.h _kUtilityWindowClass = 8 local fn Init '~'1 appearance window 1, "Util Window Example", (0,0)-(480,320), _kDocumentWindowClass, _kWindowStandardHandlerAttribute appearance window 2, "Word Count", (0,0)-(185,155), _kUtilityWindowClass, _kWindowCloseBoxAttribute _kWindowStandardHandlerAttribute appearance button 1,,,,,, (10,40)-(175,145), _kControlEditUnicodeTextProc end fn fn Init() RunApplicationEventLoop() '------------ Bernie