Changeset 150 for trunk/SRC/ToBeReviewed/WIDGET/xnotice.pro
- Timestamp:
- 08/09/06 12:12:54 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/WIDGET/xnotice.pro
r134 r150 3 3 ;------------------------------------------------------------ 4 4 ;+ 5 ; NAME:xnotice6 5 ; 7 ; PURPOSE:cree un widget avec du texte au milieu de la fenetre. 6 ; @file_comments 7 ; Create a widget with some text at the middle of the window 8 8 ; 9 ; CATEGORY:information 9 ; @categories 10 ; Information 11 ; 12 ; @param TEXT {in}{required} 13 ; it is a string or a vector of string. If it is a scalar, we 14 ; look for the line separator !C to create a text with several lines. 10 15 ; 11 ; CALLING SEQUENCE:widgetid=xnotice(text) 12 ; 13 ; INPUTS:text: un string ou un vecteur de string. Si c''est un 14 ; scalaire on cherche le separateur de ligne !C pour creer un texte a 15 ; plusieurs lignes. 16 ; @keyword CHKWIDGET 17 ; Force to verify that they are some active widget to create a widget, 18 ; otherwise print at the prompt 16 19 ; 17 ; KEYWORD PARAMETERS:chkwidget: oblige a verifier qu''il y a des18 ; widgets actif pour creer un widget, sinon imprime au prompt20 ; @returns 21 ; The identity of the created widget 19 22 ; 20 ; OUTPUTS:lidentite du widget cree 21 ; 22 ; COMMON BLOCKS 23 ; 24 ; SIDE EFFECTS:ne fait pas appelle a xmanager -> ne cree aucun event! 25 ; il faut detruire ce widget a la main: 23 ; @restrictions 24 ; It do not call xmanager -> It do not create any event! 25 ; We have to delete this widget manuelly: 26 26 ; widget_control, widgetid, /destroy 27 27 ; 28 ; RESTRICTIONS: 29 ; 30 ; EXAMPLE: 28 ; @examples 31 29 ; IDL> id=xnotice('ca marche !C ou pas?') 32 30 ; IDL> widget_control, id, /destroy 33 31 ; 34 ; MODIFICATION HISTORY:Sebastien Masson (smasson@lodyc.jussieu.fr) 32 ; @history 33 ; Sebastien Masson (smasson@lodyc.jussieu.fr) 35 34 ; 2000 3 17 35 ; 36 ; @version 37 ; $Id$ 38 ; 36 39 ;- 37 40 ;------------------------------------------------------------ … … 40 43 FUNCTION xnotice, text, CHKWIDGET = chkwidget 41 44 ; 42 ; on separe le text en differentes lignes (separees par !C) si ce45 ; We separate the text in different lines (separated by !C) if it is not done yet... 43 46 ; n''est pas deja fait... 44 47 ;
Note: See TracChangeset
for help on using the changeset viewer.