PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WM20 Android: How to dynamically change combo captions on popup?
WM20 Android: How to dynamically change combo captions on popup?
Iniciado por guest, 10,jul. 2015 12:38 - 3 respuestas
Publicado el 10,julio 2015 - 12:38
Hi All,

I have some combos where I have to use an abbreviated caption on the screen, but would like to expand to a full caption when the combo/selection box pops up.

I have tried this code on the 'Entry in COMBO_ComboName' section:

COMBO_ComboName..Caption="Full caption title"

And on Exit and Select Row it is changed back again:

COMBO_ComboName..Caption="Abv cap"


On the emulator this updates the caption on the screen, but due to the way that the dropdowns work on the emulator, they don't show.

On my phone, the caption doesn't change on the popup.

Is there a way to change the caption text on the header of the popup box?

Thanks

Pete
Publicado el 12,julio 2015 - 21:02
Pete,

Maybe Nexttitle Function ?
Have not tried this myself, its jusdt an idea.

Danny
Publicado el 15,julio 2015 - 14:56
Thanks Danny,

Nexttitle doesn't appear to change the caption in a combo selection box.

The only way I have found to do it is to have the full caption in the description, hide the caption in the style and use a static for the abbreviated caption. Not ideal!

Pete
Publicado el 16,julio 2015 - 17:01
You could use the ..note capability of the combo box.

IF <someevent>
myCombo..caption = myCombo..note
END


Then you can spare out the extra static.

Sebastian