It is currently Mon Feb 17, 2020 4:47 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: [Done] Dialog - GridBox shows a maximum of 15 Columns.
PostPosted: Fri Jan 22, 2016 12:41 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Apr 16, 2007 3:57 am
Posts: 457
Location: Germany, NRW
I'm not sure, if GridBox is limited to 15 Columns by Design.

But if not - it looks like that it's buggy.

Hint: In the example, you can see column 16-30 incl. Values flickering, while you resize the window.

Code:
EnableExplicit

CompilerIf #PB_Compiler_Unicode
   #XmlEncoding = #PB_UTF8
CompilerElse
   #XmlEncoding = #PB_Ascii
CompilerEndIf

#xmlText   = 0
#xmlDialog = 0
Define   n

Define   XML$ = "<window id='0' name='WinMain' height='auto' minwidth='auto' text='Only show 15 columns instead of 30.'  flags='#PB_Window_ScreenCentered | #PB_Window_SystemMenu | #PB_Window_SizeGadget'>"

         XML$ + "      <gridbox columns='30' >"         ;<---  set GridBox to 30 Columns

                          For n = 1 To 60
           XML$ + "            <text text='"+Str(n)+"'/>"
                          Next
         XML$ + "      </gridbox></window>"

If Not (CatchXML(#xmlText, @xml$, StringByteLength(xml$), 0, #XmlEncoding) And XMLStatus(#xmlText) = #PB_XML_Success)
   MessageRequester("Fehler in XML-Definition !!!", "XML-Definition '"+xml$+"' konnte nicht decodiert werden."+Chr(10)+Chr(10)+"XML error: " + XMLError(#xmlText) + " (Line: " + XMLErrorLine(#xmlText) + ")", #PB_MessageRequester_Ok)
EndIf

If CreateDialog(#xmlDialog) And OpenXMLDialog(#xmlDialog, #xmlText, "winMain")
   
    Repeat
      Define Event = WaitWindowEvent()
   Until Event = #PB_Event_CloseWindow
   
Else 
   Debug "Dialog error: " + DialogError(#xmlDialog)
EndIf

_________________
[Dynamic-Dialogs] - create complex GUIs the easy way
[DeFlicker] - easily deflicker your resizeable Windows
[WinFX] - Window Effects (incl. 'click-through' Window)


Last edited by PureLust on Fri Jan 22, 2016 5:09 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: [BUG] Dialog - GridBox shows a maximum of 15 Columns.
PostPosted: Fri Jan 22, 2016 7:16 am 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 6:14 pm
Posts: 1712
Location: Germany (Saxony, Deutscheinsiedel)
Confirmed (Win 8.1 - PB5.41 x64).

It's seems that the Dialog calculation reserves the place for the columns 16, 17, 18, etc. too (because the window becomes widther), but the placement of the gridbox content only works till column 15. And I can confirm the flickering effect.

_________________
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)


Top
 Profile  
Reply with quote  
 Post subject: Re: [BUG] Dialog - GridBox shows a maximum of 15 Columns.
PostPosted: Fri Jan 22, 2016 8:43 am 
Offline
User
User

Joined: Tue Mar 11, 2014 8:11 pm
Posts: 36
Location: UK
Confirmed (Win 10 - PB5.41 x64).

Initially I didn't get the flickering but then I realised I had "show window contents when dragging" disabled in the system settings. Enabling the option resulted in the flickering.


Top
 Profile  
Reply with quote  
 Post subject: Re: [BUG] Dialog - GridBox shows a maximum of 15 Columns.
PostPosted: Wed Jan 27, 2016 11:05 pm 
Offline
User
User

Joined: Thu Sep 06, 2012 9:39 am
Posts: 60
Confirmed @ Ubuntu 15.10


Top
 Profile  
Reply with quote  
 Post subject: Re: [BUG] Dialog - GridBox shows a maximum of 15 Columns.
PostPosted: Tue Jan 21, 2020 11:53 am 
Offline
Administrator
Administrator

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


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

All times are UTC + 1 hour


Who is online

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