Linux/Win32 GUI mod example - test please

BlitzMax Forums/BlitzMax Programming/Linux/Win32 GUI mod example - test please

Kev(Posted 2005) [#1]
Hi

here's 2 example of the start of a win32/linux gui module using fltk, if you have access to a linux box can you download and give it a try. alt. please try the windows example.

Linux Download
Win32 Download

any feedback welcome.

kev


Amon(Posted 2005) [#2]
Windows Version runs fine here. I get a window with a big hello box in it.

Specs P4 3.2GHZ ; 1GB DDR ; 256 Radeon 9800XT ; XP PRO SP2 DX9c


taxlerendiosk(Posted 2005) [#3]
Could you give a description of exactly how it should look/work? I'm getting a window that seems to be twice as wide as it should be, but I dunno if that's deliberate. (Win32)


Perturbatio(Posted 2005) [#4]
I get a wide window with Hello in a white box inside it.


GregBUG(Posted 2005) [#5]
Windows open and immediately close here... :(

my system is:
windows XP sp2 Pro
Centrino 1.7 1,2Gb Ram


Chris C(Posted 2005) [#6]
I get a window twice the size of the hello panel
(hopefully thats how its supposed to be!)


JazzieB(Posted 2005) [#7]
Windows - sames as Chris C says.

Linux - if unchanged from your previous version then it doesn't do anything at all! Using MEPIS with KDE desktop.


Kev(Posted 2005) [#8]
@all with win32 working big window, this is correct.

@GregBUG, thanks i will look into this.

@JazzieB, ive a new example that i will post later today, lets hope its working.

thanks
kev


Kev(Posted 2005) [#9]
Hi all

both win32 and linux example's are new.

for people with problem's with the last example's, could you please test the above NEW examples.

what you should see, two window's open both have to push buttons, when clicked they should popup a message requester.

for info on the module ive added a worklog here
http://www.blitzbasic.com/logs/userlog.php?user=71&log=565

any feedback please

thanks
kev


slenkar(Posted 2005) [#10]
works on Windows perfectly-looks cool too, what is the sourcecode for opening the 2 windows with your system?


JazzieB(Posted 2005) [#11]
Tried the Linux version again. Still doesn't work for me under MEPIS (with KDE and Kernal 2.6). I ensured that it's executable, but it still appears to do nothing when clicked on.


GregBUG(Posted 2005) [#12]
@Kev

Now works fine...

but if i enable Visual Styles the demo don't work... :(


Sarge(Posted 2005) [#13]
Nice work kev,

I just was wondering why you didn't go with wxWidgets since that uses pure api.


Kev(Posted 2005) [#14]
@JazzieB, in the file's properties is it execatable? if it is then i look into gettin hold of 'MEPIS (with KDE and Kernal 2.6)' and see what i can do.

@GregBUG, great! but what's Visual Styles? i would like to try and fix this.

@Sarge, fltk was just the first cross gui i tryed to build as a module. ive not seen wxWidgets i will take a look.

thanks for the feedback
kev


Muttley(Posted 2005) [#15]
Works fine here. Get 2 windows up with OK and cancel buttons, both sets of buttons pop up a message when I click them, and both windows close when I close either one of them.

How that's what it's supposed to do. ;)

Muttley


Kev(Posted 2005) [#16]
@Muttley, Yes thats correct. did you try both versions?

@Slenkar, heres the sourcecode for the two examples.


'
'
'
Framework PUB.fltk
Import BRL.StandardIO
Import BRL.Retro

window = FLTK_CreateGUIWindow("BlitzMax Windows Ftlk Example",200,100,300,200)

GUIWindowResizable(window,0)
FLTK_BeginGUIGadgetGroup(window)
	
Local ok:Int = FLTK_CreateGUIButton("Ok",10,10,100,20)
Local cancel:Int = FLTK_CreateGUIButton("Cancel",140,10,100,20)

Local box = CreateGUIBox("Box",50,100,200,50,7)

FLTK_EndGUIGadgetGroup(window)


window2 = FLTK_CreateGUIWindow("BlitzMax Windows 2 Ftlk Example",200,400,300,200)

FLTK_BeginGUIGadgetGroup(window2)
	
Local ok2:Int = FLTK_CreateGUIButton("Ok",10,10,100,20)
Local cancel2:Int = FLTK_CreateGUIButton("Cancel",140,10,100,20)

FLTK_EndGUIGadgetGroup(window2)

Repeat

	event = FLTK_WaitGUIEvent()
	Select event
		
		Case $401
			gadget = FLTK_EventSource()
			Select gadget 
				
				Case ok
					NotifyMSG("Window 1 OK Gadget")
				
				Case cancel
					NotifyMSG("Window 1 Cancel Gadget")
				
				Case ok2
					NotifyMSG("Window 2 OK Gadget")
					
				Case cancel2
					NotifyMSG("Window 2 Cancel Gadget")
											
			End Select
			
		Case $803
			NotifyMSG("GoodBye")
			End
			
	End Select
		
Forever
End



Testers can you put the version tested.

thanks
kev


Muttley(Posted 2005) [#17]
Sorry Kev, no Linux installation here at work right now. Will try it later tonight.

Muttley


GregBUG(Posted 2005) [#18]
MS Styles is a new skinning engine made by Microsoft to change the look of Windows, to use them you need a program called StyleXP or another way to use MSStyles is using a patch.

You can use "Neowin UXTheme Multi-Patcher"

the link is:
http://www.neowin.net/forum/index.php?showtopic=140707

some skin to use at this link...

http://studiotwentyeight.com/index2.htm


Kev(Posted 2005) [#19]
@GregBUG, thanks thats useful. i see how things work out. EDIT:- yes i see the example just open's then close.

@JazzieB, Can you test this please. Linux Test

thanks
kev


JazzieB(Posted 2005) [#20]
Hi Kev. That worked. Just got a window with 'Hello World' in a white box.


slenkar(Posted 2005) [#21]
thansk for the source, looks a lot easier than using the windows API


Kuron(Posted 2005) [#22]
Works good for me, Kev. Any idea yet how much this will cost?


Nigel Brown(Posted 2005) [#23]
Works on Both Linux and Windows here.

Windows XP.
Red Hat, Fedore Core.


Kev(Posted 2005) [#24]
@JazzieB, great. although the example's compiled and built out side of blitzmax? this makes me wonder why your having trouble with the module example, must be the way its built. i will look into this.

@Slenkar, yes im trying to keep it as simple as possable.

@Brice Manuel, not yet.

thanks
kev