, ,

Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

O4WImage Disable (OpenInsight 64-bit)

At 10 OCT 2022 06:55:29PM BrianWick wrote:

Hi -

How do I DISABLE an O4WImage control such as:

EnableField1 = O4WResponseOptions("0","1"):O4WInputOptions("1","0")
DisableField1 = O4WResponseOptions("0","1"):O4WInputOptions("0","0")
O4WSectionStart("IMAGEBUTTONSECTION", NONMarkedSectionStyle1)
	O4WImage("","../Images/Main1/CapitolHillD200x150.gif","","","","IMAGEBUTTON","")			
	O4WQualifyEvent("IMAGEBUTTON","CLICK")			
O4WSectionEnd("IMAGEBUTTONSECTION")	
O4WUpdate("IMAGEBUTTON","",DisableField1)

O4WUpdate works for O4WTextBox, O4WTextArea and O4WButton - presumably because they all involve some form of INPUT Text.

OR -

Is there a way to Disable an Entire Section or Entire Table

Bri


At 10 OCT 2022 07:31PM BrianWick wrote:

AND -

In stead of trying to disable the O4WImage I redrew that section with a different image but WITHOUT the CLICK qualifier but the click still works and the image changed - showing it partially worked:

		O4WSectionStart("IMAGEBUTTONSECTION", O4WMarkedOptions(0):O4WResponseOptions())
			O4WImage("","../Images/Main1/CapitolHillD133x100.gif","","","","IMAGEBUTTON","")			
		O4WSectionEnd("IMAGEBUTTONSECTION")

At 10 OCT 2022 10:50PM bshumsky wrote:

AND -

In stead of trying to disable the O4WImage I redrew that section with a different image but WITHOUT the CLICK qualifier but the click still works and the image changed - showing it partially worked:

		O4WSectionStart("IMAGEBUTTONSECTION", O4WMarkedOptions(0):O4WResponseOptions())
			O4WImage("","../Images/Main1/CapitolHillD133x100.gif","","","","IMAGEBUTTON","")			
		O4WSectionEnd("IMAGEBUTTONSECTION")</QUOTE>

Hi, Brian. When you create the "disabled" image, you can try giving it a different ID. See if that works for you?

- Bryan Shumsky

Revelation Software, Inc.

View this thread on the Works forum...