Linux/Win32 GUI mod example - test please
BlitzMax Forums/BlitzMax Programming/Linux/Win32 GUI mod example - test please
| ||
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 |
| ||
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 |
| ||
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) |
| ||
I get a wide window with Hello in a white box inside it. |
| ||
Windows open and immediately close here... :( my system is: windows XP sp2 Pro Centrino 1.7 1,2Gb Ram |
| ||
I get a window twice the size of the hello panel (hopefully thats how its supposed to be!) |
| ||
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. |
| ||
@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 |
| ||
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 |
| ||
works on Windows perfectly-looks cool too, what is the sourcecode for opening the 2 windows with your system? |
| ||
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. |
| ||
@Kev Now works fine... but if i enable Visual Styles the demo don't work... :( |
| ||
Nice work kev, I just was wondering why you didn't go with wxWidgets since that uses pure api. |
| ||
@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 |
| ||
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 |
| ||
@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 |
| ||
Sorry Kev, no Linux installation here at work right now. Will try it later tonight. Muttley |
| ||
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 |
| ||
@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 |
| ||
Hi Kev. That worked. Just got a window with 'Hello World' in a white box. |
| ||
thansk for the source, looks a lot easier than using the windows API |
| ||
Works good for me, Kev. Any idea yet how much this will cost? |
| ||
Works on Both Linux and Windows here. Windows XP. Red Hat, Fedore Core. |
| ||
@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 |