Codeblocks can save edit reults if I switch between applications by mouse click or between inputs of the resource panel. Eg, I changed the label of some control then click other row to change another property of the control. The change of the label would apply to the label.
However, if I switch to other controls listed in resource panel. The change would be lost and the original value would be restored.
Are you talking about wxsmith?
Can you post a minimal project and exact steps to reroduce?
What is your os, cb version?
Yes, wxsmith. OS: Win7X64, CB is latest nightly.
The steps are just what I had said.
Eg.
1. Click on any control resource in Resources view.
2. Change the label text of it.
3. If you click on any other rows to edit another property of the control, click enter or switch to other applications running, eg Notepad of Windows, your change would be applied to the label text.
4. If you click on other controls, eg. another sizer, static text contol listed in the resource view, the change you maded for the label would lose----the text would be reseted.
Please post the exact version of the night build. Because latest night build is not exact.
Does this happen with the official 17.12 release? Or a night build which is not built against wx3.x?
CB is SVN 11246. I met this before and after the offcial is released. So, I think it should be in it although I did not try it.
I use CB mainly for RAD with wxSmith that's why I did not install the bigger package of official release.
Last edit: Li Minggang 2018-01-08
And this issue is not confined to label change only. Most (if not All) of the property row has the same issue.
This is the default behavior of wxSmith on windows by default, as far as i can remember back. The value only gets saved if you hit enter. The question is, if this is wanted or not. I thought it is default behavior, because you want a possibility to revert the value
I agree with bluehazzard, this behaviour happens for a long time, and I have to hit the "enter" to change the content of the label.
I'm not sure if it's the correct way to revert, which should usually do by "ctrl-z" or other to explicitly indicator from user to do revert. This "default behav" is not the same way when you switch to other application running or click on other rows as I had said.
If the revert was support as the way, ie, you have to press enter to confirm, all the other two should also revert the changes made.
Last edit: Li Minggang 2018-01-09
Hi, Can you please check if the issue is still occurring in Code::Blocks 20.03 and post here if it is fixed or not. The CB 20.03 download page is https://www.codeblocks.org/downloads/binaries/.
If you are using Windows 64 bit and 20.03 and the issue is still occurring you could try the latest nightly and post here if the issue occurs or not in the nightly, which can be found in the following CB forum https://forums.codeblocks.org/index.php/board,20.0.html .