Sign in to follow this  
Followers 0
BabyBeast

code to disable menubar

2 posts in this topic

#1 ·  Posted (edited)

dale might want to add this to your code, you left this out on your setproperty function

Case $s_property = "menubar"

If Not __IEIsObjType($o_object, "browser") Then

__IEErrorNotify("Error", "_IEPropertySet", "$_IEStatus_InvalidObjectType")

SetError($_IEStatus_InvalidObjectType, 1)

Return 0

EndIf

$o_object.MenuBar = $newvalue

SetError($_IEStatus_Success)

Return 1

Case $s_property = "toolbar"

If Not __IEIsObjType($o_object, "browser") Then

__IEErrorNotify("Error", "_IEPropertySet", "$_IEStatus_InvalidObjectType")

SetError($_IEStatus_InvalidObjectType, 1)

Return 0

EndIf

$o_object.ToolBar = $newvalue

SetError($_IEStatus_Success)

Return 1

Case $s_property = "theatermode"

If Not __IEIsObjType($o_object, "browser") Then

__IEErrorNotify("Error", "_IEPropertySet", "$_IEStatus_InvalidObjectType")

SetError($_IEStatus_InvalidObjectType, 1)

Return 0

EndIf

$o_object.TheaterMode= $newvalue

SetError($_IEStatus_Success)

Return 1

Edited by BabyBeast

Share this post


Link to post
Share on other sites



Adding one more - this is nice coz if you create a browser at a invi state, this will make it visible again or vice versa.

Case $s_property = "visible"

If Not __IEIsObjType($o_object, "browser") Then

__IEErrorNotify("Error", "_IEPropertySet", "$_IEStatus_InvalidObjectType")

SetError($_IEStatus_InvalidObjectType, 1)

Return 0

EndIf

$o_object.Visible = $newvalue

SetError($_IEStatus_Success)

Return 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0