Discussion:
mono space font?
(too old to reply)
T
2020-02-29 02:34:49 UTC
Permalink
Is there a way to tell

https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messagebox

I want mono spaced fonts?
JJ
2020-02-29 07:54:09 UTC
Permalink
Post by T
Is there a way to tell
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messagebox
I want mono spaced fonts?
No. MessageBox() or MessageBoxEx() doesn't provide customization for that.

But you can hack it by using WH_CBT Windows hook to change the font when the
dialog is being shown. You may need to adjust the dialog dimension too.
Bonita Montero
2020-02-29 09:01:00 UTC
Permalink
Post by JJ
Post by T
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messagebox
I want mono spaced fonts?
No. MessageBox() or MessageBoxEx() doesn't provide customization for that.
But you can hack it by using WH_CBT Windows hook to change the font when the
dialog is being shown. You may need to adjust the dialog dimension too.
Do you really think he is able to write a hook in Raku ?
He's a layman and will be forever.
T
2020-02-29 21:24:48 UTC
Permalink
Post by Bonita Montero
Post by JJ
Post by T
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messagebox
I want mono spaced fonts?
No. MessageBox() or MessageBoxEx() doesn't provide customization for that.
But you can hack it by using WH_CBT Windows hook to change the font when the
dialog is being shown. You may need to adjust the dialog dimension too.
Do you really think he is able to write a hook in Raku ?
He's a layman and will be forever.
there would be only about a 25% chance if I
saw a C++ example. Maybe 15%. Or 0% depending
on how well the example was laid out
JJ
2020-03-01 13:11:07 UTC
Permalink
Post by T
Post by Bonita Montero
Post by JJ
Post by T
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messagebox
I want mono spaced fonts?
No. MessageBox() or MessageBoxEx() doesn't provide customization for that.
But you can hack it by using WH_CBT Windows hook to change the font when the
dialog is being shown. You may need to adjust the dialog dimension too.
Do you really think he is able to write a hook in Raku ?
He's a layman and will be forever.
there would be only about a 25% chance if I
saw a C++ example. Maybe 15%. Or 0% depending
on how well the example was laid out
Just google those function name, constant name, and "example".

Raku also has unrelated documentations which can help the implementation.
Bonita Montero
2020-03-01 16:20:48 UTC
Permalink
Post by JJ
Just google those function name, constant name, and "example".
Raku also has unrelated documentations which can help the implementation.
Raku is able to call C-functions.
But if might be able to have a callback is a different issue.
T
2020-03-02 08:32:03 UTC
Permalink
Post by T
Is there a way to tell
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messagebox
I want mono spaced fonts?
I worked around the issue with regex and some
cleaver insertions of tabs `chr(9)`

Loading...