I have two buttons.
Button 1 is text only
Button 2 is text followed by bitmap
Results as follows:
If I do this for button 2 it works:
It reverses the order of text & image, changes the test & image. Good.
If I do this to button 1 it does not work:
Line 3 gives me an error. It does set the text correctly. If I remove line 3, line 4 gives me an error. In any case it won't set the image.
Issue: How can I dynamically set an image if the button is set to "text"?
Button 1 is text only
Button 2 is text followed by bitmap
Results as follows:
Code:
? Test_set_form:control_button2.btn_appearance = "text&bitmap" ? Test_set_form:control_button2.text = "Test 2" ? Test_set_form:control_button2.default.hbitmap.bmplib = "<ADDIN>" ? Test_set_form:control_button2.default.hbitmap.bmptag = "$$application.alpha" ? Test_set_form:control_button1.btn_appearance = "text" ? Test_set_form:control_button1.text = "Test 1" ? Test_set_form:control_button1.default.hbitmap.bmplib ERROR: Property not found ? Test_set_form:control_button1.default.hbitmap.bmptag ERROR: Property not found
Code:
Test_set_form:control_button2.btn_appearance = "bitmap&text" Test_set_form:control_button2.text = "Buttton 2" Test_set_form:control_button2.default.hbitmap.bmptag = "A5_ball_green"
If I do this to button 1 it does not work:
Code:
Test_set_form:control_button1.btn_appearance = "bitmap&text" Test_set_form:control_button1.text = "Button One" Test_set_form:control_button1.default.hbitmap.bmplib = "<ADDIN>" Test_set_form:control_button1.default.hbitmap.bmptag = "$a5_close"
Issue: How can I dynamically set an image if the button is set to "text"?
Comment