It is currently Mon May 25, 2020 9:02 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: GadgetWindowID( Gadget )
PostPosted: Sat May 21, 2016 4:19 pm 
Offline
Addict
Addict

Joined: Mon Nov 25, 2013 6:41 am
Posts: 811
To get a window where the gadget.
Code:
Procedure GadgetWindowID( Gadget )
    CompilerSelect #PB_Compiler_OS
      CompilerCase #PB_OS_Windows
        ProcedureReturn GetAncestor_( GadgetID( Gadget ), #GA_ROOT )
      CompilerCase #PB_OS_Linux
        ProcedureReturn gtk_widget_get_toplevel_( GadgetID( Gadget ))
      CompilerCase #PB_OS_MacOS ; TODO
    CompilerEndSelect
  EndProcedure

It would be nice to add for mac os. :wink:


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 12 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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye