Help! I have a Dialog window, and I am trying to place a Statusbar control. I "think" it is there, but it is not showing. Is there any particular way to code a Statusbar for a Dialog Window?
I got it to work in a Dialog under a Window.
CREATEDIALOG dAbout,0,0,320,200,0x80C00080,0,"About Order Entry",&Handler_dAbout
CONTROL dAbout,@STATIC,"Order Entry",0,5,320,20,@CTEDITCENTER,as1
CONTROL dAbout,@STATIC,"Designed and written by B. K. Haesslein",0,30,320,14,@CTEDITCENTER,as2
CONTROL dAbout,@STATIC,"and B. D. Pugh (West Yorkshire, England)",0,42,320,14,@CTEDITCENTER,as3
CONTROL dAbout,@STATIC,"Version 1.0.0-May 2018",0,64,320,14,@CTEDITCENTER,as4
CONTROL dAbout,@STATIC,"Written and compiled in IWBasic 3.05",0,85,320,14,@CTEDITCENTER,as5
CONTROL dAbout,@STATIC,"© Copyright 2009, 2010 IonicWind Software",0,107,320,14,@CTEDITCENTER,as6
SENDMESSAGE w,SB_SETTEXTA,1,APPEND$("User: ",strUser," on ",strName),b
Hope that helps.
Thanks, Bill - yes it did help. For some reason, having a menu item in the wrong place pushed down the window, covering the statusbar
Will either do without a menu, or rearrange the controls somewhat
If it would not have been for you showing me the bar trick, I would have never known about it. I think it is a neat trick.
Still don't understand how it has 0,0,0 for the origin, but ends up at the bottom of the window/dialog, but it is cool. Also don't understand the panes work, had the dialog defined as 0,0,320,200, but the panes look better as panes=120,360,-1, which to me is bigger then the size of the box.
from the help file
CONTROLCMD window | dialog, ID, @SWRESIZE
Use this statement to inform the status window that the parent has been resized. A status window automatically sizes itself to the parent windows client area at the bottom of the window. The typical place to use this is in response to the @IDSIZE message in the parent window.
CONTROLCMD window | dialog, ID, @SWSETPANES, count, sizes
Sets the number of panes and the right edges of the panes.
count is the number of panes to create. sizes is an integer array, each element containing the pixel position of the right edge of the pane. If an element of the array is -1 then the corresponding pane extends to right edge of the client area.
CONTROLCMD window | dialog, ID, @SWSETPANETEXT, pane, text$
Use this statement to change the pane text. If there is only one pane then SETCONTROLTEXT can also be used.
pane is the zero-based index of the pane to set.