FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log inLog in 


Catching maximize and minimize events

Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog Tips & Samples
View previous topic :: View next topic  
Author Message
Steve Lympany



Horsham, England
Joined: 31 Mar 2001
Posts: 1152

PostPosted: 8 May 2011 18:52    Post subject: Catching maximize and minimize events Reply with quote

clauses
    new(Parent):-
        formWindow::new(Parent),
        generatedInitialize(),
        addNativeMessageHandler(nativeMessageHandler).


predicates
    nativeMessageHandler : window::nativeMessageHandler.
clauses
   nativeMessageHandler(_Source, gui_native::wm_size, _WParam, 47908248)= defaultNativeHandling :-!,
      vpiCommonDialogs::note("Maximized"),
   nativeMessageHandler(_Source, gui_native::wm_size, _WParam, 12779880)= defaultNativeHandling :-!,
      vpiCommonDialogs::note("Restored").

   nativeMessageHandler(_Source, gui_native::wm_size, _WParam, 0)= defaultNativeHandling :-!,
      vpiCommonDialogs::note("minimized").

   nativeMessageHandler(_Source, _Message, _WParam, _LParam)= defaultNativeHandling .

I don't know what the constants are - 47908248 and 12779880

steve
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog Tips & Samples All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum