Search found 10 matches

by django013
Mon May 29, 2017 3:04 pm
Forum: General Development
Topic: [wxLua] wxArchiveFSHandler
Replies: 10
Views: 1911

Re: [wxLua] wxArchiveFSHandler

Hi, bad news from here :( First: wxLua does not have the constructor for loading images from streams (at least the version I'm bound to). Then I followed your advice from your footer and I searched the wxLua sources. There I discovered the call LoadFile, which takes a stream argument. With that I go...
by django013
Mon May 29, 2017 3:24 am
Forum: General Development
Topic: display video as background
Replies: 6
Views: 1360

Re: display video as background

Will the whole application be based on wxLua or will it be a C++ application that just uses Lua for additional scripting support? (I would highly recommend the latter) Oh - the application is not mine! I don't have access to the sources. The application creators build several interfaces for lua-scr...
by django013
Sun May 28, 2017 2:12 pm
Forum: General Development
Topic: display video as background
Replies: 6
Views: 1360

Re: display video as background

You're right. On java systems I'd try to paint the video as background images and use the foreground with transparency ... But with wxwidgets I have no idea, what would be possible. I read, that at least wxlua does not support overlaying widgets at the same location. Don't know - is it possible to b...
by django013
Sun May 28, 2017 2:04 pm
Forum: General Development
Topic: [wxLua] wxArchiveFSHandler
Replies: 10
Views: 1911

Re: [wxLua] wxArchiveFSHandler

Thanks a lot for your help! Sounds great! I'm a bit alienated about resource usage. I found no way to close stream or archive. I also tried to read the archive-entry in chunks, but there's no feedback on success or size ... The stream continues to read past the end of entry (I wonder, what it reads ...
by django013
Sun May 28, 2017 9:37 am
Forum: General Development
Topic: display video as background
Replies: 6
Views: 1360

Re: display video as background

Hm, I don't want to paint over every frame. My "drawings" don't change that often.
What I'd like to paint is a cross with circles like is done on shooters :)
by django013
Sun May 28, 2017 9:34 am
Forum: General Development
Topic: [wxLua] wxArchiveFSHandler
Replies: 10
Views: 1911

Re: [wxLua] wxArchiveFSHandler

I got a bit further. This code works now: function extract(archive, archiveEntry, newName) local fs = wx:wxFileSystem() local ah = wx:wxArchiveFSHandler() local archiveType = '#zip:' wx.wxFileSystem.AddHandler(ah) local ae = fs:OpenFile(archive .. archiveType .. archiveEntry) if (ae ~= nil) then loc...
by django013
Sun May 28, 2017 5:15 am
Forum: General Development
Topic: display video as background
Replies: 6
Views: 1360

display video as background

Hello, I searched for mediactrl as well as for overlaying panels, but did not find the right starting point yet. My environment is a closed source (windows-)app, that allows customization by lua scripting. wx is accessible through wxlua and the toplevel screen element, I can use is a panel. That pan...
by django013
Sun May 28, 2017 3:33 am
Forum: General Development
Topic: [wxLua] wxArchiveFSHandler
Replies: 10
Views: 1911

Re: [wxLua] wxArchiveFSHandler

sure! function extract(archive, archiveEntry, newName) local fs = wx:wxFileSystem() local ah = wx:wxArchiveFSHandler() local archiveType = '#zip:' fs:AddHandler(ah) local ae = fs:OpenFile(archive .. archiveType .. archiveEntry) if (ae ~= nil) then local bitmap = ae:read('*all') local nbm = io.open(n...
by django013
Sat May 27, 2017 3:19 pm
Forum: General Development
Topic: [wxLua] wxArchiveFSHandler
Replies: 10
Views: 1911

Re: [wxLua] wxArchiveFSHandler

Thank you for your assistance! I failed on adding the handler: archive.wx.lua:31: wxLua: Expected a 'wxFileSystemHandler' for parameter 1, but got a 'userdata'. Function called: 'AddHandler(wxFileSystem, wxArchiveFSHandler)' 01. wxFileSystem::AddHandler(wxFileSystemHandler) - static but that's lua s...
by django013
Sat May 27, 2017 6:31 am
Forum: General Development
Topic: [wxLua] wxArchiveFSHandler
Replies: 10
Views: 1911

[wxLua] wxArchiveFSHandler

Hi, I'm new to wx and lua - and I'm looking for a way to access files from archive. Now I happened to read about wxArchiveFSHandler - I found the section in the docs, but I did not find any sample with context and I have no idea on how to use filesystems or their handlers. Can anybody please gimme a...