# SysList control: changing font does not work (C10)

**URL:** <https://clarionhub.com/t/syslist-control-changing-font-does-not-work-c10/7571>\
**Category:** questions\
**Tags:** listbox, c10\
**Created:** [October 17, 2024, 9:32am UTC](https://clarionhub.com/t/syslist-control-changing-font-does-not-work-c10/7571 "2024-10-17T09:32:36Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkuijt](https://clarionhub.com/user_avatar/clarionhub.com/jkuijt/32/6168_2.png) [@jkuijt](https://clarionhub.com/u/jkuijt)\
**Post date:** [October 17, 2024, 9:32am UTC](https://clarionhub.com/t/syslist-control-changing-font-does-not-work-c10/7571/1 "2024-10-17T09:32:37Z")

</div>

Hi all.

Using a SysList control on a window in my C10 application. I try to change the font of this SysList control so that it looks like the rest of my other controls. Please see the screenshot.  
I tried for example:  
`SysList1.SetFont('Microsoft Sans Serif',12)`  
But no change of the font and size.  
In C6 this works ok btw.

I use this version of SysList in my C10 application:

> **[SysList - Browse Files at SourceForge.net](https://sourceforge.net/projects/syslist/files/)**
>
> SysList files. Full list of files for SysList

There you can see the source of SysListClass.SetFont in syslist.clw.  
So in my C6 application I can change the font, but in C10 it does nothing at all.

**EDIT** : I made a small example, which als use SysTree:

> **[SysTree - Browse Files at SourceForge.net](https://sourceforge.net/projects/systree/files/)**
>
> SysTree files. Full list of files for SysTree

I have attached SysListTree-example.zip. Please run VIEWDOCS and select a folder. You can see that the files of the SysList control aren't displayed in the Consolas font.  
[SysListTree-example.zip](https://clarionhub.com/uploads/short-url/3nPtjNQ1jBpvv0zXrIEfhNYXoNm.zip) (866,1 KB)

I hope somebody can help me with this.

Thanks and best regards  
Jeffrey

 ![syslist-c10-problem](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/2/21a4bb4ed51ea89352d2a92435a27b0fa6f6259b.png)

 ![syslist-c10-code-snippet](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/f/fac6ebb802248ef344732e645f56db2e22e2cbd6.png)

---

<div class="post-metadata">

**Author:** ![griset.eric](https://clarionhub.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@griset.eric](https://clarionhub.com/u/griset.eric)\
**Post date:** [October 18, 2024, 12:57pm UTC](https://clarionhub.com/t/syslist-control-changing-font-does-not-work-c10/7571/2 "2024-10-18T12:57:24Z")

</div>

Hi Jeffrey,  
In one of my applications, I have :

```clarion
OF EVENT:OpenWindow
  ! Autosize columns for SysList control: SysList1
  SysList1.SetColumnWidth(0, SYSLISTCOLUMNWIDTH:AUTOSIZE)
  ! [Priority 8500]
  SysList1.SetFont('Consolas',14)
  ! End of “Window Event Handling”

```

And it works perfectly.

---

<div class="post-metadata">

**Author:** ![jkuijt](https://clarionhub.com/user_avatar/clarionhub.com/jkuijt/32/6168_2.png) [@jkuijt](https://clarionhub.com/u/jkuijt)\
**Post date:** [October 18, 2024, 1:31pm UTC](https://clarionhub.com/t/syslist-control-changing-font-does-not-work-c10/7571/3 "2024-10-18T13:31:45Z")

</div>

Hi Eric,

Thanks. I tried your code here, but there’s no change in the font and size.  
When I also pass a color, then I only see the color change.

Have you tried my example in C10?  
(In C6 all is working ok.)

Best regards  
Jeffrey

---

<div class="post-metadata">

**Author:** ![griset.eric](https://clarionhub.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@griset.eric](https://clarionhub.com/u/griset.eric)\
**Post date:** [October 18, 2024, 2:32pm UTC](https://clarionhub.com/t/syslist-control-changing-font-does-not-work-c10/7571/4 "2024-10-18T14:32:40Z")

</div>

Hi Jeffrey,

No, I hadn’t tested your example but I just did (C11) and compared the properties of the 2 SysList1 (mine and yours) and didn’t find any noticeable difference that would explain why it works in my application and not in yours:

 ![Image1](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/b/b6fb5570c72d436868c0d6621f9d6e1bad15ad22.jpeg) ![Image2](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/3/319ad4eea1ff0df0941cbef958f8bb596ea77bf6.jpeg)

Image 1: `SysList1.SetFont('Consolas', 12 ,COLOR:Red,,)`  
Image 2: `SysList1.SetFont('Consolas', 8 ,COLOR:Red,,) `

I’ll take a closer look another day.

Best regards,  
Eric

---

<div class="post-metadata">

**Author:** ![jkuijt](https://clarionhub.com/user_avatar/clarionhub.com/jkuijt/32/6168_2.png) [@jkuijt](https://clarionhub.com/u/jkuijt)\
**Post date:** [October 18, 2024, 2:59pm UTC](https://clarionhub.com/t/syslist-control-changing-font-does-not-work-c10/7571/5 "2024-10-18T14:59:48Z")

</div>

Hi Eric,

Thank you.  
I use C10 and a List view with SysList.  
I see that you use Large Icons with SysList?

Again, thank you very much for testing!

Best regards  
Jeffrey

---

<div class="post-metadata">

**Author:** ![griset.eric](https://clarionhub.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@griset.eric](https://clarionhub.com/u/griset.eric)\
**Post date:** [October 18, 2024, 3:29pm UTC](https://clarionhub.com/t/syslist-control-changing-font-does-not-work-c10/7571/6 "2024-10-18T15:29:53Z")

</div>

Hi Jeffrey,

I have just tested the example program supplied with SysList and found that  
1/ `SysList1.SetFont('Consolas',24,COLOR:Red,)` gives :

 ![Image1](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/9/9e0d588eba8fbeac00f67965bc4a003b4db5b0de.jpeg)

2/ `SysList1.SetFont('Consolas',12,COLOR:Green,)` gives :

 ![Image2](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/b/b7124bc1dfb380a3428ae7e5ca14d9e51d31fc79.jpeg)

So there’s a problem with your program and not with the SysList control.

Best regards,  
Eric

---

<div class="post-metadata">

**Author:** ![griset.eric](https://clarionhub.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@griset.eric](https://clarionhub.com/u/griset.eric)\
**Post date:** [October 18, 2024, 3:42pm UTC](https://clarionhub.com/t/syslist-control-changing-font-does-not-work-c10/7571/7 "2024-10-18T15:42:42Z")

</div>

Hi Jeffrey,

I’ve just modified your program by adding a new SysList control (Name only) below yours:

 ![Image3](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/3/3535fb7d912c3857159470599932c6322ddbf50c.jpeg)

And the font size does change. I think you should delete your SysList1 control and recreate another one instead.  
Have a nice evening!

Best regards,  
Eric

---

<div class="post-metadata">

**Author:** ![jkuijt](https://clarionhub.com/user_avatar/clarionhub.com/jkuijt/32/6168_2.png) [@jkuijt](https://clarionhub.com/u/jkuijt)\
**Post date:** [October 18, 2024, 4:42pm UTC](https://clarionhub.com/t/syslist-control-changing-font-does-not-work-c10/7571/8 "2024-10-18T16:42:23Z")

</div>

Thanks a lot Eric!

I will investigate further.  
Have a nice weekend!

Best regards  
Jeffrey

---

<div class="post-metadata">

**Author:** ![griset.eric](https://clarionhub.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@griset.eric](https://clarionhub.com/u/griset.eric)\
**Post date:** [October 18, 2024, 6:02pm UTC](https://clarionhub.com/t/syslist-control-changing-font-does-not-work-c10/7571/9 "2024-10-18T18:02:28Z")

</div>

With pleasure, good weekend to you too Jeffrey.

Best regards,  
Eric

---

<div class="post-metadata">

**Author:** ![griset.eric](https://clarionhub.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@griset.eric](https://clarionhub.com/u/griset.eric)\
**Post date:** [October 19, 2024, 4:39pm UTC](https://clarionhub.com/t/syslist-control-changing-font-does-not-work-c10/7571/11 "2024-10-19T16:39:41Z")

</div>

Hello Jeffrey,

I had a little time at the end of the day and I may have found the reason for the problem you’re having. The SysList control you inserted is embedded as IMAGE whereas when I insert a new SysList control mine is embedded as TEXT.

 ![Image2](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/1/1eaa88815cc1b6da30d618653eac822e83a745ef.jpeg)

and the font change (color, size) is done correctly with you code:

 ![Image1](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/f/f91d0fba653395782b3ca9060b540f1485f817db.jpeg)

Best regards,  
Eric

---

<div class="post-metadata">

**Author:** ![jkuijt](https://clarionhub.com/user_avatar/clarionhub.com/jkuijt/32/6168_2.png) [@jkuijt](https://clarionhub.com/u/jkuijt)\
**Post date:** [October 19, 2024, 4:48pm UTC](https://clarionhub.com/t/syslist-control-changing-font-does-not-work-c10/7571/12 "2024-10-19T16:48:16Z")

</div>

Hi Eric,

Wow, thank you very much, you made my weekend!!

Awesome!

Best regards  
Jeffrey

---

<div class="post-metadata">

**Author:** ![RchdR](https://clarionhub.com/letter_avatar_proxy/v4/letter/r/d78d45/32.png) [@RchdR](https://clarionhub.com/u/RchdR)\
**Post date:** [October 19, 2024, 4:50pm UTC](https://clarionhub.com/t/syslist-control-changing-font-does-not-work-c10/7571/13 "2024-10-19T16:50:39Z")

</div>

Prop:buffer?  
Transparent property? That affects some clarion controls during a resize which might have an effect.

Theres another prop: which affects screen draws but I cant think what it is at the moment but it can be used in combo with prop:buffer, but it sounds like an event/msg isnt happening when the font resize takes place hence the difference between image and text thats seen.

---

<div class="post-metadata">

**Author:** ![griset.eric](https://clarionhub.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@griset.eric](https://clarionhub.com/u/griset.eric)\
**Post date:** [October 19, 2024, 5:01pm UTC](https://clarionhub.com/t/syslist-control-changing-font-does-not-work-c10/7571/14 "2024-10-19T17:01:22Z")

</div>

You are most welcome Jeffrey.

Best regards,  
Eric

---

<div class="post-metadata">

**Author:** ![griset.eric](https://clarionhub.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@griset.eric](https://clarionhub.com/u/griset.eric)\
**Post date:** [October 19, 2024, 5:18pm UTC](https://clarionhub.com/t/syslist-control-changing-font-does-not-work-c10/7571/15 "2024-10-19T17:18:11Z")

</div>

It’s possible Richard, but I’m just an amateur who knows how to use Clarion to make the programs I need or for the pleasure of learning.

Best regards,  
Eric

---

<div class="post-metadata">

**Author:** ![RchdR](https://clarionhub.com/letter_avatar_proxy/v4/letter/r/d78d45/32.png) [@RchdR](https://clarionhub.com/u/RchdR)\
**Post date:** [October 19, 2024, 6:07pm UTC](https://clarionhub.com/t/syslist-control-changing-font-does-not-work-c10/7571/16 "2024-10-19T18:07:23Z")

</div>

We are all amatuers. 😀

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://clarionhub.com/user_avatar/clarionhub.com/carlbarnes/32/1859_2.png) [@CarlBarnes](https://clarionhub.com/u/CarlBarnes)\
**Post date:** [October 20, 2024, 1:10am UTC](https://clarionhub.com/t/syslist-control-changing-font-does-not-work-c10/7571/17 "2024-10-20T01:10:14Z")

</div>

> [@griset.eric](#):
>
> The SysList control you inserted is embedded as IMAGE whereas when I insert a new SysList control mine is embedded as TEXT

That makes sense why it doesn’t work. An Image control does not have Font attributes.

If you look inside SysList.clw code .Init() the Font specs come from the container control. The .SetFont() method first changes the container control Prop:Fontxxxx’s which won’t work with an Image.

---

<div class="post-metadata">

**Author:** ![griset.eric](https://clarionhub.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@griset.eric](https://clarionhub.com/u/griset.eric)\
**Post date:** [October 20, 2024, 9:54am UTC](https://clarionhub.com/t/syslist-control-changing-font-does-not-work-c10/7571/18 "2024-10-20T09:54:43Z")

</div>

Thank you Carl for these explanations which make sense. I had found that by replacing IMAGE with TEXT Jeffrey’s code worked well and now I know why. Have a nice Sunday.

Best regards,  
Eric

---

<div class="post-metadata">

**Author:** ![jkuijt](https://clarionhub.com/user_avatar/clarionhub.com/jkuijt/32/6168_2.png) [@jkuijt](https://clarionhub.com/u/jkuijt)\
**Post date:** [October 20, 2024, 10:05am UTC](https://clarionhub.com/t/syslist-control-changing-font-does-not-work-c10/7571/19 "2024-10-20T10:05:44Z")

</div>

Thank you Carl, that makes sense!

Best regards  
Jeffrey
