Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Paint class for the background of textbox
Message
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01458738
Message ID:
01458755
Views:
66
PROCEDURE txtnomsecsocial.Refresh
		LOCAL nretVal

		m.nretVal = EVALUATE( THIS.PARENT.calias + '.icolor' )

		IF m.nretVal > 0
		  THIS.BACKCOLOR = m.nretVal
		ELSE
		  THIS.BACKCOLOR = BLANC_LOC
		ENDIF
	ENDPROC


	PROCEDURE cmdcolor.Click
		LOCAL nretVal,;
		  lnselect

		m.nretVal = GETCOLOR()

		IF m.nretVal > 0
		  lnselect = SELECT( 0 )
		  SELECT ( THIS.PARENT.calias )
		  REPLACE iColor WITH m.nretVal IN ( THIS.PARENT.calias )
		  SELECT( lnselect )
		ENDIF

		THIS.Parent.Refresh()
	ENDPROC
Previous
Reply
Map
View

Click here to load this message in the networking platform