BabyBeast Posted July 19, 2006 Posted July 19, 2006 (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 July 19, 2006 by BabyBeast
BabyBeast Posted July 19, 2006 Author Posted July 19, 2006 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now