Guichan

Previous topic - Next topic

MrTAToad

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

[attachment deleted by admin]

bigsofty

#1
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...

Code (glbasic) Select

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...

Code (glbasic) Select

?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

Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

Schranz0r

I have many crashes on the Main Program!

If i hit on Label1 the Button then the program chrashes...
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

MrTAToad

#3
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


MrTAToad

#4
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...

bigsofty

Although some little bug'ets still exist, this seems to be an excellent GUI, very promising!  :good:
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

Quentin

looks very nice.
But what are the differences/benefits compared to DDGui?

MrTAToad

#7
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...

MrTAToad

#8
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:

Schranz0r

Ohhhh i wrote Lable1 i mean Tab1 ... SRY  :S
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

MrTAToad

Dont worry - I knew what you meant!

MrTAToad

I've added multi-line edit boxes.  I think its all working correctly now



[attachment deleted by admin]

bigsofty

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.

Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

MrTAToad

Thats odd - scroll bars should scroll the area.  Have to look into that.

matchy

Very cool. I'm just wondering what sort of parameters are available the listbox? For example; colours and columns.