haxeui / hxWidgets

Haxe externs (and wrappers) for wxWidgets
MIT License
77 stars 22 forks source link

Components loose modern theme - Manifest issue? #50

Closed datee closed 6 years ago

datee commented 6 years ago

[Windows] Building static and running the application from the build dir works fine, but if i copy it to a different location i loose the components theme, and it all looks like "windows 95" style.

Seems to be related to manifest not being properly set up or something?

ianharrigan commented 6 years ago

... Oh - thats a fun one - same happens to me!

ianharrigan commented 6 years ago

image

So i can fix it by manually adding a manifest resource to the app. :(

Wonder why it works from the build dir though

ianharrigan commented 6 years ago

Can you update hxWidgets try this again? Should be fixed now as the manifest get linked into the exe by the compiler.

datee commented 6 years ago

Wow, that was fast :) Ok, tried it.. but seem to get a linker error: LINK : fatal error LNK1158: cannot run 'mt.exe'

ianharrigan commented 6 years ago

... which you didnt get before?

datee commented 6 years ago

yes, this linker error came now because of the new fix. Before it compiled with no errors.

ianharrigan commented 6 years ago

Hmm, so if you remove the new lines it compiles? What version of MSVC?

ianharrigan commented 6 years ago

This any help? https://stackoverflow.com/questions/30725256/fatal-error-lnk1158-cannot-run-mt-exe

datee commented 6 years ago

Yes i had the RC.exe error in the link too, but i fixed that. Oddly enough, i removed the line, recompiled and added it again; suddenly everything compiled ok. [Edit:] No the error came back.. so there is something strange

ianharrigan commented 6 years ago

Strange, does it also fix the original issue?

datee commented 6 years ago

But; commenting out this line fixes the issue: < !-- < flag value="/MANIFESTINPUT:${haxelib:hxWidgets}/hxWidgets.manifest" / > -->

It builds fine and keeps the theme!

ianharrigan commented 6 years ago

really? That doesnt seem to make much sense... Does it have a manifest file inside the .exe (Using ResourceHacker for example)

ianharrigan commented 6 years ago

ok, /MANIFEST:EMBED embeds a default manifest... cool - will update

ianharrigan commented 6 years ago

Right, should be fixed now in master - can you close this once you are happy and its working - thanks!

datee commented 6 years ago

Cool! It seems to work, will test a bit on some others computers first!

datee commented 6 years ago

Fixed!