Jump to content

Recommended Posts

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
Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...