English
Forum

Done: opengl to normalem Main Window back

 

Ludger
Resing
Hello i'm yet on the try with opengl .now would like I from the opengl Window to a normalen Mainwindow back .
here my Expirimente
with the menuepunkt Settings would like I again into Mainwindow
(not one Dialog-Window)
CompileMarkSeparation
declare beweg%

Proc Menue

    appendmenubar 1,"©"
    appendmenubar 103,"&Start"
    appendmenubar 102,"&Stop"
    appendmenubar 202,"&Einstellungen"
    appendmenubar 303,"&Ende"
    POPUP "Help"
    APPENDMENU 401,"Hilfe"
    APPENDMENU 402,"Info"
    Separator
    APPENDMENU 403,"Über"

endproc

proc start

    windowstyle 31
    Window 1,1-1100,800
    menue
    beweg%=1

endproc

PROC zuEnde

    MessageBox "Wollen Sie wirklich beenden?",
    "Frage:",36

    if %Button = 6

        Let Ende%=1

    endif

ENDPROC

Proc Einstell

    oGL("Clear")
    windowstyle 31
    Window 1,1-1100,800
    CLS 0
    waitkey

endproc

declare time&, frames%
declare rtri!, rquad!

proc DrawGLScene

    oGL("Clear")
    oGL("Origin", -1.5, 0, -6)
    oGL("Color", 0, 0, 1, 1)
    oGL("Rotate", 0, rtri!, 0)
    oGL("Cuboid", 2, 2, 1)
    oGL("Origin", 1.5, 0, -6)
    oGL("Color", 1, 0, 0, 1)
    oGL("Rotate", rquad!, 0, 0)
    oGL("Cylinder", 1.1, 1.25, 3, 38)
    oGL("Show")
    case beweg% = 1 :rtri! = rtri! + 9
    case beweg% = 1 :rquad! = rquad! - 5

endproc

Hauptprogramm
-------------
start
declare ende%
time&   = &GetTickCount
CLS 0
oGL("Init", %hWnd, 0, 0, 0, 1)
oGL("PosMode", 1)
DrawGLScene()
setTimer 20  max 50 Frames /sek.

WhileNot ende%

    WaitInput

    if isKey(27)

        ende% = 1

    endif

    DrawGLScene()
    inc frames%

    if &GetTickCount - time& >= 1000   1 Sekunde ist rum

        setText %hWnd, str$(frames%) + " Frames/sek"
        time&   = &GetTickCount
        frames% = 0

    ElseIf @MenuItem(102)

        beweg% = 0

    ElseIf @MenuItem(103)

        beweg% = 1

    ElseIf @MenuItem(303)

        zuEnde

    ElseIf @MenuItem(202)

        einstell

    endif

EndWhile

killTimer
end
 
07/22/09  
 



Hello Ludger,

i'd with ogl.done the Ogl again turn off, mean You something like?
 
07/22/09  
 




Ludger
Resing
first time best Thanks for speedy response
with ogl("done") Have I time with rumgespielt ,komm but neither moreover ,How come I again in a normalen Mainwindow.Have in Proc "einstell" with "Window 1,1-1100,800 CLS 0" attempts
comes no new Mainwindow
Greeting
Ludger
 
07/23/09  
 



Perhaps. have I the trouble not so integrally understood, what very want You achieve?

At the latest z.B. to one CLS to one ogl.done is the Mainwindow imho again "normal" To use.
 
07/23/09  
 



look time, something like?
CompileMarkSeparation
cls
ogl("init",%hWnd,0,1,1,1,1)
ogl("posmode",1)

whileLoop 180

    ogl("clear")
    ogl("move",0,0,-5)
    ogl("rotate",&loop,&loop*3,&loop*7)
    ogl("cuboid",1,1,1)
    ogl("show")
    sleep 20

wend

ogl("done")
cls $FF0000
var a&=create("button",%hWnd,"oO",10,10,100,100)
waitinput
end
 
07/23/09  
 




Ludger
Resing
my trouble is ,that by me to the CLS to one ogl.done the Mainwindow not "normal" To use is .i don't know Why.i want Namely no Button produce, but in Mainwindow
go on.with your small example (if I whom Button weglasse )comes the Mainwindow !!
In my example not
 
07/23/09  
 




Jörg
Sellmeyer
1. have You nirgends ogl("done") in Your code stand. you mußt means in Proc Einstell the install.

2. must You too for this drop one Flag settle, so that DrawGLScene only then carryed out becomes, unless The Settings erfolgen should.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
07/23/09  
 




Ludger
Resing
Hello Jörg
best Thanks
point 2 was the right Tipp .
ogl("done") I had hereafter installed, but not again whom quelltext tuned
now works
Greeting
Ludger
 
07/23/09  
 



How called (really) such "Fehler" which even z.B. no Sytaktischen are, separate? (Gibts there not too _ein word for?)

Logischer Error in the Programmablauf?!

LOFIP
 
07/23/09  
 




Jörg
Sellmeyer
A.u.s.s.E.T.Z.it
Allgemeines Unvermögen systematische Sachverhalte discernible terminierend To erfassen
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
07/23/09  
 



your fancy be I do not grown.
 
07/23/09  
 




E.T.
Jörg Sellmeyer, Beitrag=53436, Zeitpunkt=23.07.2009
A.u.s.s.E.T.Z.E.R
Allgemeines Unvermögen systematische Sachverhalte discernible terminierend To erfassen


KLASSE !!!
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
07/23/09  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

9.222 Views

Untitledvor 0 min.
Ludger Resing09/09/13
Donnie03/19/13
funkheld03/31/12

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie