Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Bug in PushButton Control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Bug in PushButton Control

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


Joined: 03 October 2014
Location: United States
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdefulio Quote  Post ReplyReply Direct Link To This Post Topic: Bug in PushButton Control
    Posted: 12 October 2014 at 6:04pm
Setting the MultiLine property to true while the PushButton control is not visible forces the control to become visible even though the control property visible is still set to false.  When dynamically building a form with buttons on it, I had to work around the issue by moving the control off the form before setting the MultiLine property, and then move it back into view.   In my case I layout the form dynamically and the buttons are invisible until the program needs that particular button to be available to the user.  Before applying this workaround all my buttons were visible even though the visible property was still set to false, and the culprit was configuring the MultiLine property at runtime while the button was hidden.

The problem
  • Button(Index).Visible = False
  • Button(Index).MultiLine = true    ' this appears to be a control bug, setting this value forces the button to become visible again
  • Button(Index).Visible = False   ' button is still visible 
  • Button(Index).Visible = True    
  • Button(Index).Visible = False   ' now the button is invisible
The workaround
  • OldTop = Button(Index).Top
  • OldLeft = Button(Index).Left
  • Button(Index).Move -1000, -1000 ' move button off screen
  • Button(Index).Visible = True ' make it visible
  • Button(Index).MultiLine = true      ' set multiline property
  • Button(Index).Visible = False ' make it invisible
  • Button(index).Move OldLeft, OldTop ' move it back onto the screen 
  
Back to Top
mcmastl View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 April 2015
Status: Offline
Points: 79
Post Options Post Options   Thanks (0) Thanks(0)   Quote mcmastl Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2015 at 12:15pm
Hello and thank you for letting us know of this issue.  We have brought this up to the development team and will be looking into it.  If this issue has been resolved please let us know.
Luke McMasters, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.184 seconds.