I found out how to correct X an Y
//In header
private:
int OrigH, OrigW, RealX, RealY;
//In cpp file
//----------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner): TForm(Owner)
{
//Set original width and height
OrigH = Image1->Height;
OrigW =...
Hello, I know how to get the positions of the mouse over a TImage but my problem is this, When I drop a TImage onto a form and load a picture into it, set it's Align to alClient
and run the the program and move my mouse over the image the X and Y positions are correct.
If I set the TImage's...
here is what I do
(Example pulled from a project, you need to edit it)
#include <Registry.hpp>
void __fastcall TMainForm::SetRegistry()
{
TRegistry *Registry = new TRegistry;
Registry->RootKey = HKEY_CLASSES_ROOT;
int Buffer = 0;
if(Registry->KeyExists(".zs"))...
Here is an example function I pulled out of a program I am working on
void __fastcall TOptionsDlg::EmptyDir(AnsiString Directory)
{
TSearchRec sr;
if(FindFirst(Directory+"\\*.*"
, faAnyFile | faDirectory, sr) == 0)
{
do
{
AnsiString CurFile = sr.Name...
Hello, I have tried to use ActiveMDIChild but the problem is when two or more MDI Children are visible (not minimized) and only one has focus ActiveMDIChild doesnt know witch one is active, I need to know how to tell what MDIChild has focus (Titlebar is blue). If anyone knows how this is done...
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.