bb.donnay-software.com

Donnay Software Web Forums
It is currently Wed Dec 11, 2019 1:23 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Sat Mar 09, 2019 5:10 am 
Offline
User avatar

Joined: Tue Jul 28, 2015 5:15 am
Posts: 94
If you are looking on how to close you app in CRT mode, Hybride, you need to use event management and get xbeP_Close.
Clicking on the X will give you xbeP_Close



Code:
      // Event loop = Program navigation
      nEvent := 0
      DO WHILE nEvent <> xbeP_Close
     
         nEvent := AppEvent( @mp1, @mp2, @oXbp )
         @ 05, 22 SAY PadR( Var2Char( nEvent ), 10 )
         
         // Catch the key after a GUI event
         IF VALTYPE(mp1) = "N" .AND. mp1 < 1000 .AND. mp1 <> 0
            k = mp1
            mp1 = 0
            @ 10, 22 SAY PadR( Var2Char( k ), 10 )
            k = 0
         ELSE
            oXbp:HandleEvent( nEvent, mp1, mp2 )
            k = LASTKEY() // TO GET THE FUNCTIONS
            @ 10, 22 SAY PadR( Var2Char( k ), 10 )
            k = 0
         ENDIF
         
      ENDDO
     
      ? "Quitting"
      inkey(1)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group