Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Caption is overlapping with icons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Caption is overlapping with icons

 Post Reply Post Reply
Author
Message
Ahis View Drop Down
Newbie
Newbie


Joined: 30 September 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ahis Quote  Post ReplyReply Direct Link To This Post Topic: Caption is overlapping with icons
    Posted: 30 September 2008 at 9:15am
Hello all!

My problem is as follows: we want to update our application with newer command bars and therefore i implemented a prototype in Progress (pretty different handling of OCX there).

I am limited in available space due to our current application, (the height is fixed), also imagesizes used for the buttons are fixed at 16 x 16.

When i use a commandbar with the  seticonsize(16,16) command the captions start to overlap with the icons ---> can i re-locate the captions to the very bottom of the controls?

Help would be much appreciated, i've looked through alot but didnt find anything appropriate yet.

For a screenshot of the behaviour please check
 http://80.80.244.49/download/codejock/codejock.zip
The Pic is Overlapping_Caption.JPG.

Best Regards,
Ahis
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 30 September 2008 at 9:32am

Hi,

Can't download images this file. :( Please attach it here.

 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Ahis View Drop Down
Newbie
Newbie


Joined: 30 September 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ahis Quote  Post ReplyReply Direct Link To This Post Posted: 30 September 2008 at 9:40am


Sorry. i overlooked the image function

Thanks again!
Back to Top
Ahis View Drop Down
Newbie
Newbie


Joined: 30 September 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ahis Quote  Post ReplyReply Direct Link To This Post Posted: 22 October 2008 at 4:58am
Noone that has any idea on that topic?
I tried shuffling alot of options but always end with this problem due to the limited space to integrate the bar.
Am i overlooking an option to reposition the caption?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 29 October 2008 at 4:10pm
Show all related code. What icon size you set. what button size, what button style. etc.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Ahis View Drop Down
Newbie
Newbie


Joined: 30 September 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ahis Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2008 at 6:51am
These are the relevant code parts i use, please mind that progress ocx handling is a little different from vba:


General Bar settings:

/* Reset the command bar */
  gchCommandBar:CommandBars:DeleteAll().

  /* Create the necessary buttonbar on the commandbar */
  chButtonBar = gchCommandBar:CommandBars:ADD("ButtonBar",  0).
 
  ASSIGN chButtonBar:VISIBLE             = FALSE
         chButtonBar:Closeable           = FALSE
         chButtonBar:ContextMenuPresent  = FALSE
         chButtonBar:Customizable        = FALSE
         chButtonBar:ShowExpandButton    = FALSE
         chButtonBar:ShowGripper         = FALSE
         chButtonBar:EnableAnimation     = FALSE.
         chButtonBar:EnableDocking(64).
         chButtonBar:seticonsize(16,16).  



Settings  for a button:

gchCommandBar:CommandBars:Icons:LoadIcon(ipcIcon, iIconID, 0).

chButton = chButtonBar:Controls:ADD(1, 1, "").
      ASSIGN chButton:IconID             = iIconID
             chButton:VISIBLE            = FALSE
             chButton:ToolTipText        = cTooltip
             chButton:DescriptionText    = cTooltip
             chButton:WIDTH              = 20
             chButton:HEIGHT             = 55
             chButton:Style = 4.
 
    
Thanks.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.234 seconds.