You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I can customize a tooltip using BeginDragDropSource with ImGuiDragDropFlags_SourceNoPreviewTooltip, but not the position because i cannot disable the SetNextWindowPos call. Previously SetNextWindowPos was called inside BeginDragDropSource which disabled its call. Perhaps there is a reason for this. At the moment I see two fixes:
Will go back to the old version. Where the tooltip position is set inside BeginDragDropSource.
Add a flag ImGuiTooltipFlags_IgnoreDragDrop which should be checked here. Something like of this: if ((tooltip_flags & ImGuiTooltipFlags_IgnoreDragDrop) == 0 && (g.DragDropWithinSource || g.DragDropWithinTarget))
The text was updated successfully, but these errors were encountered:
AspectUnk
changed the title
Customizing position of the drap and drop tooltip
Customizing position of the drag and drop tooltip
Oct 31, 2023
Hello, this should now be solved with 1e939fc, it was a pretty simple change. You can now call SetNextWindowPos() before BeginTooltip() while in a drag and drop source or target.
I wonder if we should introduce a new ImGuiCond_NoOverrideSetExistingValue flag to formalize this idiom since it is used in various places.
Hello. I can customize a tooltip using
BeginDragDropSource
withImGuiDragDropFlags_SourceNoPreviewTooltip
, but not the position because i cannot disable theSetNextWindowPos
call. PreviouslySetNextWindowPos
was called insideBeginDragDropSource
which disabled its call. Perhaps there is a reason for this. At the moment I see two fixes:BeginDragDropSource
.ImGuiTooltipFlags_IgnoreDragDrop
which should be checked here. Something like of this:if ((tooltip_flags & ImGuiTooltipFlags_IgnoreDragDrop) == 0 && (g.DragDropWithinSource || g.DragDropWithinTarget))
The text was updated successfully, but these errors were encountered: