Results 1 to 5 of 5

Thread: Tooltips with toolbar buttons?

  1. #1
    Member zlatkoAB's Avatar
    Join Date
    Apr 2008
    Age
    55
    Posts
    287
    Rep Power
    45

    Tooltips with toolbar buttons?

    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 ?

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10
    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

  3. #3
    Member zlatkoAB's Avatar
    Join Date
    Apr 2008
    Age
    55
    Posts
    287
    Rep Power
    45
    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

  4. #4
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10
    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

  5. #5
    Member zlatkoAB's Avatar
    Join Date
    Apr 2008
    Age
    55
    Posts
    287
    Rep Power
    45
    Thanks Eros..
    Interesting way using DATA and WM_NOTIFY event with TOOLINFO pointer

Similar Threads

  1. toolbar load own icons
    By Lionheart008 in forum UI (User Interface)
    Replies: 1
    Last Post: 27-03-2010, 01:03
  2. message-buttons-popup-wonder :)
    By Lionheart008 in forum Sources, Templates, Code Snippets, Tips and Tricks, Do you know ...
    Replies: 1
    Last Post: 15-01-2009, 08:48
  3. Callback Buttons and popups
    By Lionheart008 in forum Sources, Templates, Code Snippets, Tips and Tricks, Do you know ...
    Replies: 4
    Last Post: 13-01-2009, 18:07

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •