Saludos amigos del Foro.
Cuando hacemos un Disable() a un control get (por ejemplo), el mismo se ve "apagado", eso lo soluciono con oGet:lDiscolors:=.f. y se ve del color normal.
Necesito hacer lo mismo con un control Radio.
¿Hay alguna manera?
karinha wrote:Buén dia. Que yo sepa, no és posible.
Regards, saludos.
SetWindowTheme( hWnd, "", "" )
Jimmy wrote:hi,
have not try to disable a RADIO Button yet, but if you want (any) Color you need to disable Windows Thema
- Code: Select all Expand view
SetWindowTheme( hWnd, "", "" )
karinha wrote:Jimmy, show this via a complete example. When( .F. ) --> Disable() will not be "lit", show me I'm wrong, PLS.
Jimmy wrote:hi,karinha wrote:Jimmy, show this via a complete example. When( .F. ) --> Disable() will not be "lit", show me I'm wrong, PLS.
as i say : have not try to disable a RADIO Button yet
// 1024_768 y 1280_768 ativos, por enquanto. Processo demorado pra kcte.
REDEFINE RADIO oRadMenu VAR nOpcRadioTela ID 201, 202, 203, 204, 205, ;
206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216 OF oDlgConf UPDATE
// ESTA EM: RESOLUC.TXT y RESOTELA.DBF -> 12/04/2021 - Joao.
oRadMenu:aItems[1]:Disable() // DESABILITA O RADIO
oRadMenu:aItems[2]:Disable() // DESABILITA O RADIO
oRadMenu:aItems[3]:Disable() // DESABILITA O RADIO
oRadMenu:aItems[4]:Disable() // DESABILITA O RADIO
// ATIVO POR ENQUANTO...
oRadMenu:aItems[5]:cTooltip := "RESOLUÇÃO: 1024 x 768"
oRadMenu:aItems[6]:Disable() // DESABILITA O RADIO
oRadMenu:aItems[7]:Disable() // DESABILITA O RADIO
// ATIVO POR ENQUANTO
oRadMenu:aItems[8]:cTooltip := "RESOLUÇÃO: 1280 x 768"
oRadMenu:aItems[9]:Disable() // DESABILITA O RADIO
oRadMenu:aItems[10]:Disable() // DESABILITA O RADIO
oRadMenu:aItems[11]:Disable() // DESABILITA O RADIO
oRadMenu:aItems[12]:Disable() // DESABILITA O RADIO
oRadMenu:aItems[13]:Disable() // DESABILITA O RADIO
oRadMenu:aItems[14]:Disable() // DESABILITA O RADIO
oRadMenu:aItems[15]:Disable() // DESABILITA O RADIO
oRadMenu:aItems[16]:Disable() // DESABILITA O RADIO
oRadMenu:SetFont( oFnt )
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: Google [Bot] and 40 guests