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 :

chaine de caractère dans guide


Sujet :

Interfaces Graphiques

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Inactif  
    Inscrit en
    Janvier 2008
    Messages
    254
    Détails du profil
    Informations forums :
    Inscription : Janvier 2008
    Messages : 254
    Par défaut chaine de caractère dans guide
    bonjour
    j'ai construis une simple interface qui contient un simple pushbouton et une Zone de texte resemble a un moteur de recherche , si j'appelle mon bputon " recherche " quand je click j'attends un resultat , le probleme est que :
    quand j'ecrit "voiture" il ne reconet pas , vous avez une idée comment j'ecrit cette chaine de caractere dans ce guide
    sachant que j'ai met un programme d'affichage dans pushbuton de recherche
    salutation

  2. #2
    Invité
    Invité(e)
    Par défaut
    Bonsoir,

    quand j'ecrit "voiture" il ne reconet pas
    Peux-tu préciser ce que tu entends par là?

  3. #3
    Inactif  
    Inscrit en
    Janvier 2008
    Messages
    254
    Détails du profil
    Informations forums :
    Inscription : Janvier 2008
    Messages : 254
    Par défaut
    bonjour
    comme dans ce site l'espace recherche quand je veux faire une recherche dans le forum je m'adresse au " Recherche " j'ecrit mon mot par exemple " matalab" et je clique sur " recherche " est voila je suis dans le forum matlab , mon problème dans mon interface est que quand j'ecrit mon mot de recherche par exemple matlab ou voiture , il ne reconnait pas cette chaine de caractère sachant que dans l'éditeur de mon interface j'ai met un programme tel que quand je clique sur recherche il apparait une figure ,
    je ne sait pas est que le probleme est dans handel ou string
    merci a tous

  4. #4
    Invité
    Invité(e)
    Par défaut
    Bonsoir,

    Poste tes parties de programme qui correspondent à ces parties

  5. #5
    Inactif  
    Inscrit en
    Janvier 2008
    Messages
    254
    Détails du profil
    Informations forums :
    Inscription : Janvier 2008
    Messages : 254
    Par défaut
    bonjour
    voir la fin du programme

    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
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    function varargout = untitled(varargin)
    % UNTITLED M-file for untitled.fig
    %      UNTITLED, by itself, creates a new UNTITLED or raises the existing
    %      singleton*.
    %
    %      H = UNTITLED returns the handle to a new UNTITLED or the handle to
    %      the existing singleton*.
    %
    %      UNTITLED('CALLBACK',hObject,eventData,handles,...) calls the local
    %      function named CALLBACK in UNTITLED.M with the given input arguments.
    %
    %      UNTITLED('Property','Value',...) creates a new UNTITLED or raises the
    %      existing singleton*.  Starting from the left, property value pairs are
    %      applied to the GUI before untitled_OpeningFcn gets called.  An
    %      unrecognized property name or invalid value makes property application
    %      stop.  All inputs are passed to untitled_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 untitled
     
    % Last Modified by GUIDE v2.5 12-Jun-2010 11:04:24
     
    % Begin initialization code - DO NOT EDIT
    gui_Singleton = 1;
    gui_State = struct('gui_Name',       mfilename, ...
                       'gui_Singleton',  gui_Singleton, ...
                       'gui_OpeningFcn', @untitled_OpeningFcn, ...
                       'gui_OutputFcn',  @untitled_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 untitled is made visible.
    function untitled_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 untitled (see VARARGIN)
     
    % Choose default command line output for untitled
    handles.output = hObject;
     
    % Update handles structure
    guidata(hObject, handles);
     
    % UIWAIT makes untitled wait for user response (see UIRESUME)
    % uiwait(handles.figure1);
     
     
    % --- Outputs from this function are returned to the command line.
    function varargout = untitled_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 pushbutton1.
    function pushbutton1_Callback(hObject, eventdata, handles)
    % hObject    handle to pushbutton1 (see GCBO)
    % eventdata  reserved - to be defined in a future version of MATLAB
    % handles    structure with handles and user data (see GUIDATA)
     
     
     
    function entreemot_Callback(hObject, eventdata, handles)
    % hObject    handle to entreemot (see GCBO)
    % eventdata  reserved - to be defined in a future version of MATLAB
    % handles    structure with handles and user data (see GUIDATA)
     
    % Hints: get(hObject,'String') returns contents of entreemot as text
    %        str2double(get(hObject,'String')) returns contents of entreemot as a double
     
     
    % --- Executes during object creation, after setting all properties.
    function entreemot_CreateFcn(hObject, eventdata, handles)
    % hObject    handle to entreemot (see GCBO)
    % eventdata  reserved - to be defined in a future version of MATLAB
    % handles    empty - handles not created until after all CreateFcns called
     
    % Hint: edit controls usually have a white background on Windows.
    %       See ISPC and COMPUTER.
    if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
        set(hObject,'BackgroundColor','white');
    end
    Gurbain=load('C:\Documents and Settings\admane\Mes documents\MATLAB\pragramme fini\progfinale\TEXTUREINDEXATIONDYNAMIQUE\urbainsave');
    Qurbain=load('C:\Documents and Settings\admane\Mes documents\MATLAB\pragramme fini\progfinale\TEXTUREINDEXATIONDYNAMIQUE\urbainim');
    titurbain=Qurbain.urbain;
    imurbain=Gurbain.Imageurbain;
    [durbain purbain]=size(imurbain);
     seg=get(handles.caractere,'string');%%% est ce que le probleme est dans "string"
     
    if seg==urbain
     
      %%  %%%%%%%% urbain GROUPES
        k = 1;
    figure
    for n = 1:durbain
       LirImageurbain=imread(imurbain(n,:));
        subplot(3,3,k),imshow(LirImageurbain);
        title(sprintf('Tracé n°%d',n));
     
        if ~mod(n,9)
          figure
          k = 0;
        end
    k=k+1;
     
    end
     
    end
    salutation

  6. #6
    Invité
    Invité(e)
    Par défaut
    Bonjour,
    Ton problème, c'est que tu as mis toute la procédure dans ta fonction de création de ta zone édit
    function entreemot_CreateFcn
    Or, tu veux qu'elle s'exécute losque tu appui sur le pushbutton1 ou après l'avoir tapé

    il faut donc le mettre dans les callback de ton pushbutton1 et entreemot

Discussions similaires

  1. Récupérer une chaine de caractère dans une page
    Par BrunS dans le forum Langage
    Réponses: 3
    Dernier message: 15/11/2005, 14h28
  2. Remplacer une PARTIE de chaine de caractères dans un champ
    Par Turlututuchapopointu dans le forum Langage SQL
    Réponses: 1
    Dernier message: 07/08/2005, 11h57
  3. [String]Recherche d'une chaine de caractères dans une autre
    Par Crazyblinkgirl dans le forum Langage
    Réponses: 3
    Dernier message: 29/07/2004, 11h51
  4. recherche d'une chaine de caractère dans une données text
    Par jdeheul dans le forum SQL Procédural
    Réponses: 2
    Dernier message: 17/06/2004, 16h35
  5. chaines de caractères dans fichier .rc ou .res
    Par raggadoll dans le forum C++Builder
    Réponses: 5
    Dernier message: 22/03/2004, 15h19

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