It is currently Mon Sep 23, 2019 8:56 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Panel
PostPosted: Mon Aug 12, 2019 2:44 pm 
Offline
User
User

Joined: Fri May 24, 2013 1:39 am
Posts: 23
It would be nice if each tab in a Panel can be a different size.

Example tab1 could be 320x240 tab 2 could be 640x480 tab 3 could be 1920x720 and so on.


Top
 Profile  
Reply with quote  
 Post subject: Re: Panel
PostPosted: Mon Aug 12, 2019 3:09 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 13, 2010 3:45 pm
Posts: 892
Why should Pb do that with a native command? It's actually against the purpose of a panel gadget, and if you really want it, it's done with a few lines.

Code:
OpenWindow (0, 0, 0, 500, 300, "PanelGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
PanelGadget     (0, 10, 10, 480, 280)
  AddGadgetItem (0, -1, "Panel 1")
  AddGadgetItem (0, -1, "Panel 2")
CloseGadgetList()



Repeat
  Event = WaitWindowEvent()
 
  If EventType() = #PB_EventType_Change

    Select GetGadgetState(0)
      Case 0 : ResizeGadget (0, 10, 10, 480, 280)
      Case 1 : ResizeGadget (0, 10, 10, 380, 180)
    EndSelect

  EndIf

Until Event = #PB_Event_CloseWindow

_________________
sorry for my bad english


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 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