Le forum (ô combien francophone) des utilisateurs de Powerbuilder.
Bonjour,
nouveau petit problème avec powerbuilder.
j'ai un champs texte d'une datawindows en coordination avec un champs de type VARCHAR2(500) de ma base de donnée.
le problème est que lors de l'affichage, j'ai seulement une partie des données qui s'affiche. Cela à lieu lorsque le focus n'est pas sur ce champs. Or, si le focus est sur ce champs, j'ai bien toutes les données qui s'affiche. Bizarrre tout ça!
Une solution, ou un réponse à mon problème?
Merci pour l'aide
Dernière modification par krimo (03-08-2010 12:17:05)
Hors ligne
Essaie de cocher la propriété vertical scrollbar de ton champ.
Et si çà ne fonctionne toujours pas, redimensionne ton champs verticalement...
A+
Vincent
Dernière modification par vince.janssens (19-07-2010 08:50:07)
Hors ligne
Bonjour,
merci de me répondre!
J'avais déjà tenté (et j'ai réessayé) cette option mais elle ne change rien.
Quelqu'un à une autre idée??
Hors ligne
y'a pas un caractère particulier dans ta chaine style un retour chariot
Hors ligne
Oui, je met bien un retour chariot dans ma chaine....
Cela a-t'il un effet sur l'affichage lorsque le focus n'est pas dessus?
Hors ligne
Personne n'aurait d'idées????
Hors ligne
T'aurais pas la police du text en blanc par hasard, ou une expression qui pourrait modifier la couleur du texte ?
On ne sait jamais...
A+
Vincent
Hors ligne
le mieux que tu puisses faire,
c'est que tu decoupes le texte au fure et à mesure...
getititemstring(ta colonne)
setitemstring(ta colonne avec 10 caracteres en moins...)
apres , tu regardes si ca se reproduit ou pas... jusqu'à trouver l'origine du probleme.
A++
Hors ligne
Bonjour,
j'ai essayé de faire ta méthode mais je ne trouve pas du tout ce qu'il y a...
J'ai vraiment un problème d'affichage et je ne voie vraiment pas d'où cela peut venir...
Dernière modification par krimo (27-07-2010 06:37:12)
Hors ligne
Aucune piste??
Hors ligne
Bonjour,
Lorsque tu as un affichage différent lorsque le champ à le focus, il peut s'agir de l'application d'un format d'édition différent du format d'affichage.
Quelle format d'affichage tu appliques pour la colonne (onglet format) => [General] ?
Quelle format d'édition tu appliques => Style Type : Edit, EditMask (Mask de saisie ?), ....
Hors ligne
Bonjour,
J'utilise le format 'Général' et le format d'édition que j'applique est 'Edit'
Hors ligne
Tu peux faire des captures d'écran ?
Hors ligne
Alors voici une capture d'écran sans la prise de focus sur le champs de ma datawindows:
Et voici une capture d'image avec la prise de focus:
Hors ligne
il faut décocher "Auto Horz Scroll"
Hors ligne
J'ai déjà essayé ceci et j'ai encore retesté mais rien ne change, j'ai toujours la même chose...
Dernière modification par krimo (02-08-2010 12:05:30)
Hors ligne
Tu pourrais refaire la fenêtre sans accès à la base de donnée ? (avec dw externe avec des datas )
Tu postes ensuite le code pour que l'on puisse voir ... (en indiquant la version de pb utilisée)
Hors ligne
Bonjour,
je n'ai pas trop compris ce que tu me demande d'essayer...
Hors ligne
Tu refais ta datawindow freeform, mais au lieu de sélectionner "SQL Select" tu prends "External".
il te faut au moins un chamsp string avec une longueur de 255.
Reproduit le bug avec cette datawindow.
Puis depuis l'onglet workspace (à gauche), click droit -> Edit source. Fais un copier coller pour nous.
Tu peux aussi lire ça, mais c'est pas une nested dw ?
Troubleshooting text cut offs in nested DataWindows
Dernière modification par shahin (03-08-2010 08:11:38)
Hors ligne
Bonjour,
Pourrais tu essayer en laissant l'option <Auto Horz Scroll> coché ainsi que l'option <Auto Vert Scroll> coché.
Si ton champs n'est pas saisissable, met quand même un tab order à 10 par exemple et coche l'option <Display ONLY> dans l'onglet EDIT
Si tu as mis quelque chose dans la propriété <Protect> alors enlève le.
Si tu as mis un format dans l'onglet Edit alors enlève le et si tu as mis un format dans l'onglet format retire le également.
Après ce test dis moi ce qu'il en est et fais mois passé le source de ta datawindow
Cdt
Yanis
Hors ligne
Bonjour,
Yanis, j'ai tenté ce que tu m'a demandé et rien ne change. Je te joins le code source de la datawindows:
release 11.5; datawindow(units=0 timer_interval=0 color=1073741824 brushmode=0 transparency=0 gradient.angle=0 gradient.color=8421504 gradient.focus=0 gradient.repetition.count=0 gradient.repetition.length=100 gradient.repetition.mode=0 gradient.scale=100 gradient.spread=100 gradient.transparency=0 picture.blur=0 picture.clip.bottom=0 picture.clip.left=0 picture.clip.right=0 picture.clip.top=0 picture.mode=0 picture.scale.x=100 picture.scale.y=100 picture.transparency=0 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes print.background=no print.preview.background=no print.preview.outline=yes hidegrayline=no showbackcoloronxp=no picture.file="" ) header(height=84 color="536870912" transparency="0" gradient.color="8421504" gradient.transparency="0" gradient.angle="0" brushmode="0" gradient.repetition.mode="0" gradient.repetition.count="0" gradient.repetition.length="100" gradient.focus="0" gradient.scale="100" gradient.spread="100" ) summary(height=0 color="536870912" transparency="0" gradient.color="8421504" gradient.transparency="0" gradient.angle="0" brushmode="0" gradient.repetition.mode="0" gradient.repetition.count="0" gradient.repetition.length="100" gradient.focus="0" gradient.scale="100" gradient.spread="100" ) footer(height=0 color="536870912" transparency="0" gradient.color="8421504" gradient.transparency="0" gradient.angle="0" brushmode="0" gradient.repetition.mode="0" gradient.repetition.count="0" gradient.repetition.length="100" gradient.focus="0" gradient.scale="100" gradient.spread="100" ) detail(height=872 color="536870912" transparency="0" gradient.color="8421504" gradient.transparency="0" gradient.angle="0" brushmode="0" gradient.repetition.mode="0" gradient.repetition.count="0" gradient.repetition.length="100" gradient.focus="0" gradient.scale="100" gradient.spread="100" ) table(column=(type=char(500) update=yes updatewhereclause=yes name=l_commentaire dbname="adm_commentaires.l_commentaire" ) column=(type=decimal(0) update=yes updatewhereclause=yes key=yes name=c_commentaire dbname="adm_commentaires.c_commentaire" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=n_position dbname="adm_commentaires.n_position" ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"adm_commentaires~" ) COLUMN(NAME=~"adm_commentaires.l_commentaire~") COLUMN(NAME=~"adm_commentaires.c_commentaire~") COLUMN(NAME=~"adm_commentaires.n_position~")WHERE( EXP1 =~"adm_commentaires.c_commentaire~" OP =~"=~" EXP2 =~":c_commentaire~" ) ) ARG(NAME = ~"c_commentaire~" TYPE = number) " update="adm_commentaires" updatewhere=1 updatekeyinplace=no arguments=(("c_commentaire", number)) ) text(band=header alignment="2" text="Detail du commentaire" border="1" color="33554432" x="64" y="8" height="56" width="1646" html.valueishtml="0" name=t_titre visible="1" font.face="Arial" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="178" background.mode="2" background.color="67108864" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0" ) text(band=detail alignment="0" text="Libellé:" border="0" color="0" x="91" y="20" height="56" width="457" html.valueishtml="0" name=l_enchainement_t visible="1" font.face="Arial" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0" ) column(band=detail id=1 alignment="0" tabsequence=20 border="2" color="0" x="91" y="88" height="768" width="1609" format="~tif( len( l_commentaire ) > 49, left( l_commentaire , 50 ), gettext())" html.valueishtml="0" name=l_commentaire visible="1" edit.limit=500 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.autovscroll=yes edit.displayonly=yes font.face="Arial" font.height="-8" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0" ) htmltable(border="1" ) htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" pagingmethod=0 generatedddwframes="1" ) xhtmlgen() cssgen(sessionspecific="0" ) xmlgen(inline="0" ) xsltgen() jsgen() export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 ) import.xml() export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" ) export.xhtml()
Shahin, je n'ai pas encore tenté ta méthode, je vais tenté de faire cela cette après-midi.
Encore merci pour votre aide
Dernière modification par krimo (03-08-2010 11:41:03)
Hors ligne
Bonjour,
Ton erreur provient de la propriété Format disponible dans l'onglet format.
Il y a une expression sur cette propriété dynamique : << if( len( l_commentaire ) > 49, left( l_commentaire , 50 ), gettext()) >>
cdt
Yanis
Hors ligne
Merciiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii....
Voilà l'inconvénient du copié collé!!!
Encore merci! Problème Résolu
Hors ligne
D'ou l'importance de mettre du code ...
Hors ligne
Ohhhhh que oui!
Hors ligne