Jump to content
Sign in to follow this  
ktuimala

Set COM readonly properties before RunTime

Recommended Posts

ktuimala

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?

Share this post


Link to post
Share on other sites
ktuimala

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?

Share this post


Link to post
Share on other sites
ptrex
ktuimala

Thanks. That is what I thought.... Just had to make sure.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.