PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 25
→
WX - Deixar o campo atual em cor evidente na tela para o usuario localizar rapido o campo atual(AlteraCorFocusStyle)
WX - Deixar o campo atual em cor evidente na tela para o usuario localizar rapido o campo atual(AlteraCorFocusStyle)
Started by Boller, Feb., 23 2021 12:32 PM - 1 reply
Connect yourself…
Boller
#1
Registered member
3,655 messages
Popularité : +175 (223 votes)
Posted on February, 23 2021 - 12:32 PM
Prezados
Para deixar o campo atual em cor evidente na tela para o usuario localizar rapido o campo atual, abaixo exemplificamos como fazer isso:
Procedure
AlteraCorFocusStyle
(
pGrupo
,
pModo
=
True
)
s
Campo_
is string
FOR i
=
1
TO pGrupo
..
Occurrence
s
Campo_
=
EnumControl
(
pGrupo
,i,
byTabOrder
)
Trace
(
{
s
Campo_
,
indControl
}
..
Type
,
{
s
Campo_
,
indControl
}
..
Name
,
pModo
)
IF
{
s
Campo_
,
indControl
}
..
Type
=
10001
OR
{
s
Campo_
,
indControl
}
..
Type
=
10002
OR
{
s
Campo_
,
indControl
}
..
Type
=
20001
OR
{
s
Campo_
,
indControl
}
..
Type
=
20004
OR
{
s
Campo_
,
indControl
}
..
Type
=
20003
THEN
// COMBO + EDT
IF
pModo
THEN
{
s
Campo_
,
indControl
}
..
BrushColor
=
gn
CorObrigatorio
//_cadparametros_interface.COR_OBRIGATORIO
// Obrigatório
Trace
(
{
s
Campo_
,
indControl
}
..
Type
,
{
s
Campo_
,
indControl
}
..
Name
,
pModo
)
//{sCampo_,indControl}..Caption += " *"
ELSE
{
s
Campo_
,
indControl
}
..
BrushColor
=
gn
CorNormal
// _cadparametros_interface.COR_NORMAL
// Normal
END
END
END
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Report
0
0
Boller
#2
Registered member
3,655 messages
Popularité : +175 (223 votes)
Posted on February, 23 2021 - 1:57 PM
OBS.:
Colocar em um grupo e informar nessa procedure global o grupo ao abrir a janela.
Procedure MyWindow( )
AlteraCorFocusStyle(GR_Campos)
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Report
0
0
→ Go back to WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text