Disappearing button issue [BUG# 5921]

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Disappearing button issue [BUG# 5921]

Re: Disappearing button issue [BUG# 5921]

by Peke » Wed Aug 26, 2009 9:14 pm

Re: Disappearing button issue

by byakuyabo » Tue Aug 25, 2009 11:50 pm

I have finally found a workaround for this issue. If you create a new panel in the InitConfigSheet and make the button a child of this new panel rather than Panel, the button displays normally when you mouse over it, including the mouseover animation. As this fix does not seem to work with TranspPanel objects, you need to enlarge and recenter then panel if you don't want its borders to show up in your otherwise beautiful UI. The following sample code shows an example :

Code: Select all

Sub InitConfigSheet(Panel)

  Dim testPanel : Set testPanel = SDB.UI.NewPanel(Panel)
  testPanel.Common.Left = -4
  testPanel.Common.Top = -4
  testPanel.Common.Width = 444
  testPanel.Common.Height = 49

  Dim testBtn : Set testBtn = SDB.UI.NewButton(testPanel)
  testBtn.Caption = "Test Button"
  testBtn.Common.Left = 4
  testBtn.Common.Top = 11

End Sub
I hope that this is helpful to other people. Hopefully, this bug will be fixed whenever the next version of MM comes out.

byakuyabo

Re: Disappearing button issue

by Eyal » Sat Aug 22, 2009 12:53 am

Yes, the fact is that Glided skin has no definitions for the Button, Scrollbars and Tabs objects. Thus Windows is overriding them using its default objects. There might be an issue since MM 3.1 (?) with SDB.UI.NewButton() method that don't correctly interact with the skinning engine, so leaving it to Windows resolves the problem. But that only my guess...

Re: Disappearing button issue

by byakuyabo » Fri Aug 21, 2009 10:53 pm

I haven't found a solution to this problem yet on my own, but I found a couple of things that might be helpful.

First, I am apparently not the only person having this problem. StayInSameStyleDJ suffers from the same issue, as someone mentioned in the first posting by SatinKnights on this page. However, there was no reply. Does anyone know of any scripts that add custom buttons using SDB.UI.NewButton that do not have this issue with the default skins other than Gilded?

Second, I notice a couple of items in the Skinning Guide that looked like they could be related to the issue, since it seems to be related to the hover/mouseover effect in the Skin.
Button
Defines the look/behaviour of OK/Cancel/Other buttons that appear within dialogs
NavBar
Navigation bar settings
Background - navigation panel background
Node\Selection - background for selected node (mouse is hover it)
Does anyone with skinning skills know if there is a way to override this kind of thing for either all Buttons or one particular Button using a script? Any help or hints at all would be very helpful.

Thanks,
byakuyabo

Disappearing button issue [BUG# 5921]

by byakuyabo » Mon Aug 17, 2009 1:36 am

Hello, newbie here. I am mostly done with a new AutoDJ script, but I have run into trouble adding an interface for adjusting settings in the Options menu. If I add a button, the button looks fine initially, but if you move the mouse pointer over it, it disappears. The button will then flicker on for a very brief moment when the mouse pointer either enters or leaves the button area, but will then vanish again. Curiously, this problem seems not to happen with the Gilded skin, but does occur with all of the other skins included in the software.

Here is a very simple version of the code that will demonstrate this issue when used in an AutoDJ script:

Code: Select all

Sub InitConfigSheet(Panel)
  Dim advButton
  Set advButton = SDB.UI.NewButton(Panel)
  advButton.Caption = "Advanced"
End Sub
This issue seems pretty basic, but I cannot figure out any way to fix it. I suspect that the problem may be related to hover animations, but I have no idea what to do about it. I would like the options interface for my script to work with all default skins. Can anyone help me?

Thanks,
byakuyabo

Top