Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to realise the fullscreen with winapi

Status
Not open for further replies.

kai2005

Programmer
Oct 8, 2005
21
DE
same as subject
 
Sounds like a Motif programmer. Try
Code:
ShowWindow (window_handle, SW_SHOW);
It is actually realized in CreateWindow and mapped in ShowWindow.
 
xwb,

thank you, I will try it.

Actually when I have no problem in Java-Programming, I will not change back to windows-programming.Maybe someone can also help me in Java-Programming. But I guess, the problem is not mysites, but javalanguage-bug.

It's a programm for physiological experiment.
First phase: personal data input, for example number, age, name and so on.
When user click New in Menu, then he should enter some personal input, which is implemented through JDialog, one after one, this mean, first he must enter the peronal number in a JDialog Object, and after he click the next button, which is on this JDialog Object, disappear this JDialog Object, then appear the next JDialog Object, here is for age input, and so on till the last Dialog object, after the next button was clicked, come to the second phase.

Second phase: do experiment.
Now the last JDialog Object disappeared and we should see first an instruction for this experiment, so that the tester can know, what is this experiment and how to do this experiment. The instruction will be showed within a JEditorPane Object, which added a html file, the instruction is actually written in this html file. And this JEditorPane Object belong to another JFrame object, that mean, I created now an another JFrame Object, which will be disposed when this experiment finished. Disposed has not the same meaning in Java as delete but as "setVisible(false);" In Java it is ugly that I can not delete this another JFrame Object, otherwise the whole Application will be exited. And now the Focus is on this new JFrame Object(second JF). And when the user pressed the space key, an subtest will be choosed and its instruction will be showed, this time it is not implemented with a html file, but I really drawed it on a JPanel Object, that mean, I remove all Object from the container of the "second JF" and add a JPanel Object, on which will this instruction for a subtest be drawed. After the space key pressed run a mission. That mean, you see a word in the middel of the fullscreen now you should press 'E' or 'I' to answer, 'E' for left, 'I' for right, according to its kategorie. For example, Male for left, Female for right, when you see the word "boy", you should press 'E'. So, to realise it, of course I must add a keyListener Object in this "second JF", and also a focusListener in this "second JF". When you correct answered, you will see the next mission, otherwise, repeat this mission and you will see in additionaly an 'X' unter the word. When a subtest finished, run an another subtest with some words else. And when all subtests finished, this "second JF" will be disposed and the "main JF" will be showed again, so that the second tester can begin with the experiment.

Now I describe my problem in programming.
First problem is focus problem, I have added the focusListener on "second JF", of course I have also implemented the function focuslost(), it works almost well, but the duration of this experiment is not short but about 5 to 10 minutes, sometimes this focuslistener does not work, so this experiment can not go more.
Second problem is the JDialog Object's revisible problem. When the expriment finished and an another tester begins the expriment again, he will also enter his personal data, that mean these JDialog Object will be "setvisible(true);" again, but they could not be clearly showed, you see the backgroud also on his Border.

I can not understand why, maybe I have not written the programm correct, or it is just the javalanguage bug?

The whole program consists of a few class, so it is not wise to paste the code here, when someone has such expierence, please help me, how have you solved the problem. When you want see my code, please tell me your email address, I will send you the entired program.

when I can not solve this problem by myself, then I must rewrite it in windows-Programming. Hei... I am now very very sorrow...

Thank in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top