>>
APLDN Home

>>
Events

>>
Trainings

>>
APL Books

>>
APLDN Links

>>
Discussion Groups

>>
Downloads

>>
Articles

>>
Library

>>
Learning Tools

>>
APLDN User IO

>>
APL2000.com




Bug Reports

Author Thread: CommandBar showtext bug
Rex.Swain
CommandBar showtext bug
Posted: Sunday, October 29, 2006 8:25 AM (EST)

I have been going nuts trying to figure out why the CommandButton captions do not appear in my CommandBar.  Here's an example. 

 

barbug;k;Œwself
© CommandBar bug
© Why don't the CommandButton captions appear?
© 'CommandBar' Œwi 'showtext' 1   is the default
© And, if you comment out the last button (bnExit),
© then the text *does* appear!  Huh?
© 29 Oct 2006  Rex Swain, Independent Consultant,
www.rexswain.com

Œwself„'fm' Œwi 'Create' 'Form' 'Hide'
   Œwi 'size' 10 60

Œwself„':bar' Œwi 'New' 'CommandBar'
   Œwi 'dock' 1      © 1=top
   Œwi 'dockable' 0  © lock in current position
   Œwi 'style' 8     © 8=no gripper

Œwself„'.bOpen' Œwi 'New' 'CommandButton'
   Œwi 'caption' 'Open'

Œwself„'..bClose' Œwi 'New' 'CommandButton'
   Œwi 'caption' 'Close'

Œwself„'..bSep1' Œwi 'New' 'CommandButton'
   Œwi 'style' 1  © 1=separator

Œwself„'..bFM' Œwi 'New' 'CommandButton'
   Œwi 'caption' 'Field Mapping'

Œwself„'..bPM' Œwi 'New' 'CommandButton'
   Œwi 'caption' 'Package Mapping'

Œwself„'..bSep2' Œwi 'New' 'CommandButton'
   Œwi 'style' 1

Œwself„'..bPrev' Œwi 'New' 'CommandButton'
   Œwi 'caption' 'Preview Package'

Œwself„'..bPrint' Œwi 'New' 'CommandButton'
   Œwi 'caption' 'Generate Package'

Œwself„'..bSep3' Œwi 'New' 'CommandButton'
   Œwi 'style' 1

© ‡‡ Comment out next two lines, then button text appears!
Œwself„'..bExit' Œwi 'New' 'CommandButton'
   Œwi 'caption' 'Exit'

k„':' Œwi 'Wait'

 


Comments:

Author Thread:
brent.hildebrand
CommandBar showtext bug
Posted: Sunday, October 29, 2006 1:03 PM (EST)

There are some issues with CommandBars/CommandButtons.  One work around for your issue is to set the style initially to 9, and then change it back to 8 after you create the whole form.

 

barbug;k;Œwself
© CommandBar bug
© Why don't the CommandButton captions appear?
© 'CommandBar' Œwi 'showtext' 1   is the default
© And, if you comment out the last button (bnExit),
© then the text *does* appear!  Huh?
© 29 Oct 2006  Rex Swain, Independent Consultant,
www.rexswain.com
Œwself„'fm' Œwi 'Create' 'Form' 'Hide'
   Œwi 'size' 10 60
Œwself„':bar' Œwi 'New' 'CommandBar'
   Œwi 'dock' 1      © 1=top
   Œwi 'dockable' 0  © lock in current position
   Œwi 'style' 9     © 8=no gripper
Œwself„'.bOpen' Œwi 'New' 'CommandButton'
   Œwi 'caption' 'Open'
Œwself„'..bClose' Œwi 'New' 'CommandButton'
   Œwi 'caption' 'Close'
Œwself„'..bSep1' Œwi 'New' 'CommandButton'
   Œwi 'style' 1  © 1=separator
Œwself„'..bFM' Œwi 'New' 'CommandButton'
   Œwi 'caption' 'Field Mapping'
Œwself„'..bPM' Œwi 'New' 'CommandButton'
   Œwi 'caption' 'Package Mapping'
Œwself„'..bSep2' Œwi 'New' 'CommandButton'
   Œwi 'style' 1
Œwself„'..bPrev' Œwi 'New' 'CommandButton'
   Œwi 'caption' 'Preview Package'
Œwself„'..bPrint' Œwi 'New' 'CommandButton'
   Œwi 'caption' 'Generate Package'
Œwself„'..bSep3' Œwi 'New' 'CommandButton'
   Œwi 'style' 1
© ‡‡ Comment out next two lines, then button text appears!
Œwself„'..bExit' Œwi 'New' 'CommandButton'
   Œwi 'caption' 'Exit'
  
Œwi ':bar.style' 8
k„':' Œwi 'Wait'

     

Support
CommandBar showtext bug
Posted: Wednesday, November 01, 2006 4:14 PM (EST)
This is a known bug.  You can work around this by toggling the "showtext" property between 0 and 1.  This turns off and on the display of button caption text and causes a proper layout.

     



APL2000 Official Web Site

How far you go in life depends on your being tender with the young, compassionate with the aged, sympathetic with the striving and tolerant of the weak and the strong. Because someday in life you will have been all of these.
--- George Washington Carver

APLDN Home   |    |  Events   |  Trainings   |  APL Books   |  APLDN Links   |    |  Discussion Groups   |    |  Downloads   |  Articles   |  Library   |  Learning Tools   |  APLDN User IO   |  APL2000.com   |