wxWidget

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

wxWidget

Post by ts-soft »

RealSource.de presents:

wxWidget wrapper for x86 windows and linux

documents can you find: http://docs.wxwidgets.org/2.6/

info: http://en.wikipedia.org/wiki/WxWidgets

some PB examples for win and lin in the package.

wxWidget for PB
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Wow, looks great.

You're a star :)

cheers
aaron
Enthusiast
Enthusiast
Posts: 267
Joined: Mon Apr 19, 2004 3:04 am
Location: Canada
Contact:

Post by aaron »

Nice work! I did a little poking around in the source code and it looks like there are pretty minor differences between the linux and windows ports. That makes me think that it might not be overly hard to also port to Mac. I might have a poke at it over the next little while if I can find some time.

WxWidgets has always interested me. I wonder if it would be possible to get one of the RAD tools to dump out PB WxWdgets code also? Or at least a converter...
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Bloody hell; that's some work there! :shock:

Great stuff Thomas.
I may look like a mule, but I'm not a complete ass.
Micko
Enthusiast
Enthusiast
Posts: 244
Joined: Thu May 24, 2007 7:36 pm
Location: Senegal
Contact:

Post by Micko »

you have done a very big job ts-soft !
thanks for sharing
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

Thanks for this! I've always wanted to experiment with wxWidgets. :)
glops
User
User
Posts: 38
Joined: Wed Jan 16, 2008 12:53 pm
Location: France

Fabulous

Post by glops »

Thank You Very much !
User avatar
USCode
Addict
Addict
Posts: 912
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle, USA

Post by USCode »

This is great work, thanks!

But I have to ask, what in particular does wxWidgets offer that PB doesn't have that motivated you to do this?
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

USCode wrote:But I have to ask, what in particular does wxWidgets offer that PB doesn't have that motivated you to do this?
Dimension of controls the same on win and lin, other like pb.
More Controls
Flickerfree Tab
Better Eventhandling
and, and ...
:wink:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

WoW! I was looking at this about a month ago wondering about it, and now here it is. Thank You very much :)
tomijan
Enthusiast
Enthusiast
Posts: 107
Joined: Sun Dec 11, 2005 1:32 pm

Post by tomijan »

Hi Thomas,
great, excellent job.
thanks and regards
tom
btw. If anybody is looking for application based on wxWidgets and scintilla, FlameRobin (administrative tool for Firebird database) is good example.
registered user
Coolman
Enthusiast
Enthusiast
Posts: 103
Joined: Sat Sep 03, 2005 4:07 pm

Post by Coolman »

Great job ...

However the author of Purebasic should consider QT 4.5 (instead of GTK) which will soon become LGPL :

http://linuxfr.org/2009/01/14/24882.html

8)
*** Excuse my bad English, I uses has translating program ***
User avatar
chi
Addict
Addict
Posts: 1028
Joined: Sat May 05, 2007 5:31 pm
Location: Linz, Austria

Post by chi »

any usefull docs? i´m totaly new to wxwidget and my first attempt with checkboxes was a complete flop...
a few samples with standardclasses (button, checkbox, treeview, ...) would also come very handy ;)

but anyway... thx for the wrapper! as far as i can rate its a powerfull extension for pb


cheers, chi
User avatar
Kiffi
Addict
Addict
Posts: 1353
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Post by Kiffi »

chi wrote:a few samples with standardclasses (button, checkbox, treeview, ...) would also come very handy ;)
three examples are in the archive included. if you want, i can write more.

Greetings ... Kiffi
Hygge
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Kiffi wrote:if you want, i can write more.

Greetings ... Kiffi
please, bitte bitte :wink:

simple checkbox:

Code: Select all

XIncludeFile #PB_Compiler_Home + "Include\inc.wx.pbi"

Enumeration
	#CONTROL
EndEnumeration 

Enumeration
	#WINDOW_TEST
EndEnumeration 

Global APP.i	
	
Procedure OnInit()
	Protected frame
	Protected control
		
	; fenster erstellen
	frame = wxFrame()
	control = wxCheckBox( )
	wxFrame_Create(frame, #WINDOW_TEST, 1, "Test", wxSize(-1,-1), wxSize(-1,-1), #wxDEFAULT_FRAME_STYLE, "frame")
	wxCheckBox_Create (control,  frame ,  #CONTROL,  "I'm a checkbox" ,  wxSize(-1, -1),  wxSize(-1, -1),  0,  0,  "checkBox")
  wxCheckBox_SetValue(control, #True)
	
	; Frame anzeigen
	wxWindow_Show(frame,#True)	
	
	ProcedureReturn wxApp_OnInit(APP)
EndProcedure

Procedure OnExit()	
	ProcedureReturn wxApp_OnExit(APP)
EndProcedure	

Procedure Main()	
	APP 	= wxApp() 
	wxApp_RegisterVirtual(app,@OnInit(),@OnExit())	
	wxApp_Run(0,0)	
EndProcedure:Main()

PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Post Reply