Announcement

Collapse

Maintenance

The forum could be offline for 30-60 minutes in the very near future for maintenance (said 3pm Pacific). I was behind on getting this notice. I do apologize.
See more
See less

IDE Wish

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • IDE Wish

    I just ran into the problem which exists when you edit a resource file
    from the PB IDE. I capitalizes some keywords (like include) which cause
    problems for the rc compiler.

    Using the IDE seems perfectly natural, especially since it's options
    include specs required for compiling a resource. The current work-around
    is to turn off keyword capitalization.

    PB is able to compile files with any type suffix, though certain types
    probably are used to determine which compiler to use. So lets free up the
    suffixes and take advantage of them when we need them.

    I suggest:

    1. Stop forcing .BAS on the end of my file names, especially if I already
    have a type extension on the file name.

    2. Change our preference options, such as capitalization, to be maintained
    seperately for each file type. Then we can set capitalization on for .BAS,
    but off for .rc.


    ------------------
    Thanks,

    John Kovacich
    Thanks,

    John Kovacich
    Ivory Tower Software

  • #2
    Improvements to the IDE (such as these) are already on the wish list.

    Thanks!



    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment


    • #3
      FWIW, problem (1) is due to a bug in many versions of the Windows API
      GetSaveFileName, where the "default extension" is simply appended to
      whatever filespec is given, even if the file already has an extension.
      Dunno, maybe Microsoft is calling that a "feature" these days. The
      problem can be worked around by using a null default extension and
      adding your own code to apply a default extension as appropriate.


      ------------------
      Tom Hanlin
      PowerBASIC Staff

      Comment


      • #4
        Originally posted by Tom Hanlin:
        FWIW, problem (1) is due to a bug in many versions of the Windows API
        GetSaveFileName, where the "default extension" is simply appended to
        whatever filespec is given, even if the file already has an extension.
        Well, I guess the main problem is the design. As it is perfectly legal to use a file name like "this.is.my.file.txt" (even "this.is.my.file.txt.txt" is allowed), how can someone/the GetSaveDialog tell if the default extension should be appended or if it's already there? It would have been better if dots were not allowed within file names.

        Knuth

        ------------------
        http://www.softAware.de

        Comment

        Working...
        X