GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WEBDEV 2024
→
How to disable(grey) a single radio option
How to disable(grey) a single radio option
Iniciado por vvido, set., 07 2018 3:16 PM - 4 respostas
Conecte-se…
vvido
#1
Membro registado
94 mensagems
Publicado em setembro, 07 2018 - 3:16 PM
I have a radio button box with several choices (radio buttons).
Depending on the input data I need to disable a particular choice (a single radio button, one of several) in runtime.
How can I do ti ?
Denunciar
0
0
meikl
#2
Membro registado
118 mensagems
Publicado em setembro, 12 2018 - 1:37 PM
RADIO_YourName[IndexOfOption]..Grayed = whatever
Denunciar
0
0
vvido
#3
Membro registado
94 mensagems
Publicado em setembro, 12 2018 - 3:41 PM
Thanks for the answer, but strange, it does not seem to work.
I get a compilation error for the following code
RADIO_BackupType[1]..Grayed = True
Error:The 'Grayed' property does not apply to this type of control.
PAGE_backup.ZONE_Layout_Area_CONTENT.ZONE_Main.RADIO_BackupType, Initialization, line 1, column 22
Without the index [1] it disables all the options (expected behaviour) and does not cause compilation error, but the result is not what I need.
This is WEBDEV 23.
Denunciar
0
0
Piet van Zanten
#4
Membro registado
17 mensagems
Popularité : +1 (1 vote)
Publicado em setembro, 13 2018 - 3:44 PM
Hi,
This is not possible in Webdev.
You need to create your own Radio control.
I did this by creating a control template using a looper with a checkbox and an option text.
The checkbox can be styled to look like a radio button and you need some code to uncheck other options when one is selected.
Advantage is that you don't have to gray options, just fill the looper dynamically with the options you need.
Denunciar
0
0
vvido
#5
Membro registado
94 mensagems
Publicado em setembro, 13 2018 - 4:31 PM
Hi, after unsuccessful try I have suspected something like this.
Your suggestion with control template is attractive because it is general and reusable.
I will give it a try. Thanks for your time.
Denunciar
0
0
→ Voltar para WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto