CustomButtons/Checkbox/Optionbox/Container/Text/Image-Gadget

Developed or developing a new product in PureBasic? Tell the world about it.
GPI
PureBasic Expert
PureBasic Expert
Posts: 1400
Joined: Fri Apr 25, 2003 6:41 pm

CustomButtons/Checkbox/Optionbox/Container/Text/Image-Gadget

Post by GPI »

GPI
PureBasic Expert
PureBasic Expert
Posts: 1400
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

Nobody test this code?

btw: It seems, that some systems (some win98se-versions) can crash at the end of the program, when the window is not closed with closewindow().
fweil
Enthusiast
Enthusiast
Posts: 725
Joined: Thu Apr 22, 2004 5:56 pm
Location: France
Contact:

Post by fweil »

GPI,

Sorry ... I loaded it but did not tell you. No bug for me.

It seems to run well.

If you have some close window / program issue maybe you can add (windows only) after a closewindow() :

TerminateProcess_(GetCurrentProcess_(), 0)

Rgrds
My avatar is a small copy of the 4x1.8m image I created and exposed at 'Le salon international du meuble à Paris' january 2004 in Matt Sindall's 'Shades' designers exhibition. The original laminated print was designed using a 150 dpi printout.
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1290
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post by Paul »

It's much easier to use PVGadgets that come with PureVision to create custom buttons ;)

Example:
http://www.reelmedia.org/test/buttons.zip

Image

Very little code and not complicated, giving professional results.
Image Image
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Hi GPI.

Pretty neat.

Crashes out instruction @ xxx ref mem @ yyy. The memory could not be "read" on closing window. But I don't think that is associated with your code.
User avatar
blueb
Addict
Addict
Posts: 1125
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Post by blueb »

Paul,

I lkie it 8)

What program did you use to create the background and buttons?

--blueb
PolyVector
Enthusiast
Enthusiast
Posts: 499
Joined: Wed Sep 17, 2003 9:17 pm
Location: Southern California
Contact:

Post by PolyVector »

If I'm not mistaken, the buttons are from Ad-Aware :)
I always liked those buttons :)
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1290
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post by Paul »

A quick screen grab then some simple cut and paste in Photoshop...
and PolyVector wins the prize !! :)
Image Image
PolyVector
Enthusiast
Enthusiast
Posts: 499
Joined: Wed Sep 17, 2003 9:17 pm
Location: Southern California
Contact:

Post by PolyVector »

do i get purevision? :wink:
User avatar
blueb
Addict
Addict
Posts: 1125
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Post by blueb »

Nope... you've already got vision! Good guess. :P

I've used Xara X with excellent results.
http://www.xara.com

-blueb
PolyVector
Enthusiast
Enthusiast
Posts: 499
Joined: Wed Sep 17, 2003 9:17 pm
Location: Southern California
Contact:

Post by PolyVector »

8)
GPI
PureBasic Expert
PureBasic Expert
Posts: 1400
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

btw: What about my code? Does it work? Crash it? When you add a "closewindow(1)" at the end: Crash it too?

GPI

Edit: I planed to use this code in jaPBe. So please: More feedback.
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

With 3.90

Putting

Code: Select all

    Until event=#PB_Event_CloseWindow
    CloseWindow(1)  ; <--
as suggested cures the crash.
PolyVector
Enthusiast
Enthusiast
Posts: 499
Joined: Wed Sep 17, 2003 9:17 pm
Location: Southern California
Contact:

Post by PolyVector »

3.91 Beta1 on WinXP
...Perfect... no crashing
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

GPI wrote: Edit: I planed to use this code in jaPBe. So please: More feedback.
Could be nice, but I hope it will not slow down jaPBe to much ; you may have your new PC, I still have my old PIII/Win98SE :wink:
Post Reply