Hello,
I need a hand for clipboard manipulation of graphic data, on VC++ MFC.
Can anybody help me on this ?
I have graphic data in the clipboard (in ENHMETAFILE format).
I can get it using the following line of code :
HENHMETAFILE handle = (HENHMETAFILE)GetClipboardData(CF_ENHMETAFILE)...
Hello,
I use the TRegistry class, to develop a small tool where I need to search the Registry data base. It works at 90 percent, but I get some keys where even though there are three subkeys named : 0000, 0001 and 0003;
GetKeyInfo(KeyInfo); returns 0 in the the field : KeyInfo.MaxSubKeyLen...
I have a TEdit component.
Though it is high enough to display several lines.
When I write in it, it keeps showing only one line of display; the end of the line being eventually invisible when it gets too long.
How can I make it wrap and show the necessary number of lines ?
Thanks for any tip
Hello,
I have the following HTML page.
<HTML>
<TITLE>Page titlee</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=Shift_JIS">
<FRAMESET ROWS="30%,70%">
<FRAME SRC=F_One.php SCROLLING="NO">
<FRAME SRC=F_Two.php>
</FRAMESET>
</HTML>...
I have an application using TTabSheets and a few other components placed on those few TTabSheets.
As long as I stay in my development environment it is OK. But when I start the program in another environment (other Windows, other computer ...) I start to get a distorted layout. The components...
Thanks for all those tips and sorry for my lack of clarity in the first explanation.
I finally solved the problem by calling Repaint() on the MouseDown event of the TPageControl. I tried a few thing and it sounded like I could have used almost any other mouse event.
I must admit I do not fully...
Hi,
If I am not misunderstanding your question.
Here is where I got started when I had the problem as you seem to have. The information is clear and concise enough for you to get on the rails fairly quickly -:)...
OK, thanks again.
I have tried a few things. But nothing works.
I am stuck with this problem.
I will try more later.
If somebody has more ideas or an example of a TabSheet with a TPanel inside, I would be interested in taking a look.
Michel
OK, then maybe it's abug -:)
I do not really understand your solution though.
I call the Repaint() method in the Form::FormPaint and also I have specific code to draw the canvas which called when the ActivePage->Name corresponds to the one containing the Panel. But as I wrote, this code does...
Hi, thanks for this idea;
I tried it, but unfortunately it doesn't change anything.
I wouldn't go that far as thinking it is a Window or Borland bug as you mention. I rather think, I am not making properly the various calls involved in the repainting process.
One detail though I might have...
Hello,
I have an application with a TPageControl object, itself containing four TTabSheet items. One of the TTabSheet item contains a TPanel element.
My question is why does the repainting of the TPanel does not work properly ?
To be more precise :
1) If the application starts with the...
Hi,
Now I need to control the input in a Combo Box.
Say the character 'X' should be present one time and only once.
That means I do not want the user to be able to input a second 'X' character. And I do not want him (or her) to delete this 'X' character.
The logic is simple but I just need...
I have version 5.0 of C++ Builder.
As I mentioned before I am using a standard OK button, not the one we get in the Dialogs tab.
The reason I want to keep a standard button is to have something displayed there (say : "Browse").
About the double clicking I tried again on another...
Hi,
I have a little application running on a Pocket PC.
How do I know the working directory from inside the application ?
I need to know that to be able to save data at the same place where the application resides and not at the root.
Michel
Thanks,
By looking at your tip plus a few other things I found on the net. And also by trial and errors, it finally works.
I put the drawing code in the TPageControl "change" event handler, and I fire a Repaint() in the TTabSheet "show" event handler. I don't know if this...
Hi,
I tried to take off the debug options. I can get rid of the request for system.pas, by doing so; but it still hangs up with some "access violation".
Michel
Hi,
I will try to follow your suggestion and see.
But I am already using a browsing windows from a "File Open" button provided by the IDE (in another project). So I think it should work.
The only difference is that in the present case I want to fire the file browsing dialog from a...
Thanks for the tip, but is there a sample code somewhere on how to use TPanel in that case ?
All samples I found are fairly complicated and doing more than what I need. I just would like to be able to draw some thing in my tabsheet for a start.
I have to deckare TPanel *p; and then appearently...
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.