| Function CreatePanel:TGadget(x,y,w,h,group:TGadget,style=0,title$="") |
| SuperStrict Local MyWindow:TGadget=CreateWindow("Panel Example", 200,200,320,240) Local MyPanel:TGadget=CreatePanel(5,5,200,200, MyWindow) Repeat WaitEvent() Select EventID() Case EVENT_WINDOWCLOSE End End Select Forever |
![]() |
| Constant | Meaning |
|---|---|
| PANEL_BORDER | Panel is drawn with a border |
| PANEL_ACTIVE | Panel generates mouse move events |
| PANEL_GROUP | Panel is drawn with a titled etched border |
| SuperStrict Local MyWindow:TGadget=CreateWindow("Panel Example w Border", 200,200,320,240) Local MyPanel:TGadget=CreatePanel(60,5,180,155, MyWindow, PANEL_BORDER) Repeat WaitEvent() Select EventID() Case EVENT_WINDOWCLOSE End End Select Forever |
![]() |
| SuperStrict Local MyWindow:TGadget=CreateWindow("Panel Example w Border", 200,200,320,240) Local MyPanel:TGadget=CreatePanel(60,5,180,155, MyWindow, PANEL_GROUP, "My Group") Repeat WaitEvent() Select EventID() Case EVENT_WINDOWCLOSE End End Select Forever |
![]() |
| SuperStrict Local MyWindow:TGadget=CreateWindow("Panel Tutorial", 200,200,320,240) Local Label0:TGadget=CreateLabel("Prefered Language for 2d and 3D?",80,10,300,20, MyWindow) Local Radio1:TGadget=CreateButton("Blitz2D",120,40,100,20, MyWindow,BUTTON_RADIO) Local Radio2:TGadget=CreateButton("BlitzMax",120,60,100,20, MyWindow,BUTTON_RADIO) Local Radio3:TGadget=CreateButton("Blitz 3D",120,80,100,20, MyWindow,BUTTON_RADIO) Local Radio4:TGadget=CreateButton("BlitzMax with irrlicht",120,100,120,20, MyWindow,BUTTON_RADIO) Repeat WaitEvent() Select EventID() Case EVENT_WINDOWCLOSE End End Select Forever |
![]() |
| SuperStrict Local MyWindow:TGadget=CreateWindow("Select your prefered Language", 200,200,320,240) Local Panel2D:TGadget=CreatePanel(70,10,200,70, MyWindow, PANEL_GROUP, "2D") Local Radio1:TGadget=CreateButton("Blitz2D",1,1,100,20, Panel2D,BUTTON_RADIO) Local Radio2:TGadget=CreateButton("BlitzMax",1,22,100,20, Panel2D,BUTTON_RADIO) Local Panel3D:TGadget=CreatePanel(70,82,200,70, MyWindow, PANEL_GROUP, "3D") Local Radio3:TGadget=CreateButton("Blitz 3D",1,1,100,20, Panel3D,BUTTON_RADIO) Local Radio4:TGadget=CreateButton("BlitzMax with irrlicht",1,22,120,20, Panel3D,BUTTON_RADIO) Repeat WaitEvent() Select EventID() Case EVENT_WINDOWCLOSE End End Select Forever |
![]() |
| SuperStrict Local MyWindow:TGadget=CreateWindow("Panel Background Color", 200,200,320,240) Local Panel2D:TGadget=CreatePanel(70,40,200,70, MyWindow) SetPanelColor Panel2D, 1,81,107 Repeat WaitEvent() Select EventID() Case EVENT_WINDOWCLOSE End End Select Forever |
![]() |
| Function SetPanelColor( panel:TGadget,r,g,b ) |
| Function SetPanelPixmap( panel:TGadget,pixmap:TPixmap,flags=PANELPIXMAP_TILE) |
| SuperStrict Local MyWindow:TGadget=CreateWindow("Panel Background Image", 200,200,320,240) Local Panel2D:TGadget=CreatePanel(70,40,200,70, MyWindow) Local image:TPixmap=LoadPixmap("D:\My Documents on E\_Tutorials\B-max.png") SetPanelPixmap Panel2D, image Repeat WaitEvent() Select EventID() Case EVENT_WINDOWCLOSE End End Select Forever |
![]() |
| Local image:TPixmap=LoadPixmap("D:\My Documents on
E\_Tutorials\B-max.png") |
| Constant | Meaning |
|---|---|
| PANELPIXMAP_TILE | The panel is filled with repeating tiles (default) |
| PANELPIXMAP_CENTER | The pixmap is positioned at the center of the Panel. |
| PANELPIXMAP_FIT | The pixmap is scaled to best fit the Panel size. |
| PANELPIXMAP_STRETCH | The pixmap is stretched to fit the entire Panel. |
| SuperStrict Local MyWindow:TGadget=CreateWindow("Panel Background Image", 200,200,320,240) Local Panel2D:TGadget=CreatePanel(70,40,200,70, MyWindow) Local image:TPixmap=LoadPixmap("D:\My Documents on E\_Tutorials\B-max.png") SetPanelPixmap Panel2D, image, PANELPIXMAP_STRETCH Repeat WaitEvent() Select EventID() Case EVENT_WINDOWCLOSE End End Select Forever |
![]() |