I am writting an app which uses dropdown buttons, but when used, the little side button which produces the '#TBN_DROPDOWN' message can not be pressed. Also the '#TBN_DROPDOWN' constant does not seem to be declared. Any ideas?The ´normal part´ of the Button acts like a standard button, but when you press the little arrow, the Toolbar sends a #TBN_DROPDOWN notification to the main-window. If you get this message you can display a popup-menu with options etc..
Code i am using:
Code: Select all
CreateTB(0, WindowID(#WINDOW_ROOT), 40, 30, #TBpro_FLAT | #TBpro_BORDER)
Buttons = CatchImage(#IMAGE_BUTTONS, ?Buttons)
Mask = CatchImage(#IMAGE_MASK, ?Mask)
SetTBimage(Buttons, Mask, #TBpro_NORMAL)
AddTBbutton(#TOOLBAR_NEW, 1, #TBpro_Button) : SetTBbuttonText(#TOOLBAR_NEW, "New")
AddTBbutton(#TOOLBAR_REPLY, 2, #TBpro_Button) : SetTBbuttonText(#TOOLBAR_REPLY, "Reply")
AddTBbutton(#TOOLBAR_FORWARD, 3, #TBpro_Button) : SetTBbuttonText(#TOOLBAR_FORWARD, "Forward")
AddTBseparator()
AddTBbutton(#TOOLBAR_DELETE, 4, #TBpro_Button) : SetTBbuttonText(#TOOLBAR_DELETE, "Delete")
AddTBseparator()
AddTBbutton(#TOOLBAR_SENDRECEIVE, 5, #TBpro_DropdownButton) : SetTBbuttonText(#TOOLBAR_SENDRECEIVE, "Send/Recv")
AddTBseparator()
AddTBbutton(#TOOLBAR_ADDRESSES, 6, #TBpro_Button) : SetTBbuttonText(#TOOLBAR_ADDRESSES, "Addresses")
AddTBbutton(#TOOLBAR_FIND, 7, #TBpro_DropdownButton) : SetTBbuttonText(#TOOLBAR_FIND, "Find")

