SIR, (SImple Renamer)

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

SIR, (SImple Renamer)

Post by Fangbeast »

I don't need anything fancy that needs a rocket science degree to decipher, just a simple renamer so had to write myself something small. simple and brain dead.

You can set the dir to scan
Collect files to rename, with or without a file mask.

Don't use *.exe, use just .exe for extensions or exe for embedded string

You can preview the results of the rename.

Colourful form, full source code and images in archive.
Compatibility: PB 4.02, PureVison.

If you don't own PureVision, comment any lines starting with "PV" in the windows code and replace with standard PB colour commands.

http://www.penguinbyte.com/apps/pbwebst ... enamer.rar
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post by Sparkie »

Hi Fangles :)

Just gave it a quick look and noiced that with an 800x600 monitor, there is a problem with the statusbar overlapping the gadgets.
Image

I will take it for a test drive later tonight. ;)
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

Sparkie wrote:Hi Fangles :)

Just gave it a quick look and noiced that with an 800x600 monitor, there is a problem with the statusbar overlapping the gadgets.
Image

I will take it for a test drive later tonight. ;)
That's definately a strange problem with PureBasic then as the form itself is 800x600 and there is no resizing code in there at all to take into account any screen sizes.

I remember this happening a few years ago with my wife's old laptop and I assumed it was either purebasic or mickeysoft whinedoze not taking into account certain borders (client/non client areas and other areas) but don't have that old machine to test any more.

Anyway, it works here and the full project is provided (evil grin).
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Whoah baby!!

Post by Fangbeast »

I just set my monitor to 800x600 and it does it here too. How strange!!

Absolutely no idea why at this point.

**EDIT** Found it. The visual designer takes into account (the one I use) the true height of a Frame3DGadget, so the generated code is right because a Frame actually has some "white space" that it takes up and in this version of the designer, I cannot see the white space and am incorectly assuming the height of the gadget from the thickness of the visible line part.

When I design the forms, I have 2 frame3d's on top of each other (not overlapping, or so I thought) and the visual designer clearly shows this.

Frame one starts at 0 height and is 525 pixels high. Frame 2 starts at 520 (!!) pixels.

So the status bar is trashed by 5 pixels, the height that I have miscalculated the form by and in 800x600 screen mode, the status bar is being recalculated under the window correctly.

Going to ask Paul to update his designer as I believe the frame now supports colours and it would make it easier to position gadgets
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

Looks like Large Fonts are being used, which will cause that overlap.
See here: http://www.purebasic.fr/english/viewtopic.php?p=175228

Edit: Oops, you found your problem while I was typing my reply. :)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

PB wrote:Looks like Large Fonts are being used, which will cause that overlap.
See here: http://www.purebasic.fr/english/viewtopic.php?p=175228

Edit: Oops, you found your problem while I was typing my reply. :)
I wish I knew what I was talking about!!
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

Anyone still looking for any of my programs will find them at PureArea.net for some time now.
Post Reply