Page 2 of 2
Re: Font Preview ComboBox
Posted: Wed May 10, 2017 8:56 am
by Fangbeast
Bisonte wrote:Ah now I see what you mean.
I tested it with PB 4.41 and the fontnames are styled like the fonts, but not with PB5.60 on my Win10.
I don't know what happen'd, maybe an API artist can do it ?
Thought I was going mad.
When I first tested drag and drop on the very first Windows 10, that didn't work either but a few updates later it did. I vaguely remember MS saying that there were some API changes but don't remember what they were.
Re: Font Preview ComboBox
Posted: Thu May 11, 2017 1:09 pm
by Kwai chang caine
Cool, i don't see this thread before
Thanks a little bit late at Fluid byte for his code and the other members

Re: Font Preview ComboBox
Posted: Sun May 28, 2017 9:35 am
by Fluid Byte
Just updated the code, no need for UnpackMemory() anymore.
Re: Font Preview ComboBox
Posted: Sun May 28, 2017 1:02 pm
by Fangbeast
If this works, I am going to bend down low and wassail in your direction. It doesn't help that I am on the Redstone 2 release cycle and MS break 10 things (at least) for every thing they fix or add.
It's just too damned useful not to use. I know PB has a built in fontrequester but there are a whole heap of applications where your method is very much needed.
Thank you a thousand times.
Re: Font Preview ComboBox
Posted: Mon May 29, 2017 7:58 am
by Fangbeast
Spoke too soon. On pb 5.43x86 and the latest Windows 10 Redstone 2 build, the fonts and still not rendered graphically in the dropdown box.
Re: Font Preview ComboBox
Posted: Mon May 29, 2017 8:24 am
by Fluid Byte
Why in the world would you use an outdated version? This works perfectly on 5.60 x32 and x64.
Re: Font Preview ComboBox
Posted: Mon May 29, 2017 10:10 am
by Fangbeast
Why in the world would you use an outdated version?
Because 50 projects use it and I am too tired these days to try and convert them all over without begging every day for help like a homeless dog:):)
This works perfectly on 5.60 x32 and x64
I just tried it 2 hours before you posted this in a portable version of 5.60 x86 and still the same result. Just copied and pasted your latest code into the 5.60 IDE and it still doesn't render the fonts graphically.
No idea what I should or should not be doing. Any ideas? Some compiler switch maybe?
Forgot to mention that Bisonte confirmed it on his pb 5.6
Re: Font Preview ComboBox
Posted: Mon May 29, 2017 10:33 am
by Bisonte
@FB : A picture can say more than 1000 words
The same with your updated version.
Re: Font Preview ComboBox
Posted: Mon May 29, 2017 12:29 pm
by Fluid Byte
Try again now
Re: Font Preview ComboBox
Posted: Mon May 29, 2017 2:54 pm
by Fangbeast
Thanks FB, works on 5.43 again.
Do you know what I was doing wrong?
I swear that I pasted the original code as-is and it didn't render graphically.
Your code is very important to quite a few of my projects now.
Re: Font Preview ComboBox
Posted: Mon May 29, 2017 3:04 pm
by Fluid Byte
Fangbeast wrote:I swear that I pasted the original code as-is and it didn't render graphically.
That's because it didn't. I thought you meant it didn't display at all, language barrier. Anyway, it has been heavily edited and I doubt it will work in your programs now unless you update the code.
Re: Font Preview ComboBox
Posted: Sun Jun 04, 2017 2:31 pm
by Lunasole
Thanks, interesting stuff. Though don't know yet where I can use it ^_^
Re: Font Preview ComboBox
Posted: Mon Jun 05, 2017 7:02 am
by Fangbeast
Anyway, it has been heavily edited and I doubt it will work in your programs now unless you update the code.
All updated into the main program and working properly.
Not much left on my todo list before I have nothing left to do and get bored again:)