- This topic has 8 replies, 2 voices, and was last updated 6 years, 11 months ago by HeDiBo.
-
AuthorPosts
-
September 6, 2017 at 9:46 am #37586HeDiBoParticipant
The demo program shows this:
[attachment=8440:FrameBarBug.jpg]
With these settings, clicking a title does not show the frame anymore.
September 8, 2017 at 12:19 pm #57028HeDiBoParticipant'HeDiBo' wrote:The demo program shows this:
[attachment=8440:FrameBarBug.jpg]
With these settings, clicking a title does not show the frame anymore.
Problem not solved in AC 12.16
September 9, 2017 at 4:47 am #57034SupportKeymasterTitles in this component are implemented by SpeedButtons.
Standard dragging way used in these buttons and has a standard behavior.
Standard button can't clicked if DragMode is dmAutomatic.
This is a reason why title can't be clicked when DragItems is True, I will think how to avoid it, but can't promise a success because implementation of dragging has low level in VCL and can't be changed.
September 9, 2017 at 9:24 am #57036HeDiBoParticipant'Support' wrote:Titles in this component are implemented by SpeedButtons.
Standard dragging way used in these buttons and has a standard behavior.
Standard button can't clicked if DragMode is dmAutomatic.
This is a reason why title can't be clicked when DragItems is True, I will think how to avoid it, but can't promise a success because implementation of dragging has low level in VCL and can't be changed.
Hi Serge,
Clicking a title in a frame bar should show the frame. Otherwise the frame bar has no reason to exist.
If it cannot be solved (I really doubt that), the property DragItems should have reduced visibility from Published to Public. A programmer will not make the mistake setting it, but there's still a possibility to set it programmatically in specific and temporary situations.
October 18, 2017 at 1:51 pm #57138HeDiBoParticipant'Support' wrote:Titles in this component are implemented by SpeedButtons.
Standard dragging way used in these buttons and has a standard behavior.
Standard button can't clicked if DragMode is dmAutomatic.
This is a reason why title can't be clicked when DragItems is True, I will think how to avoid it, but can't promise a success because implementation of dragging has low level in VCL and can't be changed.
It's not solved in 12.18
If it cannot be solved, remove the DragItems property altogether. It makes the TsFrameBar unusable.
You might also move the visibility to Public. That means programmatically you can still enable dragging in some way. But you have to reset it upon DragDrop. An ugly solution.
October 19, 2017 at 10:24 am #57159SupportKeymaster'HeDiBo' wrote:If it cannot be solved, remove the DragItems property altogether. It makes the TsFrameBar unusable.The Visible property can make the component unusable too 🙂
The behavior of the component is depended from developer in this cases, I think.
Maybe someone have own opinion and can share it here? The DragItems property should be Published or Public?
October 19, 2017 at 3:57 pm #57168HeDiBoParticipant'Support' wrote:The Visible property can make the component unusable too 🙂
The behavior of the component is depended from developer in this cases, I think.
Absolutely. But making a component unusable at design time without the designer knowing what causes the problem (having a drag and drop functionality seems like a usable thing) that's a bit too much.
Visibility is not a good example, because the name Visible suggests its functionality. The property DragItems does not suggest the component will not work anymore if set to True. Maybe it should be called DisableExpand?
Having said that, what is the purpose of DragItems?
October 26, 2017 at 6:43 am #57184SupportKeymasterA purpose of this property is switching of the component to the special editing mode where order of items may be changed by user.
December 20, 2017 at 4:54 pm #57413HeDiBoParticipant'Support' wrote:A purpose of this property is switching of the component to the special editing mode where order of items may be changed by user.
Now that the property is gone from Published to Public, it may be a good idea to implement the event OnAfterDragItem so that the programmer can reset the DragItems property.
-
AuthorPosts
- You must be logged in to reply to this topic.