C Sharp :: Scroll Images In Dicom Viewer Using Scroll Bar?
Aug 28, 2012I want to know how to scroll images in dicom viewer using scroll bar control
View 1 RepliesI want to know how to scroll images in dicom viewer using scroll bar control
View 1 RepliesI have screen, where I need to scroll automatically top of the screen if any error comes.
View 1 Replies View RelatedIs there any methods to add scroll bar for group box
My code scenerio is: I have many groupbox in form, all group box will be appears in same place and also height and width is fixed. I'm doing group box visible true/false according to condition.
So some groupbox ecxeeds the width and heighto so I want to put this all in scroll Bar
I want to make something like this for a game:
It is a "list box" that has 2 scroll buttons (scroll bar not needed). One button push, "scrolls" the list one entry.
Needs to run crossplatform (windows, linux).
I want to make something like this for a game:
Attachment 30507
It is a "list box" that has 2 scroll buttons (scroll bar not needed). One button push, "scrolls" the list one entry.
Needs to run crossplatform (windows, linux).
I want to show my output in one line. But my output breaks to next line even before endl is encountered.code blocks horizontal scroll bar in console? is it c++ formatting issue or console issue?
View 3 Replies View RelatedI am working on a 2D side scroller game. Where a ball is moving continuously towards right . I used a camera to follow the ball as soon as ball reaches the center of screen. I created a horizontal line to look like the surface on which the ball is rolling.
line runs from x=0 to x=800 (i.e screen width)
NOTE: (0,0) coordinate is at top left corner of display.
Problem: My display is 800 x 400 . Camera follows the ball, but soon the ball crosses x=800 and starts moving in black background. I want that line surface to stay there instead of going out of bound.
Additionally! I generated obstacles from x=800 which also move out of bound along with my line.
What should be done here? This is just my first c++ game project, so i might be skipping things that can solve the issue.
[Update] these screenshots manage to show, what the real problem is: [URL]
im trying to code a simple list box for my self made GUI but i seem to be stuck at the scroll bar. I already finished with the calculation for the scroll bar size but how I could calculate it's current vertical position depending on the current item on top of the list box.
My current code looks like this
ListBox struct:
struct MenuListBox {
int PosX;
int PosY;
int Width;
int ItemsVisible; //Items visible at the same time
int CurrentItem;
[code]....
Additional vars in the menu class:
MenuListBox* MenuListBoxes;
int ListBoxCount;
How could i calculate this:
New->CurrentScrollBarPosY = ; ?
I have an emulation project I've been working for a long time (the Altair32 Altair/IMSAI emulator) and I'm trying to simulate a dot-matrix printer for list output in CP/M.
Here's what I have so far and where I'm stuck and need a push in the right direction. I'm using a dialog box with a green bar paper bitmap as the client area background. I used CreateFont to load a dot matrix printer TrueType font and have the base code to print on subsequent lines. So, based on the dialog size, font size, etc., I get about 10 lines of dot matrix printing, 80-characters wide. So far so good.
The problem arises in how do I scroll the text like on a printer? I thought about trying a static text control or an edit box, but the text to be printed is of an unknown size and ISTR that both of those controls have finite size limits (32k but maybe I'm wrong). They would also need to be transparent so that the green bar paper shows through.
Rich
[URL]...
[URL]...
I was loaded a bitmap using this code. I'm using mousemove method to known the Dialog's mouse move position & get the RGB pixel.
I want to get the picture contol's mouse move position & using this point (x,y) i will get the particular color ref value R, G, & B.
My picture control size is 256 * 256 & I was loaded an image 512 * 512.
Using scroll bar, I was view the image but can't get the particular pixel in the picture control.
The below code get the Dialog's mouse move cursor position & RGB Values only.
Code:
void CMyDlg::OnMouseMove(UINT nFlags, CPoint point) {
int R,G,B;
COLORREF ref;
ref = m_dcMem.GetPixel(point.x,point.y);
R = GetRValue(ref);
G = GetGValue(ref);
B = GetBValue(ref);
CButton::OnMouseMove(nFlags, point);
}
How can i get the picture contol position even use the scroll bar.
For a ribbon bar with edit controls (CMFCRibbonEdit) I want to handle the mouse scroll events for the edit controls. That is, when the user clicks and then scrolls on the edit it will navigate a predefined list of strings. I want to capture the scroll event in order to update the edit text step by step.
This kind of behavior is implemented by the Spin Edit; I don't want to use the spin edit control since it only uses a list of integers and the spin buttons are too small.
Is there a way to catch the mouse scroll event for the CMFCRibbonEdit control? How to approach message handling for the ribbon (other messages than the COMMAND allowed by the ribbon designer). I'm using VS2010 on Windows 7 and the ribbon was designed with the ribbon designer?
I've been looking for a C# library that is well documented and can show DICOM (medical CT scan data, including the image) as jpeg/bmp data that is viewable in a PictureBox.
I've only found OpenDicom which is more or less unsupported now and EvilDicom - whose owner has made some significant changes to it, making all existing stack overflow questions on it irrelevant.
I want to change this code in c#.net.. But I am unable to do this.. i get error when i tried to session in some variable and when try to + it.
Code id (
Dim A As Integer = Session("Id")
p.Value = A + 1)
complete code is
cmd.CommandType = Data.CommandType.StoredProcedure
cmd.CommandText = "[Netx_Image]"
Dim p As New SqlParameter
[Code] .....
I am facing a problem which is that when i search image from database then it just shows last image which is stored in the database. My code is
private void Images() {
SqlConnection con = new SqlConnection("Data Source=chusman-pc;
Initial Catalog=Hotel_Management;Integrated Security=True");
con.Open();
SqlCommand com = new SqlCommand();
[Code] ....
I call this function at SelectedIndexChanged of dropbox..
I'm using C# with VS 2010, and I've created a .rdlc report file with 1 image boxes on it. How do I add images programmatically to this report file? Images are generated at runtime.
View 3 Replies View RelatedI have patient_table in the database. which contain Id, name ,Image & other fields I have inserted the image in the Byte form in the database.Now i want to display all records in the Datagrid view in windows Form.
i am able to display id & Name & all fields but unable to display the image of a patient in the datagrid view.
I put all the records in the genric list:-
public static List<Personal_Details> AllMembers() {
List<Personal_Details> listMembers = new List<Personal_Details>();
Personal_Details pDetails;
try {
String Constring = ConnectionString.dataBaseConnectionString;
[code]...
i am unable to write the code for displaying the image on data gridview.
I am unable to find the solution for binding the image field in the datagrid view.
I stored multiple images in MySQL SERVER 2005. Now I want to retrieve particular category of images into multiple picturebox at runtime in C# Windows application. i used the following code in my final result form at form_Load using c# windows apps.. But it displays only one picture at run time.
SqlConnection con = new SqlConnection(@"Data Source=ttt-PC;Initial Catalog=Query_Image;Integrated Security=True");
SqlCommand cmdnew = new SqlCommand("select pic from Image_Category
where IMG_Cat='" + searchvalue.ToString() + "'", con);
con.Open();
[Code] ....
I am developing 1 desktop application to my friend office,in that application i can store multiple images and i can retrieve the information for the same..My issue here is after retrieving the information when i click on update button I'm getting runtime exception i.e (Empty path is not legal exception)..
Here is the code which I wrote under updatebutton method:
public partial class CustomerDetails : Form
{
string imageloc = "";
string imageloc1 = "";
[Code].....
i want to write to event viewer
Code:
void EventLogCls::WriteError( char* msg) {
HANDLE hes = RegisterEventSource(0, appName);
if(hes) {
WORD dwEventType = EVENTLOG_ERROR_TYPE;
ReportEvent(hes, dwEventType, 0, 0, 0, 1, 0,(const char**)&msg , 0);
DeregisterEventSource(hes);
}
}
The error that i get is on the line of "ReportEvent"
error C2664: 'ReportEventW' : cannot convert parameter 8 from 'const char **' to 'LPCWSTR *'
what should be changed?
I created a dataset that contains an empty dataTable that has several columns , and then I created a new report that is linked to this datatable using the report wizard. In my form there is a button when clicked should fill the datatable mentioned above ( I checked if it is being filled by displaying its content in a dataGridView and by firing a messagebox that is triggered when 'datatable.rows.count > 0' ).
The reason that the datatable is initially empty is that it depends on some conditions that may alter the query used to fill it.
But finally when I load the form that has the report viewer it only has the names of the columns of the datatable and no contents. What's wrong ?
My code is:
#include <iostream>
#include <string>
#include <cstdlib>
[Code]....
The problem is that the images don't display and the window doesn't respond.
What's the best performance library for loading images in PNG?
View 5 Replies View RelatedI want to import images in my program and what function I will use.
Compiler: Turboc 3.0
I don't mean how do I load a bmp, I mean how does SDL manage to do this?
View 2 Replies View RelatedSince SDL doesn't have it's own function for rotating images and I'm tired of storing multiple angles of the same sprite in a file, I created my own function for doing so:
//XY Class
class XY {
public:
XY(){}
XY(float x, float y);
[Code] ....
The problem is while Spin does spin the surface correctly, some pixels are rotated to the same new position so gaps appear in the returned surface. I need a way of filling in the gaps so the returned image looks better. A link to a program I made that uses this function is below so you can see the problem that I'm talking about. [URL] ....
I currently use SDL 1.2. Could my problem be fixed if I used 2.0? For example, does SDL 2.0 have a built in function for rotating surfaces?
RLE(Run Length Encoding)
using namespace std;
class Bitwriter{
private:
[Code]....