XRC Solutions

June 4, 2008 at 12:14 | Posted in Uncategorized | Leave a comment
Tags:

I chose to create the Preferences dialog with the least amount of code. I set the Name attribute in the XRC file to the path in the CPANPLUS::Configure object. Foe example: The ‘conf’ section has the key ‘show_startup_tip’, so the name of the control is ‘conf/show_startup_tip’. During creation of the control, the name is converted into code, then eval()’ed. Here’s where it got really complicated: There is no post-creation code in wxWidgets, so I searched high and low for some way to overload a built-in method for the control. There is no post-creation code, so I looked into the types of events that were available. There it was: EVT_WINDOW_CREATE(). So I managed to get all this working with just a bit of code.  If you wish to see the code, go to http://wxcpan.googlecode.com

Advertisements

Leave a Comment »

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.
Entries and comments feeds.

%d bloggers like this: