there's no problem in calling the function for hint, but what I need is the canvas for drawing the hint on. Since the hint must "float" over all components of the form and even overlap the font, I cannot use canvas from any component on the form but to create my own canvas. The question is how.
I would like to draw my own hits for the application. How can I acquire some "canvas" or other drawing surface on which I could output my custom hints instead of the default ones?
I'd like to copy some text to clipboard with this code:
TClipboard *Clipboard;
Clipboard = new TClipboard;
Clipboard->Open();
Clipboard->Clear();
AnsiString TextToClipboard;
TextToClipboard = "blablalba"; //here goes text to copy
Clipboard->AsText = TextToClipboard...
First of all, don't use mediaplayer from builder, it sucks. Import ActiveX Windows Media Player and use it instead (Component->Import ActiveX Control...).
I'm trying to write and application that will be hidden from task manager (won't appear in task bar + will not be visible when switching with ALT+TAB). On internet I found this example
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
DWORD dwExStyle = GetWindowLong(Application->Handle...
I imported ActiveX component Windows Media Player into Builder C++ and implemented it in my application. Now I weant to access the properties of codecs used during playing, but not through the default right-click menu that I can enable in WMP properties but through my own code. Any idea how?
Thanks for your suggestions, but I found another solution. I can reset TTimer by disabling and subsequently enabling it - and that's all I need for my autosave feature. Very simple and don't know why didn't I come up with this in the first place ;-)
I am planning to program autosave feature in my application and I'm planning using TTimer for saving period. Can I retrieve the time tiil OnTimer event occurs and can I reset the timer so it starts counting from beginning? (I need this because when user presses "manual" save button, I...
I'd like to control behavior of StringGrid once it's in editing mode: is it possible to access properties like SelLength, SelStart (or some equivalent for them) etc? I want to for example insert text at cursor in cell or to edit selected portion of text (add some tags from both sides and so on).
I'm wondering, if it's possible to use dictionary and spellchecking from Microsoft Office applications in my app programmed in C++ like I've seen in some other programs?
I'm wondering, if it's possible to use dictionary and spellchecking from Microsoft Office applications in my app programmed in Builder like I've seen in some other programs?
Hi,
I decided to replace Borland's MediaPlayer with Windows' one in my project. I imported it through activeX, but I'm lacking any info on the player. Where can I get some documentation describing the player's variables, functions, methods? I need properties that are equivalent to Borland's...
you have to get the handle for item "Resource" and add child to it. that can be done through property TTreeView->Selected.
if you want to set some fix index to TTreeNode, you can do it through void* Data, but you have to overcast it to int. then you go through all nodes in treeview and...
I'd like to save a copy of form's canvas into image file, but I don't need the whole canvas, only part of it. I tried this:
Graphics::TBitmap* Bitmap=Form1->GetFormImage();
Bitmap->SaveToFile("a.bmp");
but this grabs the whole canvas. Is there a way to either get only a part of...
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.