BlitzCoder Essentials
•
Home Page
•
About BlitzCoder
•
Contributors
•
Terms of Use
•
Email Us
Main Areas
•
BlitzCoder Chat
•
Discussions
•
Articles/Tutorials
•
Code Database
•
Link Database
•
Showcase Area
•
Worklogs
•
Competitions
Special Areas
•
Undocumented
Other Blitz Sites
•
Blitz Basic Home
•
Blitz Showcase
•
BlitzPlay Library
Forum Login
Username:
Password:
•
Register Now!
BlitzCoder Code Archives Page
Main Codes Page
"Panels have borders"
, by cyberseth
BlitzPlus undocumented "style" property for panels. Allows the addition of borders to panels.
Code
; Not in the command reference, but its visible when you ; press F1 over the CreatePanel command, is the ability ; to add a style flag. Currently only supports 0 or 1 ; where 1 is a sunken border. win = CreateWindow("Hello",100,100,300,200) pnl1 = CreatePanel(10,10,100,100,win,0) ;borderless SetPanelColor pnl1,128,128,128 ;make it grey pnl2 = CreatePanel(140,10,100,100,win,1);bordered SetPanelColor pnl2,0,255,0 ;make it green pnl3 = CreatePanel(10,10,50,50,pnl2,1) ;bordered, inside pnl2 While WaitEvent()<>$803 Wend ; The style property is also available in the CreateLabel command ; in which it adds a single line border to the label. It however ; does not seem to affect CreateComboBox at all!
Copyright(c) 2000-2004, BlitzCoder. All Rights Reserved.
Code software created by Krylar's Kreations