Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggling line wrap and readonly #12

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Toggling line wrap and readonly #12

wants to merge 3 commits into from

Conversation

elnabo
Copy link
Contributor

@elnabo elnabo commented May 23, 2017

Make possible to toggle the style for wrapping and editing by replacing the widget by a new one with required styles (#11).

Might require haxeui/haxeui-core#133

window.destroy();
window = replacement;

var platform:PlatformInfo = new PlatformInfo();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be better to factor out the common parts between replaceWindow and createWindow.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, is this the correct way to go about it, you cant change wordwrap or readonly in wx at runtime on the same control?

Copy link
Contributor Author

@elnabo elnabo May 23, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It depends on the plateform. According to the documentation it is possible to update the widget at runtime with wxGTK but not wxMSW. But even then, it still behave strangely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants