Hive (Home InVEntory) program.

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4747
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Hive (Home InVEntory) program.

Post by Fangbeast »

Bisonte wrote:I think you was really tired if you updated the DL link of MyStuff 2... ;)

The link is not avaible, cause its a link to your harddisk .... file:///D:/bangf/Documents/.....

The right link seems to be : http://members.westnet.com.au/bangfeast ... uff%202.7z
Ouch! In my defence, it was a long, hot, sticky day :(
Amateur Radio, D-STAR/VK3HAF
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4747
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Hive (Home InVEntory) program.

Post by Fangbeast »

Thanks to TI-994a's nice banner and Jumbuck doing some needed bug checking, I have managed to update MyStuff 2.

All my stuff is now at:

https://www.dropbox.com/sh/qjrsw33plpcl ... czDDa?dl=0

as I changed ISPs and no longer have any web pages.
Amateur Radio, D-STAR/VK3HAF
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4747
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Hive (Home InVEntory) program.

Post by Fangbeast »

Did a whole lot of needed bug fixing.
Added all missing shortcuts.
Help file editor per window is added and hopefully working.

16 hours coding, am nairly fackered. (Not that anyone uses this right?) :)
Amateur Radio, D-STAR/VK3HAF
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4747
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Hive (Home InVEntory) program.

Post by Fangbeast »

Lots more bug fixes and a few small additions that I needed. References to recipes removed in all code finally (Forgot they were there!!).

Before anybody asks me how to use it (Like a few have!!), READ THE CODE!!!

Link is in the previous post/s
Amateur Radio, D-STAR/VK3HAF
jack
Addict
Addict
Posts: 1336
Joined: Fri Apr 25, 2003 11:10 pm

Re: Hive (Home InVEntory) program.

Post by jack »

hi Fangbeast
I think you need to edit this thread's title to reflect the name of your project "My stuff" :)
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4747
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Hive (Home InVEntory) program.

Post by Fangbeast »

jack wrote:hi Fangbeast
I think you need to edit this thread's title to reflect the name of your project "My stuff" :)
Hello Jack. I didn't want to change it as the original program was called Hive and was a completely different animal to this one.

Hive and MyStuff share the same idea (and some code) so I thought it might be less confusing to keep all the posts together (That and there was little or no feedback to indicate interest)

Now I have to analyse the whole thing to see if there is any way in hell this could beome multilanguage but it's hurting my brain so very much.
Amateur Radio, D-STAR/VK3HAF
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4747
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Hive (Home InVEntory) program.

Post by Fangbeast »

Maybe I can ask a moderator to move all the MyStuff topic to their own thread if anyone is interested but I don't think most people care.

In the meantime, new update sent to DropBox.

--------------------------------------------------
Fixed:
--------------------------------------------------

1. All help buttons on every window now open a blank page in which you can create your own help. SInce this is a free source code project, it is up to you to create these, not me. I know how my code works :):)

2. Some location keywords were misspelled so that items that should not have shown in "all items" did show.

3. Some keyboard shortcuts were under the wrong headings in the shortcuts list.

4. Some keyboard shortcuts were missing their associated explanation texts for the shortcuts list.

5. Fixed some table elements mispelled in the database creation routine. I hate my eyesight!

6. Unbundled some of the loops in some toggles so they processed all of them correctly. Notes below.

--------------------------------------------------
Added:
--------------------------------------------------

1. SelectAll added to the insurance print list for the main itemname list.

2. Some of the infobar areas on the main form are a bit smarter now. Still room for improvements.

3. If you want to limit the number if items displayed in searches and Location selections, now you can. And it is remembered between each program run.

--------------------------------------------------
ToDo:
--------------------------------------------------

1. TI-994A (Syed) created a sample form for PDF printing a single record with all its details but I have been a bit too dumb to finish it so far. Hopefully I will do it soon.

2. Merge OptionData and SettingsData tables. Don't know why I created 2 sepearate ones.

--------------------------------------------------
Problems:
--------------------------------------------------

1. The ColourListIconGadgetHeading is a real problem in that whatever I set the header colour text to, it seems to randomly change each time I run the program and I don't know what to do about it.

--------------------------------------------------
Notes:
--------------------------------------------------

1. A bit of a word about how I like my toggles to work. If I want to archive one of my stuff, it is checked to see if it isn't already marked deleted, locked or favourite. That's the way I like it, all items have one flag set at a time and all toggles work the same way, exlclusively.

2. Delete does not delete an item, it is just marked deleted.

3. Kill removes the item from the database permanently after asking you in an insulting way of course:):)

4. There are no help files. When the user clicks on a help button in a form window, a blank file is created and the user can fill it with their own help. The file names are synonomous with the function currently being used.

5. If you don't like my category or location icons, supply your own. If you don't use the same names that I chose, you will have to go and link each record to a new icon (Assuming you created lots of records already)

6. All the larger (non 16x16) icons came from Mattahan's BUUF icon set (and others of his) as I love them. The forms all use a transparent icon of 54x54 size with a 48x48 icon centred on them to allow for the height of the glow effect as the mouse passes over them.

--------------------------------------------------
Directories:
--------------------------------------------------

Code: Select all

Root:	MyStuff 2 	(You can call this whatever you like)
	  Help		(Compileable resource)
	  Images	        (Compileable resource)
	  Modules	        (Compileable resource)
	  Store		(User files store)
	     Backup	        (User created backups)
	     Database	(Program database)
	     Documents	(Record attached documents)
	     Helpfiles	(User created help files)
	     Icons	        (User supplied icons)
	        Category	(Category icons)
 	        Location	(Location icons)
	     Pictures	(Record attached pictures)
	     Temporary	(Any temporary files)
Amateur Radio, D-STAR/VK3HAF
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4747
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Hive (Home InVEntory) program.

Post by Fangbeast »

1. Thanks to RASHAD and Bisonte, you can now choose your own program font for form displays and it will be remembered next time you run MyStuff.

Since MyStuff isn't DPI aware (and I have no idea how to do this), you won't be allowed to set a font larger than 9 point as that would be too large for the chosen labels, string fields and others.

2. Another member asked me to make the MyStuff record in your face when you try to save a record with no title and I added that in. This save message can be globally disabled from the "Options/Show save messages after saving" choice.

I haven't done the single record print example supplied by TI-994a yet as I am having a bit more depression to battle but one day it will get done (With help!)

Same DropBox link as in previous posts above.
Amateur Radio, D-STAR/VK3HAF
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4747
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Hive (Home InVEntory) program.

Post by Fangbeast »

Does anyone have time to help me convert MyStuff to Module use and BindEvent type handling?

The project is getting a bit too big for me to handle the way it is and the length of the event handler sections is huge.
Amateur Radio, D-STAR/VK3HAF
User avatar
Bisonte
Addict
Addict
Posts: 1226
Joined: Tue Oct 09, 2007 2:15 am

Re: Hive (Home InVEntory) program.

Post by Bisonte »

hm I want to help you, but the first problem I have :

If I start the file : Mystuff.pb (in archiv My stuff 2.7z, filedate 17.May 14:17) the IDE throw a

[11:04:33] [COMPILER] Line 5: Structure not found: MEM_DataStructure.

Have I got the right archiv ?

Edit : Now I found it....

I add

Code: Select all

CompilerIf Defined(MEM_DataStructure,#PB_Structure)=0
Structure MEM_DataStructure
  pData.i       ; Pointer to memory
  lMaxSize.i    ; Max. reserved memory in bytes
  lCurSize.i    ; Current last possition of data in bytes
EndStructure
CompilerEndIf
to the beginning of the file : Mystuff_MyDeclarations.pb

By the way... Your codes are very readable !!! Image
Last edited by Bisonte on Tue May 23, 2017 10:24 am, edited 1 time in total.
PureBasic 6.04 LTS (Windows x86/x64) | Windows10 Pro x64 | Asus TUF X570 Gaming Plus | R9 5900X | 64GB RAM | GeForce RTX 3080 TI iChill X4 | HAF XF Evo | build by vannicom​​
English is not my native language... (I often use DeepL to translate my texts.)
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4747
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Hive (Home InVEntory) program.

Post by Fangbeast »

Bisonte wrote:hm I want to help you, but the first problem I have :

If I start the file : Mystuff.pb (in archiv My stuff 2.7z, filedate 17.May 14:17) the IDE throw a

[11:04:33] [COMPILER] Line 5: Structure not found: MEM_DataStructure.

Have I got the right archiv ?
I honestly didn't think anyone would answer this and forgot that another user had the same problem.

The memory structure it refers to is a residents file from an installation of PurePDF.

I installed it last year and it expanded the residents file into the compilers directory and the rest was pure source code thank goodness. (Or I might have done it manually).

The archive was: PurePDF225_PB52X86.zip. If you can't find it, I'll throw it onto my DropBox
Amateur Radio, D-STAR/VK3HAF
User avatar
Bisonte
Addict
Addict
Posts: 1226
Joined: Tue Oct 09, 2007 2:15 am

Re: Hive (Home InVEntory) program.

Post by Bisonte »

And now it's magic again... ;)

I edit my post above at the same time you wrote your answer.
PureBasic 6.04 LTS (Windows x86/x64) | Windows10 Pro x64 | Asus TUF X570 Gaming Plus | R9 5900X | 64GB RAM | GeForce RTX 3080 TI iChill X4 | HAF XF Evo | build by vannicom​​
English is not my native language... (I often use DeepL to translate my texts.)
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4747
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Hive (Home InVEntory) program.

Post by Fangbeast »

Bisonte wrote:And now it's magic again... ;)

I edit my post above at the same time you wrote your answer.
Thanks for the nice comments. I try my best to format and comment everything but as i get older, my eyesight and memory make it harder.

I remember years ago I was always contributing but I have really slowed down.

There are a lot more things I want to add to MyStuff and finish that single record print that TI-994a made an example of for me but it's getting to be a nightmare to do big code at my age.

Still, I have made a lot of new forms that I need to add the code for yet but not until I learn a better way of doing things.
Amateur Radio, D-STAR/VK3HAF
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4747
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Hive (Home InVEntory) program.

Post by Fangbeast »

A huge amount of work has been done as I have nothing better to do in this freezing weather but there may be lots of bugs as well since I am not smart enough to take breaks. The change list may look small but it is actually hundreds of lines of code and weeks of work.

Changed:

Optiondata and settings data were merged and email setup data added.
Database statements were better formatted for readability but there is more to do.
Modules\MyStuff was renamed to Modules\Stuffdata\ in keeping with the way other functions are named. And to stop confusion with the program name.
Added StuffFormCommon's code to add and edit mystuff. I try not to jump to extra procedures if possible.
Formatting a lot of database statments for more readability with betetr variable names.
Statistics window escape key renamed in line with others.

Fixed:

Fixed bug with button tips on loan window.
Fixed various mis-spellings.
Fixed variopus missing statusbar button tool tips.
Fixed various missing balloon tooltips.
Fixed missing lending form procedures not being linked in.
Fixed the graphical font previewer in the help screens thanks to FluidByte.
Fixed archived stuff not being able to be unarchived.
Fixed datasheet window close was pointed to the lending window.
Fixed dates in EditOldStuff not being active even though the dates text was set.
Fix print image grab having some of the background in it. Now just a tiny border shows and it's okay with me.

Added:

Added simple Mystuff lending and return modules.
Added setup module. Used for mail server details only at the moment.
Added email send module to the mending form so you can bug people about returns.
Added some fake email server and user details so these can be tested.
Print button on data sheet form.
Show the loans history.
Search the loans history.

Searching:

Added special search keywords for my own convenience:

//nodoc = Item has no documents attached.
//hasdoc = Item has documents attached.
//nopic = Item has no picture attached.
//haspic = Item has a picture attached.
//nocost = Item cost field is empty.
//hascost = Item cost field is filled.
//nodel = Item is not deleted.
//isdel = Item is deleted.
//nofav = Item is not marked favourite.
//isfav = Item is marked favourite.
//nolok = Item is not locked.
//islok = Item is locked.
//noarc = Item is not archived.
//isarc = Item is archived.

Todo:

Lookup supplier name on data sheet form.
Lookup manufacturer on data sheet form.
Lookup model number on data sheet form.
Lookup owner on data sheet form.

Fix font not totally being changed on main form while program is running.

I am now totally fnarkled and so frozen that even a freshly sacrificed goat wouldn't get me to move!.

The latest version in the precious DropBox link is called "My stuff 2.00.609.1a.7z.

Fell free not to leave me any feedback, I need my ugly sleep:):)
Amateur Radio, D-STAR/VK3HAF
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Re: Hive (Home InVEntory) program.

Post by Berikco »

Fangbeast wrote:Fell free not to leave me any feedback, I need my ugly sleep:):)
Ok no feedback :P
Post Reply