MESSAGE is cutoff

For some reason all my messages are being cut off and I need to add | add the end to manually add a blank line - but this is pretty cumbersome to do, see below:

Any idea what could have caused this and how to remedy this?
I am on Clarion 11.1.13855- the project was previously a Clarion 8 project - but this issue seems to only happen recently

Have you tried a smaller font size to see if you still see the same behaviour, ie having to add anothe | at the end of the line to get a blank line?

I haven’t changed anything regarding the font-sizes in the program - it uses AnyFont and it set to a font-size of 8 by default

I’m wondering if the calculation for the window size is ignoring SetFont changes. Can you disable AnyFont for the message box?

You might have to have Anyfont code before the message box to restore font & size back to default, then call the message and then call Anyfont again to get back to the required font & size again.

Clunky, but I suspect the calculation for working out the window size before its displayed is playing up somewhere.

What if you just compile the app with Anyfont disabled for now? Do you see the same thing again?

The thing is - it used to be good - but out of no where it’s broken - giving me a feeling that it’s Windows related, as also the background of my appframe is having issues (it’s stretched instead of tiled now) all without code changes

Sadly disabling AnyFont - at the least the way I can - doesn’t fix the message thing - but does fix my background issue.

With the way I can, I mean I can’t use the “Disable all AnyFont features” option in the extension, as this will remove certain variables and cause compile issues.

This is/was a bug, see Clarion 11.1.13855 EE: broken Message() - Font Size 11 Calcs Wrong Height Clips Text - questions / tips - ClarionHub

I don’t have release notes at hand to see if it has been fixed since.

Mark

Ah thanks @Mark_Sarson - I looked for it but couldn’t find it

Besides it might be a bug in Clarion that is solved in Clarion 12 it might be worth looking at Capesoft Message box which replaces the Clarion build in message box. See CapeSoft MessageBox
It won’t have the problem you have right now. Might be worth a try if you are not able to switch to another Clarion build.

1 Like

Already using MessageBox from Capesoft - having the same issue sadly

That is weird. In my application the message box size is depending on the length of the message. Did you set the minimal width on 0?

Show your ds_message() Procedure Window … code so we can see the exact code for how you defined your Window and Controls. I’d guess you have different Fonts on your Window, Prompt and Buttons.

Also a screenshot of that window in the Designer and Previewer may help.

Have you added my Message White Gray change?


In posts if there is code associated with your problem it’s best to show it. The screenshot alone is not enough.

I saw this was set to 150 - maybe that’s the cause?

I guess yes. I cannot remember why I set it to 0. It is worth a try.

And see Carl’s suggestion: look at the fonts of your ds_message() Procedure Window. In my procedure I did change the font explicitly to the font I use in my whole application. You are using AnyFont if I am well so that might need another adjustment for it.

Maybe it lets the window do its own thing instead of being overridden manually.