Forum: Java May 2nd, 2006 |
| Replies: 3 Views: 11,401 The problem is in the paintComponent method of your MyPan class.
It should look like this:
public void paintComponent(Graphics g)
{
super.paintComponent(g);
g.drawString("Hello... |
Forum: C++ Apr 9th, 2006 |
| Replies: 4 Views: 5,578 well ... mainly that I was calling DefWindowProc() from within the dialogbox's callback function, which messed things up. :-| |
Forum: C++ Apr 9th, 2006 |
| Replies: 4 Views: 5,578 ... nevermind, got it working. :cheesy: |
Forum: C++ Apr 9th, 2006 |
| Replies: 4 Views: 5,578 Hi all
I'm experimenting with win API gui stuff, and I've run into a problem with dialog boxes. Currently, when the "Show DialogBox" option in the menu is pressed, the dialog box pops up.
I... |
Forum: C Feb 27th, 2006 |
| Replies: 1 Views: 5,528 Hi all
My program currently loads a bitmap (given a filename) and draws it to a window (win32 application).
The problem is that once a different bitmap is loaded and drawn to the window... if... |
Forum: C++ Feb 26th, 2006 |
| Replies: 12 Views: 9,424 ah, ok ... nevermind. Something in my project options got reset, and it was no longer including my .rc file in the current project. :o
Thanks again, guys. Much appreciated. |
Forum: C++ Feb 26th, 2006 |
| Replies: 12 Views: 9,424 |
Forum: C++ Feb 26th, 2006 |
| Replies: 12 Views: 9,424 Hey guys... thanks for the replies
Yesterday, I used the main.cpp that Wolfpack included in GUI.zip ... everything worked fine, and the dialog box popped up.
Today I had to reinstall dev-cpp... |
Forum: C++ Feb 25th, 2006 |
| Replies: 12 Views: 9,424 ah ... it runs fine in Dev-cpp. Thank you SO much, Wolfpack.
Just one more question. I'm creating this program to do some bitmap displaying/manipulation ... so I'd like to have another window (a... |
Forum: C++ Feb 25th, 2006 |
| Replies: 12 Views: 9,424 Hi Wolfpack
I'm using the Dev-Cpp IDE (I think it's the MinGW compiler that comes along with dev-cpp).
I tried the above, CreateDialogBox() still returns a NULL...
Is there an error in the... |
Forum: C++ Feb 24th, 2006 |
| Replies: 1 Views: 5,769 Hi all
I am fairly new to C++, and am having problems creating a quick GUI application using the Win32 API. I'd like to use the "windows form project" option in Visual C++ ...which creates... |
Forum: C++ Feb 24th, 2006 |
| Replies: 12 Views: 9,424 http://www.apcx.3rror.com/main.cpp
The resource file:
Window Procedure of the main window... |
Forum: C++ Feb 24th, 2006 |
| Replies: 12 Views: 9,424 Hi all
I have been following a tutorial on creating win32 GUI applications. I'm having a problem getting a dialog box to pop up on top of my main window ...the CreateDialog() method returns a NULL... |
Forum: Computer Science Nov 3rd, 2005 |
| Replies: 2 Views: 5,123 Thanks Rashakil ...I actually handed in the assignment the morning after I posted that, I ended up going with option b) after all. hehe
And also, it's sort of strange to email your lecturer with... |
Forum: Computer Science Oct 30th, 2005 |
| Replies: 2 Views: 5,123 Hi all
I am implementing the TSP problem in Java. Here is the question:
And here is the MST Preorder walk strategy: |
Forum: Java Oct 25th, 2005 |
| Replies: 4 Views: 4,613 kk nevermind, I figured it out. ;) |
Forum: Java Oct 25th, 2005 |
| Replies: 4 Views: 4,613 Hi all
I am programming a database-related application in Java. I have to facilitate several different types of queries, but I'd like to use the same JTable to display the results of each query... |
Forum: PHP Oct 10th, 2005 |
| Replies: 6 Views: 1,923 LOL yeah. I tried to do it for myself afterwards, and ran into some troubles again. I'm probably going to have to take a few peeks at my homework to figure it out. :lol: |
Forum: Perl Oct 10th, 2005 |
| Replies: 2 Views: 5,841 Thanks for the help, Rashakil Fol. :cool: |
Forum: Perl Oct 9th, 2005 |
| Replies: 2 Views: 5,841 Hi all
Sorry, I didn't know where to post my perl programming question.
I'm having a problem creating objects in perl. I found a piece of code on the internet, that gives an example of classes... |
Forum: PHP Oct 8th, 2005 |
| Replies: 6 Views: 1,923 Excellent. Thank you so much, zippee. I had tried something along those lines, with trying to get the value of the button, but I messed it up somehow, so I thought it didn't work with buttons at all.... |
Forum: PHP Oct 8th, 2005 |
| Replies: 6 Views: 1,923 Hi all
Here is a PHP question I have to answer.
Now the thing I'm having a problem with is...
When the form is submitted and the page reloads, how do I determine which button was... |
Forum: Computer Science Sep 27th, 2005 |
| Replies: 4 Views: 6,765 For the Binary Tree Question, I know that the equation is true, from having tried examples of it.
e.g. from the following sketch, the sum would be: 1/8 + 1/8 + 1/4 + 1/2 = 1.
And the equality is... |
Forum: Computer Science Sep 27th, 2005 |
| Replies: 4 Views: 6,765 Here is my answer to the first one.
a)
struct heap{
int maxsize; //maximum size of the heap
element[] table; //array containing elements of the heap
int last; ... |
Forum: Computer Science Sep 27th, 2005 |
| Replies: 4 Views: 6,765 Hi all
Here are two questions from my Algorithms & Complexity Theory assignment.
1. A complete binary tree is a binary tree in which every level, except possibly the deepest, is completely... |
Forum: JavaScript / DHTML / AJAX Sep 5th, 2005 |
| Replies: 3 Views: 9,290 Thanks very much peter_budo. Any idea why my code wouldn't work? |
Forum: JavaScript / DHTML / AJAX Sep 4th, 2005 |
| Replies: 3 Views: 9,290 hi all
I'm having an odd problem with Javascript. I created a table with a single row and a single column (and gave all of them IDs). Then I use onclick events to pick up mouseclicks and call the... |
Forum: Computer Science Aug 24th, 2005 |
| Replies: 5 Views: 8,393 ah ok... nevermind...
The square root itself is within error of the correct sqrt, not the sqrt^2 being within error of the correct square.
Don't mind me. :o
Thanks again for the help, guys. |
Forum: Computer Science Aug 23rd, 2005 |
| Replies: 5 Views: 8,393 'ellos
Thanks Rashakil.
I tried implementing it that way. We then had to compare the efficiency (number of iterations) of the BissectionSQRT method with that of another sqrt method. I tried... |
Forum: Computer Science Aug 21st, 2005 |
| Replies: 5 Views: 8,393 Thanks for the reply indianscorpion.
So I'm thinking the BissecSQRT algorithm runs only once and looks sort of like this:
The problem I'm having is that, in a later question I will have to... |
Forum: Computer Science Aug 21st, 2005 |
| Replies: 5 Views: 8,393 Hi all
Here is a question from my assignment in Algorithms & Complexity Theory. I'm having a problem with part 2.
My answer to part 1 is as follows: |
Forum: Java Jun 13th, 2005 |
| Replies: 5 Views: 5,150 excellent. Thanks server_crash. :D |
Forum: Java Jun 12th, 2005 |
| Replies: 5 Views: 5,150 |
Forum: Java Jun 12th, 2005 |
| Replies: 5 Views: 5,150 Hi all...
I have a JFrame, which contains a JTabbed Pane, which contains two JPanels.
The problem is that when I run the program, a completely grey frame shows up, and the contents only becomes... |
Forum: Java Jun 11th, 2005 |
| Replies: 4 Views: 1,576 The prof probably meant for you to write up a method that does it :!: |
Forum: C++ May 13th, 2005 |
| Replies: 4 Views: 17,446 Thanks.
And... I need to stick that snippet of code into the Relation.h file? |
Forum: C++ May 13th, 2005 |
| Replies: 4 Views: 17,446 It's easy enough in Java. How is it done in C++?
for e.g. I have a class called Relation, that has a name field (just a string) and then a vector of strings.
I want to specify that wherever I... |
Forum: Java May 6th, 2005 |
| Replies: 15 Views: 5,641 The original code as in...
jta.append("Some text!");
jta.setCaretPosition(jta.getText().length());
.. not my original code. :mrgreen: |
Forum: Java May 6th, 2005 |
| Replies: 15 Views: 5,641 Sorry, my bad. I seem to have added the code to one append point and not the other. oops.
The point being... the original code worked! Thanks DeepZ. Much appreciated. |
Forum: Java May 5th, 2005 |
| Replies: 15 Views: 5,641 hi...
I tried this. It seems to have helped just a little, because instead of never showing new text, the scroll pane now remains just one text line behind i.e. the newest line of text appended is... |