Bug in PushButton Control
Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=22435
Printed Date: 30 November 2024 at 3:56pm Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Bug in PushButton Control
Posted By: rdefulio
Subject: Bug in PushButton Control
Date 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
|
Replies:
Posted By: mcmastl
Date 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
|
|