Using Delphi I would like to add another button to the border icon buttons; close, maximize, minimize. Any ideas on how to do this?
Add a border icon to the form
3.3k Views Asked by Tim At
3
There are 3 best solutions below
0
Sam
On
Yes, set the form's border style property to bsNone and implement your own title bar with all the buttons and custom behaviour you like.
0
stukelly
On
Chris Rolliston wrote a detailed blog about creating a custom title bar on Vista and Windows 7.
He also wrote a follow up article and posted example code on CodeCentral.
Related Questions in WINDOWS
- Get Maximum Log Size
- Debugging Windows Services while starting
- Possible consequences of duplicate ProgId for different classes
- How to chain BCryptEncrypt and BCryptDecrypt calls using AES in GCM mode?
- mingw-64 conflicting declarations when cross-compiling
- I run an EXE program from a Windows Service but I can't see form C#?
- Why is PowerShell "not recognized" when installing Chocolatey?
- How to check if Windows device is phone or tablet/pc?
- How to add directories to Cygwin gcc default search path
- Can't install anything with pip2 on Windows 7 due to UnicodeDecodeError
- Active directory and linux nslcd binding without extending the AD schema
- How To Prevent Over Scrolling in Scroll Viewer Windows Phone 8.1
- Unicode error from pip install
- Where is the 'EnablePinning' property in the ribbon framework's recent items?
- How can I implement the same models and data across ASP.NET and Windows Apps
Related Questions in DELPHI
- How to not load all database records in my TListbox in Firemonkey Delphi XE8
- How to catch WM_DEVICECHANGE in a control other than TForm?
- show information with Rolling / moving messages delphi xe7
- What is the different between "Console target" and "GUI target" in DCC32 option?
- How to add new online ressources to RAD Studio help system
- C# and Delphi code have different behaviour when importing unmanaged dll
- Loop through records on a cxgrid and update a field/column
- Delphi 7 - Save to a Specific .INI Files Name
- TImagelist for large images
- how to modify a function so it returns an array of strings
- Checking for internet connection in runtime
- How can I make the main form align correctly after my control height is autosized and then I maximize the form?
- fetch data from web service to dataset in Delphi
- Load candlestick data from file
- Infinite loop in parsing a string using pointer math
Related Questions in DELPHI-2007
- Code Gear RAD Studio Delphi 2007 can't find package error opening pas file
- What is required in Delphi 2007 to use Variant arrays?
- Does "enable runtime themes" affect performance?
- Reinstalling Rad Studio 2007
- Running ChromiumOSR Programmatically
- Delphi : Sleep without freeze and processmessages
- DELPHI - insert an empty edit row at the end of a DBgrid
- Assignment with no assignment operator compiles with no error
- Writeln followed by _WriteWChar prints a question mark
- Delphi 2007 with Indy 9
- Testing Somesite CRLF Bugs Hole Using Indy IdMappedPortTCP
- How do I use the latest Richedit with Delphi 2007?
- Cannot read status of NetBIOS
- Hide fsStayOnTop form when main form minimizes / prevent automatic restore
- Delphi 2007 & Updated Indy 10
Related Questions in TITLEBAR
- Create a UIView title of a push view using the index of an array
- title bar color is not changing using navigation drawer
- Programmatically Show Document Name Popover for Document-Based App
- Change the favicon in an image url
- Title bar of UWP app is overlayed by main page
- How to dynamically populate page title from link selection
- Android - Height of title bar
- Android - fullscreen only in splash screen not in app
- How can I hide the main window titlebar and place a transparent background in kivy framework?
- How to (enable/disable) seeing scrollable content blurred through titlebar on macOS
- Electron - Make Windows Title bar Looks like Muno Title bar
- How do I mimic App Store.app UI
- How to change site title, site header and index title in Django Admin?
- How do you edit title bar?
- Android: Change alignment in the title bar
Related Questions in CUSTOM-TITLEBAR
- Exception on using custom title bar android
- Can Java accomplish this toolbar for a Mac app?
- How to customize title text of android activity
- Custom titlebar doesn't fill titlebar area
- gtk3 GtkWindow title bar color
- Delphi: custom button in custom title bar - à la Firefox/Opera main menu button
- Custom title bar is truncated by other layout
- Android: Why is there a discrepancy in ContentView.getTop() depending on FEATURE_NO_TITLE?
- AlertDialog setCustomTitle styling to match standard AlertDialog title
- How can I put a custom button on the title bar?
- How to show a notification button in title bar (or a general button if not possible)?
- Custom title icon in activity
- change the spinner title bar style
- Is it possible to have one file that controls the look and feel of my custom title bar that I can access from any form?
- How to modify JFrame using JRootPane?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
This was easy to do prior to Windows Aero. You simply had to listen to the
WM_NCPAINTandWM_NCACTIVATEmessages to draw on top of the caption bar, and similarly you could use the otherWM_NC*messages to respond to mouse clicks etc, in particularWM_NCHITTEST,WM_NCLBUTTONDOWN, andWM_NCLBUTTONUP.For instance, to draw a string on the title bar, you only had to do
Now, this doesn't work with Aero enabled. Still, there is a way to draw on the caption bar; I have done that, but it is far more complicated. See this article for a working example.