Added wxCHMHelpController, updated help demo. Added DisplaySection(const wxString&)
to wxHelpControllerBase. Corrected some Dialog Editor bugs. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1081,6 +1081,9 @@ void wxResourceEditorControlHandler::OnDragEnd(int x, int y, int WXUNUSED(keys),
|
||||
int x2 = (int)(x1 + (x - dragOffsetX) - xpos);
|
||||
int y2 = (int)(y1 + (y - dragOffsetY) - ypos);
|
||||
|
||||
resourceX = x2;
|
||||
resourceY = y2;
|
||||
|
||||
// Update the associated resource
|
||||
resource = wxResourceManager::GetCurrentResourceManager()->FindResourceForWindow(item);
|
||||
if (parentResource->GetResourceStyle() & wxRESOURCE_DIALOG_UNITS)
|
||||
|
@@ -420,7 +420,7 @@ bool wxResourceManager::New(bool loadFromFile, const wxString& filename)
|
||||
wxString str = filename;
|
||||
if (str == wxString(""))
|
||||
{
|
||||
wxString f(wxFileSelector("Open resource file", NULL, NULL, "wxr", "*.wxr", 0, wxTheApp->GetTopWindow()));
|
||||
wxString f(wxFileSelector("Open resource file", wxGetCwd(), wxEmptyString, "wxr", "*.wxr", 0, wxTheApp->GetTopWindow()));
|
||||
if (!f.IsNull() && f != "")
|
||||
str = f;
|
||||
else
|
||||
|
Reference in New Issue
Block a user