CustomButtons

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

Thanks for this NetMaestro. I've been wanting custom buttons for absolutely years. Square ones get very boring after a while (grin). Now I am going to try all sorts of stuff (pant, pant).
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: As to why the lib isn't available..

Post by blueznl »

PB wrote: Regardless, I wonder if there's any way to "convert" old libs to be current,
without the source? Has anyone ever tried to reverse-engineer them, or
anything like that? There must be something that can be done for truly
abandoned libs.
There actually is a way. Most of these libs contain a set of functions (pooh!) and what you could do is fire up your old compiler, create a 'wrapper' in regular purebasic, then turn the result into a DLL.

That DLL will then work with any later version of PureBasic.

Okay, sounds great, but I admit I never tried this myself :P
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Post by byo »

But how, without the source? :D
Proud registered Purebasic user.
Because programming should be fun.
Flaming Amoeba

Post by Flaming Amoeba »

For what blueznl described, you wouldn't need the source. :wink:
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

I've done it before. You load the old compiler with the old compiled lib and write a dll that calls the lib's functions and returns to the calling program what the lib gives to it. It's a sound concept and usually works. It's a wrapper of sorts.
BERESHEIT
Flaming Amoeba

Post by Flaming Amoeba »

Now the hard part is learning how to make decent looking graphics to use for custom buttons :lol:
mrjiles
Enthusiast
Enthusiast
Posts: 238
Joined: Fri Aug 18, 2006 7:21 pm
Location: IL

Post by mrjiles »

If you create a custom button that opens another window with a custom button, when the second window closes the original custom button goes wacky. Any ideas?
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Fixed. See updated topic in T&T forum.
BERESHEIT
atomo
User
User
Posts: 65
Joined: Thu May 22, 2008 10:32 pm

Post by atomo »

Hi, thanks for your lib but i can't use it with purebasic 4.20, i have a POLINK error : unresolved external symbol 'PB_Delay'. :(
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

BERESHEIT
atomo
User
User
Posts: 65
Joined: Thu May 22, 2008 10:32 pm

Post by atomo »

thanks it work and sorry :D
Post Reply