Page 1 of 1
SIR, (SImple Renamer)
Posted: Sat Dec 23, 2006 7:15 am
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
Posted: Sun Dec 24, 2006 3:41 pm
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.
I will take it for a test drive later tonight.

Posted: Mon Dec 25, 2006 12:07 am
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.
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).
Whoah baby!!
Posted: Mon Dec 25, 2006 12:17 am
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
Posted: Mon Dec 25, 2006 12:54 am
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.

Posted: Mon Dec 25, 2006 2:17 am
by Fangbeast
I wish I knew what I was talking about!!
Posted: Wed Sep 05, 2007 2:13 pm
by Fangbeast
Anyone still looking for any of my programs will find them at PureArea.net for some time now.