<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[SetMousePointer() will not &quot;stick&quot; in GeDialog]]></title><description><![CDATA[<p dir="auto">Hey guys,</p>
<p dir="auto">Sorry in advance for not providing any code. I guess this question is more about the general implementation of "SetMousePointer" as opposed to my specific code.</p>
<p dir="auto"><strong>Context</strong>: In my GeDialog plugin are some GeUserArea-s. Each GeUserArea contains buttons (i.e. custom "DrawRectangle"-s), all of which all have a "hover" effect upon the mouse-over and mouse-out events of the user's cursor. That's all working well.</p>
<p dir="auto"><strong>Goal</strong>:  As a way to wrap up the UX for the buttons, I would like to have the mouse cursor change into a "MOUSE_POINT_HAND" (int 19) when hovering over the buttons and revert back to "MOUSE_NORMAL" (int 2) when hovering out.</p>
<p dir="auto"><strong>Problem</strong>: Upon moving my mouse within the GeDialog/GeUserArea-s, my mouse cursor will constantly be flickering/oscillating between the "MOUSE_POINT_HAND" cursor and the default cursor.</p>
<p dir="auto"><strong>Hypothesis</strong>: I'm wondering if the problem could be due to the few "Redraw()" calls and one "OffScreenOn()" call on my GeUserArea-s, but even after commenting them out, the mouse cursor still flickers between its "MOUSE_POINT_HAND" and default state anywhere within my GeDialog.</p>
<p dir="auto"><strong>Question</strong>: Is my hypothesis above correct, or is there some part of the built-in GeDialog or GeUserArea modules that overwrite the cursor state?</p>
<p dir="auto">That is all. Any guidance or help would be greatly appreciated.</p>
<p dir="auto">Thank you very much!</p>
]]></description><link>http://developers.maxon.net/forum/topic/15330/setmousepointer-will-not-stick-in-gedialog</link><generator>RSS for Node</generator><lastBuildDate>Tue, 19 May 2026 00:46:30 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/15330.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 Jan 2024 21:52:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SetMousePointer() will not &quot;stick&quot; in GeDialog on Wed, 17 Jan 2024 14:49:19 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/justinleduc">@<bdi>justinleduc</bdi></a>,</p>
<p dir="auto">Sorry for the delayed answer.</p>
<p dir="auto">You have a point that the discussion on some abstract questions doesn't require any code. However, you have a very specific question, namely you're struggling from your cursor constantly flickering between cursor states. This is your exact code that produces this undesirable result, so this is not an abstract question.</p>
<p dir="auto">According to my observations there's no issues with flickering cursor in GeUserArea in C4D 2024.2. You can find some good examples in our <a href="https://github.com/PluginCafe/cinema4d_cpp_sdk_extended/tree/master/plugins/example.main/source/gui" target="_blank" rel="noopener noreferrer nofollow ugc">C++ repository</a>. for example you can start with <a href="https://github.com/PluginCafe/cinema4d_cpp_sdk_extended/blob/master/plugins/example.main/source/gui/gedialog_gadgets.cpp" target="_blank" rel="noopener noreferrer nofollow ugc">C++ SDK - Example Dialog</a>. Please also make sure you familiarized yourself with the following manual pages:</p>
<ul>
<li><a href="https://developers.maxon.net/docs/cpp/2024_2_0/page_manual_guimessages.html" target="_blank" rel="noopener noreferrer nofollow ugc">GUI and Interaction Messages Manual</a></li>
<li><a href="https://developers.maxon.net/docs/cpp/2024_2_0/page_manual_gedialog.html" target="_blank" rel="noopener noreferrer nofollow ugc">GeDialog Manual</a></li>
<li><a href="https://developers.maxon.net/docs/cpp/2024_2_0/page_manual_geuserarea.html" target="_blank" rel="noopener noreferrer nofollow ugc">GeUserArea Manual</a></li>
</ul>
<p dir="auto">Especially the <a href="https://developers.maxon.net/docs/cpp/2024_2_0/page_manual_geuserarea.html#page_manual_geuserarea_custom" target="_blank" rel="noopener noreferrer nofollow ugc">GeUserArea::Message()</a> would be something of your interest.</p>
<p dir="auto">If you're still observing the issue please provide a minimal code snippet that gives context to our discussion.</p>
<p dir="auto">Cheers,<br />
Ilia</p>
]]></description><link>http://developers.maxon.net/forum/post/73547</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/73547</guid><dc:creator><![CDATA[i_mazlov]]></dc:creator><pubDate>Wed, 17 Jan 2024 14:49:19 GMT</pubDate></item></channel></rss>