Sunday, January 18, 2015

Great Video On Delphi Form/Code Separation

I just watch a great video by David Schwartz a recently appointed MVP. (Congratulations Dave!). Schwartz gave this presentation during Code Rage 9. After watching this video I did some looking around for more stuff by him. I stumbled on his blog (http://schwartzthink.com/) which I will keep tabs on going forward.

I know today is a big football day but find 37 minutes and watch this video it's very good. I just wish I knew what Lambdas and Closures are?



http://schwartzthink.com/coderage-9/

Schartz's Four Part Series on Interacting with Forms in Delphi:
Interacting With Delphi Forms Part 1
Interacting With Delphi Forms Part 2
Interacting With Delphi Forms Part 3
Interacting With Delphi Forms Part 4

Enjoy - Semper Fi,
Gunny Mike
end.

Friday, January 16, 2015

Make Your Software Installs More Professional

I was showing a friend of mine one of the latest programs I just created. He downloaded it and it installed perfectly. I asked him to uninstall it after we got done looking at it. He went straight to the Control Panel - Programs and Features and to my surprise my application was not listed.

I use Inno Setup (highly recommended) for all of my install files. It turns out that you need to include two directives inside the [Setup] section of the Inno Setup script in order for your program to be listed. I'd like to thank TLama from StackOverflow for his answer.

[Setup]
UninstallDisplayName={#MyAppName}
UninstallDisplayIcon={app}\{#MyAppExeName}

Adding unistall information with Inno Setup
TLama
Inno Setup

Enjoy!

Semper Fi
Gunny Mike
end.

Saturday, January 3, 2015

Most Frequently Used Shortcuts By Delphi Programmers

Here is a list of the most frequently used shortcuts by Delphi programmers

Ctrl+Space
Code Completion (window resizeable/sortable)
Video

Ctrl+Shift+A
Find Unit - Add to Implementation or Interface

Ctrl+Shift+C
Class Code Completion at Cursor

Ctrl+Shift+V
Declare Vaiable

Ctrl+Shift+D
Declare Field

Ctrl+Shift+Space
Code Parameter Hints (invoke tooltip help)
Video

Ctrl+J
Code Templates (window resizeable)
Video

Ctrl+Shift+J
Sync Edit
Video

Ctrl+Left Click
Alt+Up Arrow
Code Browsing (requires $YD)

Ctrl+Shift+Up Arrow
Ctrl+Shift+Dn Arrow
Code Jumping Between Declaration/Implementation

Alt+Left Click+Drag
Select Block

Tab
Indent Selected Code
Indent Selected Block

Shift+Tab
Outdent Selected Code
Outdent Selected Block

Ctrl+D
Format Selected Code
Format Selected Block

F9
Run

Ctrl+Shift+F9
Run Without Debugging

F4
Run To Cursor (Build Debug)

Ctrl+F9
Compile

F5
Set/Remove Breakpoint
Video

F7
Trace Into

F8
Step Over

Ctrl+F2
Program Reset

Enjoy,
Gunny Mike
end.