PowerBASIC Peer Support Forums
 

Go Back   PowerBASIC Peer Support Forums > User to user Discussions > Programming

Notices

Programming User to user discussions of general programming topics such as algorithms, APIs, etc.

Reply
 
Thread Tools Display Modes
  #76  
Old Sep 5th, 2009, 06:01 PM
Gösta H. Lovgren-2 Gösta H. Lovgren-2 is offline
Member
 
Join Date: Sep 2002
Location: New Jersey Shore
Posts: 2,517
Rod, my Kevin (son) stopped by today and rearranged (cleaned up) my desk, lowering the monitor 7" so that the center is at eye level. What a difference in looking at the Portrait View. Wow!, what an improvement. Never go back to Landscape view now. Thanks for the prod.

On another front - Michael, "accelerator" keys are being added at an astounding rate (see exe below). {laughing}

==============================
The comic book [is]
the marijuana of the nursery,
the bane of the bassinet,
the horror of the home,
the curse of the kids and
a threat to the future.
John Mason Brown
==============================
__________________
It's a pretty day. I hope you enjoy it.

Gösta
Easy Tape (It All Adds UP): http://www.swedesdock.com/easytape
My Ego Site: http://www.SwedesDock.com
PB Newby Tips: http://www.swedesdock.com/powerbasic/pb_shortcuts.html
JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
Free PB Programs: http://www.swedesdock.com/powerbasic/Programs.shtml
Reply With Quote
  #77  
Old Sep 5th, 2009, 09:22 PM
Rodney Hicks Rodney Hicks is offline
Member
 
Join Date: Apr 2007
Location: Winnipeg, Manitoba, Canada
Posts: 1,074
Yes, I can believe you like it. To me, portrait monitors are the best improvement in computers since the mouse. Or PowerBasic, which ever came last.
__________________
Rod
Just for now I'd like to rest In the shade of a maple tree
To the blue Canadian sky I'll say a prayer for the world out there
-Gordon Lightfoot
Reply With Quote
  #78  
Old Sep 6th, 2009, 10:12 AM
Michael Mattias Michael Mattias is offline
Member
 
Join Date: Aug 1998
Location: Racine WI USA
Posts: 26,189
>..... "accelerator" keys are being added at an astounding rate ....

Gosta, let me give you some free advice, worth every penny:

Learn how to say, "no," quickly, or you are going to have something which is as easy to learn and use as Microsoft Word(r).
Reply With Quote
  #79  
Old Sep 6th, 2009, 10:45 AM
Gösta H. Lovgren-2 Gösta H. Lovgren-2 is offline
Member
 
Join Date: Sep 2002
Location: New Jersey Shore
Posts: 2,517
Quote:
Originally Posted by Michael Mattias View Post
>..... "accelerator" keys are being added at an astounding rate ....

Gosta, let me give you some free advice, worth every penny:

Learn how to say, "no," quickly, or you are going to have something which is as easy to learn and use as Microsoft Word(r).
Gee, M, I'm confused. You're the guy who, at the very outset of this thread, said
Quote:

I must be "Windows-fied." I tried to navigate using the tab keys... but this is designed for those accustomed to using the <ENTER> key

For sure on the buttons... you'll want to add accelerator keys when implemented, so user can "Alt+S" to save, or "Alt+R" to retrieve, since you can't navigate with the keyboard to those buttons very easily.

eg ""&Save Tape", "&Retrieve Tape", "C&lear" , etc.
Am I to understand that you are rescinding that very well taken advice. Jeez, what's a guy to do? {sigh}

================================================== ====
"The oldest and strongest emotion of mankind is fear,
and the oldest and strongest kind of fear is
of the unknown."
H.P. Lovecraft
================================================== ====
__________________
It's a pretty day. I hope you enjoy it.

Gösta
Easy Tape (It All Adds UP): http://www.swedesdock.com/easytape
My Ego Site: http://www.SwedesDock.com
PB Newby Tips: http://www.swedesdock.com/powerbasic/pb_shortcuts.html
JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
Free PB Programs: http://www.swedesdock.com/powerbasic/Programs.shtml
Reply With Quote
  #80  
Old Sep 6th, 2009, 11:27 AM
Michael Mattias Michael Mattias is offline
Member
 
Join Date: Aug 1998
Location: Racine WI USA
Posts: 26,189
When you said you are rapidly adding accelerator keys, I interpreted that as adding many more possible actions... i.e, you are turning what started out to be a nice, simple little "adding machine tape" program into a four-headed monster.

Sounds like "feature creep" to me. I've never had a good experience with feature creep. Ever.
Reply With Quote
  #81  
Old Sep 6th, 2009, 01:51 PM
Gösta H. Lovgren-2 Gösta H. Lovgren-2 is offline
Member
 
Join Date: Sep 2002
Location: New Jersey Shore
Posts: 2,517
Quote:
Originally Posted by Michael Mattias View Post
When you said you are rapidly adding accelerator keys, I interpreted that
as in Felix Unger's "assume"?
Quote:
as adding many more possible actions... i.e, you are turning what started out to be a nice, simple little "adding machine tape" program into a four-headed monster.

Sounds like "feature creep" to me. I've never had a good experience with feature creep. Ever.
"Sounds like"? Have you even looked the "little" program lately? Or are just shooting from the hip (area)?

Your deep concern over feature creep to my "little" program is admirable, even touching. However on the other side of the coin - it's worthwhile to keep in mind that if it wasn't for "feature creep" we'd still be driving Model T's and using Z80's.

Latest code attached and the exe can be seen from link below.

=====================================
"An inconvenience is only
an adventure wrongly considered;
An adventure is an inconvenience
rightly considered."
Gilbert Keith Chesterton (1874-1936)
=====================================
Attached Files
File Type: bas Swede's_List.bas (57.3 KB, 7 views)
__________________
It's a pretty day. I hope you enjoy it.

Gösta
Easy Tape (It All Adds UP): http://www.swedesdock.com/easytape
My Ego Site: http://www.SwedesDock.com
PB Newby Tips: http://www.swedesdock.com/powerbasic/pb_shortcuts.html
JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
Free PB Programs: http://www.swedesdock.com/powerbasic/Programs.shtml
Reply With Quote
  #82  
Old Sep 7th, 2009, 10:43 PM
Gösta H. Lovgren-2 Gösta H. Lovgren-2 is offline
Member
 
Join Date: Sep 2002
Location: New Jersey Shore
Posts: 2,517
Latest code uploaded. Exe in sig below.

==========================================
"There is a country in Europe
where multiple-choice tests are illegal."
Sigfried Hulzer
==========================================
Attached Files
File Type: bas Swede's_List.bas (59.4 KB, 10 views)
__________________
It's a pretty day. I hope you enjoy it.

Gösta
Easy Tape (It All Adds UP): http://www.swedesdock.com/easytape
My Ego Site: http://www.SwedesDock.com
PB Newby Tips: http://www.swedesdock.com/powerbasic/pb_shortcuts.html
JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
Free PB Programs: http://www.swedesdock.com/powerbasic/Programs.shtml
Reply With Quote
  #83  
Old Sep 9th, 2009, 10:48 AM
Gösta H. Lovgren-2 Gösta H. Lovgren-2 is offline
Member
 
Join Date: Sep 2002
Location: New Jersey Shore
Posts: 2,517
Roooooodddddnnnnneeeeyyyyy! I need your help, Pleeaaaassse.? Pretty please? Sugar n top.

I forgot how to reset my monitor back to Landscape. When I set it to Portrait lo those many days ago, I found instructions on Google. And now I can't refind them. {sigh}

Need to be able to detect abd adjust accordingly in program but can't get back to Landscape to test, Didn't realize it wasn't roght until I looked at it on the wife's computer. She's still using the old archaic Landscape mode. Can you imagine? {laughing}

PS version is now 1.85. (been some significant changes since last code ul.) Better Instructions, ...

PSS on a 1920x1280 res, it shows 74 rows.


CANCEL - just got it. Was just playing in the water before. For reference:

Right Click Desktop
Settings>Advanced>Video Card Tab
Run its "Control Panel" (card mgmnt program)
(At least that's how I remember it {sigh})

===========================================
"Wagner's music is better than it sounds."
Mark Twain (1835-1910)
===========================================
__________________
It's a pretty day. I hope you enjoy it.

Gösta
Easy Tape (It All Adds UP): http://www.swedesdock.com/easytape
My Ego Site: http://www.SwedesDock.com
PB Newby Tips: http://www.swedesdock.com/powerbasic/pb_shortcuts.html
JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
Free PB Programs: http://www.swedesdock.com/powerbasic/Programs.shtml

Last edited by Gösta H. Lovgren-2; Sep 9th, 2009 at 11:08 AM. Reason: Found settings and corrected version number
Reply With Quote
  #84  
Old Sep 9th, 2009, 04:11 PM
Rodney Hicks Rodney Hicks is offline
Member
 
Join Date: Apr 2007
Location: Winnipeg, Manitoba, Canada
Posts: 1,074
Good thing you found it Gösta.
I have never switched my monitor back to the landscape mode since I got it. Not even to prove it could be done.

I figure the rest of the world will catch up and we won't have to worry about the ancients and their landscape monitors.
__________________
Rod
Just for now I'd like to rest In the shade of a maple tree
To the blue Canadian sky I'll say a prayer for the world out there
-Gordon Lightfoot
Reply With Quote
  #85  
Old Sep 9th, 2009, 08:01 PM
Gösta H. Lovgren-2 Gösta H. Lovgren-2 is offline
Member
 
Join Date: Sep 2002
Location: New Jersey Shore
Posts: 2,517
Quote:
Originally Posted by Rodney Hicks View Post
Good thing you found it Gösta.
I have never switched my monitor back to the landscape mode since I got it. Not even to prove it could be done.

I figure the rest of the world will catch up and we won't have to worry about the ancients and their landscape monitors.
You wouldn't be so "cheeky" if YOUR wife had a landscape only monitor. It was fix the layout or spring for a new monitor or the icebox treatment (where mere days seem like forever). {grin}

==============================
Dogs are not our whole life,
but they make our lives whole.
Roger Caras
==============================
__________________
It's a pretty day. I hope you enjoy it.

Gösta
Easy Tape (It All Adds UP): http://www.swedesdock.com/easytape
My Ego Site: http://www.SwedesDock.com
PB Newby Tips: http://www.swedesdock.com/powerbasic/pb_shortcuts.html
JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
Free PB Programs: http://www.swedesdock.com/powerbasic/Programs.shtml
Reply With Quote
  #86  
Old Sep 9th, 2009, 11:06 PM
Gösta H. Lovgren-2 Gösta H. Lovgren-2 is offline
Member
 
Join Date: Sep 2002
Location: New Jersey Shore
Posts: 2,517
Tab works now Mike. It wasn't a big deal to me to have Tab as only type with my right hand and it's long trip across the keyboard. {laugh}

Up to version 1.90. (see below). Late tonight. Still gotta go ul to wife's computer. Hope the display width is fixed. Keep your fingers crossed for me will'ya. Can get awful chilly on the Jersey shore, if you know what I mean.

Will ul code maybe tomorrow probably. Depends on temperature inside.

=======================================
"Everyone lives by selling something."
R.L. Stevenson
=======================================
__________________
It's a pretty day. I hope you enjoy it.

Gösta
Easy Tape (It All Adds UP): http://www.swedesdock.com/easytape
My Ego Site: http://www.SwedesDock.com
PB Newby Tips: http://www.swedesdock.com/powerbasic/pb_shortcuts.html
JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
Free PB Programs: http://www.swedesdock.com/powerbasic/Programs.shtml
Reply With Quote
  #87  
Old Sep 10th, 2009, 11:51 PM
Gösta H. Lovgren-2 Gösta H. Lovgren-2 is offline
Member
 
Join Date: Sep 2002
Location: New Jersey Shore
Posts: 2,517
As promised, latest code is attached (exe in sig below). Added a neat new feature today (5 separate Checked Items subtotals). (I hope it's not creepy) I *think* everything is still working.

Still got stuff to do (mostly file stuff) and the to do list ain't getting any shorter.
Attached Files
File Type: bas Swede's_List.bas (69.5 KB, 16 views)
__________________
It's a pretty day. I hope you enjoy it.

Gösta
Easy Tape (It All Adds UP): http://www.swedesdock.com/easytape
My Ego Site: http://www.SwedesDock.com
PB Newby Tips: http://www.swedesdock.com/powerbasic/pb_shortcuts.html
JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
Free PB Programs: http://www.swedesdock.com/powerbasic/Programs.shtml
Reply With Quote
  #88  
Old Sep 12th, 2009, 11:33 PM
Gösta H. Lovgren-2 Gösta H. Lovgren-2 is offline
Member
 
Join Date: Sep 2002
Location: New Jersey Shore
Posts: 2,517
Added /\* functionality to tthe Amount tb's today (see Help). For the couple guys interested in the code
Code:
'
' *******************************************************
'
Function Parser(v As String, pctl As Long, ppsn As Long) As Double
   Common_Locals    
   Reset g_Parser_Error
   If Len(v$) = 0 Then 'blank
      Exit Function
   End If
'
   v$ = Remove$(v$, ",") 'JIC
   v$ = Remove$(v$, " ") 'JIC
   v$ = UCase$(v$) 'case of x
   '
   s$ = Tape(Ppsn).Comment
   s1$ = $AutoAdd_Marker
     i = InStr(s$, s1$)
     If i Then
        s$ = Mid$(s$, i + Len(s1$)) 'remove previous AutoAdd if there
     End If
     Tape(Ppsn).Comment = s$ 'put it back
   '
   s1$ = $Parser_Marker
   i = InStr(s$, s1$)
     If i Then
        s$ = Mid$(s$, i + Len(s1$)) 'remove previous AutoAdd if there
     End If
     Tape(Ppsn).Comment = s$ 'put it back
   '
   i = InStr(Mid$(v$, 2), Any "+-")'<<<"AT sign, X / \ * + -" in here (no spaces, forum editor quirk)
   If i Then  'Yes  
      Tape(Ppsn).Comment = v$ & $Parser_Marker & Tape(Ppsn).Comment
     Else
      Function = Val(v) 'ain't any so must be positive value
      Exit Function
   End If
'   
   Dim vlue$(1 To 20)'way more than needed JIC
'
   i = InStr(Mid$(v$, 2), Any "") '<<<"AT sign, X / \ *" in here (no spaces, forum editor quirk)
     If i Then GoTo Complex_Expressions20 
Parser10:
   i = InStr(Mid$(v$, 2), "-")
   If i = 0 Then i = InStr(Mid$(v$, 2), "+")
   If i = 0 Then  'no? so go
     dv = dv + Val(v$)
     Function = dv
     Exit Function
   End If
   'got here so found some
   dv = dv + Val(v$) 'Val(Left$(v$, i - 1))
   v$ = Mid$(v$, i + 1)
  GoTo Parser10
''
Complex_Expressions20: 'vlue$()
   l$ = Left$(v$, 1) 'make sure + or - first char
     If l$ <> "+" And l$ <> "-" Then
        v$ = "+" & v$
     End If 
'                      
   l$ = " " '<<<"AT sign, X / \ * + -" in here (no spaces, forum editor quirk)         
   i = ParseCount(v$, Any l$)
   If i > 10 Then
      ? "Ease up, Mate!!"  & $CrLf & $CrLf & _
        "10 expressions is all wot I can 'andle at a time.", %top, $Title
        Exit Function
   End If
   '
   Reset n
   Do Until i = 0      
      Incr n 'array elements
      i = InStr(2, v$, Any l$)'any actioners?
       If i Then 'found one
           vlue$(n) = Left$(v$, i - 1) 'array it
           v$ = Mid$(v$, i)
          Else 'only 1 left
           vlue$(n) = v$  'last one
       End If
   Loop     
'  
   Reset l$, dv
   For ctr = 1 To n
       l$ = Left$(vlue$(ctr), 1)
       Select Case l$           
         Case "+": v$ = Mid$(vlue$(ctr), 2): dv = dv + Val(v$)
         Case "-": v$ = Mid$(vlue$(ctr), 2): dv = dv - Val(v$)
         Case "/": v$ = Mid$(vlue$(ctr), 2): dv = dv / Val(v$)
         Case "\": v$ = Mid$(vlue$(ctr), 2): dv = dv \ Val(v$)
         Case "X": v$ = Mid$(vlue$(ctr), 2): dv = dv * Val(v$)
         Case "*": v$ = Mid$(vlue$(ctr), 2): dv = dv * Val(v$)
         Case "@": v$ = Mid$(vlue$(ctr), 2): dv = dv * Val(v$)
       End Select
   Next ctr                     
   Function = dv
End Function                                           
''''
'Note forum editor apparently doesn't like AT sign, or some other combinations.
While not elegant or clean, I do think it was clever.

I think after I add the File(s) functions, I'll have pretty much run out my string on this creepy program. {sigh}

================================================
"We have art to save ourselves from the truth."
Friedrich Nietzsche (1844-1900)
================================================
__________________
It's a pretty day. I hope you enjoy it.

Gösta
Easy Tape (It All Adds UP): http://www.swedesdock.com/easytape
My Ego Site: http://www.SwedesDock.com
PB Newby Tips: http://www.swedesdock.com/powerbasic/pb_shortcuts.html
JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
Free PB Programs: http://www.swedesdock.com/powerbasic/Programs.shtml

Last edited by Gösta H. Lovgren-2; Sep 12th, 2009 at 11:56 PM. Reason: forum quirks.
Reply With Quote
  #89  
Old Sep 13th, 2009, 12:47 AM
Rodney Hicks Rodney Hicks is offline
Member
 
Join Date: Apr 2007
Location: Winnipeg, Manitoba, Canada
Posts: 1,074
I like the recent changes, even though I was not one of those requesting same.

I still haven't figured out why I get two colours in the help screen but I haven't looked too hard either, other things on my plate.
Well done, Gösta!
__________________
Rod
Just for now I'd like to rest In the shade of a maple tree
To the blue Canadian sky I'll say a prayer for the world out there
-Gordon Lightfoot
Reply With Quote
  #90  
Old Sep 19th, 2009, 09:06 PM
Rodney Hicks Rodney Hicks is offline
Member
 
Join Date: Apr 2007
Location: Winnipeg, Manitoba, Canada
Posts: 1,074
Gösta

I found a little glitch with the Backspace key, the cursor is placed infront of any remaining text. I just thought I should let you know about it!

This program is handier than I thought it would be!!! Thank you very much!!
__________________
Rod
Just for now I'd like to rest In the shade of a maple tree
To the blue Canadian sky I'll say a prayer for the world out there
-Gordon Lightfoot
Reply With Quote
Reply

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:00 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright © 1999-2010 PowerBASIC, Inc. All Rights Reserved.