![](templates/Classic/images/spacer.gif) |
Arde Enchanter
Joined: 09 Sep 2007 Posts: 605
|
Posted: Tue Jun 17, 2008 3:46 pm
[2.27] Disappearing toggle sample button |
Initially I thought that this bug is related to %btncol() function call, but later I discovered that it was not the case. Looks like any toggle button inserted via xml tab of the PE is subject to this bug. So now I think this bug is a side-effect of fixing "There must be at least one field" bug in 2.26
1) Start CMUD, load the untitled session, open the PE.
2) Switch to the xml tab and enter there:
Code: |
<button type="Toggle" priority="10" id="1">
<caption>Test</caption>
<state caption="Pressed"></state>
</button> |
Click Save or close and open the PE to get the tree control updated with new information.
3) Click on the button in the tree and then try to click on the sample button in the editor above the button name. The button will disappear. Note, that if you create a button with editor New\Button menu, then the sample button will not disappear.
I somehow got this effect in my primary package with just using the editor without editing xml code, but I can't remember how. |
|
|
![](templates/Classic/images/spacer.gif) |
Zugg MASTER
![](images/avatars/164475849040f41c23b22fe.gif)
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Jun 17, 2008 9:24 pm |
Confirmed and added to bug list.
Edited: Actually, the bug is a bit different than you might think. Clicking on a toggle sample button just changes the focus to the "pressed" button state. If you just click on the "Pressed" button state in the tree on the left, you will also see the button disappear.
The actual bug is that the sample button for a toggle button pressed state is not being displayed. Doesn't have anything to do with clicking on it or not.
Edited: Ok, actually this is weird. It's more like you said with the XML. Creating the button normally works fine. Only when the button is created by pasting XML does it have this problem. Very odd. |
|
|
![](templates/Classic/images/spacer.gif) |
Arde Enchanter
Joined: 09 Sep 2007 Posts: 605
|
Posted: Thu Jun 19, 2008 9:26 pm |
Ah, I've missed all the edited Zugg text in this thread...
Thanks for getting this fixed btw! ![Smile](images/smiles/icon_smile.gif) |
|
_________________ My personal bug|wish list:
-Wrong Priority when copy-paste setting
-1 prompt trigger for Mapper, Session and General Options, not 3 different!
-#SECTION can terminate threads
-Buttons can't start threads |
|
|
![](templates/Classic/images/spacer.gif) |
|
|