I would like to set the top level window handle of Outlook to be the parent of a Settings form in my add-in (so it appears on top, stays in Outlook, etc).
Using SetParent in other Office apps works fine, but in Outlook I get rendering errors. The form doesn't repaint correctly when Outlook is the parent (so if I drag it around or click...
I am calling repaint a bunch of times from a listeners, but the way I designed my paint function is only one repaint is required. I generate a bunch of repaints, since it hooked into my mouse motion listener.
Is there a way to cancel all pending repaints for a certain component? I can't just start ignoring repaints, since some are val...
I have an overridden LabelField that allows me to change the font color based on whether an item in my ListField should be subdued or now. Making the LabelField color subdued works great. But, when the row (that contains my LabelField) is highlighted in the ListField, I would like the label field color to be different or inverted.
Her...
I want to fill a region using Graphics.fillRoundRect(), but I want a rectangle in the middle of it to not be filled.
Essentially, given a component of 100x30, I want to set clipping to be the rectangle at 10,10 of size 80x10 but have the fill only paint the area outside that 80x10 rectangle. The reason is that I want a border of n pixe...
I would like to model oil and acrylic paint on a canvas in such a way that I can add a brush stroke to the canvas and have the colours mix.
I don't want to animate this happening, I just want to be able to model the final outcome of a brush stroke on existing paint.
Any suggestions?
...
I have a custom ComboBox control that I want to use in a DataGridView. I first inherited DataGridViewCell and am trying to achieve my goals overriding the Paint() method. The problem is that after inheriting DataGridViewColum and setting the CellTemplate property to a new instance of my CustomDataGridViewCell class, the cell is grey with...
I need to draw a graph over a JPanel by overriding the JPanel's paintComponent() method.
While designing gui using netbeans when i drag/drop a JPanel over JFrame it generates code by creating a private variable, JPanel object. In such a case how can i override its method to draw over it...
or else if i write code for a class by exten...
I'm trying to let the use crop a selected area from picture in my winforms application and thought to embed the Paint.NET and limit its functions. I understand that Paint.NET API is unavailable..
I'll be happy to get recommendation for another tool i can use to crop images in Winforms application.
Thanx.
...
I have saved a bunch of CGContextRefs and I want to draw all of these out in the drawRect portion of my UIView. How can I do this?
...
My first question =). I'm writing a video game with a user interface written in JavaFx. The behavior is correct, but I'm having performance problems. I'm trying to figure out how to figure out what is queuing up the refreshes which are slowing down the app.
I've got a relatively complex Scene Graph that represents a hexagonal map. It s...
I'm sort of new to c++ and i'm trying to create a game.
I have a 2d array RECT_GRID of rectangles.
I have a 2d array GRID of unsigned short.
I fill the rectangle array during WM_CREATE
The WM_PAINT event paints rectangles for all the elements in the array. The color of the rectangle is based on the value of GRID[x][y]
I made it so when...
I'm trying to mimic what every other tabular view does with the DataGridView control, but I can't seem to get the headers correct.
I want a blank header to the right of all headers, that does not move, and is not actually a header. Is there a way to paint the default header along the top?
Basically, this is my problem:HERE
...
How to draw inside a child window?
I thought I should create the main window CreateWindow(WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN) with some WndProc (without WM_PAINT). On its WM_CREATE I create another window CreateWindow(WS_CHILD | WS_CLIPCHILDREN) with another WndProc2 which reacts to WM_PAINT.
However, it seems that the another handle...
Is it possible to use a linear gradient brush to paint the background of a list box? If so how do I raise the paint event to do that?
Thanks.
...
For the last two days I have tried to understand how Java handles graphics, but have failed miserably at just that. My main problem is understanding exactly how and when paint() (or the newer paintComponent() ) is/should be called.
In the following code I made to see when things are created, the paintComponent() is never called, unless...
I'm attempting to make a Java Applet which will allow me to draw a graph data structure in a canvas by clicking where I want to create nodes, and clicking the nodes to connect them. The problem is I cannot get the paint() method to behave correctly. I add new nodes to the graph (and squares on the canvas) inside the mousePressed(MouseEve...
hello
i am creating a timeline where i want to paint the ticks at a certain timestep.
so depending on the available width i want to paint as much ticks as possible. but they should not be too close together. they should stay at least a certain number of pixels apart.
so when you zoom in the ticks obviously move apart, but at a certain...
Hello, I posted a similar but less specific question a couple hours ago, but the circumstances have changed. I'm working on a program that transforms graphics, presenting them in a panel in the upper left of the form. It was painting fine earlier, but now isn't and I can't undo, load old version, etc. Previously, the app was unresponsive...
I am using C#, Winforms, and .Net 3.5
My form has a custom DataGridView (double-buffered to prevent flickering during my cellformatting events, as seen here). When I perform a database search, I bind the resulting dataset to the datagridview.
I handle the CellFormatting event to paint rows a certain color, depending on their data.
My ...
Hello all,
I'm looking for the most basic description of how to draw text within a JPanel. I know there are a billion tutorials out there but none of them are clicking with me and I have some specific questions which may help others who are confused. As a setup (a testing app) I have a single class which has a JLabel, a JTextField, a J...