zlatkoAB
10-09-2013, 15:36
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 ?
ErosOlmi
10-09-2013, 21:48
I'm sorry but actually there is no native thinBasic way to do that.
I will see what I can do for future versions
zlatkoAB
10-09-2013, 23:05
No problem Eros...
I have use DLib method and it looks that work as espected;)
INT 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]
code is in o2
ErosOlmi
10-09-2013, 23:11
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/pbforums/showthread.php?t=23583&highlight=tooltip
zlatkoAB
11-09-2013, 00:17
Thanks Eros..
Interesting way using DATA and WM_NOTIFY event with TOOLINFO pointer;)