SAG setEventType : Différence entre versions

De BlueWiki
 
(4 révisions intermédiaires par un utilisateur sont masquées)
Ligne 1 : Ligne 1 :
 +
[[Documentation_en_français|Liste des commandes du composant]]
 +
 +
[[SAG_setEventType-EN|English version of this page]]
 +
=== Paramètres ===
 
{| class="wikitable"
 
{| class="wikitable"
 
   
 
   
Ligne 26 : Ligne 30 :
 
|-
 
|-
 
|valign="top"|typeTitleFontStyle
 
|valign="top"|typeTitleFontStyle
|valign="top"|Texte
+
|valign="top"|Entier long
 
|valign="top"|[[File:in.png|caption]]
 
|valign="top"|[[File:in.png|caption]]
 
|  
 
|  
Ligne 38 : Ligne 42 :
 
|-
 
|-
 
|valign="top"|typeTitleFontSize
 
|valign="top"|typeTitleFontSize
|valign="top"|Texte
+
|valign="top"|Entier long
 
|valign="top"|[[File:in.png|caption]]
 
|valign="top"|[[File:in.png|caption]]
 
|  
 
|  
Ligne 56 : Ligne 60 :
 
|-
 
|-
 
|valign="top"|typeEventStyle
 
|valign="top"|typeEventStyle
|valign="top"|Texte
+
|valign="top"|Entier long
 
|valign="top"|[[File:in.png|caption]]
 
|valign="top"|[[File:in.png|caption]]
 
|  
 
|  
Ligne 68 : Ligne 72 :
 
|-
 
|-
 
|valign="top"|typeEventFontSize
 
|valign="top"|typeEventFontSize
|valign="top"|Texte
+
|valign="top"|Entier long
 
|valign="top"|[[File:in.png|caption]]
 
|valign="top"|[[File:in.png|caption]]
 
|  
 
|  
Ligne 74 : Ligne 78 :
 
|-
 
|-
 
|valign="top"|typeTitleHeight
 
|valign="top"|typeTitleHeight
|valign="top"|Texte
+
|valign="top"|Entier long
 
|valign="top"|[[File:in.png|caption]]
 
|valign="top"|[[File:in.png|caption]]
 
|  
 
|  
Ligne 80 : Ligne 84 :
 
|-
 
|-
 
|valign="top"|TypeRoundCorner
 
|valign="top"|TypeRoundCorner
|valign="top"|Texte
+
|valign="top"|Entier long
 
|valign="top"|[[File:in.png|caption]]
 
|valign="top"|[[File:in.png|caption]]
 
|  
 
|  
Ligne 86 : Ligne 90 :
 
|-
 
|-
 
|valign="top"|typeEventFontStyle
 
|valign="top"|typeEventFontStyle
|valign="top"|Texte
+
|valign="top"|Entier long
 
|valign="top"|[[File:in.png|caption]]
 
|valign="top"|[[File:in.png|caption]]
|  
+
| Optionnel (normal par défaut)
  
 
|-
 
|-
 
|valign="top"|typeEventFontAlignement
 
|valign="top"|typeEventFontAlignement
|valign="top"|Texte
+
|valign="top"|Entier long
 
|valign="top"|[[File:in.png|caption]]
 
|valign="top"|[[File:in.png|caption]]
|  
+
| Optionnel (centré par défaut)
  
 
|-
 
|-
Ligne 132 : Ligne 136 :
 
     $EventFontAlignement{$i})
 
     $EventFontAlignement{$i})
 
  Fin de boucle
 
  Fin de boucle
 +
 +
SAG_purgeAllType
 +
$error:=$error+SAG_setEventType ("Rendez-vous";"Arial";"Blue";Gras;"white";14;"Arial";"rgb(126,149,255):75";Normal;"black";12;20;2;Gras+Italique;Aligné à droite)
 +
$error:=$error+SAG_setEventType ("Déjeuner";"Arial";"Orange";Gras;"white";14;"Arial";"lightgoldenrodyellow:80";Normal;"black";12;25;0)
 +
$error:=$error+SAG_setEventType ("Indisponible";"Times";"Red";Gras;"white";14;"Times";"Red:80";Normal;"black";12;25;0)

Version actuelle en date du 25 juin 2014 à 11:43

Liste des commandes du composant

English version of this page

[modifier] Paramètres

Paramètres Type Description
Type Name Texte caption Nom du type de rendez-vous
Type Title Font Texte caption Police du titre du rendez-vous
typeTitleBGColor Texte caption
typeTitleFontStyle Entier long caption
typeTitleFontColor Texte caption
typeTitleFontSize Entier long caption
typeEventFont Texte caption
typeEventBGColor Texte caption
typeEventStyle Entier long caption
typeEventFontColor Texte caption
typeEventFontSize Entier long caption
typeTitleHeight Entier long caption
TypeRoundCorner Entier long caption
typeEventFontStyle Entier long caption Optionnel (normal par défaut)
typeEventFontAlignement Entier long caption Optionnel (centré par défaut)
Erreur Entier long caption Codes d'erreurs

[modifier] Description


Permet de définir toutes les informations pour un type d’événement.

les types d'évènement permettent de définir l'apparence de plusieurs évènement d'un seul coup.

[modifier] Exemple de code


C_ENTIER LONG($error)

SAG_purgeAllType

Boucle ($i;1;Taille tableau($Name))
    $error:=$error+SAG_setEventType ($Name{$i};$TitleFont{$i};/
    $TitleBGColor{$i};/
    $TitleFontStyle{$i};/
    $TitleFontColor{$i};/
    $TitleFontSize{$i};/
    $EventFont{$i};/
    $EventBGColor{$i};/
    $EventStyle{$i};/
    $EventFontColor{$i};/
    $EventFontSize{$i};/
    $TitleHeight{$i};/
    $RoundCorner{$i};/
    $EventFontStyle{$i};/
    $EventFontAlignement{$i})
Fin de boucle
SAG_purgeAllType 
$error:=$error+SAG_setEventType ("Rendez-vous";"Arial";"Blue";Gras;"white";14;"Arial";"rgb(126,149,255):75";Normal;"black";12;20;2;Gras+Italique;Aligné à droite)
$error:=$error+SAG_setEventType ("Déjeuner";"Arial";"Orange";Gras;"white";14;"Arial";"lightgoldenrodyellow:80";Normal;"black";12;25;0)
$error:=$error+SAG_setEventType ("Indisponible";"Times";"Red";Gras;"white";14;"Times";"Red:80";Normal;"black";12;25;0)