Displaying text in Code Explorer (Structure View) below / above method entries - delphi

I am looking for a way to to display text in the Code Explorer (not the Code Editor - I've just used the $Region as an example of something which causes text to be displayed in the Code Explorer).
Code Explorer lists procedures and functions (and more) in the same pane that is used by the Structure View when you are working in the Form Designer.
(FormActivate is the first procedure in this example | FormDeactive the last one)
I spent serveral hours looking for a way to do this but couldn't find anything. That's why i decided to ask this question here.
Does someone know a way of achieving this? Thanks.

Related

Media Picker filename search not accurate

Is there a way to fix the search in a Media Picker component for Umbraco? I noticed that when I click on the Media Picker component and tried to search for the file I uploaded I ended up of getting all sort of results that has nothing to do with the search I've been looking for. So ideally I was hoping that if I type image001.png I was expecting to find all image with that name. But to my surprise when I do the search I get presented with files that is not even image001.png. See below image
As you can see I tried to search for 200 but I got presented with a file that has a name of test.jpg
Is there a way to fix this filter behavior? I'm using Umbraco 7.4
Did test have 200 in the path where the media library stored it? Search is a bit of a black art sometimes. You can clear and re-build the indexes as that might help improve things.
I do not think there are any custom packages to improve this. YOu could create your own custom search fairly quickly n the backend within a new tab, like this:
https://www.jondjones.com/learn-umbraco-cms/umbraco-7-tutorials/umbraco-backend-customisation/how-to-display-an-mvc-view-in-the-umbraco-backend/
Then you can use examine to query media yourself and only search on the filename. Prob not the most helpful answer but it is a option :)

Explanation of (undocumented?) XUL dialog attribute buttoniconaccept (and similar)

I am pulling this attribute directly from Mozilla Firefox's about.xul file which shows the About dialog box for an add-on. It is a relatively simple XUL dialog with no inputs, locale data pulled from DTD entities, string bundle properties and JavaScript.
<!-- omni.ja!/chrome/toolkit/content/mozapps/extensions/about.xul -->
<!-- chrome://mozapps/content/extensions/about.xul -->
<dialog id="genericAbout"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="init();"
buttons="accept"
buttoniconaccept="close"
onaccept="close();">
MDN: Dialogs and Prompts and MDN: dialog both mention something about attributes that are formed by concatenating (pseudo-regexp):
"button" + "(label|accesskey|oncommand)" + "(accept|cancel|disclosure|help|extra[12])"
For example: buttonlabelaccept.
However, I could not find any documentation about the use of icon. The word icon does not even show up on either of the above-mentioned pages! What does it do? What is the correct way to use it?
I'm trying to make my add-on about page more modular, without loading internal files from omni.ja(r), which pulls in a LOT of unnecessary code with it. I am developing a very streamlined version, that will style itself appropriately depending on calling context.
I want it to look like Firefox's official About < addon.name > dialog if called from about:addons context-menu, or from my add-on's status-bar context-menu. I want a slightly different appearance if viewed from within the Options dialog as an iframe inside a XUL. I already have that structure set up. Just tweaking the little quirks.
This is not critical design or feature wise, and indeed the entire API will go away in a few months, but it just bothers me to not really understand this, so I want to figure it out before I let it go an move on to more important things. But I will if I absolutely can't find an answer. But it's one of those stupid little things that will just bother me a disproportionate amount. =D
If you can point me to documentation I may have missed, or even specific Mozilla source code, and a few examples, or a more complete explanation and typical use-cases, that would be great.
If you check the "blame" for about.xul, you'll see that the line was added to fix bug 422763. Judging from the screenshot in the bug, GNOME (Linux) has (had?) a convention of putting icons on dialog buttons, and this attribute allows overriding the default icon (inferred from the button type).
If you search for buttonicon, you'll find the code that handles this attribute in toolkit/content/widgets/dialog.xml.

how to create a window in firefox that looks like "lookup" window in mac os

I am trying to design a firefox extension which shows some information for the selected word in the page.
for those information I like to have a window with no boarders and with a pointer pointing to the selected word. something like this picture (lookup feature in mac os):
sample1
here is another example from firefox itself:
sample2
any idea on how I can create this kind of windows is highly appreciated.
I think you're looking for a Panel to do this and you could likely use the Selection module as well to work with the text. However you'll find it a little challenging to get your panel to point to the text like you want, currently the Panel doesn't easily support positioning like that.

Trying to save a workbook that contains macros

I recently upgraded to Excel 2010. I was working on a spreadsheet and wrote some code and went to save it and I get this box that pops up. I'm not sure what to do.
From Office 2007 on, Excel has two different file types: XLSX and XLSM. The former is just data and formatting without macros or anything "dangerous." The latter allows macros and other programmatic functionality. The reason for the split is mainly security as each one has a distinct extension and icon to better inform the user on whether or not the file could potentially contain dangerous content.
In this instance, you need to click No, then in the Save As... options select "Excel Macro-Enabled Workbook." That will give you the full functionality of the original document.

Custom preview for open dialog using Delphi

I need to preview several CAD formats in the file open dialog box in Windows 7 / Vista. In the past I used a Delphi Preview Open Dialog and I could register and implement the CAD format that I had to preview. I have found some articles on how to create a preview handler in Vista, this is unfortunately not going to work for me. What I would like to know if there is a way that I can get hold of the IPreviewHandler interface of the dialog that I have created
I've searched about these before, but I couldn't find exact solution.
I found that Microsoft offers the IFileDialogCustomize interface to modify new file dialogs for vista or later.
According to this article, we can't add any custom controls like as XP or before, and the controls we can add are very limited as below.
The provided controls are:
* Menu
* Button
* Combo box
* Radio button list
* Check button (check box)
* Edit
* Separator
* Label
If there's no other interfaces provided from MS, we can't properly extend the file dialog.
I think the things we can provide at this time is:
open custom window on the side of the file dialog.
Have you ever used IrfanView ? If you save image as png or jpeg format, IrfanView shows option setting window on the right side of the save dialog(below one is customized in traditional way, but perhaps we can do similar with new dialog).
alt text http://img208.imageshack.us/img208/9128/irfanviewsaveas.png
mimic new dialog using shell controls & some new custom controls
It's probably not so good because perhaps we can't find enhanced tree control on the left side, but with rkSmartPath we can mimic new path bar as below.
(I think it's great work!)
If someone implement mimic control of Windows 7's new place bar/tree using virtual tree view or something, we could provide good customized dialog. (even for XP users.)
# I think it's chance for component vendors to develop solution for this problem...
# It's a gift from Microsoft for you! :-)

Resources