Abilitare JavaScript per vedere questo sito.

Imposta il testo di un sotto-elemento di uno specifico elemento UI.

Sintassi

void set_item_text(const string &in name, uint32 itemId, const string &in text, int32 column=0)

name

Nome dell'elemento UI

itemId

ID sotto-elemento

text

Testo da impostare

column

Numero di colonna (opzionale)

Risultato

(nessuno)

Nota

Nel caso che l'elemento UI non supporti tale funzionalità, la richiesta verrà semplicemente ignorata.

Esempio di utilizzo:

ui::form @my_form;

 

/* Impostazione contenuto sotto-elemento per elemento UI item-1, 

   ipotizzando tree lineare a due colonne (nome, descrizione) */

uint32 id = my_form.add_item("item-1");

my_form.set_item_image("item-1", id, ":/img0/object.png", 0);

my_form.set_item_text("item-1", id, "obj-0", 0);

my_form.set_item_text("item-1", id, "Oggetto n. 0", 1);

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC