<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : CommandBarEdit SpinButtons</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : CommandBarEdit SpinButtons]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 15 Aug 2026 08:14:59 +0000</pubDate>
  <lastBuildDate>Tue, 10 Jul 2007 00:22:29 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=6220</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[CommandBarEdit SpinButtons : Yes, when control has focus Control.Text...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6220&amp;PID=24343&amp;title=commandbaredit-spinbuttons#24343</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6220<br /><strong>Posted:</strong> 10 July 2007 at 12:22am<br /><br />Yes, when control has focus Control.Text property will not work. as solution use SetWindowText API:<DIV>&nbsp;</DIV><DIV>Private Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Long</DIV><DIV>...</DIV><DIV><BR>&nbsp;&nbsp; If (Control.Id = 1300) Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If (Code = 4112) Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SetWindowText Control.EditHandle, "Some new Text+"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Handled = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If</DIV>]]>
   </description>
   <pubDate>Tue, 10 Jul 2007 00:22:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6220&amp;PID=24343&amp;title=commandbaredit-spinbuttons#24343</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBarEdit SpinButtons : I&amp;#039;m doing a similar thing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6220&amp;PID=24330&amp;title=commandbaredit-spinbuttons#24330</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2962">bobmazanec</a><br /><strong>Subject:</strong> 6220<br /><strong>Posted:</strong> 09 July 2007 at 1:36pm<br /><br /><DIV>I'm doing a similar thing with a simple CommandBarEdit whose value I want to keep positive.</DIV><DIV>&nbsp;</DIV><DIV>When I set Handled=True (as shown in the "workaround"), I can check the value and modify the Text.&nbsp; However, the Up/Down keys no longer activate the corresponding spinner buttons.</DIV><DIV>&nbsp;</DIV><DIV>When I leave Handled=False, the Up/Down keys work as expected, but any changes I make to the CommandBarEdit's Text are lost/overridden.</DIV><DIV>&nbsp;</DIV><DIV>I have also tried&nbsp;checking/setting the Text and setting Handled=True in the&nbsp;Code 768 handler, but still to no avail.</DIV><DIV>&nbsp;</DIV><DIV>Any suggestions?</DIV>]]>
   </description>
   <pubDate>Mon, 09 Jul 2007 13:36:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6220&amp;PID=24330&amp;title=commandbaredit-spinbuttons#24330</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBarEdit SpinButtons : That&amp;#039;s work perfectly !!! Thank...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6220&amp;PID=19718&amp;title=commandbaredit-spinbuttons#19718</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1588">spol</a><br /><strong>Subject:</strong> 6220<br /><strong>Posted:</strong> 25 January 2007 at 5:15am<br /><br />That's work perfectly !!!<br />Thank you very much! <img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" align="middle"> ]]>
   </description>
   <pubDate>Thu, 25 Jan 2007 05:15:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6220&amp;PID=19718&amp;title=commandbaredit-spinbuttons#19718</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBarEdit SpinButtons : Hi,  here workaround:  Private...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6220&amp;PID=19717&amp;title=commandbaredit-spinbuttons#19717</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6220<br /><strong>Posted:</strong> 25 January 2007 at 5:07am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>here workaround:</DIV><DIV>&nbsp;</DIV><DIV>Private Sub CommandBars1_ControlNotify(ByVal Control As XtremeCommandBars.ICommandBarControl, ByVal Code As Long, ByVal NotifyData As Variant, Handled As Variant)<BR>&nbsp;&nbsp;&nbsp; If (Control.Id = 100) Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If (Code = 4112) Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.Text = "Some new Text+"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Handled = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If (Code = 4113) Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.Text = "Some new Text-"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Handled = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; End If<BR>End Sub</DIV>]]>
   </description>
   <pubDate>Thu, 25 Jan 2007 05:07:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6220&amp;PID=19717&amp;title=commandbaredit-spinbuttons#19717</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBarEdit SpinButtons : Hi all, I would like to create...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6220&amp;PID=19713&amp;title=commandbaredit-spinbuttons#19713</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1588">spol</a><br /><strong>Subject:</strong> 6220<br /><strong>Posted:</strong> 25 January 2007 at 3:52am<br /><br />Hi all,<br />I would like to create a date-time picker. I added a xtpControlEdit commandbar with the ShowSpinButtons set to true and set its text to now(). But when I click on one spin button the text turn to a number and it work as un up-down counter. Is there a way to intercept the ShowSpinButtons events so that I can add and substract one hour to the the control text?<br />Thanks,<br />Paolo<br />]]>
   </description>
   <pubDate>Thu, 25 Jan 2007 03:52:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6220&amp;PID=19713&amp;title=commandbaredit-spinbuttons#19713</guid>
  </item> 
 </channel>
</rss>