Search found 13 matches

by Marloes
Sun Jan 24, 2016 9:57 am
Forum: Technical
Topic: Error when converting from C++ Builder 2007 to XE
Replies: 4
Views: 21649

Error when converting from C++ Builder 2007 to XE

As I upgrade one of my projects from C++ Builder 2007 to XE I get the following error [bcc32 Error] fraPedigreeTree.cpp(2052): E2034 Cannot convert 'HWND__ *' to 'HDC__ *' I just got a bit unsure about 'HWND__ *' and 'HDC__ *'. The line causing the error is Graphics::TBitmap* bitmap = new Graphics::...
by Marloes
Sun Nov 29, 2015 6:41 am
Forum: Technical
Topic: Capture when Maximize button is clicked
Replies: 1
Views: 12422

Capture when Maximize button is clicked

How can I capture when the maximize button is clicked in FireMonkey?
by Marloes
Tue Oct 06, 2015 9:20 am
Forum: Technical
Topic: Firemonkey and BorlandMM.dll dependency
Replies: 3
Views: 17944

Firemonkey and BorlandMM.dll dependency

Is there any way to prevent FireMonkey applications from requiring that the BorlandMM.dll file be distributed with the application?
by Marloes
Sat Sep 05, 2015 7:39 am
Forum: Technical
Topic: Clearing clipboard part 2 ...
Replies: 2
Views: 13972

Re: Clearing clipboard part 2 ...

After a lot of research I found the problem. Turns out this is due to a known compiler bug. Replacing the code with this code works if (TPlatformServices::Current->SupportsPlatformService(__uuidof(IFMXClipboardService))) { _di_IFMXClipboardService Clipboard = TPlatformServices::Current->GetPlatformS...
by Marloes
Sat Sep 05, 2015 5:39 am
Forum: Technical
Topic: Clearing clipboard part 2 ...
Replies: 2
Views: 13972

Clearing clipboard part 2 ...

As a result of the Clearing Clipboard thread I tried but got some errors. Now I seem to have finally figured out what, but can somebody please explain why? Start a blank project and put the following code in the constructor of Form1. if (TPlatformServices::Current->SupportsPlatformService(__uuidof(I...
by Marloes
Sat Sep 05, 2015 5:17 am
Forum: Technical
Topic: Bitmaps and Memory Leaks
Replies: 2
Views: 13854

Re: Bitmaps and Memory Leaks

Thank you.

I only load pictures from file so memory leaks should not be an issue here then :)
by Marloes
Thu Sep 03, 2015 6:55 pm
Forum: Technical
Topic: Bitmaps and Memory Leaks
Replies: 2
Views: 13854

Bitmaps and Memory Leaks

Just a quick question to help me understand how things work. I use FireMonkey but I guess it is the same for VCL. If I copy a bitmap into a TImage using either Image1->Bitmap->Assign() or Image1->Bitmap->LoadFromFile(), - do I need to call Clear() when closing a form? - do I need to call Clear() bef...
by Marloes
Fri Aug 21, 2015 3:57 pm
Forum: Technical
Topic: Clearing Clipboard
Replies: 14
Views: 67914

Re: Clearing Clipboard

And the frame where the line is present is not even auto-created on startup
by Marloes
Fri Aug 21, 2015 3:56 pm
Forum: Technical
Topic: Clearing Clipboard
Replies: 14
Views: 67914

Re: Clearing Clipboard

That is what confuses me too. That line, the only line in my program which calls the Clipboard, is only executed when a popup menu item is clicked. It is NOT invoked at all otherwise. It seems the compiler includes something in the code because that line is there and I just do not understand it :(
by Marloes
Fri Aug 21, 2015 3:37 am
Forum: Technical
Topic: Clearing Clipboard
Replies: 14
Views: 67914

Re: Clearing Clipboard

First of all, it's only if I include the Clipboard code that I get this problem. When I comment it out everything is fine. After commenting out various parts I can also conclude that the line Clipboard->SetClipboard(TValue::From<String>("")); is causing the problem. When commented out, no errors occ...
by Marloes
Thu Aug 20, 2015 9:59 am
Forum: Technical
Topic: Clearing Clipboard
Replies: 14
Views: 67914

Re: Clearing Clipboard

I tried the XE8 code but got a "Project raised exception class $C0000005" with message 'access violation 0x0060f290: read of address 0x00000000". It happens on startup when I try to run program and the call stack is: :0060F290 System::TMonitor::GetFieldAddress(AObject=NULL) :0060ECA1 System::__linkp...
by Marloes
Tue Dec 02, 2014 6:30 am
Forum: Technical
Topic: Hyperlinks in TRichEdit
Replies: 3
Views: 27736

Re: Hyperlinks in TRichEdit

Yes, the TRichEdit was inside a TPageControl but your solution worked perfectly. Thank you so much
by Marloes
Mon Dec 01, 2014 2:37 pm
Forum: Technical
Topic: Hyperlinks in TRichEdit
Replies: 3
Views: 27736

Hyperlinks in TRichEdit

I've got a strange problem. I've enabled the TRichEdit for hyperlinks unsigned masktxt = SendMessage(redText->Handle, EM_GETEVENTMASK, 0, 0); SendMessage(redText->Handle, EM_SETEVENTMASK, 0, masktxt | ENM_LINK); SendMessage(redText->Handle, EM_AUTOURLDETECT, true, 0); and void __fastcall TMainForm::...