Font Preview ComboBox

Share your advanced PureBasic knowledge/code with the community.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4749
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Font Preview ComboBox

Post 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.
Amateur Radio, D-STAR/VK3HAF
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5353
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Font Preview ComboBox

Post by Kwai chang caine »

Cool, i don't see this thread before :oops:
Thanks a little bit late at Fluid byte for his code and the other members 8)
ImageThe happiness is a road...
Not a destination
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Re: Font Preview ComboBox

Post by Fluid Byte »

Just updated the code, no need for UnpackMemory() anymore.
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4749
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Font Preview ComboBox

Post 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.
Amateur Radio, D-STAR/VK3HAF
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4749
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Font Preview ComboBox

Post 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.
Amateur Radio, D-STAR/VK3HAF
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Re: Font Preview ComboBox

Post by Fluid Byte »

Why in the world would you use an outdated version? This works perfectly on 5.60 x32 and x64.
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4749
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Font Preview ComboBox

Post 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
Amateur Radio, D-STAR/VK3HAF
User avatar
Bisonte
Addict
Addict
Posts: 1232
Joined: Tue Oct 09, 2007 2:15 am

Re: Font Preview ComboBox

Post by Bisonte »

@FB : A picture can say more than 1000 words ;)

Image

The same with your updated version.
PureBasic 6.10 LTS (Windows x86/x64) | Windows10 Pro x64 | Asus TUF X570 Gaming Plus | R9 5900X | 64GB RAM | GeForce RTX 3080 TI iChill X4 | HAF XF Evo | build by vannicom​​
English is not my native language... (I often use DeepL to translate my texts.)
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Re: Font Preview ComboBox

Post by Fluid Byte »

Try again now
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4749
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Font Preview ComboBox

Post 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.
Amateur Radio, D-STAR/VK3HAF
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Re: Font Preview ComboBox

Post 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.
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Re: Font Preview ComboBox

Post by Lunasole »

Thanks, interesting stuff. Though don't know yet where I can use it ^_^
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4749
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Font Preview ComboBox

Post 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:)
Amateur Radio, D-STAR/VK3HAF
Post Reply