Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Share Your Creations
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Share Your Creations Show your developed application to Basic4ppc community. Please include source code if possible.


SCalculator 3


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-30-2007, 09:51 AM
Senior Member
 
Join Date: May 2007
Posts: 156
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default SCalculator 3

I have upgraded the SCalculator:
a. Addition of 15 levels of brackets and brackets window.
b. Addition of factorial function N!
c. Addition of DMS display function.
d. Addition of MOD (modulu) function
e. Addition of input scrolling.
f. Buttons re-order and new labels
g. Code improvement (by moving common tasks to common subs).
h. Correction of bugs.

You are invited to look at it and use it if you want to.
The attached file contains the code and a setup program, including operating manual.
It can run on the desktop but the inscriptions on the buttons do not fit.
I shall appreciate comments and suggestions for improvements or additions (there are two spare buttons..)
Attached Images
File Type: jpg Scalculator3.JPG (27.4 KB, 165 views)
Attached Files
File Type: zip Calculator.zip (420.7 KB, 211 views)
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #2 (permalink)  
Old 10-30-2007, 02:50 PM
Knows the basics
 
Join Date: Apr 2007
Location: Kindred,ND
Posts: 94
Default

Its well done in fact I have been using v2 as the calc in a shell for myself. I did add a exit button on v2 before compile to exe
Why 2 blank buttons?
Reply With Quote
  #3 (permalink)  
Old 10-30-2007, 05:22 PM
Senior Member
 
Join Date: May 2007
Posts: 156
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Growth potential
If you have a good idea how to use them - tell me
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #4 (permalink)  
Old 10-31-2007, 07:39 AM
RandomCoder's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: UK
Posts: 484
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Very nice, I thought you'd be able to compact some of the code by combining it to common subs.
This and the new features must have taken a significant amount of time

Regards,
RandomCoder
__________________
Desktop: Pentium D 920 (2.8GHz, 4MB L2 Cache, 800MHz FSB), 1024MB, 256MB Radeon X600, 250GB HD.
Device : Axim X51v XScale 624MHz, 3.7" VGA, 64MB SDRAM, 256MB Flash ROM + 1Gb SD.

"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
  #5 (permalink)  
Old 10-31-2007, 12:27 PM
Senior Member
 
Join Date: May 2007
Posts: 156
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Mainly by the use of "sender" for groups of keys with similar functionality
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #6 (permalink)  
Old 11-01-2007, 02:32 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hello Derez,
Impressed by your brainwork!
Idea: what about adding bitwise.dll to perform Dec to Hex / Hex to Dec, etc. This will well occupy those two vacant buttons

One more:

Atnq (unlike Atn gets the correct quadrant)

Code:
Sub Atnq(x, y)
  z=Atan(x/y)
  if y < 0 Then z = z + cPI
  if y > 0 and x < 0 then z = z + cPI*2
  Return z
End Sub
Cheers
Robert
Reply With Quote
  #7 (permalink)  
Old 11-07-2007, 07:48 PM
Senior Member
 
Join Date: May 2007
Posts: 156
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default hex dex

Thank you Alfcen
I have considered the use of HEX and DEC but voted against , I don't feel that anybody really needs it (although you find it in most scientific calculators).
And thanks for the ATNQ tip - it will be used !
David
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #8 (permalink)  
Old 11-08-2007, 02:13 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default

No problem, David, I just find HEX-DEC-HEX or BIN-DEC-BIN conversions helpful during programming since basic4ppc has no immediate window like embVB.
Anyway, looking forward to the next version
Reply With Quote
  #9 (permalink)  
Old 11-08-2007, 07:05 AM
Junior Member
 
Join Date: May 2007
Posts: 45
Default

Hi,
for me is HEX,BIN,DEC conversion very useful as well (and for everybody who makes programs for microcontrolers, I think). But I agree that most of users doesn't need it. Anyway your calculator is very nice, I like it.
Petr
Reply With Quote
  #10 (permalink)  
Old 11-08-2007, 03:04 PM
Knows the basics
 
Join Date: Apr 2007
Location: Kindred,ND
Posts: 94
Default hex dec etc

I use another program for hex etc but it would be nice in the scalc, Also ascii would be good then I could remove 2 programs. just my 2 cents
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
SCalculator 4 derez Share Your Creations 5 01-08-2008 10:22 AM
SCalculator 2 derez Share Your Creations 3 10-21-2007 11:59 AM


All times are GMT. The time now is 04:49 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0