It is currently Wed Feb 19, 2020 10:56 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: [Module] ToolTipEx - Module (all OS)
PostPosted: Thu Jul 11, 2019 1:52 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1109
Location: Germany
Extended ToolTip - Gadget (all OS / 64Bit / DPI)

Thanks to the mk-soft code, ToolTips for gadgets other than the CanvasGadget can now also be displayed.

Improved tooltips for all gadgets.
  • multiline tooltips (#LF$)
  • optional title bar
  • possibility to define an area on the gadget
Code:
; ToolTip::Gadget()       - Add tooltip gadget
; ToolTip::SetAttribute() - similar to SetGadgetAttribute()
; ToolTip::SetColor()     - similar to SetGadgetColor()
; ToolTip::SetContent()   - set tooltip text & title and define tooltip area
; ToolTip::SetFont()      - similar to SetGadgetFont()
; ToolTip::SetState()     - activates/deactivates tooltip

Download: ToolTipExModule.pbi

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules

[Windows 10 x64] [PB V5.7x]


Last edited by Thorsten1867 on Sat Nov 23, 2019 3:15 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] ToolTipEx - Module (all OS)
PostPosted: Sat Jul 13, 2019 1:58 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1109
Location: Germany
Update: ToolTip is now a separate window and not just a gadget

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] ToolTipEx - Module (all OS)
PostPosted: Sat Jul 20, 2019 10:36 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1109
Location: Germany
Bugfixes

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] ToolTipEx - Module (all OS)
PostPosted: Wed Nov 20, 2019 8:23 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Jun 23, 2014 1:18 pm
Posts: 169
I made some tests with it.

If I close my program, it needs ~1-2 Seconds. I think, its the thread which pause the closing.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] ToolTipEx - Module (all OS)
PostPosted: Wed Nov 20, 2019 3:05 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1109
Location: Germany
I suppose so, too.

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] ToolTipEx - Module (all OS)
PostPosted: Thu Nov 21, 2019 8:27 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Jun 23, 2014 1:18 pm
Posts: 169
Can't create a tooltip in a ContainerEx.
If I try, ContainerEx dies on line 532


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] ToolTipEx - Module (all OS)
PostPosted: Thu Nov 21, 2019 9:45 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1109
Location: Germany
Please check if the problem is fixed.
Important: ToolTipEx must be defined outside the container.

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] ToolTipEx - Module (all OS)
PostPosted: Mon Dec 23, 2019 9:14 am 
Offline
User
User
User avatar

Joined: Sat Aug 30, 2014 9:00 pm
Posts: 15
Location: Switzerland
PB 5.71 x64, TooltipExModule.pbi 08.12.2019

I see only the last created ToolTip in my example.

Code:
XIncludeFile "TooltipExModule.pbi"

OpenWindow(0, 50, 50, 600, 400, "Test")

SpinGadget(10,20,20,60,20,0,100,#PB_Spin_Numeric|#ES_RIGHT)
SetGadgetState(10,33)
ToolTip::Create(10,0)
ToolTip::SetContent(10,"ToolTip SpinGadget","")

CheckBoxGadget(20,20,50,100,20,"CheckBoxGadget")
ToolTip::Create(20,0)
ToolTip::SetContent(20,"ToolTip CheckBoxGadget","")

StringGadget(30,20,80,120,14,"Test")
GadgetToolTip(30,"StringGadget 30")

Repeat
  EventID = WaitWindowEvent(1)
Until EventID = #PB_Event_CloseWindow

CloseWindow(0)


I see only the tooltip of the CheckBoxGadget. The tooltip of the SpinGadget is not visible. Why ?


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] ToolTipEx - Module (all OS)
PostPosted: Mon Dec 23, 2019 11:20 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1109
Location: Germany
Bugfixes

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] ToolTipEx - Module (all OS)
PostPosted: Mon Dec 23, 2019 1:16 pm 
Offline
User
User
User avatar

Joined: Sat Aug 30, 2014 9:00 pm
Posts: 15
Location: Switzerland
Thanks for the bugfix. My example-code works fine now.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye