On Jul 13, 2006, at 6:50 AM, Dennis Birch wrote:

I'm pretty sure that Charles Yeoman's I Declare e-book includes a
solution for that. You can check it out at www.declaresub.com.

Charles' declares are pretty comprehensive on this matter but. as far as I can tell, do not discuss handling the widget itself. The Carbon Declare Library does have the code to enable or disable the button in OSX.

----------------------
[Sub SetWindowCollapseWidget(w as window, b as boolean)]

 Const attrib = 8

 Dim err as integer
 #if TargetCarbon then
Declare Function ChangeWindowAttributes Lib "CarbonLib" (window as WindowPtr, setTheseAttributes as _ Integer,clearTheseAttributes as Integer) as Integer

 if b then
    err = ChangeWindowAttributes(w, attrib, 0)
   else
     err = ChangeWindowAttributes(w, 0, attrib)
 end if

[End Sub]
----------------------

HTH,

Terry

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to