1
Newbie / Re: Greetings From A DarwinBots Newbie...
« on: August 13, 2014, 01:34:13 PM »
It helps if the interface is programmed to be friendly to the User...and maybe some instructions...
I got indication that a cutoff date for current update work development is upon us.
My first contribution was a bug-fix. This one is a feature enhancement.
In code comment, and on the forum, I see a desire for a better indicator for SunStatus. I desperately needed that as well.
Here is a simple, but very effective solution.
* Plant a PictureBox on the MDIForm. It will probably try to set just below the toolbar, which is great: That's where I want it.
MDIForm1 Form File Control Parameters:
============================================
Begin VB.MDIForm MDIForm1
Begin VB.PictureBox picSunStatus
Align = 1 'Align Top
BackColor = &H00FF0000&
BorderStyle = 0 'None
Height = 80
Left = 0
ScaleHeight = 75
ScaleWidth = 14295
TabIndex = 10
Top = 420
Width = 14292
End
End
==============================================
* In the Vegs.feedvegs Subroutine, place one line of code at the end of the routine. Ends up looking like:
==============================================
End If
Next t
getout:
MDIForm1.picSunStatus.BackColor = IIf(SimOpts.Daytime = True, &HFFFF&, &HFF0000) <++++++ ADDED LINE
End Sub
==============================================
What results is a thin color bar just below the toolbar, stretching the entire length of the parent form. Shows a dark (night) color when the sun is down, and yellow (obvious) when the sun is up. Is visible no matter what size and position the MDI form takes. Is not intrusive. Works Great For Me.
I'm very busy reverse-engineering this package (when I'm not busy just playing with it). I'm creating my own executable, descendants of the latest package, with enhancements and corrections for testing. I'm already enjoying using the software more with the changes I've made.
Tom
I got indication that a cutoff date for current update work development is upon us.
My first contribution was a bug-fix. This one is a feature enhancement.
In code comment, and on the forum, I see a desire for a better indicator for SunStatus. I desperately needed that as well.
Here is a simple, but very effective solution.
* Plant a PictureBox on the MDIForm. It will probably try to set just below the toolbar, which is great: That's where I want it.
MDIForm1 Form File Control Parameters:
============================================
Begin VB.MDIForm MDIForm1
Begin VB.PictureBox picSunStatus
Align = 1 'Align Top
BackColor = &H00FF0000&
BorderStyle = 0 'None
Height = 80
Left = 0
ScaleHeight = 75
ScaleWidth = 14295
TabIndex = 10
Top = 420
Width = 14292
End
End
==============================================
* In the Vegs.feedvegs Subroutine, place one line of code at the end of the routine. Ends up looking like:
==============================================
End If
Next t
getout:
MDIForm1.picSunStatus.BackColor = IIf(SimOpts.Daytime = True, &HFFFF&, &HFF0000) <++++++ ADDED LINE
End Sub
==============================================
What results is a thin color bar just below the toolbar, stretching the entire length of the parent form. Shows a dark (night) color when the sun is down, and yellow (obvious) when the sun is up. Is visible no matter what size and position the MDI form takes. Is not intrusive. Works Great For Me.
I'm very busy reverse-engineering this package (when I'm not busy just playing with it). I'm creating my own executable, descendants of the latest package, with enhancements and corrections for testing. I'm already enjoying using the software more with the changes I've made.
Tom