Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RichTextBox

Status
Not open for further replies.

52501

Programmer
Oct 26, 2005
7
IT
Hi all,
I've defined a new class for include RichtextBox OLEControl in my application. It work fine but I can't set scrollbars property. Runtime I can read property using oRTB.Object.Scrollbars, but this property is readonly during runtime. Any ideas?

define class OLERTB as container
value=""
add object oRTB as OLERTB1 with top=0,left=0


proc Init
this.oRTB.width=this.width
this.oRTB.height=this.height
endproc

proc value_assign
LPARAMETERS xValue
this.oRTB.textRTF=xValue
endproc

proc value_access
return this.oRTB.Text
endproc

Proc Resize
this.oRTB.width=this.width
this.oRTB.height=this.height
return
endproc

enddefine

define class OLERTB1 as OLEControl
caption='OLERTB'
OLETypeAllowed=-2
OLEClass="RICHTEXT.RichtextCtrl.1"
visible=.t.
rightmargin=10000
scrollbars=3
enddefine
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top