Got the main test program up and running, and so here is the complete set of files.
For some reason, debug and release modes are still causing a few problems as you can see from the screenshots.
If anyone wants to look them over and see what problems there are, it'll be very useful :)
The RAR compressed code can be found at http://miscthings.co.uk/guichan/guichan.rar (http://miscthings.co.uk/guichan/guichan.rar)
[attachment deleted by admin]
Get rid of your "IF blah=x THEN DEBUG "BLAH"", as the DEBUG command is removed in the final build compilation, resulting in ""IF blah=x THEN" I assume. So just use "IF"/"ENDIF" blocks for your debugging code and it works fine.
Ala...
"Main Guichan Test Program.gbas"
Changed lines...
IF label%=0
DEBUG "Error : Label"
ENDIF
IF listBox%=0
DEBUG "Error : ListBox\n"
ENDIF
IF tabbedArea%=0
DEBUG "Error : Tabbed Area\n"
ENDIF
In the way of a small debugging tip, another, better way is to simply encapsulate your debug code in a preprocessor commands, as its a sure way of ensuring no extra code is in your program...
For example...
?DEFINE GLB_DEBUG // Remark this line in final compilation to remove all debug code
?IFDEF GLB_DEBUG
IF label%=0 THEN DEBUG "Error : Label"
?ENDIF
I have many crashes on the Main Program!
If i hit on Label1 the Button then the program chrashes...
Yet it doesn't here... Were you playing around the tabs first ?
Bigsofty - Some good ideas there! It does appear that those IF/DEBUG statements were causing problems and not letting the dropdown/icon bits be added...
I've updated the programs - so if you can give that a try. No doubt it'll crash again though :) I suspect its the mouse handling routine that causes it, but unfortunately as soon as the debug statement goes in, all is fine >:D
Yes, its way too fast at the moment... You should try typing something for real fun :)
Hmm - something interesting with Windows 7 - it appears to work okay when compatibility mode is activated... The only downside is that the program can't be re-compiled until compatability mode is turned off...
Unfortunately the XP version quickly ends up non-responsive - mainly because the program soon takes up 99% CPU power (and more memory), so thats got to be sorted...
Although some little bug'ets still exist, this seems to be an excellent GUI, very promising! :good:
looks very nice.
But what are the differences/benefits compared to DDGui?
The main differences are the extra widgets - DDGui doesn't have drop-down boxes, for example...
The full list includes :
Buttons
ListBoxes
Dropdown Lists
Icons
Labels
Radio buttons
Scroll areas (usually part of lists)
Sliders
Textboxes
Text Fields (needs to be coded)
Windows
The main other advantage is that positioning isn't relative to other widgets or the size of the window - its absolute positioning all the way...
Think I've finally solved the tab hanging problem :)
Somehow, the tabs death function managed to have a comparison ( == ) in it in place of assignment ( = ). No idea how it happened, but it seems to have solved the problem...
Okay - updated Guichan compressed file is now available :happy:
Ohhhh i wrote Lable1 i mean Tab1 ... SRY :S
Dont worry - I knew what you meant!
I've added multi-line edit boxes. I think its all working correctly now
[attachment deleted by admin]
Looks great!
Small problem though, when you type in the multi-line widget and the cursor goes out the screen, scroll bars appear but you can't scroll the window with them and the window does not keep up with the cursor.
Thats odd - scroll bars should scroll the area. Have to look into that.
Very cool. I'm just wondering what sort of parameters are available the listbox? For example; colours and columns.
I'll eventually put in colour interface commands, but listboxes can only display lines of text.
Updated with correct textbox scrolling.
Auto-repeat is too fast still, but that can be easily sorted.
[attachment deleted by admin]
Works fine!