[5.60] tooltip not showing w/o "enable modern theme support"

Just starting out? Need help? Post your questions and find answers here.
fryquez
Enthusiast
Enthusiast
Posts: 391
Joined: Mon Dec 21, 2015 8:12 pm

Re: [5.60] tooltip not showing w/o "enable modern theme supp

Post 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.
Fred
Administrator
Administrator
Posts: 18247
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: [5.60] tooltip not showing w/o "enable modern theme supp

Post 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).
User avatar
lgb-this
User
User
Posts: 34
Joined: Sat Aug 30, 2014 9:00 pm
Location: Switzerland
Contact:

Re: [5.60] tooltip not showing w/o "enable modern theme supp

Post 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 ?
Fred
Administrator
Administrator
Posts: 18247
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: [5.60] tooltip not showing w/o "enable modern theme supp

Post by Fred »

I can't reproduce it, any chance to see a video ?
User avatar
lgb-this
User
User
Posts: 34
Joined: Sat Aug 30, 2014 9:00 pm
Location: Switzerland
Contact:

Re: [5.60] tooltip not showing w/o "enable modern theme supp

Post 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
Fred
Administrator
Administrator
Posts: 18247
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: [5.60] tooltip not showing w/o "enable modern theme supp

Post 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 ?
User avatar
Blue
Addict
Addict
Posts: 967
Joined: Fri Oct 06, 2006 4:41 am
Location: Canada

Re: [5.60] tooltip not showing w/o "enable modern theme supp

Post 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.

Image
Well I finally figured a way around it...
PB Forums : Proof positive that 2 heads (or more...) are better than one :idea:
Post Reply