#4 Simple Example to Use Res Files

open
nobody
None
5
2004-01-29
2004-01-29
No

This is a short, quick script I hacked up to read a
custom resource file and create a dialog based on that.
It's very thin, especially on widget specific items
(e.g. fonts, color). It's laking most widgets. Also,
it wouldn't take into acount something like tabs.
However, it does give a base people could expand upon.

Discussion

  • Michael Dorsett

    Michael Dorsett - 2004-01-29

    contains example script and file it works from

     
  • Michael Dorsett

    Michael Dorsett - 2004-09-24

    Logged In: YES
    user_id=711726

    For a more robust version of this, look in the Vierstein
    source for

    http://sf.net/projects/vierstein/

    The files you'll be interested in are

    DlgParser.py #The main file that parses a *.res file
    *.res files # for an example, MapEdit.res is the most involved
    map.py # for the use of DlgParser and the MapEdit.res file,
    including accessing variables setup in the res file

    Hope this is of some use!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks