How to display graphics screens in Windows 10 Japanese environment

Windows specific questions.
Makoto WATANABE
Posts: 196
Joined: Apr 10, 2010 11:41
Location: Japan
Contact:

How to display graphics screens in Windows 10 Japanese environment

Postby Makoto WATANABE » Oct 06, 2020 11:07

You may not understand my problem because you don't have the Windows 10 Japanese environment.
However, if there is any possibility of dealing with it, please let me know.

Previously, I was told by MrSwiss that the reason why the Windows 10 graphics screen does not appear is because of the Japanese environment.

> My Windows 10 PCs don't show programs of graphic.
https://www.freebasic.net/forum/viewtopic.php?f=6&t=27712

After that, I learned that when I add "Screencontrol", the graphics screen is displayed even in the Windows 10 Japanese environment.

Code: Select all

#Include "fbgfx.bi"

#ifdef __FB_WIN32__
   Screencontrol FB.SET_DRIVER_NAME, "GDI"
#EndIf

' Sets 320x240 in 32bpp color depth
Screen 14, 32

' Sets orange foreground and dark blue background color
Color RGB(255, 128, 0), RGB(0, 0, 64)

' Clears the screen to the background color
Cls                     

' Prints "Hello World!" in the middle of the screen
Locate 15, 14
Print "Hello World!"

Sleep

Q1. What does it mean to add "Screencontrol"?

Q2. I would like to add "Screencontrol" to show the graphics screen, even for "lang qb".
Please tell me what kind of code I should write specifically.
fxm
Posts: 10190
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: How to display graphics screens in Windows 10 Japanese environment

Postby fxm » Oct 06, 2020 11:24

Try this which may work in both cases for you:

Code: Select all

' Sets the graphics method GDI
SetEnviron("fbgfx=GDI")

' Sets 640x480
Screen 12

' Sets yellow foreground and blue background color
Color 14, 1

' Clears the screen to the background color
Cls                     

' Prints "Hello World!" in the middle of the screen
Locate 15, 34
Print "Hello World!"

Sleep

'SetEnviron("fbgfx=GDI")' is the old method compared to 'Screencontrol FB.SET_DRIVER_NAME, "GDI"'.
Makoto WATANABE
Posts: 196
Joined: Apr 10, 2010 11:41
Location: Japan
Contact:

Re: How to display graphics screens in Windows 10 Japanese environment

Postby Makoto WATANABE » Oct 07, 2020 2:45

Dear fxm!

Thanks for your flash reply.
Thanks to you, all of my graphic drawing programs are back on the screen in Japanese Windows 10 environment.
My program library was revived by adding just one line (2 lines including the comment) that you taught me.
Thank you so much.

Return to “Windows”

Who is online

Users browsing this forum: No registered users and 4 guests