[futurebasic] Re: [FB] files and windows

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 2008 : Group Archive : Group : All Groups

From: Bernie <fblist.bw@...>
Date: Thu, 28 Feb 2008 18:16:34 +0000
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