$PBExportHeader$u_mle.sru $PBExportComments$Base MultiLineEdit Object forward global type u_mle from multilineedit end type end forward global type u_mle from multilineedit integer width = 411 integer height = 324 integer textsize = -8 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" long textcolor = 33554432 string text = "none" borderstyle borderstyle = stylelowered! event ke_constructor ( ) end type global u_mle u_mle type variables Public: Boolean #AutoSelect = TRUE, #Required String #BuddyLabel //Size Order Long #SizeOrder //Anchoring Boolean #AnchorTop Boolean #AnchorLeft Boolean #AnchorRight Boolean #AnchorBottom //Docking Boolean #Dock //Dock Padding Long #DockType, #DockPadTop, #DockPadLeft, #DockPadRight, #DockPadBottom //Dock control reference String #Dock_Control_Top, #Dock_Control_Left, #Dock_Control_Right, #Dock_Control_Bottom Private: str_resize istr_resize statictext ist_buddy end variables forward prototypes public function str_resize of_getresizeattrib () public subroutine of_setrequired (boolean ab_required) public function statictext of_getbuddylabel () end prototypes event ke_constructor();of_setrequired(#Required) end event public function str_resize of_getresizeattrib ();istr_resize.Control = this istr_resize.ControlName = ClassName(this) istr_resize.SizeOrder = #SizeOrder istr_resize.SizeOrder = #SizeOrder istr_resize.Dock = #Dock istr_resize.DockType = #DockType istr_resize.DockPadTop = #DockPadTop istr_resize.DockPadLeft = #DockPadLeft istr_resize.DockPadRight = #DockPadRight istr_resize.DockPadBottom = #DockPadBottom istr_resize.AnchorTop = #AnchorTop istr_resize.AnchorLeft = #AnchorLeft istr_resize.AnchorRight = #Anchorright istr_resize.AnchorBottom = #Anchorbottom istr_resize.reftop = #Dock_Control_top istr_resize.refleft = #Dock_Control_left istr_resize.refright = #Dock_Control_right istr_resize.refbottom = #Dock_Control_bottom istr_resize.bounds.left = X istr_resize.bounds.top = Y istr_resize.bounds.right = width istr_resize.bounds.bottom = height RETURN istr_resize end function public subroutine of_setrequired (boolean ab_required);n_svc_mgr lnv_svc n_svc_requirededit lnvr #Required = ab_required lnv_svc.of_loadsvc(lnvr, Csvc.REQUIRED_EDIT) lnvr.of_setrequired(lnv_svc, this, #Required, ist_buddy) end subroutine public function statictext of_getbuddylabel ();RETURN ist_buddy end function on u_mle.create end on on u_mle.destroy end on event getfocus;IF #AutoSelect THEN SelectText(1, LEN(this.text)) END IF end event event modified;//trigger ke_changes IF ISVALID(Parent) THEN Parent.TriggerEvent(Ckevents.CHANGES) end event
- Sources
- Kodigo
- OpenExplorer
- u_mle.sru
File: u_mle.sru
Size: 2814
Date: Mon, 07 Apr 2008 21:30:48 +0200
Size: 2814
Date: Mon, 07 Apr 2008 21:30:48 +0200