Solved

Message box component with "don't show again" option

Posted on 2000-03-30
5
296 Views
Last Modified: 2010-04-04
Hi!

I'm looking for good component implementing standard Windows message box which also has a checkbox allowing user do turn displaying this message off... It also must be working under BCB 4.0.

Anybody know something like this?

Thanks in advance, amv.
0
Comment
Question by:amv
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 2

Accepted Solution

by:
gallaghe earned 50 total points
ID: 2673213
There is a freeware component at
http//www.delphifreestuff.com under My Stuff->DSAMsg. Full source is included. It works for C1 thru C4. May work for C5

Kevin
0
 
LVL 4

Expert Comment

by:Radler
ID: 2673220
Really amv you should make/take a normal form and put a checkmark that after the user close the form an information about dont show this form at future is saved.
if need request a sample.

T++, Radler.
0
 
LVL 2

Expert Comment

by:gallaghe
ID: 2673253
Concerning my answer, take a look at some info on the component.

This unit provides "Don't Show Again" dialog and form services.  Included is a form class that you can descend your own forms from, routines for showing standarad TForm descendants, and replacement rountines for the MessageDlg function.  DSA services allow the user to specify whether or not they want to see the dialog or form in the future with only minimal effort on the application programmer's part.

The dialog has a check box positioned at the bottom left corner which the user can check to specify that he does not wish to see it again. If checked, calling the function again will not display the dialog, it will simply return a default value immediately.

Procedures to get and set the state of the dialog are also provided so that you can programmatically re enable a dialog that has been hidden by the user.

Components

TDSAForm

Routines
DSAClear
DSAFormClear
DSAFormGetState
DSAFormSetState
DSAGetState
DSAIdentsClear
DSAIdentsGetState
DSAIdentsMessageDlg
DSAIdentsSetState
DSAIdentsShowModal
DSAMessageDlg
DSASetState
DSAShowModal
Register

Constants
DefaultFilename
DontShowMsgText
DSA_CHECKBOX_NAME
RegRootKey
UseRegistry

As you can see if allows the programmer to get/set the status for "Don't show" another time. There are other nice feature for this component also.

Kevin


0
 

Author Comment

by:amv
ID: 2690359
Hi, gallaghe!

Sorry for the delay!

Your component is not very suitable for me so I has to solve my problem myself. Anyway your answer is rigth!

Thanks, amv.
0
 

Expert Comment

by:Delphiwizard
ID: 12641637
Hi amv,

Can you share your solution?

Thanks Stef
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi component that can load a DLL in design time? 8 100
Printing problem 2 119
how to change, disabled button color FMX ? 1 59
Posting a string with PostMessage 23 42
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question