How to put a background image in a panel in wxWidgets

These days I was working in a program that will use wxWidgets framework.

Basically, the application will have many panels and all of them must have a background image.

In my mind I had 2 options:

  • for each panel I could put a background image in wxPanel plus all the controls that each panel required
  • create a base class derived from wxPanel that would contain the background image and make it the base class for each panel in the application.

The second approach is better because that way I’d eliminate code duplication. That was the path I followed.

How would that work? When a class that inherited from BaseScreen were created, always the paint event of BaseScreen would be called prior to the paint event from the child class.

This way the image would be draw in on top of it the controls from child class would be draw. It would give the effect of having a background image. Continue reading

Posted in development, other | Tagged , , | Leave a comment

The blog is back on air.

Today I restaured my old backup (from April 22nd, 2014).

I had to move from one hosting to another and I forgot to make a backup of the blog prior to cancel my hosting account. Shame on me!

Posted in news | Tagged | Leave a comment

BitmapFont project updated to run on Openfl

Today I updated the BitMapFont project from Zaphod in order to it compile on new version of openfl (currently it’ for NME library).

I tested it with Flash, HTML5 and Android and it seems to be working as the original version.

I also submitted him a pull request. While he doesn’t accept it you can get the project from here.

I hope it helps someone.

All kudos for Zaphod for providing such useful library. Any problem in this new version is my fault.

Posted in games, nme | Tagged , , | Leave a comment

WordPress Arcade Theme – ArcadeBB v4.0.3 (FREE)

ArcadeBB is a great arcade sites theme for WordPress.

Unfortunately its development ceased some years ago.

Nevertheless this fact, many people still are looking for it. If you’re one of these people, you’re a lucky guy. I have it. Continue reading

Posted in other | Tagged , , , , | Leave a comment

How to solve “error: unknown filesystem. grub rescue>_”

Sometime ago I installed Ububtu on my brand new machine.

For some reasons I decided to remove Linux and install Windows 7. Everything worked fine until recently when my machine refused to boot showing the error message

This problem was caused because I didn’t removed Grub from MBR (Master Boot Record) and for some unknown reason it got lost.

The solution for this is quite simple.
Continue reading

Posted in other | Tagged , | Leave a comment

Box Game – Physics and skill in the same game

I’m so happy to announce my new game: Box Game. It’s a physics game that will challenge your skills: You have 30s to complete the level by putting boxes in the right spots.

Take a look at the video then play online and download it for your Android mobile phone. Continue reading

Posted in android, business, games, news, videos | Tagged , , , , , , | Leave a comment

More games for you to play online and on your Android mobile phone

Now I’m sharing my other 2 games (puzzle / skill) developed using Adobe Air. They can be played online or downloaded to Android mobile phones.

The games were made using Adobe Air. Continue reading

Posted in android, business, games, news | Tagged , , , , , | Leave a comment

My DressUp Games – Play them online or on your Android mobile phone

I’m proud to announce (even being a little late) my dress up games. All these games are available for both platforms: online and Android.

They were developed using the Adobe Air. Continue reading

Posted in android, games, news | Tagged , , , | Leave a comment

How to install Adobe Air in Android emulator?

The tool of many that want to develop for Android and that develop for iPhone is the Adobe Air.

Why? Because it lets flash developers take advantage of a knowledge they already have.

And the one of the main doubt theses flash developers have is how to install Adobe Air apk in to Android emulator.

That’s pretty easy. Continue reading

Posted in android, development, games | Tagged , , , , | 4 Comments

Warzone DressUp game released

My new dress up game is available: Warzone Dress Up was released for both playing online and on Android.

Enjoy.

Posted in android, business, games, news | Tagged , , , | Leave a comment