Allegro.cc - Online Community

Allegro.cc Forums » Allegro Development » win_set_window equivalent in Allegro 5?

This thread is locked; no one can reply to it. rss feed Print
win_set_window equivalent in Allegro 5?
newdeepblue
Member #15,926
April 2015

There was a "win_set_window" function in previous allegro versions which lets you to choose an already created window and use allegro features on it.I couldn't see that in allegro 5 manual.The reason I need that function is I need to use windows message callback function.

Erin Maus
Member #7,537
July 2006
avatar

You can use al_win_add_window_callback. However, its behavior is not correct. I tried submitting a patch but it was never reviewed: https://www.allegro.cc/forums/thread/613870

---
ItsyRealm, a quirky 2D/3D RPG where you fight, skill, and explore in a medieval world with horrors unimaginable.
they / she

newdeepblue
Member #15,926
April 2015

Thanks for quick response, I guess my version 5.0 doesn't have that function since on web page it says: Since: 5.1.2

I can't find newer version in devcpp updates, need to to by hand I guess?

SiegeLord
Member #7,827
October 2006
avatar

I tried submitting a patch but it was never reviewed

This has now been committed with some minor changes. Thanks ;).

I can't find newer version in devcpp updates, need to to by hand I guess?

If you don't need the aforementioned result set correctly, you can use one of the previous releases. There is a cache of unofficial builds here: http://targonski.nazwa.pl/thedmd/allegro/.

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

Erin Maus
Member #7,537
July 2006
avatar

SiegeLord said:

This has now been committed with some minor changes. Thanks ;).

You're awesome, thanks a bunch!

---
ItsyRealm, a quirky 2D/3D RPG where you fight, skill, and explore in a medieval world with horrors unimaginable.
they / she

Go to: