Jump to content

Set COM readonly properties before RunTime


Recommended Posts

I am trying to figure out how to set up some properties before creating a RichText control. These properties go readonly at runtime.

; Snippet
Local $oRT = ObjCreate("RICHTEXT.RichtextCtrl.1")
GUICtrlCreateObj($oRT, 5, 105, $MAIN_WIN_WIDTH-5-5, $MAIN_WIN_HEIGHT-105-25))
    
With $oRT
     .MultiLine = True
     .ScrollBars = 2
EndWith

As you can see this will throw an error. The properties I am setting need to be set before runtime. However, I can't figure out how to do that. Could anyone help?

Link to comment
Share on other sites

I should be asking, "Is there a way to set properties of an object before calling it with ObjCreate()?"

I have been racking my brain on the forums and Google for a while now and I am starting to think that there is not a way. Any ideas?

Link to comment
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
 Share

  • Recently Browsing   0 members

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