It looks like in iOS 14 when the keyboard is shown, it no longer hides the text like it did before.
Although this behaviour is good 95% of the time.
Is there a way I can get it to not do that?
I am sure it is a simply modifier/property that I do not know how to do.
Googling is useless, because the results only show me how to make the keyboard not obscure the views. In my case, I want the opposite.
turns out the answer was this
.ignoresSafeArea(.keyboard, edges: .all)
Related
I am using the latest swiftui and would like to know if it is possible to create drag & drop boundaries based on color?
I already created a drag & drop with rotation, pinching, etc. But would like to be able to create regions where you can drop into.
Thanks
Yes it is! It's a great idea, and I think you should pursue it.
As it stands there's a hundred different ways to go about things. Spend some time thinking about how you would want it to work, then just take baby steps. You've already covered a lot of the ground work by implementing rotation and pinching.
Write some code (in a playground so you get instant feedback) that does some simple drag and drop work. Add in a line of code that turns the background a different color or changes its opacity when you let go/lift your finger.
Those types of incremental changes are well documented and you will be able to google them quickly. I think it's a great sign that you haven't found ready made examples. It means you are thinking outside the box.
This is an opportunity for you to think like a developer and a designer. If you post your results somewhere or release a project on GitHub at some point, others will be able to find your work using the same search criteria you used when you didn't find any results.
If you get stuck, post the code the code that has you baffled, and I'm sure you get help on this site. Best of luck ๐
Intellisense popup in VS2010 is driving me crazy.
I can only see 9 items at a time in the intellisense popup.
It really makes browsing classes you're not familiar with a lot harder.
In VS2008 you could resize it.
is there a trick to this - or a connect issue someone has already made?
VS2010 Quickwatch: 23 items
VS2010 Main editor: 9 items
alt text http://www.rollingrazor.com/content/images/temp/intellisense_popup.png
Edit: Here's an image. Maximum of 9 items in C# window, but 23 in the quickwatch. Huge productivity difference. Especially since the intellisense popup now does partial matching and not just the beginning of the string.
Unfortunately it seems liek this won't be fixed
https://connect.microsoft.com/VisualStudio/feedback/details/474009/intellitype-list-has-max-height
Vote for it !
It isn't resizable (I just spoke to the main developer that works on it). I'm told that the size is fixed mostly for performance reasons, and that there really isn't a way to change this with an extension, as the size calculation is somewhat complicated (it doesn't actually know how big it needs to be until the first time it is shown).
If you feel very strongly that this should be changed, can you file a bug on Connect? That's the best way to give feedback about it, and allow other people to vote on it. It'll likely be immediately Won't Fixed for VS2010, but it may get considered for future releases.
They could simply provide a
"more..."
element at the bottom of the list. For those who need it, the extra steps and wait would be more than worth the price.
OK, so my Windows application involves a window that, among other things, has a list of objects in a pane. Each object has 8 boolean values that need to be determined โ so I'd like a list of the objects, with eight columns of checkboxes after. I'm not using MFC, should that be relevant.
ListView looks the way I want it to, but apparently it doesn't accept checkboxes in SubItems (the LVS_EX_CHECKBOXES style only gives each row a checkbox on the left).
So what I need is some kind of alternative to ListView that does allow this. I've been looking, but nothing I've found seems to work.
I have seen reference to some DataGridView control, but I don't see that as an option in my Visual Studio 2010 "toolbox" โ how does one access it, is it even available for non-MFC C++ projects? Most references to it seem to be for VB or C#.
Another thing I found is is this custom ListView, but it, again, seems to be for C# and not C++. I'd certainly accept suggestions on how to use this resource in my code, if there's a simple way to interface with the C# dialogue (I'm completely unfamiliar with C#).
Anyway, any thoughts, suggestions, or tips anyone has, would be most appreciated!
EDIT: This should maybe go in a new question, but it doesn't really seem deserving an entire question on its own: MFC seems to have more support for this kind of thing (insofar as most of the custom controls I can find to download are for MFC). My project does not actually require being non-MFC, it just is, at the moment. How much work am I looking at to convert it?
Well, I've taken the plunge and started using MFC; the CGridCtrl I downloaded seems to be working pretty well, though I still have a lot of work on it. I'm going to call this the answer, then, since there doesn't seem to be another forthcoming.
I've got an application that's using Berkelium for an embedded web browser, and I'm having trouble getting the drag-selection to work. I've seen examples of other WebKit-based applications that have it working just like a normal browser (Steam, Awesomium demo), so I feel like it shouldn't be that difficult to get working, but I don't know what may be wrong.
I'm passing in all of the mouse down, mouse move, and mouse up events to the Berkelium browser (mouseButton and mouseMoved functions on the Window) and I feel like that's all I should need to do? I wasn't able to find any help online about this, so hopefully someone here might know what's going on or where to look!
Thanks!
I tried drag selection in Berkelium in my app. It works in fields, it doesn't seem to work for page text.
It looks like the second comment on this page could be a fix for you:
http://code.google.com/p/berkelium-sharp/issues/detail?id=1#c2
The shift clicking apparently works fine to highlight text, so if you send a shift down along with button down, and a shift with button up, it will select the text along with it when the user drags.
I'm not sure if this will have an adverse affect on things like selecting multiple options on a list, but if you don't have that type of thing in the site you're trying to support, it wouldn't matter. I can't think of any other adverse effects right now, but I'm sure some probably exist.
This user says it worked for him, so it's worth a shot.
Iยดm looking to implement a way to avoid the user taking a screenshot from one desktop application. Yes, this seems to be weird asking for that, but we need it. I tried to use OpenGL (SDL_tff) to render the text, but it seems that doesn't stop the user from taking the screenshot. Please, does anybody have some clever idea about how to do it?
Render it to video and use a hardware overlay. those are much more difficult to capture since they are technically never rendered to the screen like other apps. It goes directly to the hardware and displays through the graphics card, bypassing normal screen shot domain.
It is still grab-able though.
personally, i'd take a high res photo and run it through a img2txt converter :D
Edit: check out http://www.gamedev.net/community/forums/topic.asp?topic_id=359319 , they seem to have an example, and it specifically states how a "screenshot" of the effect is kinda silly.
As I mentioned in my comment, you can't stop the user from taking a screenshot.
There might be a few things you can do to make it a bit more difficult though, and maybe deter less knowledgeable or driven individuals from taking a screenshot.
A suggestion: you might want to watch for key combinations that are often used for taking screenshots, then briefly hide your text. It may get the behavior that it seems you are looking for: allowing the user to take a screenshot without showing the text.
Another alternative is to provide a very easy and obvious way to let the application take the screenshot FOR the user, without saving the text. This might be useful in the case that you aren't trying to make the text "impossible" to capture, but rather that the user would prefer the screenshots to be text-free.
It's not clear from your question what the motivation behind your request is. If you just would like to have "prettier" screenshots without text, this shouldn't be a hard problem to solve: just do as I mentioned before and provide a built-in mechanism for saving "clean" screenshots.
Just remember that if the user DOES want to save that text, you cannot stop them from doing it.
You cannot accomplish what you want. What you want is, in fact, nonsensical.
Even if you find some clever way to stop them doing it with their computer,
using a good quality digital camera to take a picture of their monitor provides
a remarkably good quality screenshot.
Don't forget to add VM detection routines so you can disable display if you discover you're running under a virtual machine. That way they can't take a screenshot of the VM window.
Unless they modify an open VM to remove that sort of easy tell-tale, in which case you'll have to use something stronger.