I have just discovered something mildly irritating about using a Menu bar and Status bar in a windowed Dark Basic Pro application.
When you create the gadgets, the DBP area of the window "shrinks" for lack of a better word. Meaning images get squashed vertically a little.
I wrote this little snippet to illustrate my problem.
` start blue gui
startblue "***","*****"
` array to hold handles
dim gui(100)
` box in middle of screen 100 x 100 pixels
ink rgb(255,255,255)
box (640-100)/2,(480-100)/2,100+(640-100)/2,100+(480-100)/2
ink rgb(128,128,128)
for a=50 to 480 step 5
line 0,a,640,a
next a
ink rgb(255,255,255)
print "press any key and watch the box closely"
wait key
` create menu bar and status bar
gui(1)=createMenu(0) : ` 0 refers to main window, F1 for more info
addMenuItem gui(1),"File",fileMenu
gui(2)=createStatusBar(0)
addStatusPanel gui(2),300
print "box is now 100 x 96 pixels tall?"
do
loop
And here is a picture to show the problem (and for those who don't have BlueGUI and can't compile it)
The annoying thing is I'm almost 100% certain I have read a solution to this on the forum before; but I've searched and searched and can't find it anywhere.
Can anyone out there help please?
Thanks in advance
=PRoF=