[PB-Linux] Using GLADE as VD for pureBasic (0.3.0)

Developed or developing a new product in PureBasic? Tell the world about it.
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

Hi,

sorry for the double posting... but here is the new version (with ProcedureCDLL()) Link: http://home.arcor.de/x-linux/pure/g2pb
(don't forget to make it executable)

Hope, it works as expected.. If so, I'll add some new functionality :D

btw: my debuger doesn't crash....
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Hi walker, it now works ok... No crash nor error until now. Thanks.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

Well on dapper the example shows the icons on the buttons at the bottom. It doesn't seem to be a GTK problem maybe Inf0byt3 should check with the c version.
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Could be that I don't have the necessary graphics installed? What should I check, the version of GCC? Or try to compile the C source for that form?
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

compile the c source, don't think the gcc version changes anything as it mostly depends on the libs
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

I've tested it and the graphics are the same... missing. Maybe that's the way with this distro. It's not glade2pb's fault.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

And what's even more important it's not PB's fault....
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Yeas, you're right. However, it's not very important.

BTW, where can I get some quick start guides for Glade? Can't understand how it works :cry: . I see that each gadget must have a continer. But how can I move/scale them?
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

Hi,

I'd uploaded a new Version of g2pb... and a pb-includefile which adds missing (gtk) functions to pb (have a look into the file and you'll see.. more is in progress... :) It isn't finished yet but can be used meanwhile

Glade2Pb: http://home.arcor.de/x-linux/pure/g2pb
PB-includefile: http://home.arcor.de/x-linux/pure/missing_functions.pb

You'll have to include this file as first includefile (shortly after gtk_init())
(have a look at the info-button in Glade2PB.. now I'm using the gtk-info-dialog, which is the main part of the new includefile yet)

@Inf0Byt3: working with gtk is a little strange because of the containers.. you must not edit the positions directly (but you can, if you want - there is a container wich allows you exactly this ; see row 8, the forth container from the left of the Palette-Window) all is done via the properties... tomorrow I'll write a little tut (I'd posted a short one in the german forum) for you and all others who want to use glade (it's very easy after understanding, how it works)
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Thanks for this wonderfull program and for the help :D.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

Hi,

Thank you...

Here is a little tutorial I'd made (I'm no Glade or GTK+ GURU but still learning)
It's the first tut I'd ever written in english (have written many tutorials and Userguides for my company.. but all in german) so forgive me if I'd used wrong words which make you smile :wink:
May you / someone can tell me, what's wrong or better written in another way) Feedback is always welcome

At least, the downloadlink: ***Link removed*** see below
As you can see, it's a ODT-file (written with OO-writer)

My includefile is updated:http://home.arcor.de/x-linux/pure/missing_functions.pb (right click; save as)
as well as the Program itself :http://home.arcor.de/x-linux/pure/g2pb (don't forget to make it executabe)

enjoy
Last edited by walker on Mon May 29, 2006 8:41 pm, edited 2 times in total.
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

Viva la OpenOffice it'S only beaten by LaTeX^^ I do some of my school work with LaTeX and the Graphs with OO-Calc

btw: For which company do you work?
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Hi, I'll take a look at it and tell you if there's something wrong. Thanks.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Hello, I read the turorial and made some small corrections to it. I saved it in sxw format because my OpenOffice Writer does not have "save as odt". You can get it here:

glade_tut ~273Kb ->glade_tut.sxw

Thanks again to walker for sharing this with us.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

Hi,

@Inf0Byt3: Thank you very much for reading and correcting the little tutorial. Hope, it's a little helpful...

The corrected version is available here:http://home.arcor.de/x-linux/pure/glade_tut.sxw
Post Reply