Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

MacOSX: Proposed patch to compiler_options.xrc

<< < (2/2)

bnilsson:
Ok, I agree that proposing a platform-wide change just to fit MacOSX was not a good idea.
The proposition below is maybe not so elegant either, but at least it is mac-specific, in src/plugins/compilergcc/compileroptionsdlg.cpp constructor:

--- Code: ---    sizer->Layout();
    Layout();
    GetSizer()->Layout();
    GetSizer()->SetSizeHints(this);
#ifdef __WXMAC__
    int min_width, min_height;
    GetSize(&min_width, &min_height);
    this->SetSizeHints(min_width+140,min_height,-1,-1);
#endif
    this->SetSize(-1, -1, 0, 0);
    this->CentreOnScreen();
} // end of constructor

--- End code ---
It will make CB more workable under MacOSX, even if it is not a permanent solution.
I enclose a patch file, just in case if this goes thru the screening.

[attachment deleted by admin]

afb:
Either patch works for me (.cpp or .xrc).. How does the larger dialog look on Windows/Linux ?

bnilsson:
This is for windows.


[attachment deleted by admin]

afb:
Doesn't look all that bad to me, but we can do the code hack if preferred.

takeshimiya:
additionally, the "Make" commands tab could hide when not using makefiles build

Navigation

[0] Message Index

[*] Previous page

Go to full version