Is there anyway to change textmode of clearcase view? - view

I know when creating a clearcase view we can set the text mode to transparent,insert_cr or strip_cr.
I already created a view with text mode as transparent. Now I want to change the mode to insert_cr.
Is there anyway to change textmode of clearcase view?

The -tmode option is only available on the cleartool mkview command, not on the cleartool chview one.
So the easiest workaround remains to:
save the config spec of the current view
delete the view
create a new view with the right text mode (see guideline) and the same name than before

Related

Sublime Text 4 editing code, showing a procedure in a new view

Whilst editing some code (Python in my case), a local procedure name can be right-clicked and goto definition chosen. Is it possible to have the procedure displayed in a new view beside the current view?
This is the default behavior when using the LSP package, in conjunction with a Python-specific language server. I use LSP-pyright, which is the server Microsoft uses by default in VS Code, but LSP-pylsp is also a good option.
When you mouse over an identifier, whether it's a variable or a function, a small window (called a phantom) pops up with several links, the first one being "Definition". Click on that and a new view will open up with the source file containing the function's definition.

Prevent manual scrolling to the "preselected" folder being required when using `TSelectDirectoryDialog`

When I'm setting the InitialDir property of TSelectDirectoryDialog the folder will be "selected" but I still have to scroll to it if it's below the currently visible area.
Is there a way I can make TSelectDirectoryDialog not to start at the beginning? Or is it possible to use a different dialog to select an existing folder the behaves the way I'm looking for?
Currently I'm using it on a Windows 7 64bit system.
For me (Laz 1.8.4, Win 10) the TSelectDirectorydialog immediately goes to the InitialDir by default. The dialog looks like a FileOpen dialog, though. If you prefer the old dialog with the treeview alone you should turn the option ofOldStyleDialog ON and ofEnableSizing OFF (the latter is due to a bug in Windows).

Sublime plugin how to write text in the background (not interactable)

I'm trying to write a plugin that will show text that is not user-interactable. In other words, the text is part of the background--visible but does not affect the text on screen. Is this possible?
If I understand what you're asking (which I'm not sure I do), then no, this is not possible using the ST3 public beta. You can set a view to be read-only using the set_read_only() method of sublime.View, but that only disables editing of the view's contents - users can still select and copy any text present.
Alternatively, if you're using the ST3 dev builds and Build 3072 or later, you can use the new tooltip API to create a popup. It is my understanding (I haven't played around with it on all platforms yet) that text in a tooltip cannot be selected, at least on Windows.

drag and drop through a filter

This is for Windows XP, 7 or 8. Any flavor. Programming in ANSI C and Win32.
I want to write a filter that is used to drag and drop but when being dropped it would ask for a new file name. The idea would be to drag a file to the filter (which may be on the desktop) then respond to the filter's prompt with a new name then continue with the drag and drop.
I have experimented with a .BAT file and determined that such a filter could be written. But with my experiment the drop occurs into the same folder from which the drag originated.
So my question has to do with continuing the drag after the new name is obtained.
I've tried checking into how to do that but have failed.
Does anyone have some pointers (documents, URL's, stackoverflow references, etc) that may lead me to understanding how to continue the drag and drop after obtaining a new name?
If you are creating your own HWND that accepts drops via DragAcceptFiles() or RegisterDragDrop(), then you are notified of a drop but are in full control over what the drop actually does. Simply extract the dropped filenames to learn about the source files, then prompt the user for the destination filenames, and then copy the source files to the target files as needed. You cannot change the source filenames that are being dropped, the dropped data is read-only.
If you are having trouble doing that, please provide the actual code you are having trouble with.
This is a normal drag and drop from one folder to another. I want to add an extension to the file name as it is being dropped. The user would drop the file onto my application, the application would then add the new extension, then the application would let the drag and drop continue.
Think of it as if you drag from a folder to another folder then rename the dropped file by using F2. But I want the rename to be automated.
I don't have any source yet ... first I want to know if this is even possible.

How do I display a file or directory browser dialog using MATLAB

I have created a blank GUI and now I want to program a push button to display a file or directory browser dialog.
Your question could use a little more detail, but here's a general suggestion to get you started...
You could set the callback for your push button so that it invokes one of the built-in dialog boxes available in MATLAB. You may be most interested in UIGETDIR or UIGETFILE to browse for and select a directory or file, respectively.
In addition to gnovice's advice, if you want your directory browser to be embedded within your GUI (as opposed to opening in a separate dialog window), you can use Java component. Take a look at my UICOMPONENT utility on the File Exchange for a working example.
Alternately, you can design your own tree-view of folder contents within a matlab panel, using the documented yet unsupported UITREE function or a Java JTree component (take a look at my UIINSPECT or FINDJOBJ utilities for working examples).

Resources