New in version 2.0.0
-
Added
-
Renamed/Moved
- FontDialog component to SysFontDialog.
- OpenDialog component to SysOpenDialog.
- SaveDialog component to SysSaveDialog.
- IApplication::OpenDialog(...) method is now IDialog::Open(...).
- IApplication::SaveDialog(...) method is now IDialog::Save(...).
- IApplication::FontDialog(...) method is now IDialog::Font(...).
- IApplication::ShowMessage(...) method is now IDialog::Message(...).
- IApplication::ShowWarning(...) method is now IDialog::Warning(...).
- IApplication::ShowInformation(...) method is now IDialog::Information(...).
- IApplication::ShowQuestion(...) method is now IDialog::Question(...).
- IApplication::ShowError(...) method is now IDialog::Error(...).
- IApplication::Confirm(...) method is now IDialog::Confirm(...).
- IApplication::SearchFiles(...) method is now IFileSystem::SearchFiles(...).
- IApplication::FileExists(...) method is now IFileSystem::FileExists(...).
- IApplication::DirectoryExists(...) method is now IFileSystem::DirectoryExists(...).
-
Fixed
- Form Builder saving config on exit.
- Form Builder event changes didn't affect "Save" button.
- Removing controls and components from form was moved to form's window destroy notification(it was in form release method).
- Creating timer twice in MainMenu causing FormBuilder crash.
- Control icon position was not saved in Form Builder.
- MainMenu items save, load, and export in Form Builder is working well now.
- PopupMenu items save, load, and export in Form Builder is working well now.
- DropDown items save, load, and export in Form Builder is working well now.
- ListBox items save, load, and export in Form Builder is working well now.
- CheckListBox items save, load, and export in Form Builder is working well now.
- TreeView items save, load, and export in Form Builder is working well now.
- ColorBox items save, load, and export in Form Builder is working well now.
- ColorListBox items save, load, and export in Form Builder is working well now.
-
Improved
- QueryService() method of CComponent/CControl can not be overwriten anymore.
- Internationalization and translation flow.
- ITranslate is now support custom parameters in translated string.
- ToolBar control is now support both left and right child controls alignment.
Migration from previous version
Whereever you use FontDialog, OpenDialog, SaveDialog components, add "Sys" at the beginning(including in pathes, file names, and class names). So they finally should be SysFontDialog, SysOpenDialog, and SysSaveDialog correspondingly.
As QueryService() method can not be overwritten anymore, you can not use it to create you component/control service. Instead create your service in component/control constructor and set it by setService() method, which should be the first thing you do in your constructor.
Change following calls of IApplication methods
Application->OpenDialog(...)
to Application->getDialogs()->Open(...)
.
Application->SaveDialog(...)
to Application->getDialogs()->Save(...)
.
Application->FontDialog(...)
to Application->getDialogs()->Font(...)
.
Application->ShowMessage(...)
to Application->getDialogs()->Message(...)
.
Application->ShowWarning(...)
to Application->getDialogs()->Warning(...)
.
Application->ShowInformation(...)
to Application->getDialogs()->Information(...)
.
Application->ShowQuestion(...)
to Application->getDialogs()->Question(...)
.
Application->ShowError(...)
to Application->getDialogs()->Error(...)
.
Application->Confirm(...)
to Application->getDialogs()->Confirm(...)
.
Application->SearchFiles(...)
to Application->getFileSystem()->SearchFile(...)
.
Application->FileExists(...)
to Application->getFileSystem()->FileExists(...)
.
Application->DirectoryExists(...)
to Application->getFileSystem()->DirectoryExists(...)
.