Discussions au sujet de NI LabVIEW

annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

Questions face avant

Résolu !
Accéder à la solution

Bonjour,

j'ai deux question sur la face avant :

1- est-il possible de modifier dynamiquement la taille d'une face avant, et comment

2- lors de la création d'un exécutable, est-il possible d'enlever/de remplacer le petit logo en haut à gauche de la bordure de la fenêtre.

Si vous avez des réponses merci

0 Compliments
Message 1 sur 7
3 841 Visites
Solution
Accepté par Desruelle_luc

tomlechat a écrit :

Bonjour,

j'ai deux question sur la face avant :

1- est-il possible de modifier dynamiquement la taille d'une face avant, et comment :

 

oui regarde les exemples de LabVIEW

 

C:\Program Files\National Instruments\LabVIEW XXXX\examples\viserver\uicntrl.llb\VI Server - Changing Another VI's Properties.vi

 

Front Panel Window:Window Bounds Property

Short Name: FP.WinBounds

Requires: Base Package

Class: VI Properties

The four elements in the cluster are the top, left, bottom, and right values of the front panel window, which includes the interior region, scroll bars, title bar, menu bar, and toolbar. They are in global screen coordinates, that is, the numbers refer to coordinates within a computer monitor's screen (rather than an open window).

You can set this property only for VIs with open front panels. If you do not want the VI for which you want to set this property to appear to users, use the Hidden state of the Front Panel Window:State Property to hide the front panel of the VI.

When you read this property, LabVIEW returns the window bounds of the VI. If the front panel of the VI is not open, LabVIEW returns the window bounds of the VI in the position it was last saved.

 

 

2- lors de la création d'un exécutable, est-il possible d'enlever/de remplacer le petit logo en haut à gauche de la bordure de la fenêtre.

Le petit logo, c'est une îcone (fichier .ico) qui configurable lors de la création de l'exe, donc dans les spécifications de création de l'executable, dans l'onglet "îcone" >> choisir les fichiers .ico ou le faire

 

Icon Page (Application Properties Dialog Box)

Requires: Professional System (Mac OS X, Windows)

Use this page of the Application Properties dialog box to select the icon file ((Windows) .ico, (Mac OS X) .icns) to use for a stand-alone application. You can use the default LabVIEW icon, select a custom icon file, or create an icon file. The page displays previews of all images in the icon file.

This page includes the following components:

  • Use the default LabVIEW icon file—Indicates whether to use the standard LabVIEW icon for the application. Remove the checkmark from the checkbox if you want to select an icon file from within the project. If you remove the checkmark from this checkbox, the Select Project File dialog box appears and you can select an icon file in the project.
  • Icon file in project—Displays the icon file to use for the application. LabVIEW supports up to 256×256 pixels and up to 32-bit color.
    • Browse Project—Displays the Select Project File dialog box, which you can use to select an icon file in the project. If no icon files exist in the project, you can add an icon file to the project using the Select Project File dialog box.
  • Icon Editor(Windows) Launches an icon editor that you can use to create or edit an icon file. If you selected an icon file in Icon file in project, the file opens in the icon editor. If you did not select an icon file, the icon editor creates and opens a new icon file. Save the edits to the icon file before you close the icon editor. If you created a new icon file, click the Browse Project button next to Icon file in project to add the icon file to the project and to the build specification.
  • Icon Image(Windows) Lists available images in the.ico file. LabVIEW supports displaying and setting icons up to 256×256 pixels and up to 32-bit color.

 

Si vous avez des réponses merci

si tu as des questions


 

banniere Luc Livre NXG Champion.png

Luc Desruelle | Mon profil | Mon blog LabVIEW | Auteur livre LabVIEW : Programmation et applications - G Web
Certified LabVIEW Architect (CLA) & Certified TestStand Developper (CTD) | LabVIEW Champion

MESULOG - LinkedIn site | NERYS - NERYS Group
| directeur CEO MESULOG
| CODIR - NERYS group

Message 2 sur 7
3 819 Visites
Solution
Accepté par Desruelle_luc

Bonjour, 

 

Je suis pas sûr mais avec ça : 

 

#1   OUI 

 

2.png

 

 

#2  A ce niveau là (quand tu construis ton exe), tu as un éditeur d'icone  😉 

 

1.png

 

Cordialement, 

G.D

Message 3 sur 7
3 769 Visites

merci GDuBois pour les copies d'écran. Tu ajoutes des images à mes explications, le post devient complet.

ta réponse est bonne.

après tomlechat n'a pas répondu pour signaler si mon post répondait à sa question ou pas. Merci pour lui d'avoir ajouté des infos 🙂 je ne sais pas s'il te remerciera. A+

banniere Luc Livre NXG Champion.png

Luc Desruelle | Mon profil | Mon blog LabVIEW | Auteur livre LabVIEW : Programmation et applications - G Web
Certified LabVIEW Architect (CLA) & Certified TestStand Developper (CTD) | LabVIEW Champion

MESULOG - LinkedIn site | NERYS - NERYS Group
| directeur CEO MESULOG
| CODIR - NERYS group

Message 4 sur 7
3 753 Visites

Je te remercie Desruelle_luc ! 

 

Oui, on verra bien si nos réponses ont su répondre à ses questions... 😉

 

 

Message 5 sur 7
3 728 Visites

Bonjour à tous et merci pour vos réponses, j'ai pris un peu de temps car j'ai fait quelques essais.

 

Point 1) ok j'arrive à redimensionner la fenêtre en temps réel (en fait c'est pour une IHM en fonction des paramètres que demande l'utilisateur), j'utilise ce que vous m'avez indiqué + la taille de l'écran pour recalculer la largeur de la fenêtre  (mode 1 : largeur 180, mode 2 : 350) 

Si quelqu'un à une autre méthode je suis preneur.

 

Point 2)  : ok c'est bon aussi.

 

Merci à tous Smiley heureux

 

 

Message 6 sur 7
3 725 Visites

tomlechat a écrit :

Si quelqu'un à une autre méthode je suis preneur.

 


salut et merci pour le retour. Si tu veux plus d'aide, il faudrait... ton code A+ Luc

banniere Luc Livre NXG Champion.png

Luc Desruelle | Mon profil | Mon blog LabVIEW | Auteur livre LabVIEW : Programmation et applications - G Web
Certified LabVIEW Architect (CLA) & Certified TestStand Developper (CTD) | LabVIEW Champion

MESULOG - LinkedIn site | NERYS - NERYS Group
| directeur CEO MESULOG
| CODIR - NERYS group

0 Compliments
Message 7 sur 7
3 716 Visites