I want it to work so bad....
#1
Bug 
I am trying to write a gradebook program to use for myself and using some of the honored libraries on the site, I am having a little trouble understanding why my program is hanging. Seems when I try to restore a prior screen, the program hangs. Even inserting a beep seems to show the program successfully exits the sub in the library but alas.... It is stuck.... I have never had a problem of the sort where I can step through with the debugger (though program execution seemed to be stuck already) but the program is stuck. Any ideas?

I'll upload what I have, the problem seems to be in the main .bas file lines 68 to 76 or in vs GUI.BM in the MainRouter sub (line 75). The only change I made to that is to give an escape from the sub. It *seems* to be working as intended, it does escape and goes beep but then gets stuck.

I really am at a loss..... Thanks for just looking!

Edit: Stripped out the .exe. Sorry about that, I am on Beijing time and it was late when I posted this  Dodgy


Attached Files
.zip   GUI_Grade Keeper.zip (Size: 555.46 KB / Downloads: 40)
Reply
#2
Virus warning by Microsoft defender !
Reply
#3
fine GUI library!
Have you used it properly?
If I have some time I'll dig there!
Reply
#4
(11-23-2022, 02:25 PM)BSpinoza Wrote: Virus warning by Microsoft defender !

Maybe because he included the .exe try this:

Update: extracts and loads into IDE without complaint from Windows for me anyway.


Attached Files
.zip   GUI_Grade Keeper.zip (Size: 555.7 KB / Downloads: 24)
b = b + ...
Reply
#5
I haven't downloaded this code but I am wondering if it is something to do with _DEST
Ask me about Windows API and maybe some Linux stuff
Reply
#6
Hi @NasaCow

OK 'vs GUI' was not meant to work with another system like Terry's Menu stuff. It needs exclusive control on Mouse and Keypresses to direct to proper controls event.

I would love to help with this project and I think whatever you can do with a Menu you can also do with buttons just not so fancy and compact. There is only a question of having enough room. Thing is list boxes might not be best control to use.

Or maybe you can do the whole thing with Terry's Menu stuff?
Break down tasks into individual projects that can be done on a single screen, call those screen-fulls from menu, return to menu when done.

Something tells me you want a spreadsheet application just from the little I saw of what was started and my glances of gradebooks in past.
ie each name is a row and columns for tests, working in a grid of cells.

What are files needed? Class Lists and a bunch of Test Results List for each test for each student = 1 column of a grade book.

I will think about this, on a database basis... I see a data entry thing needed for each test working from a class list.
Honestly maybe the fastest way to a gradebook app is an Excel or other spreadsheet, check Libre Office if not M$.

Hey @TerryRitchie you have taught classes if I recall, did you use a gradebook app of your own?
b = b + ...
Reply
#7
@NasaCow  (< why isn't that turning blue? already have 1 call to this thread?)

To get started on something right now, make up class lists in your favorite WP.

We can load and sort names if needed with QB64. 
Will use these lists for data entry app for recording grades for a given test.

Then we take the lists of tests and chart it out into a gradebook

Menu:
1. Make Class List this just needs a word processor
2. Record Test Grades needs class list and test name or date
3. Make Gradebook Page this is just loading tests data and laying out in columns and rows by class.

OR like I said checkout a spreadsheet app where you can do and see all in one step.
Basic programming skills will come in handy doing spread sheet formula.
b = b + ...
Reply
#8
(11-23-2022, 03:41 PM)bplus Wrote: Hey @TerryRitchie you have taught classes if I recall, did you use a gradebook app of your own?

Yes, I did, but I wrote it in Excel. That was in the early years of teaching. Eventually the school adopted a commercial package called ProgressBook that we all had to use.
Reply
#9
(11-23-2022, 05:04 PM)bplus Wrote: @NasaCow  (< why isn't that turning blue? already have 1 call to this thread?)

To get started on something right now, make up class lists in your favorite WP.

We can load and sort names if needed with QB64. 
Will use these lists for data entry app for recording grades for a given test.

Then we take the lists of tests and chart it out into a gradebook

Menu:
1. Make Class List this just needs a word processor
2. Record Test Grades needs class list and test name or date
3. Make Gradebook Page this is just loading tests data and laying out in columns and rows by class.

OR like I said checkout a spreadsheet app where you can do and see all in one step.
Basic programming skills will come in handy doing spread sheet formula.
This is my redesign of my Grade Keeper. Trying to update it to the '00s (I hope) with a complete rewrite. In the long run, it will kick out a lot of reports, including monthly birthdays, call lists. etc. You know the drill I am sure. I know it would be *easier* in excel, but I also enjoy the challenge to improve my own programming skills as well. Well, my original idea was to stick with just the menu bar but it seems it can only be made once. That's when I came across your buttons, thought it would be a great addition. I'll keep tinkering around till I can figure something out. Great hobby we share here and always so much to learn from you guys all. Thanks for all the support and quick responses! I appreciate, truly do. I'll have to step through the library a bit more and see if there is anything I can think of...
Reply
#10
Quote:Hi @NasaCow

OK 'vs GUI' was not meant to work with another system like Terry's Menu stuff. It needs exclusive control on Mouse and Keypresses to direct to proper controls event

Yeeesss! The two libraries went up with a project as single standalone pack.


.... moreover the "vs GUI" library lacks of BtnClickEvent that stands as variable at lines 105 and 165 but surely it has been designed as SUB.
Other possibility is that in the manual of "vs GUI" it sais clearly  that BtnClickEvent must be created and managed by user of library.
So after we do leftclick on a button there is no managment of that event in the library.

.... seeing in main file I see that you created BtnClickEvents for beeping!

The same is for LstSelectEvent that stands as variable at lines 152 and 174. 

Ok, I find some troubles but they don't fix the issue...
1. ScreenPointer must be as type LONG, as scope GLOBAL (so Shared) and must be an ARRAY
2. OpenWindow creates another _NEWIMAGE within itself so I prefer to avoid to use it and setting by hand the FONT used in "vs GUI"
3. we needed to specify _RGB/ _RGB32 colors for FC and BC of NewControl
looking at "vs GUI" and "Menu GUI", they are ok but they want work alone
Good Luck
Reply




Users browsing this thread: 19 Guest(s)