|
in a GPU things are quite different: it is dealing with streaming data, performing "simple" operations on a sequence of pixels, without much state involved, with tailored memory ports, and highly predictable. More cores means a smaller screen area per core, hence faster. Video processing is inherently a candidate for parallel processing; your average web browser, spreadsheet, whatever, isn't.
Luc Pattyn [My Articles] Nil Volentibus Arduum
Fed up by FireFox memory leaks I switched to Opera and now CP doesn't perform its paste magic, so links will not be offered. Sorry.
|
|
|
|
|
.Net 3.5 / VB 2008...
I'm using a ListView in Details view with 2 columns and FullRowSelect. Image in the left column and text in the right. When I select an item, the right column behaves as expected (blue bkgnd and white text). But the image in the left column becomes invisible and the background is white.
How does one correct this? I'm probably missing something obvious but I've yet to find a solution.
XAlan Burkhart
|
|
|
|
|
Well, I may go back and try to figure this out but for now I've switched to a DataGridView. At least the images stay put when I click a row. But I'd still appreciate it if anyone knows why the ListView might behave so oddly.
XAlan Burkhart
|
|
|
|
|
I believe there is a SelectedImage property in the ListViewItem class that will do the trick. Just straight out of head, didn't try though.
|
|
|
|
|
I tried asking about this annoyance on some more user-oriented forums but did not get any good responses, so maybe you software developers can field it. (I am an retired VAX/VMS programmer BTW.)
I want to know why, in Windows 7, when an application exits, application focus always reverts to the desktop instead of the most recently visited and still open app?
I am a recent convert from Windows 2000, which didn't have this problem. When did this focus policy change? XP? Vista?
In Windows 7, an app can dominate the screen --completely maximized, and yet the desktop has the focus. How is this EVER useful? It is blatantly counter-intuitive.
The only time I want the desktop to have focus is when all apps are minimized or there are no apps running. Is there a way to tweak this behavior (with something like the old TweakUI) to the way I want, or do I have to do it the hard way and write an event monitoring utility? Or maybe some third party has already adressed this?
|
|
|
|
|
After some more investigation I've found that only legacy apps make the desktop behave this way. For instance if I try this with AutoCAD 2000 or EMACS, both of which I use all the time, my complaint stands. If I try it with say, Notepad and a command prompt they behave OK. So what is at the bottom of this?
|
|
|
|
|
my mdicontainer controls and child controls overlap.............tried the opacity property with no use
Any help is appreciated
|
|
|
|
|
Without a lot more detail I don't think anyone can guess what your code is doing.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
i have a mdicontainer on which there are some controls ...i also have a child form with some controls...when i run the app and open my mdicontainer and child form.....the controls of both overlap... I am able to move the child form freely but as soon as it reaches the mdicontainer form control both overlap..its like the child form becomes transparent and i can see the mdicontainer controls even though the child form is covering it
|
|
|
|
|
you need to expand this alot more
1. Are we talking about controls drawn on the MDI Parent form?
2. Controls that are on a child form that isnt showing on the parent form properly?
3. dynamic drawn controls?
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
child form is on top of mdicontainer hence controls of child form are supposed to be hidden
child form is almost transparent and i can see the mdicontainer controls even though child form is supposed to cover the mdicontainer as it is placed on top of mdicontainer controls....
its so transparent that it appears as if mdicontainer controls and child form controls are overlapping
|
|
|
|
|
From what I have read
Is that the MDI Parent merges certain controls with child forms.
The controls that can't be merged are always placed on top of all other controls including forms
So if you need to display any controls while using and MDI approach you need to only place them on the child forms except toolbar menus as these will be merged with the forms at runtime.
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
Hi All,
Am facing an issue with getting the MouseDown event for a custom drawn Button class in Dot Net 2.0 framework. This custom class basically listens to the MosueDown,Up,Hover,Enter and Leave events and updates the image shown on it (if we hover or click, an "active/pressed" image is shown else "inactive" image is painted).The code is as below :
class CustomButton : Button
{
Bitmap displayimage;
bool down;
public CustomButton()
{
MouseUp += OnMouseUp
MouseDown += OnMouseDown
}
private void OnMouseDown(object sender, MouseEventArgs e)
{
down = true;
displayimage = new Bitmap("pressedimage.png");
Invalidate();
}
private void OnMouseUp(object sender, MouseEventArgs e)
{
down = false;
displayimage = new Bitmap("inactiveimage.png");
Invalidate();
}
protected override void OnPaint(PaintEventArgs e)
{
if (down)
{
Matrix matrix = new Matrix();
matrix.Translate(1, 1, MatrixOrder.Prepend);
e.Graphics.Transform = matrix;
}
e.Graphics.DrawImage(bitmapImage);
e.Graphics.DrawString(displaystring);
base.OnPaint(e);
}
}
The buttons are created in the main Form class and we also listen to MouseDown event here :
class WinForm1 : Form
{
CustomImageButton button = new CustomImageButton ();
public WinForm1
{
button.MouseDown += OnButtonMosueDown;
}
private void OnButtonMosueDown(object sender, MouseEventArgs e)
{
}
}
The problem is MouseDown events don`t even get trigerred sporadically, mostly seen in cases where the user is working with some external application and then directly comes over and clicks the custom button on the UI.
Any idea as to what could be the cause/likely solution ?
Is this related to the click through issue seen in dot net 2.0 Toolstrip class (refer http://blogs.msdn.com/b/rickbrew/archive/2006/01/09/511003.aspx ) ?
|
|
|
|
|
I tried your code and the mouse down event is being triggered.
|
|
|
|
|
I intend to write a software like Microsoft Office. but I don't know where to start.
I hope to have your support to reduce time.
thank you very much!
|
|
|
|
|
There is no way that this question can be answered in a simple forum like this. And I have to say that judging by your statement (I don't know where to start) this task is somewhat ambitious.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Thank Richard MacCutchan for your post.
your statement: "this task is somewhat ambitious". I think that is true. but I only want to discuss the ideal to start it.
and I hope to meet persons having ideals same as me. thank!
|
|
|
|
|
|
Thank DaveAuld!
your post is very useful.
|
|
|
|
|
rocket42 wrote: I intend to write a software like Microsoft Office.
At MSDN[^] and your local library. Microsoft provides Express Editions[^] that you can download for free.
Bastard Programmer from Hell
|
|
|
|
|
This is really ambitious, but to start off with, you can look at small text editors to get an idea of how these things are built.
Simple Text Editor Source[^]
|
|
|
|
|
If you want to see what this really entails, go over to OpenOffice.org[^] and look at the mountain of source code for OpenOffice. Click me for the source repository[^]. It'll take you the better part of your entire life to come up with the code to duplicate this effort.
|
|
|
|
|
I thought about leading him to OpenOffice or LibreOffice... but I thought that'd be a bit cruel... 
|
|
|
|
|
This is being over-ambitious.
First go and write a MS-Paint like software. show the world.
Then write and normal Text Editor. Show the world.
Re-improve on those N number of times. Then re-think new idea and then you can Aim for MS-Office kinda via a proper plan.
***** Programme comme si dept soutien technique. est plein de tueurs en série et ils savent adresse de votre domicile. *****
|
|
|
|
|
You've just revealed the Microsoft plan to the entire world. 
|
|
|
|