draw something in vsx - vsx

I found this picture , I am curious that how the adornment can draw into to vs text editor. My First Sense is that we can get the text window handle and then draw what we what. But I tried to sub-class text window, I can get the handle but my sub-class window doesn't get any window messages.
Or does someone has any other idea about how to implement this? TIA.

I have posted your question on MSDN Forum at Getting Graphics of the text editor window thread, and got a reply from Ed Dore (Microsoft) explaining it. Please have a look at the thread above.
Hope that helps,

Related

Make dynamic button container in Godot

I am stuck when I try to construct dynamic button container in Godot like shown at attached video. Is there any possible way to make it easy in Godot?
Would be appreciate for your help!
Here's my problem's description video
I would try a mix of VBoxContainers with rows of GridContainers. I've worked with GridContainers a lot recently and see no problems getting that effect done. Just add your dynamic buttons to the grid in the appropriate row.
https://docs.godotengine.org/en/3.0/classes/class_gridcontainer.html
Noticed this is a few months later so hopefully you found a solution.

How to unfullscreen a window without notifying it?

I'm trying to enhance the gTile extension by allowing it to resize a fullscreen window to a tiled area of the screen. That's a pretty common thing to do when tiling and it's pretty handy since some windows will hide some chrome when in fullscreen mode. But I'm having the hardest time figuring out how to do that.
Searching the internet led me to this forum post which mentions EWMH and _NET_WM_FULLSCREEN. I've tried to find ways to access window manager hints but can't find anything bashing by head on Looking Glass or scanning through the docs. Is this kind of thing possible through a shell extension?
Meta.Window is likely what you are looking for:
https://gjs-docs.gnome.org/meta4~4_api/
Setting Window.decorated = false may be able to remove the title bar or perhaps getting the compositor object and changing it from there. However this will still keep the address and tab bars in chrome. You may need to find another method to signal chrome to hide those.
There is not really an easy way to do this, the thread you linked is in regards to VLC and modifying it's source code.

JavaFX - Nodes Whiting Out

Hi I have quite an unusual query. I have made a small JavaFX program and am very proud of the results. However I recently noticed a bug I can't seem to rap my head around. I can't recreate it either and do not have a screen shot of it unfortunately. However you can see a screenshot of the general program below in the state that triggered the problems.
I was running my program like normal and gave it quite a large load to handle (a lot of gradients as seen below). Then what happened was that in any TextField I typed in all edited text became a completely white rectangle and if I tried to update the image preview to the right it also turned white. If I let the program be in this white state for about ten seconds everything would load back in and behave like normal until I went to edit anything again.
It happened with any StyleSheet I loaded and as mentioned I cannot seem to recreate it. So my question is this. Is this a known error that can occur if you configure your scene in the wrong way (or something similar) or have I just managed to screw things up in general? The source code is quite long and I have absolutely no Idea where the problem may lie so I won't post any if you don't feel like a specific part may be interesting.
I am also aware that this type of general question is not really liked here so sorry about that. If you can suggest another more suitable forum I would be more than happy to move my question there.
//Thanks for any help.
EDIT: I finally managed to get a screen shot of the bug. I am not having high hopes that anyone is going to answer this though...

JavaFX - How to get a random thumbnail / picture from a movie?

Is it possible to get a random picture from a video in JavaFx?
I know there is a snapshot() method provided by MediaView, but the thing is, I wanna get a picture of each video I loaded BEFORE it was displayed in MediaView.
I need those pictures to create previews in my library, hopefully you realize what is meant.
Thanks in advance for any idea or suggestion :)

How to create Numeric KB interface with previous, next and done button

I was on website on my iPhone and I encounter websites' guestbook. with those textFields. my keyboard appearance was totally change as you can see in screen below.
I am having many text fields in my app, I am wondering if I can create anything like that.
As I am new to development, still unknown what are the limits.
Can anyone guide me to right direction or to right documentation.
Is there is some regular way or its just total customization over Keybard.
I have one more doubt, does it matter what kind of keyboard is popping up as my all fields have numeric keyboard.
Well I just wanted to be helpful to someone who is following the same learning curve as me.
To achieve the affect in screenshot in question. UIToolbar control can be used to make those buttons. after the you need to just make this toolbar appear and disappear with the keyboard.
To make previous and next button work, you can use the tag property of textfield. on clicking on previous or next you can focus to previous or next text field.
Sorry about not posting code as I have not coded it yet but wanted to give pointer to anyone, who is looking.

Resources