Skip to content

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