It is currently Thu Nov 26, 2020 2:15 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: [Done] DisableWindow interferes with resizable
PostPosted: Tue Dec 24, 2019 11:27 pm 
Offline
Addict
Addict

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 1277
Location: right here
When disabling a resizable window and later enabling it again it's not resizable anymore. It works ok if enabled immediately, but not if enabled later (after one second, with a timer, in the event loop). Problem occurs with gtk2 and gtk3, not with qt.

Code:
;flags = #PB_Window_Invisible | #PB_Window_SizeGadget | #PB_Window_MaximizeGadget | #PB_Window_MinimizeGadget | #PB_Window_SystemMenu
flags = #PB_Window_SizeGadget
win = OpenWindow(#PB_Any, 50, 100, 800, 600, "..", flags)
ButtonGadget(#PB_Any, 100,100,100,100,"button")
SmartWindowRefresh(win, 1)
;HideWindow(win, 0)
DisableWindow(win, 1)
;DisableWindow(win, 0)
AddWindowTimer(win, 1, 1000)
Repeat
  WaitWindowEvent()
  If Event() = #PB_Event_Timer
    Debug "timer"
    DisableWindow(win, 0)
    RemoveWindowTimer(win, 1)
  EndIf
Until Event() = #PB_Event_CloseWindow


Top
 Profile  
Reply with quote  
 Post subject: Re: DisableWindow interferes with resizable
PostPosted: Wed Dec 25, 2019 12:14 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 2730
Location: Germany
The mistake does not occur with me.

PB: v5.71 (x64)
VM's: Ubuntu v18.10 and v19.04

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: DisableWindow interferes with resizable
PostPosted: Wed Dec 25, 2019 6:19 pm 
Offline
Addict
Addict

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 1277
Location: right here
I tried again with a new PB 571 LTS x64 installation and no prefs present. The problem still occurs.
Ubuntu 18.04.3 LTS x64 with xfce.
Someone else (deeproot) could confirm a similar behavior for the IDE itself:
https://www.purebasic.fr/english/viewtopic.php?f=23&t=71112


Top
 Profile  
Reply with quote  
 Post subject: Re: DisableWindow interferes with resizable
PostPosted: Thu Dec 26, 2019 1:54 am 
Offline
Addict
Addict
User avatar

Joined: Fri Sep 21, 2007 5:52 am
Posts: 3554
Location: New Zealand
works on manjero with xfce using gtk2 and qt with the flags set


Top
 Profile  
Reply with quote  
 Post subject: Re: DisableWindow interferes with resizable
PostPosted: Thu Feb 27, 2020 10:04 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 14179
Location: France
Fixed.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Done] DisableWindow interferes with resizable
PostPosted: Mon Mar 09, 2020 4:08 pm 
Offline
Addict
Addict

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 1277
Location: right here
Still the same problem with pb572b2 (and with the IDE itself as well)


Top
 Profile  
Reply with quote  
 Post subject: Re: [Done] DisableWindow interferes with resizable
PostPosted: Fri Mar 20, 2020 6:11 pm 
Offline
Addict
Addict

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 1277
Location: right here
Works now. Thanks!


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

All times are UTC + 1 hour


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

Search for:
Jump to:  

 


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