I'm sorry but actually there is no native thinBasic way to do that.
I will see what I can do for future versions
Hi to all...
Maybe i miss this example somewhere but i simply cannot found any example
about how to use tooltips with toolbar buttons.
There is only a toolbar example and tooltip example for controls not for toolbar.
any help ?
I'm sorry but actually there is no native thinBasic way to do that.
I will see what I can do for future versions
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
No problem Eros...
I have use DLib method and it looks that work as espected
code is in o2INT id=100 TOOLINFO tti tti.cbSize = sizeof tti tti.uFlags = 0 'TTF_SUBCLASS | TTF_IDISHWND tti.hwnd = htbar tti.uId = id tti.hinst = 0 tti.lpszText = strPtr "New" SendMessage(SendMessage( htbar, 1059,0,0),1028, 0, &tti) 'add button tbb.iBitmap = iNum tbb.idCommand = id tbb.fsState = 4 tbb.fsStyle = 0 tbb.dwData = 0 SendMessage htbar , 1044, 1, &tbb]
Thanks for the example.
Here an example from José on how to dynamically specify a ToolTip for each single button into a toolbar:
http://www.powerbasic.com/support/pb...hlight=tooltip
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Thanks Eros..
Interesting way using DATA and WM_NOTIFY event with TOOLINFO pointer
Bookmarks