Juan,
> Can you hide the dock from within an RB application? (Other than making
> your window fullscreen?)
This seems to do it for me. If you click where the MenuBar or dock should
be, after it is hidden, it will show up and return to hidden once your app
receives focus again.
// To Disable i.e. Hide the Dock
// Availability:
// * Mac OS X: in version 10.2 and later in Carbon.framework
// * CarbonLib: not available in CarbonLib 1.x, is available on
Mac OS X version 10.2 and later
// * Non-Carbon CFM: not available
// From MacApplication.h
// Technical Note tn 2062.pdf
Dim OSStatus As Integer
Soft Declare Function SetSystemUIMode Lib "Carbon" (inMode As Integer,
inOptions As Integer) As Integer
// mode options
Const kUIModeContentSuppressed = 1
Const kUIModeContentHidden = 2
Const kUIModeAllHidden = 3
Const kUIModeAllSuppressed = 4
Dim kUIOptionAutoShowMenuBar As Integer = Bitwise.ShiftLeft(1, 0)
OSStatus = SetSystemUIMode(kUIModeAllHidden, kUIOptionAutoShowMenuBar)
If OSStatus = 0 Then
Soft Declare Sub HideMenuBar Lib "Carbon" ()
HideMenuBar()
Else
MsgBox "An error occured: " + Str(OSStatus)
End
// To show the dock again
'Soft Declare Sub ShowMenuBar Lib "Carbon" ()
'ShowMenuBar()
HTH
--
Thomas C.
_______________________________________________
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>