Skip to main content

[archive] Status Bar Help

  • April 3, 2007
  • 2 replies
  • 0 views

[Migrated content. Thread originally posted on 17 November 2005]

We are attempting to add a status bar to one of our screens. Our problem is that we can't get it to work thru the graphic section of bench (select status bar from screen comp. window and dragging it to the screen).
The only way that we can get it to work is by putting programming logic in as a After Create procedure.
Is this always the case? It looks like any other component and we should be able to drag it to the screen.

Thanks for any help.

2 replies

[Migrated content. Thread originally posted on 17 November 2005]

We are attempting to add a status bar to one of our screens. Our problem is that we can't get it to work thru the graphic section of bench (select status bar from screen comp. window and dragging it to the screen).
The only way that we can get it to work is by putting programming logic in as a After Create procedure.
Is this always the case? It looks like any other component and we should be able to drag it to the screen.

Thanks for any help.
With acubench 6.x-7.x it works well for us, we drag in the screen and works well. Maybe the mode of the window you using cant accept status bars? (standard, independent... etc)

[Migrated content. Thread originally posted on 17 November 2005]

We are attempting to add a status bar to one of our screens. Our problem is that we can't get it to work thru the graphic section of bench (select status bar from screen comp. window and dragging it to the screen).
The only way that we can get it to work is by putting programming logic in as a After Create procedure.
Is this always the case? It looks like any other component and we should be able to drag it to the screen.

Thanks for any help.
We had a problem with this too, and what we did was build a screen file with the status bar manually added into the stf file. Here is the code for the stf file:

[PHP]
* Screen Painter STF File
* Version 5.1
* Generated Time : Wednesday, October 12, 2005 4:10:07 PM
*

GRAPHICAL-SCREEN

Begin Screen STATUS-BAR-SCR
PREFIX = PREFIX
LOCK-CONTROL = FALSE
(Name) = STATUS-BAR-SCR
Absolute Column = 0
Absolute Line = 0
Action = (None)
Auto Minimize = FALSE
Auto Resize = FALSE
Bind To Thread = FALSE
Boxed = FALSE
Cell = TRUE
Cell Height = 10
Cell Measure = Pixels
Cell Width = 10
Color = 65793
Controls Uncropped = FALSE
Erase Screen = FALSE
Font = Small Font
Font Variable = Small-Font
Handle Variable = STATUS-BAR-SCR-Handle
Help ID = 0
Label Offset = 0
Layout Manager = None
Lines = 10.00
Link To Thread = TRUE
Max Lines = 0.00
Max Size = 0.00
Measuring Control = Label
Measuring Font = Default Font
Measuring Style = [None]
Min Lines = 0.00
Min Size = 0.00
Modeless = TRUE
Resizable = FALSE
Scroll = FALSE
Size = 24.00
System Menu = TRUE
Title = "Screen"
Title Bar = TRUE
Unit = Cells
User Gray = TRUE
User White = FALSE
Visible = 1:TRUE
Window Type = Floating
Wrap = FALSE
Event Procedure = STATUS-BAR-SCR-Event-Proc
Begin Status-Bar PREFIX-St-1
LOCK-CONTROL = FALSE
(Name) = PREFIX-St-1
Font = Default Font
Grip = TRUE
Handle Variable = PREFIX-St-1-Handle
Tab Order = 1
End
Begin Label PREFIX-La-1
SCREEN-COL = 2.00
SCREEN-LINE = 2.00
LOCK-CONTROL = FALSE
(Name) = PREFIX-La-1
Ccol = 0
Cline = 0
Clines = 0
Color = 5
Column = 2.00
Csize = 0
Destroy Type = Automatic
Enable = 1:TRUE
Font = Default Font
Help ID = 0
ID = 1
Justification = Unaligned
Label Offset = 0
Layout Data = 0
Line = 2.00
Lines = 6.00
No Key Letter = FALSE
Size = 22.00
Tab Order = 2
Title = "Copy this status bar and paste it onto your screen. This is a workaround for an AcuBench bug that prevents the creation of status bars."
Transparent = FALSE
Visible = 1:TRUE
End
End
[/PHP]

Just copy and paste this code into a new document and save it as something like StatusBarTemplate.stf. Then in the project you are working on, add this new screen. Copy the status bar from the imported screen and paste it on your new screen. You can then safely delete the template from your project.