Hi :)
You can also use isdigit to check if the char is a number or not
void __fastcall TForm1::Edit1KeyPress(TObject *Sender, char &Key)
{
// this will verify if the key is a digit or a backspace
if(!isdigit(Key) && Key!='\b')
{
Key=0;
Beep(); //may need to include SysUtils
}
}...
Hi Sherak,
Is the application running on xp? is so then MessageBoxes may sometimes be shown behing a ModalForm. You have to add a extra flag MB_TOPMOST
Example,
Application->MessageBox("Please Select....", "", MB_OK | MB_ICONINFORMATION | MB_TOPMOST );
Another step by step guide
Just copy paste the one line below into NotePad. Change the filename and description if needed.
AVIMovie AVI "Somefile.avi"
So it goes like {descr.} {file type} {"filename"}
Save the file with a .rc extention, e.g. RCfile.rc, save it in the...
Hi :)
You can the use the TAnimate component to play Avi's embedded in the exe's resource.
http://community.borland.com/article/0,1410,17366,00.html
Just a small note,
If you have an older version of Delphi running you would need to compile the rc into file into a res file using BRCC32.exe...
Hi :)
Just install this Delphi TImage component in C++Builder, Save the contents between =Start= and =Stop= as HighlightImage.pas file.
It will add OnMouseEnter and OnMouseLeave events for the TImage
=Start=
unit HighlightImage;
interface
uses Messages, Controls, Classes, StdCtrls ,Graphics...
Hi :)
First try setting the Stretch property to true, if some reason your requirement is not to do so then try placing the TImage onto a TPanel, then set
Panel1->DoubleBuffered=true;
You could set it for the whole form
Form1->DoubleBuffered=true;
but rather set this for the panel only.
I haven't used BCB with the Mobile addon just yet but...
q)what are the develop costs?
a)AFAIK, there are none. It's a free addon for registered users of BCB6.
You won't use to develop for pda's for the moment it will work with selected Nokia phones running the Symbian OS.
See these few links...
lastcyborg,
I think your last comment is not correct. You can run a application using the BDE from the IDE. It will save the data to the tables. I have do so without any problems.
Hi!
You may have to set SHAREDMEMLOCATION in the BDE Adminstrator. Set it to 0x5BDE or 0x6BDE and see if that helps. You can also increase the SHAREDMEMSIZE if that alone doesn't help.
Then if that too doesn't help I've read that it's also good to make sure the user has rights to the BDE...
Hi there.
You must set LocalShare to true in the BDE Administrator or call DBISaveChanges after each post and delet.
Please see this FAQ for more info
http://www.tek-tips.com/gfaqs.cfm/lev2/4/lev3/29/pid/101/fid/3034
You can access the Panel's canvas property like so,
in the Form's header file declare
class TPanelCanvasHack : public TPanel
{
public:
__property Canvas;
};
then in the cpp
((TPanelCanvasHack*)Panel1)->Canvas->TextOut....
Another method which I haven't tried
HWND...
Hi.
It's recommended to install Delphi while logged in with an Admin account. Once you've dont that you must atleast run and exit Delphi before installing any extra components.
To transfer all Delphi settings from one user to another run
RegEdit select the registry branch...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.