Pocket Weather

digitaldon37

Active Member
Licensed User
Longtime User
Hi digitaldon37,

The picture is directly put in the Form1.Image.
The lines and the texts are drawn onto the forelayer of the form with
a DrawerEx object from the ImageLibEx.
It could have been done directly with Form1.FLine and Form1.FDrawString.
But I use right alignment for some texts, and for that I need the StringWidth function that is in the ImageLibEx library with the DrawerEx object.

I am also looking to replace the menus by ToolBars.

When I am almost finished I will post it.

Best regards.

I got the image demo from one of the other forums - had to use Google to translate the German to English.

I've made a couple of small changes - but I will hold off until you post your copy. It will be easier for me to put these into your version.

I'm not sure about the idea to use a tool bar. I'm trying to make the program finger-friendly and tool bars are usually too small to use.
 

digitaldon37

Active Member
Licensed User
Longtime User
Version .32

Version .32 has been uploaded to the main post

.32 (11/26/08)
=========================================
- resized main form icons to 50x50
- fixed landscape mode - right side view
- fixed "About" display
- changed "Current" icon border from label
- added error logging in parse subs
- rename PC weather PC Forecast
- fixed detail icons 0-9

Most of the changes are cosmetic and could have been resolved without a new build, but this version adds a setting to turn on error logging for some of the sub-routines. The program should never crash, but it may display (or not display) strange data when it encounters a data (refreshing the weather feed usually fixes that).

Error logging helps those like me who are obsessed with squashing every little bug and writing work-arounds.

I also renamed the PC version from "Weather" to "PC Forecast"

On another note, I am trying to learn how to create cabs. Any recommendations?
 
D

Deleted member 103

Guest
Hi digitaldon37

i've made version 0.33 with VGA resolution. ;)

The About-Panel can be moved now with the mouse or stylus.

Ciao,
Filippo
 

digitaldon37

Active Member
Licensed User
Longtime User
Hi digitaldon37

i've made version 0.33 with VGA resolution. ;)

The About-Panel can be moved now with the mouse or stylus.

Ciao,
Filippo

Thanks! This is one of the things that have been asked for.

I made several changes and have a v.33 also - is there an easy way to take your changes and add them to my v.33?

[edit] I am running win-diff and see most of the changes you made you added a comment (thanks! I'll be able to pull that code out and re-use) and the others seem to be changing the images from center to stretch. Do your changes require your fgControls library, and if so, is the .cs version available to compile in?

I'm trying not to have to distribute any DLLs with the executables.
 
Last edited:

Cableguy

Expert
Licensed User
Longtime User
Have you tried my about panel?

I think it has the kind of look that the rest of you app is targetting...

I could try to implement the X,Y coordinated and mousedown and mouseup events...If you do require them...

Edit:
@fillipo: You seem to be using yet the textfiles from version v.2X, wich has several errors in it like "Tomoorow", and the Last update time is always 12:00, even tought it's now 00:37....
 
Last edited:

digitaldon37

Active Member
Licensed User
Longtime User
Version .33

Version .33 developers edition has been uploaded to the main post

.33 (11/26/08)
=========================================
- Added S2U support integration
- Tweak theming
- Added details, buttons mapping file
- Added "realize" theme


The S2U was asked by one of the users and is kind of cool. Pocket Forecast updates a registry key and S2U displays the weather status.

I appreciate the help and feedback. I know Klaus is working on background image support, Filippo added VGA support (I have to pull his code out and add to the main branch) and Cableguy pointed me in the direction of a custom panel which I'm going to look at.
 
D

Deleted member 103

Guest
Hi digitaldon37,

the library fgControl.dll is used only to the About-Panel and a move to add boundary.
is the .cs version available to compile in?
unfortunately no.

@Cableguy: I do not use your about-panel


Ciao,
Filippo
 

Mr_Gee

Active Member
Licensed User
Longtime User
Great stuff
I just noticed some spelling mistakes:
Tomoorow
Waether
upate

:)

this is in the .33 version...
 

Attachments

  • 11-28-2008 9-29-38 AM.jpg
    11-28-2008 9-29-38 AM.jpg
    25.8 KB · Views: 291

klaus

Expert
Licensed User
Longtime User
Hi digitaldon37,

Here is the version with the image background.

It is based on your version 0.32.
The first goal is to show what could be done.

What is missing:
- landscape mode not yet done
- other screen sizes not done
- no theme on the settings form

What has changed:
- all the Labels on Form1 are not necessary and were removed.
- Form2 is removed
- added a themeBordreColor in the INI file
- replaced the theme Textbox in the settings form by a Combobox

I have updated the E, D, F text files.
Please check for the others I, P, S for changes. Be aware that in these last files there is one text line more than in the older ones. And if you have added some other texts in the program they should be added.

The themes are in seperate zip files, they are too big.
Copy the themes in 'sky' and 'sunset' folders in the themes folder.

Best regards.
 

digitaldon37

Active Member
Licensed User
Longtime User
Hi digitaldon37,

Here is the version with the image background.

It is based on your version 0.32.
The first goal is to show what could be done.

What is missing:
- landscape mode not yet done
- other screen sizes not done
- no theme on the settings form

What has changed:
- all the Labels on Form1 are not necessary and were removed.
- Form2 is removed
- added a themeBordreColor in the INI file
- replaced the theme Textbox in the settings form by a Combobox

I have updated the E, D, F text files.
Please check for the others I, P, S for changes. Be aware that in these last files there is one text line more than in the older ones. And if you have added some other texts in the program they should be added.

The themes are in seperate zip files, they are too big.
Copy the themes in 'sky' and 'sunset' folders in the themes folder.

Best regards.

I just looked at this and I can only say - AWESOME! :sign0188:

I just finished v34 which had a theme selector and applies - don't need that now. That leaves me with the changes I put in for my version .33 to be merged with this code.

Since I've added all that I want to at the moment, can I update your code and post v34 for you to work off of?

Again, your contributions are really nice!
 

digitaldon37

Active Member
Licensed User
Longtime User
v.35

Here is the VGA version !
It's only the sbp file.

Best regards.

I uploaded the merged version of your v.32c and my v.34 - please use this for modifications.

Changes include:

1. Buttons and detail condition images have a mapping file like the current conditions file
2. Fixed default detail (Yahoo) images - condition and detail now match
3. Added support for integration with S2U

Does the imageLibEx library have source code so that it can be compiled into the executable?

I will look at the VGA version you uploaded to see if I can merge that in, but I want to wait to make sure that we're using the same code base.
 

digitaldon37

Active Member
Licensed User
Longtime User
Yes we have the same source code base.

Do you want me to add the vga part, or do you want to do it yourself ?

For the landscape mode, do you want to do it or should I do it ?

Best regards.

Since you are familiar with both, would you please add them both?
 

klaus

Expert
Licensed User
Longtime User
Here we are.

Version V0.36 is attached.
- Added VGA and Landscape modes with backgroung image.
- A part of the VGA mode was already done by Filippo.
- Minimize button works on the device, needs a Task Manager like MagicButton.
- Screen orientation change works now on device

I have tested a lot, but there could remain some bugs in the different displays according to the lengths of the waether texts or the words in the different languages.

I could test the VGA mode only on the desktop in increasing the screen size but not on a device.

Best regards.
 
Last edited:
D

Deleted member 103

Guest
Hallo klaus,

I do not know what you've changed everything, but the VGA resolution on the PPC does not work anymore.

ich weis nicht was du alles verändert hast, aber die VGA-Auflösung auf dem PPC funktioniert nicht mehr.:(


Ciao,
Filippo
 

digitaldon37

Active Member
Licensed User
Longtime User
Version .36

Developer's version .36 has been posted to the main post. Changes include Klaus's theme support, as well as a few bug fixes.

.36 (11/28/08)
=====================================================================
- Main page fonts changed from bold to normal to reduce 'fuzziness"
- Today details now show today's forecast, not current
- Add locations are aligned on screen properly
- Fixed drop down combos to inherit theme colors
- Weather direction for 360 degrees now shows "N"
- Merged image library source, DLL no longer required
- Main page weather icons now inherit theme color
- Background images can be png, gif, or jpg (define in theme.ini)
- Fixed settings crash when location added & went back into settings
- NEW: portrait/landscape (switch back & forth)
- NEW: VGA (I can't test this)

Please use the .36 version that is attached to post #1

On another note - this thread has hit the attachment file size limit - can everyone delete attachments in their messages? Thanks!
 
Last edited:

digitaldon37

Active Member
Licensed User
Longtime User
Hallo klaus,

I do not know what you've changed everything, but the VGA resolution on the PPC does not work anymore.

ich weis nicht was du alles verändert hast, aber die VGA-Auflösung auf dem PPC funktioniert nicht mehr.:(


Ciao,
Filippo

Please let me know if it still is a problem with the version I uploaded to the main post. I also forgot to add you to the credits for the "About" panel - I'll get that added in the next release. :)
 

klaus

Expert
Licensed User
Longtime User
Hi Filippo,

As I could not test it, thanks for doing it.

Added at the beginning of the DrawText routine:
B4X:
[FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]If [/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080][FONT=Courier New][SIZE=2][COLOR=#800080][FONT=Courier New][SIZE=2][COLOR=#800080]cPPC [/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]Then[/COLOR][/SIZE][/FONT]
[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]Font1.Size=fs[/SIZE][/FONT]
[/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]Else[/COLOR][/SIZE][/FONT]
[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]Font1.Size=fs*scale[/SIZE][/FONT]
[/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]End [/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]If[/COLOR][/SIZE][/FONT]
[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT]

I hope that this will remove the problem.

I tried to add version0.361 but there is a problem with the server.
Will try it later.

Best regards.

Hallo Filippo.
Danke für den VGA Test. Habe das Program wie oben stehend am Anfang der DrawText Routine geändert.
Hoffe dass das das Problem löst.
Wollte die neue Version posten, geht leider momentan nicht.
Versuche es später.

Grüsse.
 
Top