In the following snippet, if, in compiler options, I checked "Enable DPI aware...." or "Enable modern theme support....", the background of the panel gadget becomes white, otherwise (both unchecked) it's gray, which I prefer.
is this normal?
using PB6.20b1, W10
Code: Select all
EnableExplicit
Define Event.i, GadgetID.i
Enumeration
#Form
#Panel
#Text=#Panel+100
#String=#Text+100
#Button=#String+100
#Editor=#Button+100
#Option=#Editor+100
#Spin=#Option+100
#Image=#Spin+100
#Check=#Image+100
EndEnumeration
OpenWindow(0,100, 100, 800, 400, "TEST1", #PB_Window_MinimizeGadget | #PB_Window_SizeGadget | #PB_Window_TitleBar )
PanelGadget(#Panel, 10, 10, 600, 350)
AddGadgetItem(#Panel, -1, "test1")
TextGadget(#Text,10,10,70,20,"File name:")
StringGadget(#String,80,10,250,20,"")
ButtonGadget(#Button,350,10,40,20,"File")
ButtonGadget(#Button+1,460,10,70,20,"Convert")
EditorGadget(#Editor, 10,50,500,200,#PB_Editor_ReadOnly)
AddGadgetItem(#Panel, -1, "test2")
AddGadgetItem(#Panel, -1, "test3")
CloseGadgetList()
SetGadgetState(#Panel,0)
Repeat
Event = WaitWindowEvent()
GadgetID = EventGadget() ; Is it a gadget event?
Until Event = #PB_Event_CloseWindow
Edit: Compiling with PB6.04 with "Enable DPI aware..." checked, keeps background gray.