Recipe management software?

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Recipe management software?

Post by Fangbeast »

jack wrote:sorry to report that for me it still doesn't work right
am using PB 5.42 Beta 5 LTS(x86) same problem when using PB 5.40 LTS(x86) Windows 10 x64
I am printing to PDF using "Microsoft Print to PDF", page one is ok the problem is on page 2
Image
Did you put Syed's fix in? (Because I haven't done it yet)
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Re: Recipe management software?

Post by jack »

yes, I replaced the TI_PrintRecipe procedure with the new one.
User avatar
TI-994A
Addict
Addict
Posts: 2698
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: Recipe management software?

Post by TI-994A »

jack wrote:...printing to PDF using "Microsoft Print to PDF", page one is ok the problem is on page 2...
Apparently, the vector library automatically converts the font size to the currently used UOM. So, when the font size is indicated in the VectorFont() function, it should be the converted value, and not the point size.

The code has been edited with this fix. Thank you for pointing that out. :D
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Re: Recipe management software?

Post by jack »

thank you TI-994A :D
works perfect.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Recipe management software?

Post by Fangbeast »

jack wrote:yes, I replaced the TI_PrintRecipe procedure with the new one.
Ah, okay. I'm still working on the setup module for various things including turning off or on the search return limits.

Be a while yet, I am slow.

Thanks for fixing things Syed, I couldn't do it. As I said before, this recipe program is a collaboration, thank goodness for that!

Any changes I do now are fixes, features and additions. No changes to the database structure at all.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Recipe management software?

Post by Fangbeast »

TI-994A wrote:
jack wrote:...printing to PDF using "Microsoft Print to PDF", page one is ok the problem is on page 2...
Apparently, the vector library automatically converts the font size to the currently used UOM. So, when the font size is indicated in the VectorFont() function, it should be the converted value, and not the point size.

The code has been edited with this fix. Thank you for pointing that out. :D
TI, is the routine named correctly for you as "TI_PrintRecipe.pbi" or do you prefer it after your real name?

When the program is finally released months down the track, I want the appropriate credits in place etc.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Re: Recipe management software?

Post by jack »

hi Fangbeast
I would like to change the font color of the recipe list from faint-gray to some color that stands out more, maybe IBM-blue or green.
how would you do it ?
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Recipe management software?

Post by Fangbeast »

jack wrote:hi Fangbeast
I would like to change the font color of the recipe list from faint-gray to some color that stands out more, maybe IBM-blue or green.
how would you do it ?
G'day jack. You pointed out a bug in my code where I accidentally set the foreground colour of the alternate band instead of the background colour.

You can turn the alternate colour banding off so the the default font colour is used or modify _DisplayRecipeString.pbi at lines 75 and 81 to change the colours used in the band.

And you can change the foreground and the background used in the bands.

This code was my mistake

Code: Select all

  If Option\ColourBand = #True
    If Program\ColourToggle = #True
      Program\ColourToggle = #False
      SetGadgetItemColor(#Gadget_Recipes_Recipes, LineNumber.i, #PB_Gadget_BackColor, $D4D4D4)
    ElseIf Program\ColourToggle = #False
      Program\ColourToggle = #True
      SetGadgetItemColor(#Gadget_Recipes_Recipes, LineNumber.i, #PB_Gadget_FrontColor, $C1C1C1) ; This was my mistake
    EndIf
  EndIf


This is the corrected code

Code: Select all

  If Option\ColourBand = #True
    If Program\ColourToggle = #True
      Program\ColourToggle = #False
      SetGadgetItemColor(#Gadget_Recipes_Recipes, LineNumber.i, #PB_Gadget_BackColor, $D4D4D4)
    ElseIf Program\ColourToggle = #False
      Program\ColourToggle = #True
      SetGadgetItemColor(#Gadget_Recipes_Recipes, LineNumber.i, #PB_Gadget_BackColor, $C1C1C1)
    EndIf
  EndIf  


And if you want to change the font colours as well as the band colours, you can do this

Code: Select all

  If Option\ColourBand = #True
    If Program\ColourToggle = #True
      Program\ColourToggle = #False
      SetGadgetItemColor(#Gadget_Recipes_Recipes, LineNumber.i, #PB_Gadget_BackColor, $D4D4D4)
     SetGadgetItemColor(#Gadget_Recipes_Recipes, LineNumber.i, #PB_Gadget_FrontColor, $D1091D) ; Dark IBM blue font
    ElseIf Program\ColourToggle = #False
      Program\ColourToggle = #True
      SetGadgetItemColor(#Gadget_Recipes_Recipes, LineNumber.i, #PB_Gadget_BackColor, $C1C1C1)
     SetGadgetItemColor(#Gadget_Recipes_Recipes, LineNumber.i, #PB_Gadget_FrontColor, $566A19) ; Dark green font
    EndIf
  EndIf  
  

P.S everybody, I have finally finished the setup options for query limit, query limit size, whether to use ProperCase strings for titles and using a dictionary replace (that part I am working on) and the update has been uploaded. at:

https://www.dropbox.com/s/s9yk29jr0fuhl ... es.7z?dl=0

Modifed the sections in _FindRecipe() and _DisplayCategory() that now take into account whether or not a display limit has been set.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Re: Recipe management software?

Post by jack »

thank you Fangbeast :)
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Recipe management software?

Post by Fangbeast »

jack wrote:thank you Fangbeast :)
No problem.

I'm still working on the setup module at the moment, so little brain!
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
TI-994A
Addict
Addict
Posts: 2698
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: Recipe management software?

Post by TI-994A »

Fangbeast wrote:TI, is the routine named correctly for you as "TI_PrintRecipe.pbi" or do you prefer it after your real name?

When the program is finally released months down the track, I want the appropriate credits in place etc.
I'm happy to have even received this much credit; but more importantly, I'm just glad that it'll be useful. Name-wise, I'll leave it to you. Collaboration or not, it's your baby. :lol:

Thank you.
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Recipe management software?

Post by Fangbeast »

TI-994A wrote:
Fangbeast wrote:TI, is the routine named correctly for you as "TI_PrintRecipe.pbi" or do you prefer it after your real name?

When the program is finally released months down the track, I want the appropriate credits in place etc.
I'm happy to have even received this much credit; but more importantly, I'm just glad that it'll be useful. Name-wise, I'll leave it to you. Collaboration or not, it's your baby. :lol:

Thank you.
Credit where it is due, I could not have done it.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Recipe management software?

Post by Fangbeast »

New craptastic build folks, several days worth of typing and fresh hamster bothering. Link above should still work.

My changelog might sound short but believe me, a huge lot of typing was done.

P.S I had to update today's changelog as a lot of behind the scenes stuff was done. And in 35 degrees heat too!!

I'll upload the new changes tonight.

01/03/2016


Added: Search current help page.
Added: Dummy help pages, nothing in them, that's your job!
Added: Launch home page to something user stores in Program\Homepage variable.
Added: All code that has yet to be done is marked as TODO or commented where possible.
Added: Delete ingredient from recipe. How on earth did I forget this?
Added: Shortcuts for all windows that had control buttons.
Added: Keyboard shortcut short text and long text for all shortcuts.
Added: Event section for all keyboard shortcuts.

Changed: 2 column names in database options table were changed because they made me forget what they were. Sorry!
Changed: LaunchBangFeast was meant to be LaunchHomePage.

Fixed: Category item count is updated after saving an recipe.

ToDo 1. Way to much! (I don't feel the force today)
2. Keyboard shortcuts list
3. Copy selected ingredient details to the clipboard
4. List and search through the ingredients table to add them to a recipe easily.
5. Load instructions from a text file on disk.
6. Create an advanced searching window.
7. Print help pages.

Bugs: 1. Funny issue with some form buttons stuck in their pressed state???
1. Search selects everything in the help form, not just the selected characters

29/02/2016

Added: Setup module with options.
Added: Escape and exit shortcuts for all windows.
Fixed: 23 values for 24 columns prevented recipe saving.

28/02/2016

Added: Show all selected recipes when export form is opened.
Added: Search from export form for recipes to select.
Added: Double click on recipe in export list to mark it as selected. (Persistent)
Added: Button to show selected records only in the export list.
Added: Export to XML file of selected recipes.
Last edited by Fangbeast on Tue Mar 01, 2016 7:11 am, edited 1 time in total.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Re: Recipe management software?

Post by jack »

thank you for the update :)
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Recipe management software?

Post by Fangbeast »

jack wrote:thank you for the update :)
I've had to update my changelog above as a lot more hard work was done so I will upload the changes tonight okay?
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Post Reply