News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

toolbar image not chainging state..fix??

Started by adam, April 03, 2007, 09:51:30 PM

Previous topic - Next topic

adam

I was thumbing through the source yesterday seeing if i could find out maybe if it was a problem with c::b not wx and it turns out it may be. I was not able to locate at anytime the save button getting toggled/disable nor does it provide a secondary image to "grey" too which seems to be needed as per the wxtoolbar docs. If I just didn't see these too forgive me the code was kinda confusing as to finding these two things.

Pecan

 Do a full project search of idFileSave.

.../src/main.cpp


    if (m_pToolbar)
    {
        m_pToolbar->EnableTool(idFileSave, ed && ed->GetModified());
        m_pToolbar->EnableTool(idFilePrint, Manager::Get()->GetEditorManager() && Manager::Get()->GetEditorManager()->GetBuiltinActiveEditor());
    }


adam

Yes i saw that. What i mean is according to the wx manual (or at least what I understood) is that you need to define 2 images in order to have a distinct enable disable. I didn't read anything about it automatically just greying the current image.

Baco

#3
The toolbar buttons related to the debugger are changing state with no problem.
Why the toolbar save button dont change state?

Edit: I tried with nightly build 3989 in win xp

stahta01

Quote from: Baco on June 03, 2007, 06:27:15 PM
The toolbar buttons related to the debugger are changing state with no problem.
Why the toolbar save button dont change state?

Quote from: killerbot on June 03, 2007, 06:29:45 PM

Regressions/Confirmed/Annoying/Common bugs:


  • toolbar-images-not-changing-state (is a wx problem/Win XP problem)

Note: I read on this forum that Vista does NOT have this problem.

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]