Inhibit icon generation on Radio Buttons - V5.nn

Images added to each Choice. Images displayed as scaled down icons. Main image swaps when the Choice is selected.
Post Reply
norman
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

Inhibit icon generation on Radio Buttons - V5.nn

Post by norman »

If you want to use this add-on with Radio Buttons but without any icons being displayed next to the buttons follow these steps (for Dynamic Choice Images V5.nn onwards):

Go to Design / Library / Layouts / Choices / Radio Button Choice.

Look around line 105 for the line:

Code: Select all

	if ( $AutoCreateChoiceIcons && ($reqwidth != 0) )
Replace with:

Code: Select all

	if ( false && $AutoCreateChoiceIcons && ($reqwidth != 0) )		// tweak to inhibit icon generation - (remove "false && " to restore normal operation)
Look around line 152 for the line:

Code: Select all

if ( $choiceimage != '' )
Replace with:

Code: Select all

if ( false && $choiceimage != '' )		// tweak to inhibit icon display - (remove "false && " to restore normal operation)
OK out.

Go to Design / Library / Layouts / Permutation Row Layouts / Radio Button Permutation Entry and repeat the above, but looking for lines 107 and 155 respectively.
Norman
Post Reply