Re: Canvas Variation
Publié : lun. 02/juil./2012 16:37
Bon puisque mon copain KERNADEC et moi on est encore les extra terrestre du caractere special 
J'ai essayé de t'aider, avec mes tristes moyens.
C'est vrai trouver une panne sans rien y voir...
Alors j'ai commis ça...et ça a l'air de marcher, maintenant c'est à toi de voir
Pendant que j'y suis, ce qui serait peut etre logique c'est que quand tu rajoutes une ligne dans une entité texte avec un CR, que l'entitée s'auto-ajuste en visualisant la dernière ligne.
En effet un inhibé du bulbe comme moi, pourrait croire que la ligne n'a pas été prise en compte, si il ne pense pas a agrandir lui même l'entité texte a la souris
Pffff !!! Mais non mais non ça m'ai pas arrivé

J'ai essayé de t'aider, avec mes tristes moyens.
C'est vrai trouver une panne sans rien y voir...
Alors j'ai commis ça...et ça a l'air de marcher, maintenant c'est à toi de voir

Code : Tout sélectionner
Procedure Inspector_Update_ListEntities()
Define TextNoChr$; <=== ici
If IsWindow(#EntityForm)
ClearGadgetItems(#DSList)
ForEach Entity()
If entity()\Actif = #True
TextNoChr$ = ReplaceString(Entity()\Text, #CRLF$, " [RT] ") ; <=== ici
AddGadgetItem(#DSList, -1, TextNoChr$)
EndIf
Next
SetGadgetState(#DSList, 0)
EndIf
EndProcedure
Procedure Inspector_Update(Action.b=0)
Protected Text.s, Value.b
Define TextNoChr$; <=== ici
If IsWindow(#EntityForm)
With *InspectEntity
TextNoChr$ = ReplaceString(Entity()\Text, #CRLF$, " [RT] ") ; <=== ici
SetGadgetText(#DSList, TextNoChr$)
SetGadgetText(#DSX, Str(\Left))
SetGadgetText(#DSY, Str(\Top))
SetGadgetText(#DSW, Str(\Width))
SetGadgetText(#DSH, Str(\Height))
If Action = 0 Or Action = 2
If FindString(\Text, #LF$)
Text = \Text
TextNoChr$ = ReplaceString(Entity()\Text, #CRLF$, " [RT] ") ; <=== ici
SetGadgetText(#DSText, TextNoChr$)
DisableGadget(#DSText, #True)
Else
SetGadgetText(#DSText, \Text)
DisableGadget(#DSText, #False)
EndIf
EndIf
If action = 0
SetGadgetState(#DSJustify, \Justify)
SetGadgetText(#DSPadding, Str(\Padding))
SetGadgetText(#DSENTITY, Str(\Entity))
SetGadgetState(#DSModel, \Model - 1)
SetGadgetText(#DSTextColor, "RGB("+Str(Red(\TextColor))+Chr(44)+Str(Green(\TextColor))+Chr(44)+Str(Blue(\TextColor))+")")
SetGadgetData(#DSTextColor, \TextColor)
SetGadgetColor(#DSTextColor, #PB_Gadget_BackColor, \TextColor)
SetGadgetColor(#DSTextColor, #PB_Gadget_FrontColor, RGB(255, 255, 255))
SetGadgetText(#DSBackColor, "RGB("+Str(Red(\BackGroundColor))+Chr(44)+Str(Green(\BackGroundColor))+Chr(44)+Str(Blue(\BackGroundColor))+")")
SetGadgetData(#DSBackColor, \BackGroundColor)
SetGadgetColor(#DSBackColor, #PB_Gadget_BackColor, \BackGroundColor)
SetGadgetText(#DSBorderColor, "RGB("+Str(Red(\BorderColor))+Chr(44)+Str(Green(\BorderColor))+Chr(44)+Str(Blue(\BorderColor))+")")
SetGadgetData(#DSBorderColor, \BorderColor)
SetGadgetColor(#DSBorderColor, #PB_Gadget_BackColor, \BorderColor)
SetGadgetText(#DSfont, \FontName + " " + Str(\FontSize))
SetGadgetText(#DSLinkParent, Str(\LastParent))
EndIf
EndWith
EndIf
EndProcedure
En effet un inhibé du bulbe comme moi, pourrait croire que la ligne n'a pas été prise en compte, si il ne pense pas a agrandir lui même l'entité texte a la souris

Pffff !!! Mais non mais non ça m'ai pas arrivé
