SYNEDIT_TARGET_IS_OBJECT

SYNEDIT_TARGET_IS_OBJECT

DIRIGE LES COMMANDES VERS LES OBJETS SYNEDIT

  • Type: Commande
  • Paramètre: 0
  • Groupe: Objets Système

ACTION

La commande SYNEDIT_TARGET_IS_OBJECT dirige les commandes suivantes COLOR, SHOW, HIDE, FONT_SIZE, FONT_NAME, FONT_COLOR, FONT_BOLD, FONT_BOLD_OFF, FONT_ITALIC, FONT_ITALIC_OFF, FONT_STRIKE, FONT_STRIKE_OFF, FONT_UNDERLINE, FONT_UNDERLINE_OFF vers les objets SYNEDIT.

SYNTAXE : SYNEDIT_TARGET_IS_OBJECT

UTILISATION

  • La commande SYNEDIT_TARGET_IS_OBJECT est utilisée pour diriger des commandes vers les objets SYNEDIT.

ERREUR

  • Rien.

EXEMPLE

dim i%,posit,c

label target

synedit 1:full_space 1

item_add 1,"print 123456"

item_add 1,"2D_CIRCLE 10,20,30"

item_add 1,"' ceci est un commentaire"

item_add 1,"print "+chr$(34)+"ceci est une chaîne de caractères"+chr$(34)

for i%=0 to 12:gosub target:wait 1000:next i%

end

target:

' mots-clés

if c=0 then synedit_target_is_keyword:font_color 1,255,0,0

if c=1 then font_italic 1

if c=2 then font_bold 1

if c=3 then font_bold_off 1

if c=4 then font_italic_off 1

' strings

if c=5 then synedit_target_is_string:font_color 1,0,255,0

if c=6 then font_italic 1

if c=7 then font_underline 1

' commentaires

if c=8 then synedit_target_is_comment:font_color 1,200,200,200

if c=9 then font_strike 1

' gouttière

if c=10 then synedit_target_is_gutter:font_size 1,16:font_color 1,0,255,0

if c=11 then hide 1

if c=12 then synedit_target_is_object:font_size 1,16

c=c+1

return

EN RAPPORT

SYNEDIT

SYNEDIT_TARGET_IS_COMMENT

SYNEDIT_TARGET_IS_GUTTER

SYNEDIT_TARGET_IS_KEYWORD

SYNEDIT_TARGET_IS_STRING