I want to have file combo box in delphi.
It must behave like this:
If i enter C:\ in combo box, it should show all the files & folders in C: Drive
If i proceed further i.e., if i enter C:\Pro, then all the files & folders starting with C:\Pro should be shown in combo box.
Simply it should behave like the File Name Combox Box that will come while using save dialog box
I think you perhaps mean autocomplete/autosuggest, in which case try the following:
Google like edit/combo control for Delphi?
Edit:
http://msdn.microsoft.com/en-us/library/bb759862.aspx
SHAutoComplete will give file functionality - check out this article
Related
Is there a setting or package that allows sublime text 2/3 to show what's in a path? For example I type app/ it shows me whatever is in app/ so I can press enter to select that file or folder.
Thanks,
Jordy
There is a package called FileSystem Autocompletion, which looks like it should show autocompletion entries based on files and folders that match the path you type - see https://packagecontrol.io/packages/FileSystem%20Autocompletion
EDIT: If that doesn't work for you, there are 2 more similar packages you could try:
https://packagecontrol.io/packages/FuzzyFilePath
https://packagecontrol.io/packages/AutoFileName
Delphi Xe2 Update 4 Hf 1
I create the new form
I modify and save
On the form I click the right button of the mouse and I choose "Add to Repository", where: "Delphi Files"
I close all
File, New, Vcl form application - Delphi
File, New, Other, Delphi Files: here I do not see added before the form :(
File, New, Customise, Delphi Files - here I see
Tools, Template Libraries, Default (RAD), Properties, Delphi Files - and here I see
I tried to make changes to file C:\Users\ [mylogin]\Application Data\Embarcadero\BDS\9.0\RADStudioRepository.xml (and C:\Program Files (x86) \Embarcadero\RAD Studio\9.0\ObjRepos\en ) but results are not present.
In "manual" at me it has turned out to add the project as it is described here: http://docwiki.embarcadero.com/RADStudio/en/Creating_Template_Libraries (or this: http://blogs.embarcadero.com/pawelglowacki/2011/11/28/39454)
<TemplateLibrary Version="0.1" id="GuTemplateId">
<Name>Gu Template Library</Name>
<Description>Gu</Description>
<Items>
<Item id="GuProject1" Creator="DelphiProjectRepositoryCreator">
<Name>GuProject</Name>
<Description>Standart Gu project</Description>
<Author>Gu</Author>
<Icon>Project\GuProject1_Icon.ico</Icon>
<Projectfile>GuProject1.dproj</Projectfile>
<DefaultProjectName>GuProject1</DefaultProjectName>
<FilePath>Project</FilePath>
</Item>
</Items>
</TemplateLibrary>
The note: it was long taken with keys < / > and a file .bdsproj which is not created but it is required, both problems has solved
And how to insert _ only _ the form and it is desirable in the folder "My" (or at least in Delpfi Files or Other Files)
++
Still: some external components are established: TMS, LMD, DEVExp, Jedy. On a photo it is visible, that some of them have folders or for example in Delphi Files - JCL Exception Dialog. But in xml-files (above) I can not find on their the reference. How it is made?
IMHO, this looks like a bug. Here's a workaround:
After adding the form to the repository, do the following:
File\New\Customize... find your item, drag and drop it into Menu Items, click OK. This will make the item visible in the "New Items" (File\New\Other...) dialog.
However, it will also add the new item to the top-level menu File\New which may not be what you want. You can go to File\New\Customize... again and drag it out of Menu Items, click OK. The new item will disappear from the top-level menu but it will stay visible in the "New Items" dialog.
I've tried this with Delphi XE2.
Edit: To answer your question, "How it is made?" (without using the repository), probably with OpenTools API. Here's a very old article which shows how to create and register your IOTAModuleCreator implementation in a design package.
I have an old app (Delphi 5) which I want to give it some changes via Res Editor !
I want to set a background image for a Form via RCData in Res Editor, How can I do that?
Any help is really appreciated.
Thanks :)
Delphi forms don't have a simple background-image property.
You could edit the DFM resource for the form to insert a TImage control. Extract the DFM resource, open it in Delphi, add the control you want, save it, and then replace the original resource with your new version.
See also:
Setting up background images for forms in Delphi
How to add background images to Delphi forms
Angus Johnson has written a utility called ResHacker. Use it to directly edit the form properties in the exe file.
This is the link to his site
Majid Pasha, procedure is really simple and straight-forward:
Extract form resource (type is RCDATA, name matches form in question, language is not important)
Convert form from binary format to text using convert utility (shipped with delphi)
Use your Delphi to design boilerplate image, load picture, set placement, etc
View designed form as text, copy you new image definition along with all its data
Paste image into text version of extracted form resource
convert back to binary format
Add resource back to executable replacing original one.
Note: depending on tools uses, there might be some shortcuts to bypass conversions and extraction, eg: XN Resource Editor is able to edit Text DFM directly.
My addin was xla, now I use excelDNA, so it becomes xll,
When I open spreadsheet built in previous version of My addin,
for the UDF, it shows myUDF with path of xla. e.g "C:\Program Files\Installation folder\MyUDFs.xla!MyUDF",
when I click Edit link and change source to "C:...\MyUDFs.xll"
I got a pop up which says
"Excel cannot update one or more links in this workbook. To update the links, open all the link source files(click Edit Links on the Data tab).
To be sure all calculations are updated. press F9"
I click OK, then the path of MyUDF changes from xla to xll, e.g. C:\Program Files\Installation folder\MyUDFs.xll!MyUDF
For clients, this will break all their spreadsheets (could be 100+) built in previous version.
I know I can write a VBA code to remove paths from all MyUDF. but it is not ideal since users have to open up spreadsheet and put the code in spreadsheet and run.
I wonder if there is a better/more convenient way for clients to solve the issue
thanks
Internally, Excel stores different information for an .xla function
and an .xll function. It's not so easy to around so that you can make
an .xll that is compatible with functions that were entered into the
sheet as functions in an .xla.
You can also see how Excel stores this information by poking around inside the .xmlx file a bit.
This Wilmott discussion might be relevant:
http://www.wilmott.com/messageview.cfm?catid=10&threadid=79763
For your case the best I can suggest is adding a conversion macro to
your .xll, and having the user press the 'Fix-up' button when they
open spreadsheets that have not been converted yet.
This is the solution I use at last. I keep my xla addin, in xll, I register the same MyUDF with the same sigature(while, almost the same, optional parameters are not supported in xll, but are used in my xla) and set IsHidden = true. So there is only one MyUDF shows up in insert function list. When you type in =MyUDF and click function wizard, the version in xll shows up in function argument window. In Excel 2007, when I type =MyUDF, there is no function in drop down. In Excel 2010, when I type =MyUDF, there is a drop down. So the solution works better in Excel 2010.
Does anyone know how to clear the filter drop down (combo) contents in Wireshark? Are the contents stored in a file somewhere?
For the life of me, I can't figure this out. And, the Wireshark help file only tells me "The entries in the pull down list will remain available even after a program restart."
Sigh...
Answered my own question.
The filter history is stored in
c:\documents and settings\foo\Application Data\Wireshark\recent, where "foo" is your windows user name.
I don't use Wireshark in Linux, so I don't know where this file lives there. I would imagine in your home directory.
In that file, there's a section labeled "######## Recent display filters (latest last), cannot be altered through command line ########". Each recent.display_filter line is an entry in the filter drop down. Just remove the filters you don't want in the drop down, or remove them all to clear the filter history entirely.
They're in ~/.wireshark/recent and named "recent.display_filter".
This is now in %APPDATA%\Wireshark\recent_common
AKA C:\Users\username\AppData\Roaming\Wireshark\recent_common
Look for the ######## Recent display filters (latest last), cannot be altered through command line ######## section.
I found how we can remove saved wireshark filters on Windows10 systems:
First you have to go to this directory C:\Users\<your_username>\AppData\Roaming\Wireshark and open the recent_common file with any text editor and then press on CTRL + f search the name of the filter that you want to delete and delete the whole line and the filter will never come back!
I hope I could help you.