Powerbasic Museum 2020-B

Webmaster: José Roca (PBWIN 10+/PBCC 6+) (SDK Forum) => CSED Editor => Topic started by: Nick Melnick on July 13, 2011, 07:51:11 PM

Title: Toolbar Problem
Post by: Nick Melnick on July 13, 2011, 07:51:11 PM
Jose,

I recently found an oversight in the include file "CSED_TOOLBARS.INC" from
the v.1.02 source release that has now carried over to the v1.03 general release.
The 'Find' and 'Bookmarks' buttons no longer drop down.

This is traced to:

Toolbar_AddButton hToolBar, 11, %IDM_FIND
Toolbar_AddButton hToolBar, 22, %IDM_BOOKMARKOPTIONS

Should be:

Toolbar_AddButton hToolBar, 11, %IDM_FIND, 0, %TBSTYLE_DROPDOWN
Toolbar_AddButton hToolBar, 22, %IDM_BOOKMARKOPTIONS, 0, %TBSTYLE_DROPDOWN

Your efforts in this project are, as always, greatly appreciated.
Title: Re: Toolbar Problem
Post by: José Roca on July 13, 2011, 09:05:12 PM
Thanks for spotting it. I replaced the very lenghty "classic" code to create the toolbar buttons and the image lists with the new wrappers and forgot to add the dropdown style to these two. The dead code removal feature is allowing me to create tons of wrappers to simplify SDK programming.