Home > comp > gb.form > stock 
 en fr de es nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Precedente  Successivo  Modifica  Rinomina  Undo  Search  Amministrazione  
Documentazione  
Attenzione! Questa pagina non è tradotta.  Vedi versione in inglese 
Stock (gb.form)
This classe is used for returning predefined icons.

You should not have to use this classe directly to get these icons. Use the Picture classe as an array instead.

Simboli
Questa classe è statica.
Questa classe si comporta come un solo-lettura array.

Statico proprietà  Statico metodi 
Debug  Icons  List  Themes    GetSize  Refresh   

Examples

If we had a ToggleButton then this click eventi would change the stock icon displayed.

PUBLIC SUB ToggleButtonDetail_Click()
  IF ToggleButtonDetail.Value THEN
    ToggleButtonDetail.Picture = Stock["16/view-icon"]
  ELSE
    ToggleButtonDetail.Picture = Stock["16/view-detail"]
  END IF
END

And this next example does exactly the same as above. But here we use a Picture class to load the stock icon.

PUBLIC SUB ToggleButtonDetail_Click()
  IF ToggleButtonDetail.Value THEN
    ToggleButtonDetail.Picture = Picture["icon:/16/view-icon"]
  ELSE
    ToggleButtonDetail.Picture = Picture["icon:/16/view-detail"]
  END IF
END