FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
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
Débuté par Boller, 18 nov. 2021 15:22 - Aucune réponse
Connectez-vous…
Boller
#1
Membre enregistré
3 657 messages
Popularité : +175 (223 votes)
Posté le 18 novembre 2021 - 15:22
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/
Signaler
0
0
→ Revenir à WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte