It is currently Sat May 25, 2013 8:08 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: PB4.61Final - Bug ScrollArea + Splitter Gadgets
PostPosted: Fri May 25, 2012 11:00 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Oct 22, 2003 2:51 am
Posts: 734
Location: Canada
Hello everyone,

Apparently, it's impossible to use the ScrollAreaGadget() and the SplitterGadget() together. Bad news for the PB 4.61 Final
Image

Best regards
Guimauve

Code:
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; Project name : Bug ScrollArea + Splitter Gadgets
; File Name : Bug ScrollArea + Splitter Gadgets.pb
; File version: 1.0.0
; Programming : Bug demonstration
; Programmed by : Guimauve
; Date : 25-05-2012
; Last Update : 25-05-2012
; PureBasic code : 4.61 x64 Final
; Platform : LinuxMint 12 x64
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; Bug description :
;
; Simple, No gadget are visible within the Window and
; the program seem to hang somehere. I have to kill
; the program with the "Stop" toolbar button while the
; program run with the debugger.And no warning or
; error messages.
;
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<


If OpenWindow(0, 0, 0, 800, 600, "SplitterGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
 
  #Bouton1    = 0
  #Bouton2    = 1
  #Separateur = 2
 
  ButtonGadget(#Bouton1, 0, 0, 0, 0, "Bouton 1")
  ScrollAreaGadget(#Bouton2, 0, 0, 0, 0, 400, 300)
  SplitterGadget(#Separateur, 5, 5, 790, 590, #Bouton1, #Bouton2, #PB_Splitter_Separator)
 
  Repeat
  Until WaitWindowEvent() = #PB_Event_CloseWindow
 
EndIf

; <<<<<<<<<<<<<<<<<<<<<<<
; <<<<< END OF FILE <<<<<
; <<<<<<<<<<<<<<<<<<<<<<<


Last edited by Guimauve on Sat May 26, 2012 12:41 am, edited 3 times in total.

Top
 Profile  
 
 Post subject: Re: PB4.61Final - Bug ScrollArea + Splitter Gadgets
PostPosted: Fri May 25, 2012 11:20 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 4715
Location: Berlin - Germany
confirmed, ubuntu 12.04 (x86 and x64)

_________________
PureBasic 5.11 | Windows 7 SP1 (x64) | Mageia 3 (x64) | RealSource

The use of EnableExplicit is free of charge and avoids errors.


Top
 Profile  
 
 Post subject: Re: PB4.61Final - Bug ScrollArea + Splitter Gadgets
PostPosted: Sat May 26, 2012 1:06 am 
Offline
Addict
Addict
User avatar

Joined: Fri Sep 21, 2007 5:52 am
Posts: 2488
Location: New Zealand
looks like it's only when you try to put the scrollarea into the splitter


Top
 Profile  
 
 Post subject: Re: PB4.61Final - Bug ScrollArea + Splitter Gadgets
PostPosted: Mon May 28, 2012 11:18 am 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 8876
Location: France
Well, you need a 'CloseGadgetList()' after ScrollAreaGadget() as it's a container. You code do'nt work on Windows as well.


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: Exabot [Bot], morosh and 2 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