It is currently Tue May 26, 2020 6:01 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1545 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8, 9 ... 103  Next
Author Message
 Post subject:
PostPosted: Fri Feb 17, 2006 11:17 am 
Offline
PureBasic Bullfrog
PureBasic Bullfrog
User avatar

Joined: Wed Jul 06, 2005 5:42 am
Posts: 8111
Location: Fort Nelson, BC, Canada
Nope, I don't have the Win98 full redraw option checked. But it flickers badly 4-5 times on load and when loading source. Official IDE does none of that.


Last edited by netmaestro on Tue Feb 21, 2006 12:39 pm, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Feb 17, 2006 11:50 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4229
Location: Strasbourg / France
netmaestro wrote:
Nope, I don't have the Win98 full redraw option checked. But it flickers badly 4-5 times on load and when loading source. Official IDE does none of that.

No big problems here with jaPBe (I am using scintilla DLL 1.67, don't know if it's important), but the official IDE freezes 10 seconds at start on my home PC (Win98SE).

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Feb 17, 2006 3:22 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Sep 11, 2004 11:54 am
Posts: 532
Location: UK
Hi gnozal,

THANK YOU !

I have tested the SHIFT+CNTRL+TAB function on a number of source files and it appears to wok perfectly. Its an improvement that is truly worthwhile.

THANKS AGAIN !

Richard L


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Feb 17, 2006 3:52 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4229
Location: Strasbourg / France
RichardL wrote:
Hi gnozal,
THANK YOU !
I have tested the SHIFT+CNTRL+TAB function on a number of source files and it appears to wok perfectly. Its an improvement that is truly worthwhile.
THANKS AGAIN !
Richard L


Update again !

- I have enhanced the SHIFT+CNTRL+TAB function, I hope you like it : if the code cannot be correctly formated according to the first comment of the block, the comment position is recalculated.
Well, it's complicated to explain, here is an example :
Code:
    ; *** The first comment of the block (line 7) is much to left
    If GoOn     
      For ImportData.w = 1 To 2
        Select     ImportData.w
          Case 1
            ; Set up start and bytes for S/Pad+TIF+TSDB Section
            USB_Start_address.l = 0   ;  Start of download S/Pad ***
            USB_Size.l          = *StartOfLOG   ; Number of bytes to download
          Case 2
            ; Set up start and bytes for the LOG section
            USB_Start_address.l = USB_LogClip_Start.l; Start of download
            USB_Size.l          = USB_Log_Clip_Size.l         ; Number of bytes to download
        EndSelect
       
        ; *****************
        ; LOTS OF CODE HERE
        ; *****************
       
      Next
    EndIf

    ; *** So the code is reformated like this :
    If GoOn     
      For ImportData.w = 1 To 2
        Select     ImportData.w
          Case 1
            ; Set up start and bytes for S/Pad+TIF+TSDB Section
            USB_Start_address.l = 0                   ;  Start of download S/Pad ***
            USB_Size.l          = *StartOfLOG         ; Number of bytes to download
          Case 2
            ; Set up start and bytes for the LOG section
            USB_Start_address.l = USB_LogClip_Start.l ; Start of download
            USB_Size.l          = USB_Log_Clip_Size.l ; Number of bytes to download
        EndSelect
       
        ; *****************
        ; LOTS OF CODE HERE
        ; *****************
       
      Next
    EndIf

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Feb 17, 2006 4:49 pm 
Offline
User
User

Joined: Thu Jan 29, 2004 6:01 am
Posts: 89
Location: Homosassa, FL
Hi - Havn't seen this mentioned but may have missed it. Does japbe still save a program every time you make a change and then run it? I like to "diddle" a lot before I save a program. If it does automatically save maybe this could be an option instead. This is the only feature that kept me from using it.
Bill Nee


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Feb 17, 2006 5:14 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Sep 11, 2004 11:54 am
Posts: 532
Location: UK
Hi gnozal,

It looks like you have used the longest commented line in the block as the reference for the TAB position for all the comments. Im not sure that this is a good idea because one very long line forces all the comments way over to the right. I have lost the option to choose the comment indent myself... not good! :cry:

I woudl rather go back one revision :?

Code:
    ; >>> TOO far to the right!
    ; Data import over USB
    If GoOn     
      For ImportData.w = 1 To 2
        Select ImportData.w
          Case 1
            ; Set up start and bytes for S/Pad+TIF+TSDB Section
            USB_Start_address.l = 0                                                                           ; Start of download S/Pad ***
            USB_Size.l          = *StartOfLOG                                                                 ; Number of bytes to download
          Case 2
            ; Set up start and bytes for the LOG section
            USB_Start_address.l =  USB_LogClip_Start.l                                                        ; Start of download
            USB_Size.l          =  USB_Log_Clip_Size.l                                                        ; Number of bytes to download
        EndSelect
       
        k$ = "This is a long line of text that will cause all the comments to move much too far to the right" ; Long line
        ; *****************
        ; LOTS OF CODE HERE
        ; *****************
       
      Next
    EndIf 
   
   
   
    ; >>> I choose the position with line ***
    ; Data import over USB
    If GoOn     
      For ImportData.w = 1 To 2
        Select ImportData.w
          Case 1
            ; Set up start and bytes for S/Pad+TIF+TSDB Section
            USB_Start_address.l = 0                                     ; Start of download S/Pad ***
            USB_Size.l          = *StartOfLOG                           ; Number of bytes to download
          Case 2
            ; Set up start and bytes for the LOG section
            USB_Start_address.l =  USB_LogClip_Start.l                  ; Start of download
            USB_Size.l          =  USB_Log_Clip_Size.l                  ; Number of bytes to download
        EndSelect
       
        k$ = "This is a long line of text that will cause all the comments to move much too far to the right" ; Long line
        ; *****************
        ; LOTS OF CODE HERE
        ; *****************
       
      Next
    EndIf 


All the best...


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Feb 17, 2006 5:20 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4229
Location: Strasbourg / France
RichardL wrote:
It looks like you have used the longest commented line in the block as the reference for the TAB position for all the comments.
Yes
RichardL wrote:
I would rather go back one revision :?
Ok, I will make it optional :D

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Feb 17, 2006 5:50 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Sep 11, 2004 11:54 am
Posts: 532
Location: UK
@ BillNee

All the systems I have used save the file as the first step in the compile process. jaPBe does this, it can also save your work every 'N' minutes.

IMHO PB and jaPBe are sufficiently stable and reliable to write software that is also stable and reliable. I have written a number of programs in the last year, some of just a few hundred lines and the largest now approaching 11,000 lines and is about half done.

Beleive me, I would not persist with a buggy or difficult to use development system... I would be trying something else.

jaPBe and PB are reliable enough to let me focus on solving the problems raised by the application; not the problems raised by the development system!

If you need to keep earlier versions of a program why not change its filename each time, then weed out un-wanted stuff at the end of the week?

If you want to 'diddle' then why not copy and paste the routine your are 'diddling', comment one out and 'diddle' the other. Easy to go back!

Last, but not least... its unlikely that the sun will set more than a few times on a problem posted on this site... there are some experienced people here who delight in sharing their knowledege.

All the best

Richard L


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Feb 17, 2006 9:36 pm 
Offline
User
User

Joined: Thu Jan 29, 2004 6:01 am
Posts: 89
Location: Homosassa, FL
Hi RichardL - Wasn't picking on japbe; it's a great program. I just happen to like the way PureBasic will let you keep refining a program and then you can finally save it. A lot of times I keep changing math numbers to find a display I like, for example, and then save it. Sometimes I accidentally change the wrong value and can correct it immediately after running the program.
It's great the way someone has stepped in to keep japbe alive.
Bill Nee


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Feb 18, 2006 12:35 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6073
well, japbe allows numbered backups, so why bother? just keep enough backups... :-)

_________________
( PB5.xx Win10 x64 Asrock AB350 Pro4 Ryzen 1600X 32GB RAM Evo 840 GTX1060 )
( The path to enlightenment and the PureBasic Survival Guide right here... )


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Feb 18, 2006 8:37 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4229
Location: Strasbourg / France
Update

Changes :
- option 'Optimize comment positions' for [Ctrl+Shift+Tab]
- new option 'Save source(s) before Compile/Run or Compile/Debug' (enabled by default)

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Feb 18, 2006 8:48 am 
Offline
Moderator
Moderator

Joined: Sat Dec 27, 2003 3:55 am
Posts: 3321
Location: Great Southern Land
lol, gnozal, you're going ballistic with this! :D

Thanks!

_________________
@}--`--,-- A rose by any other name ..


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Feb 18, 2006 9:44 am 
Offline
Enthusiast
Enthusiast

Joined: Sat Sep 11, 2004 11:54 am
Posts: 532
Location: UK
Hi gnozal,

Thanks again... having the option for switching the modes for comment tidying is very nice!

RichardL


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Feb 18, 2006 10:45 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Apr 25, 2003 5:06 pm
Posts: 265
Location: Gummersbach - Germany
Is there a possibilty to reformat my source using real tabs instead of spaces?

_________________
The Human Code Machine / Masters' Design Group


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Feb 18, 2006 10:55 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4229
Location: Strasbourg / France
THCM wrote:
Is there a possibilty to reformat my source using real tabs instead of spaces?
Probably, but I don't know if it is compatible with all the actual coloring / indentation routines, and I don't see the advantage of TAB over SPACE.
That said, it's open source. You can give it a try :wink:

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1545 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8, 9 ... 103  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye