TMS Advanced Smooth Message Dialog



Similar documents
Using TFrame to create more advanced TJSEditDialogs in LMD DialogPack

Using Adobe Dreamweaver CS4 (10.0)

TTIWResponsiveList - TTIWDBResponsiveList

Creating and Using Links and Bookmarks in PDF Documents

How to create pop-up menus

Appendix A How to create a data-sharing lab

Taking the new Windows Vista TaskDialog one step further

Digital Signage with Apps

We automatically generate the HTML for this as seen below. Provide the above components for the teaser.txt file.

TMS Advanced Smooth Touch Keyboard

WP Popup Magic User Guide

Fireworks 3 Animation and Rollovers

Access 2007 Creating Forms Table of Contents

Artisteer. User Manual

Dreamweaver and Fireworks MX Integration Brian Hogan

MICROSOFT OUTLOOK 2010 READ, ORGANIZE, SEND AND RESPONSE S

Table of Contents. Creating a Newsletter. Loading a Video or Slideshow. Distributing a Newsletter through Exact Target

OPENTABLE GROUP SEARCH MODULE GETTING STARTED ADD RESERVATIONS TO YOUR WEBSITE

Quick Reference Guide

CREATING EXCEL PIVOT TABLES AND PIVOT CHARTS FOR LIBRARY QUESTIONNAIRE RESULTS

WYSIWYG Tips and FAQ

Quick Guide to IrfanView

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

Making a Poster Using PowerPoint 2007

Instructions for Creating a Poster for Arts and Humanities Research Day Using PowerPoint

To Begin Customize Office

GUIDELINES FOR SCHOOL WEB PAGES

Creating Web Pages with Microsoft FrontPage

BT CONTENT SHOWCASE. JOOMLA EXTENSION User guide Version 2.1. Copyright 2013 Bowthemes Inc.

DNNCentric Custom Form Creator. User Manual

PowerPoint: Graphics and SmartArt

Create a new investment form and publish it to a SharePoint 2013 forms library

Table of Contents. What is ProSite? What is Behance? How do ProSite & Behance work together? Get Started in 6 Easy Steps.

Advanced Layer Popup Manual DMXzone Advanced Layer Popup Manual

Introduction to Word 2007

Mail Programming Topics

Business Objects Version 5 : Introduction

Config Guide. Gimmal Smart Tiles (SharePoint-Hosted) Software Release 4.4.0

Shipment Label Header Guide

RADFORD UNIVERSITY. Radford.edu. Content Administrator s Guide

State of Nevada. Ektron Content Management System (CMS) Basic Training Guide

WebViewer User Guide. version PDFTron Systems, Inc. 1 of 13

TMS Advanced DropDown Controls

Garfield Public Schools Fine & Practical Arts Curriculum Web Design

Dashboard Skin Tutorial. For ETS2 HTML5 Mobile Dashboard v3.0.2

WA2262 Applied Data Science and Big Data Analytics Boot Camp for Business Analysts. Classroom Setup Guide. Web Age Solutions Inc.

TABLE OF CONTENTS BACKGROUND: HIGH IMPACT 4.0 PROFESSIONAL AND ACT!. 3 SELECT MAIL MERGE OPTION ON THE MAIN SCREEN.0 TEMPLATE.

DIRECTIONS FOR SETTING UP LABELS FOR MARCO S INSERT STOCK IN WORD PERFECT, MS WORD AND ACCESS

WebCT 4.x: HTML Editor

Creating Acrobat Forms Acrobat 9 Professional

Microsoft Word Revising Word Documents Using Markup Tools

page artisteer.com page 1

SiteBuilder 2.1 Manual

Fundamentals of Web Design (One Semester)

Website Editor User Guide

Create a Google Site in DonsApp

Basics. a. Click the arrow to the right of the Options button, and then click Bcc.

Creating a Poster in Powerpoint

Dreamweaver. Introduction to Editing Web Pages

Creating Personal Web Sites Using SharePoint Designer 2007

Responsive Banner Slider Extension By Capacity Web Solutions

Tantalis GATOR Expanded Image Help Guide

CONTENTM WEBSITE MANAGEMENT SYSTEM. Getting Started Guide

Website Builder Overview

ESRI China (Hong Kong) Limited

Seven Steps to Creating an Accessible in Outlook

CXQuotes Doors and Windows Quotation software. Cogitrix

Mura CMS. (Content Management System) Content Manager Guide

MicroStrategy Analytics Express User Guide

Creating Hyperlinks & Buttons InDesign CS6

Lesson Review Answers

Tech Sheet NOISEMOD.3PC HELP DOCUMENTATION

MS Word 2007 practical notes

Extended Reference for Freeway 7

Umbraco v4 Editors Manual

Tutorials. If you have any questions, comments, or suggestions about these lessons, don't hesitate to contact us at

KFUPM. Web Content Management System powered by SharePoint

Chapter 4 Accessing Data

Adobe Illustrator CS6. Illustrating Innovative Web Design

Intel Modular Server System MFSYS25

Advanced Reporting Service Offering & Crystal Reports

Handout: Creating Forms in Word 2010

Web Developer Jr - Newbie Course

Web Ambassador Training on the CMS

Introduction to Drupal

Scatter Plots with Error Bars

WHAT S NEW IN OBIEE

Form And List. SuperUsers. Configuring Moderation & Feedback Management Setti. Troubleshooting: Feedback Doesn't Send

PUBLIC Preferences Setup Automated Analytics User Guide

CMS Basic Training. Getting Started

University of Arkansas Libraries ArcGIS Desktop Tutorial. Section 5: Analyzing Spatial Data. Buffering Features:

Course Information Course Number: IWT 1229 Course Name: Web Development and Design Foundation

How To Change Your Site On Drupal Cloud On A Pcode On A Microsoft Powerstone On A Macbook Or Ipad (For Free) On A Freebie (For A Free Download) On An Ipad Or Ipa (For

6. If you want to enter specific formats, click the Format Tab to auto format the information that is entered into the field.

Create a Poster Using Publisher

Interactive Voting System. IVS-Basic IVS-Professional 4.4

Transcription:

TMS Advanced Smooth Message Dialog July 2009 Copyright 2009 by tmssoftware.com bvba Web: http://www.tmssoftware.com Email: info@tmssoftware.com 1

Index TAdvSmoothMessageDialog... 3 TAdvSmoothMessageDialog description... 3 TAdvSmoothMessageDialog features... 3 TAdvSmoothMessageDialog use... 3 2

TAdvSmoothMessageDialog TAdvSmoothMessageDialog description Replace your default delphi message dialogs with the TAdvSmoothMessageDialog. This feature rich component allows you to create a message dialog with complex and smooth graphics. TAdvSmoothMessageDialog features Full opacity control Buttons with separate button result HTML text support Office Styles Horizontal or vertical stacked buttons Buttons with customizable color, image Standard ShowMessage & MessageDlg call direct replacements Margins & capability to have alpha transparent images outside the dialog TAdvSmoothMessageDialog use To call the TAdvSmoothMessageDialog with a simple text use ShowSmoothMessage( text ); This allows you to quickly replace the ShowMessage functions with the TAdvSmoothMessageDialog component. By default the TAdvSmoothMessageDialog will apply the Office 2007 Luna style if you use ShowSmoothMessage. The TAdvSmoothMessageDialog will automatically calculate the best width and height depending of the number of buttons, the HTML and the caption. The buttons can have a vertical or horizontal layout. Below is a sample of a message dialog with a caption, some html text and two buttons. With a Office 2007 Silver appearance. 3

Code: var md: TAdvSmoothMessagedialog; md := TAdvSmoothMessageDialog.Create(Self); md.caption := 'Game over!'; with md.buttons.add do Caption := 'Yes'; ButtonResult := mryes; with md.buttons.add do Caption := 'No'; ButtonResult := mrno; md.htmltext.text := 'Do you want to start a new game?'; md.htmltext.location := hlcentercenter; md.setcomponentstyle(tsoffice2007silver); md.execute; Result: Replacement Functions The TAdvSmoothMessageDialog supports functions to quickly show a default message dialog. By doing a find & replace in existing applications of ShowMessage to ShowSmoothMessage and MessageDlg to SmoothMessageDlg, you can quickly change an application to use the new dialogs. Below are the functions signatures that can be used: procedure ShowSmoothMessage(const Msg: string; AStyle: TTMSStyle = tsoffice2007luna); function SmoothMessageDlg(const Title, Msg: string; DlgType: TMsgDlgType; Buttons: TMsgDlgButtons; HelpCtx: Longint; AStyle: TTMSStyle = tsoffice2007luna): Integer; overload; function SmoothMessageDlg(const Title, Msg: string; DlgType: TMsgDlgType; Buttons: TMsgDlgButtons; HelpCtx: Longint; DefaultButton: TMsgDlgBtn; AStyle: TTMSStyle = tsoffice2007luna): Integer; overload; function SmoothMessageDlgPos(const Title, Msg: string; DlgType: TMsgDlgType; Buttons: TMsgDlgButtons; HelpCtx: Longint; X, Y: Integer; AStyle: TTMSStyle = tsoffice2007luna): Integer; overload; function SmoothMessageDlgPos(const Title, Msg: string; DlgType: TMsgDlgType; Buttons: TMsgDlgButtons; HelpCtx: Longint; X, Y: Integer; DefaultButton: TMsgDlgBtn; AStyle: TTMSStyle = tsoffice2007luna): Integer; overload; Execute and ExecuteDialog 4

The TAdvSmoothMessageDialog has an Execute and ExecuteDialog function. The ExecuteDialog function returns a TModalResult. The Execute function returns a Boolean and this Boolean is only true when the ModalResult is mrok or mryes. When adding buttons and using the Execute function, make sure that there is a button with the ButtonResult mrok or mryes. AdvSmoothMessageDialog1.Buttons.Clear; AdvSmoothMessageDialog1.Position := poscreencenter; with AdvSmoothMessageDialog1.Buttons.Add do ButtonResult := mrok; Caption := 'Ok'; with AdvSmoothMessageDialog1.Buttons.Add do ButtonResult := mrcancel; Caption := 'Cancel'; if AdvSmoothMessageDialog1.Execute then Label1.Caption := 'Ok Button clicked'; Appearance When the default message dialog functions are no longer suitable, the message dialog can be fully customized for its 4 different elements: - Buttons: The buttons have a separate appearance and can be formatted with a color, and opacity property. When a picture is needed to make the button more attractive use the picture and pictureposition property. The buttons can also be vertical or horizontal stacked depending on the type of message dialog needed. The ButtonAreaFill property is used to fill the area of the buttons. - Caption: The caption has a separate fill that is fully customizable. With the CaptionFont and CaptionPosition properties the caption text can be formatted. - HTML: The HTML text has no separate Fill and is drawn directly on the message dialog.the HTML text can be customized in a separate dialog. With the OnAnchorClick event you can call a ShellExecute to open the URL. procedure TForm1.AdvSmoothMessageDialog1AnchorClick(Sender: TObject; Anchor: string); ShellExecute(0,'open',pchar(Anchor),nil,nil,SW_NORMAL); - Background Fill: the background fill of the message dialog is the fill behind the caption, html and buttons and can be complete transparent giving many possibilities to the message dialog. Adding a progressbar The Message dialog supports a progressbar, that can be positioned inside the messagedialog with the ProgressBarPosition property. The ProgressBarValue ProgressBarMaximum and ProgressBarMinimum properties determine the Range and position of the ProgressBar. 5

The ProgressBarAppearance can be fully customized to add text, change the look and feel of the progressbar. Using overlay textures The AdvSmoothMessageDialog has a margin property to indent the messagedialog drawing. This opens the possibility to add overlay textures, textures that visually go out the draw area. Below is a sample of a default messagedialog with a margin and a texture. The captionfill.picture is loaded with a PNG image and the picture position and size are customized. AdvSmoothMessageDialog1.Caption := 'Message Dialog with texture'; AdvSmoothMessageDialog1.Position := poscreencenter; AdvSmoothMessageDialog1.Execute; 6