IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Interfaces Graphiques Discussion :

Affichage texte déroulant


Sujet :

Interfaces Graphiques

  1. #1
    Nouveau Candidat au Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Novembre 2017
    Messages
    2
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Meurthe et Moselle (Lorraine)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Novembre 2017
    Messages : 2
    Points : 1
    Points
    1
    Par défaut Affichage texte déroulant
    Bonjour,

    J'ai un projet à réaliser sur la fonctionnalité GUI de Matlab.

    Ma question est la suivante: Est-il possible d'afficher un message n+1 tout en gardant le message n ?

    Par exemple, je voudrais afficher :

    Dans un premier temps :
    Bonjour

    Puis dans un second temps :
    Bonjour
    ça va ?

    Puis dans un troisième temps:
    Bonjour
    ça va ?
    Aurevoir

    Et ainsi de suite ..


    J'arrive seulement à afficher chaque ligne mais pas en gardant le précédent grâce au static text.

    Vous me serez très utiles si vous connaissez une fonctionnalité qui permet de faire cela aisément.

  2. #2
    Membre émérite
    Homme Profil pro
    Inscrit en
    Mai 2008
    Messages
    2 040
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Mai 2008
    Messages : 2 040
    Points : 2 841
    Points
    2 841
    Par défaut Affichage texte déroulant
    Bonjour,

    Fais-nous voir ton programme.

  3. #3
    Nouveau Candidat au Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Novembre 2017
    Messages
    2
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Meurthe et Moselle (Lorraine)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Novembre 2017
    Messages : 2
    Points : 1
    Points
    1
    Par défaut Mon programme simplifié
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    function varargout = registre(varargin)
    % REGISTRE MATLAB code for registre.fig
    %      REGISTRE, by itself, creates a new REGISTRE or raises the existing
    %      singleton*.
    %
    %      H = REGISTRE returns the handle to a new REGISTRE or the handle to
    %      the existing singleton*.
    %
    %      REGISTRE('CALLBACK',hObject,eventData,handles,...) calls the local
    %      function named CALLBACK in REGISTRE.M with the given input arguments.
    %
    %      REGISTRE('Property','Value',...) creates a new REGISTRE or raises the
    %      existing singleton*.  Starting from the left, property value pairs are
    %      applied to the GUI before registre_OpeningFcn gets called.  An
    %      unrecognized property name or invalid value makes property application
    %      stop.  All inputs are passed to registre_OpeningFcn via varargin.
    %
    %      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
    %      instance to run (singleton)".
    %
    % See also: GUIDE, GUIDATA, GUIHANDLES
     
    % Edit the above text to modify the response to help registre
     
    % Last Modified by GUIDE v2.5 26-Nov-2017 12:52:10
     
    % Begin initialization code - DO NOT EDIT
    gui_Singleton = 1;
    gui_State = struct('gui_Name',       mfilename, ...
                       'gui_Singleton',  gui_Singleton, ...
                       'gui_OpeningFcn', @registre_OpeningFcn, ...
                       'gui_OutputFcn',  @registre_OutputFcn, ...
                       'gui_LayoutFcn',  [] , ...
                       'gui_Callback',   []);
    if nargin && ischar(varargin{1})
        gui_State.gui_Callback = str2func(varargin{1});
    end
     
    if nargout
        [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
    else
        gui_mainfcn(gui_State, varargin{:});
    end
    % End initialization code - DO NOT EDIT
     
     
    % --- Executes just before registre is made visible.
    function registre_OpeningFcn(hObject, eventdata, handles, varargin)
    % This function has no output args, see OutputFcn.
    % hObject    handle to figure
    % eventdata  reserved - to be defined in a future version of MATLAB
    % handles    structure with handles and user data (see GUIDATA)
    % varargin   command line arguments to registre (see VARARGIN)
     
    % Choose default command line output for registre
    handles.output = hObject;
     
    % Update handles structure
    guidata(hObject, handles);
     
    % UIWAIT makes registre wait for user response (see UIRESUME)
    % uiwait(handles.figure1);
     
     
    % --- Outputs from this function are returned to the command line.
    function varargout = registre_OutputFcn(hObject, eventdata, handles) 
    % varargout  cell array for returning output args (see VARARGOUT);
    % hObject    handle to figure
    % eventdata  reserved - to be defined in a future version of MATLAB
    % handles    structure with handles and user data (see GUIDATA)
     
    % Get default command line output from handles structure
    varargout{1} = handles.output
     
    % --- Executes on button press in lancer.
    function lancer_Callback(hObject, eventdata, handles)
    % hObject    handle to lancer (see GCBO)
    % eventdata  reserved - to be defined in a future version of MATLAB
    % handles    structure with handles and user data (see GUIDATA)
    for a=1:10;
        if (a==2 ||a==4 ||a==6 ||a==8 ||a==10)
            set(handles.text,'String', 'Bonjour')
            pause(0.5)
            a=a+1
        end
        if (a==1 ||a==3 ||a==5 ||a==7 ||a==9)
            set(handles.text,'String', 'Aurevoir')
            pause(0.5)
            a=a+1
        end
    end

Discussions similaires

  1. Liste déroulante et affichage texte
    Par clem.76 dans le forum Struts 1
    Réponses: 3
    Dernier message: 07/11/2010, 06h34
  2. [MySQL] affichage données dans une zone de texte déroulante
    Par mayers dans le forum PHP & Base de données
    Réponses: 3
    Dernier message: 21/01/2008, 21h20
  3. affichage texte style splash screen
    Par scorbo dans le forum MFC
    Réponses: 4
    Dernier message: 13/06/2004, 12h03
  4. Réponses: 7
    Dernier message: 13/12/2003, 14h09

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo