It is currently Sun Nov 18, 2018 7:07 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Multiple splitters are not displayed correctly
PostPosted: Thu Aug 30, 2018 4:23 am 
Offline
User
User

Joined: Wed Mar 11, 2009 4:06 pm
Posts: 72
Location: NL
When designing everything goes OK, until swithing to code and back. Then display does not match end result (when run) anymore...

Code:
;
; This code is automatically generated by the FormDesigner.
; Manual modification is possible to adjust existing commands, but anything else will be dropped when the code is compiled.
; Event procedures needs to be put in another source file.
;

Global Window_2

Global Editor_0, Editor_0_Copy1, Splitter_0, Editor_0_Copy2, Splitter_1


Procedure OpenWindow_2(x = 0, y = 0, width = 416, height = 336)
  Window_2 = OpenWindow(#PB_Any, x, y, width, height, "", #PB_Window_SystemMenu)
  Editor_0 = EditorGadget(#PB_Any, 8, 12, 312, 102)
  Editor_0_Copy1 = EditorGadget(#PB_Any, 8, 123, 312, 41)
  Splitter_0 = SplitterGadget(#PB_Any, 8, 12, 312, 152, Editor_0, Editor_0_Copy1)
  SetGadgetState(Splitter_0, 102)
  Editor_0_Copy2 = EditorGadget(#PB_Any, 8, 173, 312, 143)
  Splitter_1 = SplitterGadget(#PB_Any, 8, 12, 312, 304, Splitter_0, Editor_0_Copy2)
  SetGadgetState(Splitter_1, 152)
EndProcedure

Procedure Window_2_Events(event)
  Select event
    Case #PB_Event_CloseWindow
      ProcedureReturn #False

    Case #PB_Event_Menu
      Select EventMenu()
      EndSelect

    Case #PB_Event_Gadget
      Select EventGadget()
      EndSelect
  EndSelect
  ProcedureReturn #True
EndProcedure



Fix seems to be to move the line Editor_0_Copy2 = EditorGadget(#PB_Any, 8, 173, 312, 143) above the splitters...


Top
 Profile  
Reply with quote  
 Post subject: Re: Multiple splitters are not displayed correctly
PostPosted: Thu Aug 30, 2018 4:46 am 
Offline
User
User

Joined: Wed Mar 11, 2009 4:06 pm
Posts: 72
Location: NL
But add containers to those splitters and things become quite 'unstable' in the designer


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

All times are UTC + 1 hour


Who is online

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