How do I get a projects form, as well as its unit, shown both on the tabs/pages?
Currently I have to use "Toggle form/unit" or press F12
Just out of curiosity's sake, doesn't really bother me, but would be nice to know (I switched over from Delphi 7, so I must still get used to stuff)
Thanks
You can switch using Code/Design Tabs in the bottom.
I believe in XE you can alter the display to display as it did in Delphi 7.
Here is a link describing it. I have not watched it as I don't have much time but being from embaracadero I am going out on a limb and saying it will help.
http://blogs.embarcadero.com/andreanolanusse/how-to-configure-delphi-2010-to-look-work-and-feel-like-delphi-7/
Related
If I try
ListView1.items[0].EditCaption;
it works as expected allowing me to edit the first items caption, however if while editing I try
ListView1.items[0].CancelEdit;
It does not cancel the editing. Is there some concept I'm missing, is it a bug, or is the help wrong?
This seems to be a problem in Delphi 2007 and XE2 (and probably others).
I think this is a problem with the native control, the VCL does as documented (calls ListView_EditLabel(Handle, -1);), but to no effect. According to the documentation of ListView_GetEditControl, sending the list view a WM_CANCELMODE should also work, which it doesn't.
A test here shows the below works,
winapi.windows.SetFocus(ListView1.Handle);
interestingly ListView1.SetFocus doesn't.
I have an ActiveX control in my project. It has been working properly for over a year. But the API, which I used when coding it, has changed. So I recoded the whole ActiveX control using the new API. I want the old ActiveX to continue working, so I changed the GUID and product code of activex which I recoded. It works fine on my developing computer. But when I install the control on another computer, it does not appear on IE.
Any help would be appreciated.
There are at least a dozen possible things that this could be; however, given the amount of information you have provided it is nearly impossible to do more than guess wildly.
Are you using a 32 bit control with a 64 bit browser on the "[other] computer"? Or vise versa?
How are you installing it? Are there any error messages? Yellow bars? Does it show up in the Manage Add-ons screen?
You might also consider using FireBreath instead of coding the ActiveX yourself; that way it'd work in other browsers as well and you don't have to muck with the ActiveX directly.
First of all, thank you for your reply.
I am using a 32 bit control on a 32 bit computer.
I am installing it with the msi installer which is produced by my project. There are no error messages. But when I try to load it first, yellow bar appears and asks my permission. After I give the permission it does not appear at all. No error messages are shown. Neither this nor the old (and working)activex shows up in the Manage Add-ons screen.
I didn't know about FireBreath, but I don't think I will be allowed to use it. I am going to look at it though.
I am looking to make something like IPhone Listbox !
I found someone who provided a download url for this project: but I was to late and the download url does not work anymore.
So I'm asking if killercode the same member on experts-exchange to upload it again if possible and if there is someone who can help me find the right component for this kind of listbox to use in Delphi.
TDbCtrlGrid looks a lot like what you are looking for.
You just define how each row has to look in the form designer, and that is used as some sort of template for each record in your dataset. It shouldn't take more than a couple of minutes to reproduce whatever you have in your screenshot.
This screenshot was found via google and shamelessly posted here..
Also, check this question:
Delphi control that could mimic "Add-ons|Extension list" of Firefox?
It's about somebody trying to mimic the FireFox add-on list:
If you want to pay for components, TMS software do an iPhone controls pack, which i think has a listview.
How can I make my delphi systray app using standard vcl inputbox() function to request focus, now dialog box seem to remain in taskbar and dialog does not open to front of other apps. This is Vista issue I think. Creating own form would solve it I believe.
ps: I can edit dialogs.pas if needed, it seem to be using Tcustomforms.showmodal
You are probably using older version of delphi.
Some Vista specific workarounds for older delphi versions can be fond here.
Try Application.ProcessMessages; just before inputbox call.
Have you tried an application.BringtoFront() before you launch the inputbox?
Editing dialogs.pas seems to be a bad ide. I would rather make my own inputbox-form.
Applications stealing focus can be quite annoying, though... How do you launch the inputbox? On a timer, or on a userrequest (e.g. clicking on the icon)?
This is driving me crazy. I'm not going to take it anymore. I'm going to ask, even at the risk of eternal public humiliation! (If it's something really obvious or that I've done to the system myself).
For reasons I've never quite had the patience to work out, every so often the form I'm working on in Delphi 2007's visual form editor goes 'pseudo-read-only'; I can add new components to the form, I can move/resize existing ones (and change any properties in the Object Inspector), and I can select a component and 'copy' it to the clipboard.
But I'm completely unable to cut a component from the form, or paste a new copy down. I don't believe it's to do with the 'Lock Controls' Edit menu option as I can toggle this on or off and it has the effect it's supposed to - this disappearance of Cut & Paste happens on the right-click context menu, from the keyboard and from the main Edit menu - it's as if the form has become read only to thing to do with the clipboard.
If I close the form in the IDE and then reopen it, everything starts working fine again (just as D1, D3, D5 and D7 always did for me, previously).
I'm not going mad, as I'm sure I read something about why this happens on a newsgroup once and it's caught me out from time to time many many times in the last few months, but I've failed to find the newsgroup reference this evening and I've decided that, as more and more Delphi users seem to be making use of StackOverflow, it was worth asking here.
Help - when I'm doing lots of form-work it drives me absolutely mad!
you can try to download the clipboard monitor application to see if anything is messing with your cut/paste. I have noticed simular problems when running in a VM, the VM gets confused as to what is in the clipboard and won't let me cut/paste again until I go back to my host application open something else (notepad works fine) and copy something fresh. I think thats more a problem of the other clipboard monitoring applications on my system than anything else.
I'm using copy/paste "desing" a lot, but they never went away.
Are you using some other IDE addins that mandle with copy/paste?
I think it is a known bug in the IDE, but I can't seem to find any references to it. I also have experienced this problem. You might want to try IDE Fix Pack, although it does not claim to fix this problem.
Check that other apps can use the clipboard too. Sometimes I am paused in the middle of a clipboard operation in my app, which stops other apps opening the clipboard. Can be confusing!
The virus detector app: Webroot SecureAnywhere stopped pasting from working - when I disabled this dumb virus detector - all was good again.
I think you should try the Desktop Settings. I had the same issue and after changing the Setting to Debug, Cut/Copy started working.