Print Page | Close Window

Caption is overlapping with icons

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=12298
Printed Date: 07 October 2024 at 10:25am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Caption is overlapping with icons
Posted By: Ahis
Subject: Caption is overlapping with icons
Date 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



Replies:
Posted By: Oleg
Date Posted: 30 September 2008 at 9:32am

Hi,

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

 



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Ahis
Date Posted: 30 September 2008 at 9:40am


Sorry. i overlooked the image function

Thanks again!


Posted By: Ahis
Date 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?


Posted By: Oleg
Date 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


Posted By: Ahis
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net