PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 25
→
WM - Trabalhando com janelas internas - Working with internal windows, posicionando IW no centro e fechando usando indirection
WM - Trabalhando com janelas internas - Working with internal windows, posicionando IW no centro e fechando usando indirection
Started by Boller, Nov., 18 2021 3:22 PM - No answer
Connect yourself…
Boller
#1
Registered member
3,655 messages
Popularité : +175 (223 votes)
Posted on November, 18 2021 - 3:22 PM
Prezados,
WM - Trabalhando com janelas internas - Working with internal windows, posicionando IW no centro e fechando usando indirection:
Crie essa procedure
// Summary: <specify the procedure action>
// Syntax:
//CentralizaIW (<Janela>, <InternalWindow>, <exibe>)
//
// Parameters:
//
Janela:
//
InternalWindow:
//
exibe: <specify the role of hideUnhide>
Procedure
C
entralizaIW
(
Janela
,
InternalWindow
,
exibe
)
IF
exibe
=
False
THEN
{
InternalWindow
,
indControl
}
..
X
= -
2000
i
is int
=
1
ResChamp
is string
s
Controle
is string
ResChamp
=
EnumControl
(
Janela
,
i
)
WHILE
ResChamp
<
>
""
i
+
+
//info(ResChamp)
s
Controle
=
Janela
+
"."
+
ResChamp
IF
ResChamp
<
>
InternalWindow
{
s
Controle
,
indControl
}
..
Grayed
=
False
END
ResChamp
=
EnumControl
(
Janela
,
i
)
END
ELSE
n
LarguraJanela
is int
= {
Janela
,
indWindow
}
..
Width
n
LarguraIWindow
is int
= {
InternalWindow
,
indWindow
}
..
Width
{
InternalWindow
,
indWindow
}
..
X
= (
n
LarguraJanela
/
2
) - (
n
LarguraIWindow
/
2
)
i
is int
=
1
ResChamp
is string
s
Controle
is string
ResChamp
=
EnumControl
(
Janela
,
i
)
WHILE
ResChamp
<
>
""
i
+
+
//info(ResChamp)
s
Controle
=
Janela
+
"."
+
ResChamp
IF
ResChamp
<
>
InternalWindow
{
s
Controle
,
indControl
}
..
Grayed
=
True
END
ResChamp
=
EnumControl
(
Janela
,
i
)
END
END
Ao abrir a janela coloque esse codigo para esconder a IW
C
entralizaIW
(
MyWindow
..
Name
,
IWC_01
..
Name
,
False
)
E para exibir a IW
C
entralizaIW
(
MyWindow
..
Name
,
IWC_01
..
Name
,
True
)
--
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