Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
7
Erster Beitrag:
vor 3 Jahren, 10 Monaten
Letzter Beitrag:
vor 3 Jahren, 10 Monaten
Beteiligte Autoren:
John Marrone Jr, Fabrice Harari, DerekT, Bart VDE

[WD18] Change background color for a column caption

Startbeitrag von John Marrone Jr am 30.07.2014 12:55

Hi

I want to change the background color just for the column caption only, for a single column. I have tried myself.r1..caption..brushcolor which I knew would not work. Properties do not have properties. I have looked at the help and can not find any help on this. Maybe this can not be done in WinDev but I would think so.

If anyone could help me it would be great and you have my thanks. And if someone knows that it can not be done please let me know that if you would.

Antworten:

Hi John,

I think that you should try using dbackground, dpen and associated function on your caption.

Best regards

von Fabrice Harari - am 30.07.2014 13:07
Hi Fabrice

I am talking about a columns caption in a table control. As far as I know the d????? funtions only work with an image control. The help also says this too. Am I wrong???

von John Marrone Jr - am 30.07.2014 13:16
Hi John,

This might not be ideal, but you could give it a try :

Table1.ColumnABC..Caption = gBackground(iLightBlue)+ Table1.ColumnABC..Caption

Regards,
Bart

von Bart VDE - am 30.07.2014 13:51
Hi John

If I remember correctly, you have to use the gxxx functions on the images, and the dxxx functions on the statics, lists, captions and other fields...

Now, in case it's the other way around, a 2 minutes test should solve the problem

Best regards

von Fabrice Harari - am 30.07.2014 14:29
@Bart +1
You are correct, at least it is what I use.


Table_Adjuster.Forename..Caption = gPen(LightYellow)+Table_Adjuster.Forename..Caption
Table_Adjuster.Forename..Caption = gBackground(DarkRed)+Table_Adjuster.Forename..Caption


gPen changes the colour of the caption text.

von DerekT - am 30.07.2014 16:57
Hi

Thanks Bart, Fabrice, Derek. I got it done using the gxxx functions. I had no clue that you could use drawing functions on a table control. Thank you guys again so much.

von John Marrone Jr - am 31.07.2014 00:47
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.