Page 2 of 2
Re: [5.60] tooltip not showing w/o "enable modern theme supp
Posted: Sat Dec 21, 2019 8:21 pm
by fryquez
lgb-this wrote:IdeasVacuum wrote:... might be easier to fix the fonts problem. What is the problem with fonts?
The text is not completely visible with the option enabled.
Your create a StringGadget with a high of 14, what you are expecting?
Normal high of controls are at lest 20.
Re: [5.60] tooltip not showing w/o "enable modern theme supp
Posted: Tue Dec 24, 2019 3:22 pm
by Fred
Yes you can clearly saw in the first pic than your text is already bigger than the textgadget() (but not clipped, but it's a Windows thing).
Re: [5.60] tooltip not showing w/o "enable modern theme supp
Posted: Tue Dec 24, 2019 4:34 pm
by lgb-this
Fred wrote:Yes you can clearly saw in the first pic than your text is already bigger than the textgadget() (but not clipped, but it's a Windows thing).
Ok, got it. The layout of my application is a little bit condensed.
Any idea to solve the problem with the flickering tooltip, when text scaling is not 100% in Win10 ?
Re: [5.60] tooltip not showing w/o "enable modern theme supp
Posted: Tue Jan 21, 2020 2:13 pm
by Fred
I can't reproduce it, any chance to see a video ?
Re: [5.60] tooltip not showing w/o "enable modern theme supp
Posted: Wed Jan 22, 2020 9:41 am
by lgb-this
I use this test-code:
Code: Select all
OpenWindow(0, 50, 50, 600, 400, "Test")
SpinGadget(10,20,20,60,20,0,100,#PB_Spin_Numeric|#ES_RIGHT)
SetGadgetState(10,33)
GadgetToolTip(10,"ToolTip SpinGadget")
CheckBoxGadget(20,20,50,100,20,"CheckBoxGadget")
GadgetToolTip(20,"ToolTip CheckBoxGadget")
StringGadget(30,20,80,120,14,"Test")
GadgetToolTip(30,"ToolTip StringGadget")
Repeat
EventID = WaitWindowEvent(1)
Until EventID = #PB_Event_CloseWindow
CloseWindow(0)
I made 2 videos:
Screen is on 100% scale:
https://www.beathis.ch/r/screen_100.mp4 ToolTip ok
Screen is on 200% scale:
https://www.beathis.ch/r/screen_200.mp4 ToolTip flickers on SpinGadget and StringGadget
Re: [5.60] tooltip not showing w/o "enable modern theme supp
Posted: Wed Jan 29, 2020 10:30 pm
by Fred
It looks like a Windows issue.
Anyway, you should always use modern skin support if you target modern OS because it links to a more modern CommonControl DLL which takes in account all new fetaures like HiDPI. I even think to remove the flag now, because it's nearly useless. Out of curiosity, why do you to disable it ?
Re: [5.60] tooltip not showing w/o "enable modern theme supp
Posted: Mon Apr 27, 2020 5:02 pm
by Blue
Fred wrote:[...]Out of curiosity, why do you to disable it ?
One major reason I discovered in practice is to be able to properly use pictures drawn with PB's image Library with
ButtonImageGadget()
I have prepared a nice picture showing side by side the differences with "
Modern Theme" enabled or not, but, for the life of me, i can't figure out how to include a picture from my Google Photo account into this post.

Well I finally figured a way around it...