How to make WindowDragArea dismiss "maximize" event #968
              
                Unanswered
              
          
                  
                    
                      birdcagedout
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 2 comments
-
| Pesquise na documentação, e eles tem um exemplo. import flet as ft def main(page: ft.Page): ft.app(target=main) | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
i'm making a flet app with fixed size of width and height of window.
so i disabled page.resizable and page.window_maximizable to False
page.window_width = 360page.window_height = 400page.window_resizable = Falsepage.window_maximizable = Falseand i want to hide the title bar and make my custom title baron the top
so i hid the title bar and buttons as follows:
page.window_title_bar_hidden = Truepage.window_title_bar_buttons_hidden = Truebut when i created and added my WindowDragArea control to page on the top as a custom title bar,
it doesnt stop the window maximize when double-clicking on it.
what i tried is to define a custom window event handler to steal the maximize event to dismiss it.
but it doesnt work.
def win_event(e: ft.ControlEvent):if e.data == "maximize":returnpage.on_window_event = on_window_eventis there any way to cutomize WindowDragArea control? or at least stop it from maximize the window.
would anyone know how, let me know please. i appreciate it.
Beta Was this translation helpful? Give feedback.
All reactions