messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2013-05-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Antonio.\nI procedure I want to convert, I'm frequently using come functions that in Xharbour commercial are really fast,\nlike cmfilter(), cmfiltcount, cmxkeycount(), because they are using the Rushmore technology. Do you think that is possible\nto use something similar ? I've tried with dbfilter(), but is really slow on big tables. \nThanks.\nP.S. When I'll start to convert all the application, maybe I'll request you some help.", "time": "16:22", "topic": "Codejock Calendar Samples?", "username": "Massimo Linossi" } ]
Codejock Calendar Samples?
[ { "date": "2013-05-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nMy pleasure , i would be glad to help\n\nI will publish a copy of my codejock program running (same program) with Xharbour and Harbour\n\nMassimo : Sorry about the link, we had a hack on our servers 3 months ago and we had to reinstall almost everything, this sample was not backed.\n\nI can provide any help on Codejock if you need, just let me know.\n\nJust to mention, i have moved all my applications from xharbour/bcc 5.82 to Harbour/MSVC 2010. \n\nRegards,\n\nRichard", "time": "18:23", "topic": "Codejock Calendar Samples?", "username": "Richard Chidiak" } ]
Codejock Calendar Samples?
[ { "date": "2013-05-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks Richard, very kind.\nNo problem with the link, I've made some tests with the one that Antonio has published.\nThe problem is that I receive some errors when I try to run it. And if I correct one line there is another one\nthat is generating another error. And so on. So I think that the problem is not the code but the compiler,\nbecause if you have published that code, it was working. For these reasons I want to change the compiler and\nto pass to Harbour, and to test also MSVC. \nWhen I'm ready to make the transition, If I can ask something to you it will be a great help.\nThanks a lot.\nMassimo", "time": "18:37", "topic": "Codejock Calendar Samples?", "username": "Massimo Linossi" } ]
Codejock Calendar Samples?
[ { "date": "2013-05-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Massimo and Richard,\n\nI am also working with Codejock. I originally had it running perfectly with xHarbour ( .com ), but I've been transition my primary application to Harbour / MSVC 2010.\n\nI have further testing to do with some of my other ActiveX controls, but so far it looks like everything is running well. I don't do major updates for my clients over the summer ( only smaller modifications automatically updated ). However, my goal is to release for general use the MSVC version in September.\n\nI would strongly encourage people to make this shift. Ultimately I think we will see more potential for integration. Yes, we are likely to also do the shift to 2012 Visual Studio with Harbour / FWH. There is great potential there.\n\nRichard, you can also share my calendar program because I believe it is an easier implementation. Just remove the license key .... but I think you already have it without that.\n\nTim", "time": "19:08", "topic": "Codejock Calendar Samples?", "username": "TimStone" } ]
Codejock Calendar Samples?
[ { "date": "2013-05-25", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":1lmvzq7n]Enrico,\n\nCould you provide a small self contained example ? thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->[/quote:1lmvzq7n]\n\nHere it is:\n\n[code=fw:1lmvzq7n]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> hBkg := HB_BACKGROUNDADD<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> || Tone<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">440</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">10</span>, .F. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> hIdl := HB_IDLEADD<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> || HB_BackGroundRun<span style=\"color: #000000;\">&#40;</span> hBkg <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; SET BACKGROUND TASKS <span style=\"color: #0000ff;\">ON</span><br /><br />&nbsp; &nbsp; HB_BACKGROUNDACTIVE<span style=\"color: #000000;\">&#40;</span> hBkg, .T. <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; INKEY<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; SET BACKGROUND TASKS OFF<br /><br />&nbsp; &nbsp; HB_BACKGROUNDDEL<span style=\"color: #000000;\">&#40;</span> hBkg <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; HB_IDLEDEL<span style=\"color: #000000;\">&#40;</span> hIdl <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:1lmvzq7n]\n\nEMG", "time": "19:13", "topic": "Codejock Calendar Samples?", "username": "Enrico Maria Giordano" } ]
Codejock Calendar Samples?
[ { "date": "2013-05-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nHere you can review Harbour threads management great examples:\n\n[url:39rda0yi]https&#58;//github&#46;com/harbour/core/tree/master/tests/mt[/url:39rda0yi]\n\nSurely there are some that are very similar. I wonder if xharbour supports them.\n\nI think that we could implement the function HB_BACKGROUNDADD() using Harbour functions...", "time": "20:37", "topic": "Codejock Calendar Samples?", "username": "Antonio Linares" } ]
Codejock Calendar Samples?
[ { "date": "2013-05-25", "forum": "FiveWin for Harbour/xHarbour", "text": "What if I don't want to use multithreading libs (they would inflate my EXEs, I suppose)?\n\nEMG", "time": "20:47", "topic": "Codejock Calendar Samples?", "username": "Enrico Maria Giordano" } ]
Codejock Calendar Samples?
[ { "date": "2013-05-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr. Enrico,\n\nWhy are you afraid with exe sizes with present Ram sizes of the Pcs?.\n\nAlso, I indicated you some swithcs for latest BCC to reduce size. Are you happy with them?.\n\nThank you.", "time": "20:52", "topic": "Codejock Calendar Samples?", "username": "lucasdebeltran" } ]
Codejock Calendar Samples?
[ { "date": "2013-05-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nHere you have a Harbour example similar to yours:\n\n[code=fw:kbpaf0em]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> thID := hb_threadStart<span style=\"color: #000000;\">&#40;</span> @thFunc<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ok\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> thFunc<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> n <br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">for</span> n = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">10</span><br />&nbsp; &nbsp; &nbsp; Tone<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">440</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">next</span> &nbsp; <br />&nbsp; &nbsp;<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:kbpaf0em]", "time": "20:53", "topic": "Codejock Calendar Samples?", "username": "Antonio Linares" } ]
Codejock Calendar Samples?
[ { "date": "2013-05-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Using a codeblock:\n\n[code=fw:7hcztbq3]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00C800;\">static</span> bAction<br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> thId<br /><br />&nbsp; &nbsp;bAction = <span style=\"color: #000000;\">&#123;</span> || Tone<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">440</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;thId = hb_threadStart<span style=\"color: #000000;\">&#40;</span> @thFunc<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ok\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> thFunc<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> n <br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">for</span> n = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">10</span><br />&nbsp; &nbsp; &nbsp; Eval<span style=\"color: #000000;\">&#40;</span> bAction <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">next</span> &nbsp; <br />&nbsp; &nbsp;<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:7hcztbq3]", "time": "20:55", "topic": "Codejock Calendar Samples?", "username": "Antonio Linares" } ]
Codejock Calendar Samples?
[ { "date": "2013-05-25", "forum": "FiveWin for Harbour/xHarbour", "text": "In order to build those examples hbvmmt.lib has to be linked instead of hbvm.lib\n\nand also from Borland, we have to link cw32mt.lib instead of cw32.lib", "time": "20:56", "topic": "Codejock Calendar Samples?", "username": "Antonio Linares" } ]
Codejock Calendar Samples?
[ { "date": "2013-05-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nMy example size built using threads is 2.515.416 bytes\n\nwithout threads: 2.486.784 bytes\n\nvery little difference <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "21:00", "topic": "Codejock Calendar Samples?", "username": "Antonio Linares" } ]
Codejock Calendar Samples?
[ { "date": "2013-05-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nKeep in mind that if you are not using threads then you are slicing the Harbour virtual machine execution process and slowing the whole app.", "time": "21:01", "topic": "Codejock Calendar Samples?", "username": "Antonio Linares" } ]
Codejock Calendar Samples?
[ { "date": "2013-05-25", "forum": "FiveWin for Harbour/xHarbour", "text": "[b:2m3kyv6v]Understanding Harbour MultiThread:[/b:2m3kyv6v]\n\n[url:2m3kyv6v]https&#58;//docs&#46;google&#46;com/document/d/1xxRphZ5TIGbn5rOWQ_35VVcw8Yex63A4MKXimfq0MVg/edit[/url:2m3kyv6v]\n\n[b:2m3kyv6v]Harbour MT Mode and ST Mode[/b:2m3kyv6v]\n\n[url:2m3kyv6v]https&#58;//docs&#46;google&#46;com/document/d/1S2IgJ196AMxp83Ur-U5GwqOLeTjxObr-ykqI1RbZOdI/edit[/url:2m3kyv6v]", "time": "21:06", "topic": "Codejock Calendar Samples?", "username": "Antonio Linares" } ]
Codejock Calendar Samples?
[ { "date": "2013-05-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you Master. I'll try it.\n\nEMG", "time": "23:25", "topic": "Codejock Calendar Samples?", "username": "Enrico Maria Giordano" } ]
Codejock Calendar Samples?
[ { "date": "2013-05-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Sorry, the background task is only one of the incompatibilities I found. The warnings is another one (see an old thread on this subject). <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->\n\nEMG", "time": "23:48", "topic": "Codejock Calendar Samples?", "username": "Enrico Maria Giordano" } ]
Codejock Calendar Samples?
[ { "date": "2013-05-26", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"lucasdebeltran\":2at4nkkl]Mr. Enrico,\n\nWhy are you afraid with exe sizes with present Ram sizes of the Pcs?.[/quote:2at4nkkl]\n\nIt's not about RAM size, mostly about sending time. But I agree, it is a minor problem. The warnings problem is a more important one:\n\n[url:2at4nkkl]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=25987[/url:2at4nkkl]\n\n[quote=\"lucasdebeltran\":2at4nkkl]Also, I indicated you some swithcs for latest BCC to reduce size. Are you happy with them?.[/quote:2at4nkkl]\n\nNo, sorry. <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->\n\nEMG", "time": "08:29", "topic": "Codejock Calendar Samples?", "username": "Enrico Maria Giordano" } ]
Codejock Calendar Samples?
[ { "date": "2013-05-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n[quote=\"Antonio Linares\":dx8i9i7u]Enrico,\n\nHere you have a Harbour example similar to yours:[/quote:dx8i9i7u]\n\nIt looks like your sample doesn't act as mine. My sample continually beeps while yours beeps 10 time and then stops. How can it be forced to run the function each second?\n\nEMG", "time": "09:09", "topic": "Codejock Calendar Samples?", "username": "Enrico Maria Giordano" } ]
Codejock Calendar Samples?
[ { "date": "2013-05-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nYou could call GetTickCount() and measure the time for the beeping", "time": "12:19", "topic": "Codejock Calendar Samples?", "username": "Antonio Linares" } ]
Codejock Calendar Samples?
[ { "date": "2013-05-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n[quote=\"Antonio Linares\":33s8738g]Enrico,\n\nYou could call GetTickCount() and measure the time for the beeping[/quote:33s8738g]\n\nUnless I'm missing something, your sample calls the function only once. I need something that calls the function once per second. Can it be done using threads?\n\nEMG", "time": "12:36", "topic": "Codejock Calendar Samples?", "username": "Enrico Maria Giordano" } ]
Codejock Calendar Samples?
[ { "date": "2013-05-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nMy idea was to perform an action from the called function, every x seconds\n\nthats why I thought about using GetTickCount(), to wait x seconds to do whatever", "time": "16:29", "topic": "Codejock Calendar Samples?", "username": "Antonio Linares" } ]
Codejock Calendar Samples?
[ { "date": "2013-05-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n[quote=\"Antonio Linares\":2e8qb9ln]Enrico,\n\nMy idea was to perform an action from the called function, every x seconds\n\nthats why I thought about using GetTickCount(), to wait x seconds to do whatever[/quote:2e8qb9ln]\n\nUnderstood! Many thanks, Master! I will try it. I start to experiment with threads using xHarbour, at the moment.\n\nEMG", "time": "17:51", "topic": "Codejock Calendar Samples?", "username": "Enrico Maria Giordano" } ]
Codejock Calendar Samples?
[ { "date": "2013-05-27", "forum": "FiveWin for Harbour/xHarbour", "text": "I'm opening a new topic right now...\n\nEMG", "time": "19:05", "topic": "Codejock Calendar Samples?", "username": "Enrico Maria Giordano" } ]
Codejock Calendar Samples?
[ { "date": "2023-01-21", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Richard Chidiak\":1idqzlfa]Frances Dutch and Norberto\n\nYou can download it from <!-- m --><a class=\"postlink\" href=\"http://www.cbati.com/tcodejock.zip\">http://www.cbati.com/tcodejock.zip</a><!-- m --> if any one else wants to download he is welcome, of course you will need to have the license from codejock and insert your own license number.\n\nThe class was made to fit my needs, i use it for scheduling , version 15.0.2 of the control installed one year ago.\n\nYou will find all the elements to get started with, i have joined the resources and images i use also.\n\nIf you need help, let me know , codejock is a fantastic product while their support is very bad... unfortunately. Initially the class was set by Reinaldo Crespo and Tim Stone and highly updated by me.\nSpecial thanks also to Daniel Garcia Gil who helped me also getting stated a year ago.\n\nHaving more fivewinners using this control is good, we may share more expertise.\n\nLooking forward for your comments,\n\nTo Lucas , there is no way to compare the calex class to codejock, there is a lot to do for the same functions. I have joined some images of what can be done with codejock, it is self explaining\n\nRegards[/quote:1idqzlfa]\n\nHi Richard,\nCould you share tcodejock.zip or PLANPREF.dbf structure. thank you.", "time": "11:33", "topic": "Codejock Calendar Samples?", "username": "richard-service" } ]
Codejock Calendar Samples?
[ { "date": "2023-01-23", "forum": "FiveWin for Harbour/xHarbour", "text": "I believe you can get a trial from Codejock. I have used the Calendar for many years and it has been 100% reliable.", "time": "22:12", "topic": "Codejock Calendar Samples?", "username": "TimStone" } ]
Codejock Calendar Samples?
[ { "date": "2023-01-24", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"TimStone\":1vf47p5j]I believe you can get a trial from Codejock. I have used the Calendar for many years and it has been 100% reliable.[/quote:1vf47p5j]\n\nHi, Tim\nI had it and working for ribbonbar of Codejock. I just want to try Calendar functions.", "time": "07:37", "topic": "Codejock Calendar Samples?", "username": "richard-service" } ]
Codejock Calendar Samples?
[ { "date": "2023-01-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Please look in FWH samples for schedule.prg, schedule.dbf, and schedule.dbt.\n\nThis provides you with a full running appointment scheduler/calendar using Codejock.\n\nYou can download a test version of Codejock Calendar control from their website.", "time": "23:38", "topic": "Codejock Calendar Samples?", "username": "TimStone" } ]
Codejock Calendar Samples?
[ { "date": "2023-01-25", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"TimStone\":3kwdfb05]Please look in FWH samples for schedule.prg, schedule.dbf, and schedule.dbt.\n\nThis provides you with a full running appointment scheduler/calendar using Codejock.\n\nYou can download a test version of Codejock Calendar control from their website.[/quote:3kwdfb05]\n\nOK. Thanks a lot.", "time": "03:35", "topic": "Codejock Calendar Samples?", "username": "richard-service" } ]
Codejock Calendar Samples?
[ { "date": "2012-06-07", "forum": "FiveWin for Harbour/xHarbour", "text": "I've had Codejock's calendar integrated to my main application using xHarbour/xCC/FWH for over a year and it works very well.\n\nHere is the code that works perfectly in xHarbour to build the calendar:\n\n[code=fw:1g1q8bqo]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">METHOD</span> BuildCalex<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> MpCal<br /><span style=\"color: #00C800;\">local</span> oErr<br /><br />    <span style=\"color: #00C800;\">TRY</span>     <br />        ::<span style=\"color: #000000;\">oCalex</span> := tActiveX<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oPanelCalex</span>, <span style=\"color: #ff0000;\">\"Codejock.CalendarControl.15.0.1\"</span> <span style=\"color: #000000;\">&#41;</span><br />    CATCH oErr<br />        MsgStop<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Missing installation Components\"</span>, <span style=\"color: #ff0000;\">\"Aborting\"</span> <span style=\"color: #000000;\">&#41;</span><br />        Quit<br />    END <br />    <br />    with object ::<span style=\"color: #000000;\">oCalex</span><br />    <br />        :<span style=\"color: #000000;\">VisualTheme</span> = <span style=\"color: #000000;\">&#40;</span> xtpCalendarThemeOffice2007 <span style=\"color: #000000;\">&#41;</span><br />        :<span style=\"color: #000000;\">bOnEvent</span> = <span style=\"color: #000000;\">&#123;</span> | event, aParms | ::<span style=\"color: #000000;\">xTrmCalTriggeredEvents</span><span style=\"color: #000000;\">&#40;</span> Event, aParms <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />        :<span style=\"color: #000000;\">SetDataProvider</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Provider=custom\"</span> <span style=\"color: #000000;\">&#41;</span><br />        :<span style=\"color: #000000;\">DataProvider</span>:<span style=\"color: #000000;\">open</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />        :<span style=\"color: #000000;\">ShowCaptionBar</span> = <span style=\"color: #000000;\">&#40;</span> .f. <span style=\"color: #000000;\">&#41;</span>  <br />        :<span style=\"color: #000000;\">ShowCaptionBarSwitchViewButtons</span> = <span style=\"color: #000000;\">&#40;</span> .f. <span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">//turn off switch from day, week, month view on capbar</span><br />        :<span style=\"color: #000000;\">ViewType</span> = <span style=\"color: #000000;\">&#40;</span> xtpCalendarDayView <span style=\"color: #000000;\">&#41;</span><br />        :<span style=\"color: #000000;\">EnableToolTips</span><span style=\"color: #000000;\">&#40;</span>.t.<span style=\"color: #000000;\">&#41;</span><br />        :<span style=\"color: #000000;\">DayView</span>:<span style=\"color: #000000;\">TimeScaleMinTime</span> = <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">7</span>:<span style=\"color: #000000;\">00</span>:<span style=\"color: #000000;\">00</span> AM<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />        :<span style=\"color: #000000;\">DayView</span>:<span style=\"color: #000000;\">TimeScaleMaxTime</span> = <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">7</span>:<span style=\"color: #000000;\">00</span>:<span style=\"color: #000000;\">00</span> PM<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />        :<span style=\"color: #000000;\">DayView</span>:<span style=\"color: #000000;\">TimeScale</span> = <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">15</span> <span style=\"color: #000000;\">&#41;</span>  <br />                                :<span style=\"color: #000000;\">Options</span>:<span style=\"color: #000000;\">WorkDayStartTime</span> = <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">7</span>:<span style=\"color: #000000;\">00</span>:<span style=\"color: #000000;\">00</span> AM<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />        :<span style=\"color: #000000;\">DayView</span>:<span style=\"color: #000000;\">ScrollToWorkDayBegin</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>     <span style=\"color: #B900B9;\">//scroll the view to the work day starting time</span><br />        :<span style=\"color: #000000;\">Options</span>:<span style=\"color: #000000;\">DayViewTimeScaleShowMinutes</span> = <span style=\"color: #000000;\">&#40;</span> .t. <span style=\"color: #000000;\">&#41;</span><br />                                :<span style=\"color: #000000;\">EnableReminders</span><span style=\"color: #000000;\">&#40;</span> .t. <span style=\"color: #000000;\">&#41;</span><br />                                :<span style=\"color: #000000;\">RemindersUpdatePeriod</span> = <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">12</span>:<span style=\"color: #000000;\">10</span>:<span style=\"color: #000000;\">00</span> AM<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// Sample has #12:10:00 AM#   Call is as Date</span><br />  end<br /><br />   ::<span style=\"color: #000000;\">oPanelCalex</span>:<span style=\"color: #000000;\">oClient</span> = ::<span style=\"color: #000000;\">oCalex</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span><br /><br /><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------//</span><br /><span style=\"color: #00C800;\">METHOD</span> BuildDatePicker<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> MpCal<br /><span style=\"color: #00C800;\">local</span> nTmp<br /><span style=\"color: #00C800;\">local</span> oPanel, oErr, oWnd<br /><br />    <span style=\"color: #00C800;\">TRY</span><br />        ::<span style=\"color: #000000;\">oDtPick</span> := tActiveX<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oPanelExplorer</span>,<span style=\"color: #ff0000;\">\"Codejock.DatePicker.15.0.1\"</span> <span style=\"color: #000000;\">&#41;</span><br />        <br />        With Object ::<span style=\"color: #000000;\">oDtPick</span><br />            :<span style=\"color: #000000;\">Enabled</span> = <span style=\"color: #000000;\">&#40;</span> .t. <span style=\"color: #000000;\">&#41;</span><br />            :<span style=\"color: #000000;\">ShowWeekNumbers</span> = <span style=\"color: #000000;\">&#40;</span> .t. <span style=\"color: #000000;\">&#41;</span><br />            :<span style=\"color: #000000;\">VisualTheme</span> = <span style=\"color: #000000;\">&#40;</span> xtpCalendarThemeOffice2007 <span style=\"color: #000000;\">&#41;</span><br />            :<span style=\"color: #000000;\">AttachToCalendar</span><span style=\"color: #000000;\">&#40;</span> TOleAuto<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> ActXPDisp<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oCalex</span>:<span style=\"color: #000000;\">hActiveX</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />        End <br />        ::<span style=\"color: #000000;\">oPanelExplorer</span>:<span style=\"color: #000000;\">oClient</span> := ::<span style=\"color: #000000;\">oDtPick</span><br />    CATCH oErr<br />    <br />    END <br />    <br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------//</span><br /><span style=\"color: #00C800;\">METHOD</span> BuildStdDialogs<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> MpCal<br /><span style=\"color: #00C800;\">local</span> oErr<br /><br />    <span style=\"color: #00C800;\">TRY</span> <br /><br />        ::<span style=\"color: #000000;\">oCalexStdDlgs</span> := CreateObject<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Codejock.CalendarDialogs.15.0.1\"</span> <span style=\"color: #000000;\">&#41;</span><br />        ::<span style=\"color: #000000;\">oCalexStdDlgs</span>:<span style=\"color: #000000;\">Calendar</span><span style=\"color: #000000;\">&#40;</span> TOleAuto<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> ActXPDisp<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oCalex</span>:<span style=\"color: #000000;\">hActiveX</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />        ::<span style=\"color: #000000;\">oCalexStdDlgs</span>:<span style=\"color: #000000;\">RemindersWindowShowInTaskBar</span> = .t.<br />        ::<span style=\"color: #000000;\">oCalexStdDlgs</span>:<span style=\"color: #000000;\">CreateRemindersWindow</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      CATCH oErr<br />    <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Missing standard dialogs components\"</span> <span style=\"color: #000000;\">&#41;</span><br />    END<br /><br /><span style=\"color: #00C800;\">RETURN</span><br /><br /><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------//</span><br /><span style=\"color: #00C800;\">METHOD</span> BuildPanels<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> MpCal<br /><span style=\"color: #00C800;\">local</span> oBrush<br /><span style=\"color: #00C800;\">local</span> nHeight := ::<span style=\"color: #000000;\">oCwnd</span>:<span style=\"color: #000000;\">nHeight</span> <br /><br />   ::<span style=\"color: #000000;\">oPanelCalex</span>    = TPanel<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">175</span>, <span style=\"color: #000000;\">&#40;</span> nHeight <span style=\"color: #000000;\">&#41;</span>, ::<span style=\"color: #000000;\">oCwnd</span>:<span style=\"color: #000000;\">nWidth</span>, ::<span style=\"color: #000000;\">oCwnd</span>:<span style=\"color: #000000;\">oWndClient</span> <span style=\"color: #000000;\">&#41;</span> <br />   ::<span style=\"color: #000000;\">oPanelExplorer</span> = TPanel<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">&#40;</span> nHeight <span style=\"color: #000000;\">&#41;</span> , ::<span style=\"color: #000000;\">oPanelCalex</span>:<span style=\"color: #000000;\">nLeft</span>, ::<span style=\"color: #000000;\">oCwnd</span>:<span style=\"color: #000000;\">oWndClient</span> <span style=\"color: #000000;\">&#41;</span><br />   <br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /> </div>[/code:1g1q8bqo]\n\nIn my transition to using Harbour with MSVC 2010, trying to activate the control ended up in a GPF ( no error message ). You will note that in the BuildDatePicker( ) method, and BuildStdDialogs( ) method, there is a use of ActXPDisp( ). Antonio suggested that the return was not correct, and he built an alternative ActXPDispPtr( ). Using that with the BuildDatePicker( ) method allowed the calendar to display, however when using substituting it in BuildStdDialogs( ), it has an error. The screen will display, but the selection of dates and views will not work.\n\nNormally, just like Outlook, the left column shows several months of date picker controls. The right panel shows the schedule for the day. The right column works, and allows for the entry of appointments. However, the left column does not, and thus you can't change dates, or display type ( day, week, month ).\n\nDoes anyone have a suggerstion ? This is literally the last obstacle I have in moving from xHarbour ( 2010 ) to current Harbour.\n\nThanks.\n\nTIm", "time": "16:42", "topic": "Codejock Calendar with Harbour ( vs xHarbour )", "username": "TimStone" } ]
Codejock Calendar with Harbour ( vs xHarbour )
[ { "date": "2012-06-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nIt seems that you replace this line\n\n ::oCalexStdDlgs:Calendar( TOleAuto():New( ActXPDispPtr( ::oCalex:hActiveX ) ) )\n\nwith\n\n ::oCalexStdDlgs:Calendar = TOleAuto():New( ::oCalex:oOleAuto:__hObj ) \n\nthen it is working fine <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "15:45", "topic": "Codejock Calendar with Harbour ( vs xHarbour )", "username": "Antonio Linares" } ]
Codejock Calendar with Harbour ( vs xHarbour )
[ { "date": "2012-06-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\nPlease Why not ultimate the Calex Class of Daniel ?", "time": "18:15", "topic": "Codejock Calendar with Harbour ( vs xHarbour )", "username": "Eoeo" } ]
Codejock Calendar with Harbour ( vs xHarbour )
[ { "date": "2012-07-02", "forum": "FiveWin for Harbour/xHarbour", "text": "I would like to note that the CodeJock Calendar implementation is now working well with FWH 12.5, Harbour 3.0, and MSVC 2010. All issues have been resolved for this implementation.\n\nAntonio has full code now to include in future builds of FWH\\Samples\n\nI believe this is an excellent product that you can include with your applications to give you powerful Calendaring ( just like Outlook ) and appointment scheduling. I agree that having these types of capabilities in FWH is nice, but there are so many things to be on top of right now that having an alternative is a good option.\n\nTim", "time": "23:41", "topic": "Codejock Calendar with Harbour ( vs xHarbour )", "username": "TimStone" } ]
Codejock Calendar with Harbour ( vs xHarbour )
[ { "date": "2013-03-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Tim\n\nI am trying to move my application to Harbour\n\nCan you send me the function ActXPDispPtr( ) modified by Antonio ?\n\nDoes Codejock work ok now with Harbour ?\n\nTia\n\nRichard", "time": "20:19", "topic": "Codejock Calendar with Harbour ( vs xHarbour )", "username": "Richard Chidiak" } ]
Codejock Calendar with Harbour ( vs xHarbour )
[ { "date": "2009-03-31", "forum": "FiveWin for Harbour/xHarbour", "text": "I found the way to add groups <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n[code=fw:23fnhjhb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />  <span style=\"color: #00C800;\">local</span> oWnd, oAct, oRb, oTabFiles, oTabEdit, oTabBuild<br /><br />  <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br />  @ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> ACTIVEX oAct PROGID <span style=\"color: #ff0000;\">\"Codejock.CommandBarsFrame.12.1.1\"</span> <span style=\"color: #0000ff;\">OF</span> oWnd<br /><br />  oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AttachToWindow\"</span>, oWnd:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><br />  oAct:<span style=\"color: #000000;\">Hide</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />  oRb = oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AddRibbonBar\"</span>, <span style=\"color: #ff0000;\">\"fwh\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />  oTabFiles = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"&Files\"</span> <span style=\"color: #000000;\">&#41;</span>  <br />  oTabEdit  = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"&Edit\"</span> <span style=\"color: #000000;\">&#41;</span>  <br />  oTabBuild = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"&Build\"</span> <span style=\"color: #000000;\">&#41;</span>  <br /> <br />  oTabFiles:<span style=\"color: #000000;\">Groups</span>:<span style=\"color: #000000;\">AddGroup</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Test 1\"</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>  <br />  oTabFiles:<span style=\"color: #000000;\">Groups</span>:<span style=\"color: #000000;\">AddGroup</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Test 2\"</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>  <br /> <br />  <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:23fnhjhb]\n\n[img:23fnhjhb]http&#58;//www&#46;sitasoft&#46;com/fivewin/screen/codej1&#46;png[/img:23fnhjhb]", "time": "22:22", "topic": "Codejock RibbonBar first tests", "username": "Daniel Garcia-Gil" } ]
Codejock RibbonBar first tests
[ { "date": "2009-03-31", "forum": "FiveWin for Harbour/xHarbour", "text": "We have been doing some tests using the Codejock RibbonBar control <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nHere you have a first test.\n\ntest.prg\n[code=fw:1avmvqop]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oWnd, oAct, oRb, oTabFiles, oTabEdit, oTabBuild<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br />   @ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> ACTIVEX oAct PROGID <span style=\"color: #ff0000;\">\"Codejock.CommandBarsFrame.12.1.1\"</span> <span style=\"color: #0000ff;\">OF</span> oWnd<br /><br />   oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AttachToWindow\"</span>, oWnd:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><br />   oAct:<span style=\"color: #000000;\">Hide</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   oRb = oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AddRibbonBar\"</span>, <span style=\"color: #ff0000;\">\"fwh\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   oTabFiles = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"&Files\"</span> <span style=\"color: #000000;\">&#41;</span>   <br />   oTabEdit  = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"&Edit\"</span> <span style=\"color: #000000;\">&#41;</span>   <br />   oTabBuild = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"&Build\"</span> <span style=\"color: #000000;\">&#41;</span>   <br />   <br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:1avmvqop]\n[img:1avmvqop]http&#58;//img410&#46;imageshack&#46;us/img410/3583/capturevuf&#46;png[/img:1avmvqop]", "time": "21:21", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-03-31", "forum": "FiveWin for Harbour/xHarbour", "text": "Excellant !!!!", "time": "21:36", "topic": "Codejock RibbonBar first tests", "username": "nageswaragunupudi" } ]
Codejock RibbonBar first tests
[ { "date": "2009-03-31", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Antonio,\n\nthis is looking good.\nWhich product from Codejock do we need to buy to get this functionality.\nThanks in advance\nOtto", "time": "21:59", "topic": "Codejock RibbonBar first tests", "username": "Otto" } ]
Codejock RibbonBar first tests
[ { "date": "2009-03-31", "forum": "FiveWin for Harbour/xHarbour", "text": "Otto,\n\nYou can download the demo version from Codejock to do these tests <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "22:14", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-03-31", "forum": "FiveWin for Harbour/xHarbour", "text": "Daniel,\n\nvery good! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nThanks!", "time": "22:22", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-03-31", "forum": "FiveWin for Harbour/xHarbour", "text": "Here we have a VB example to review code:\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?p=15416&sid=be973c77d3c95fadb645576e242d823e#p15416\">viewtopic.php?p=15416&sid=be973c77d3c95fadb645576e242d823e#p15416</a><!-- l -->", "time": "22:37", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-03-31", "forum": "FiveWin for Harbour/xHarbour", "text": "Adding buttons to a Group! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n[code=fw:2zssl3ha]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlButton  <span style=\"color: #000000;\">1</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oWnd, oAct, oRb, oTabFiles, oTabEdit, oTabBuild, oGroup1<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br />   @ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> ACTIVEX oAct PROGID <span style=\"color: #ff0000;\">\"Codejock.CommandBarsFrame.12.1.1\"</span> <span style=\"color: #0000ff;\">OF</span> oWnd<br /><br />   oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AttachToWindow\"</span>, oWnd:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><br />   oAct:<span style=\"color: #000000;\">Hide</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   oRb = oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AddRibbonBar\"</span>, <span style=\"color: #ff0000;\">\"fwh\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   oTabFiles = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"&Files\"</span> <span style=\"color: #000000;\">&#41;</span>   <br />   oTabEdit  = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"&Edit\"</span> <span style=\"color: #000000;\">&#41;</span>   <br />   oTabBuild = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"&Build\"</span> <span style=\"color: #000000;\">&#41;</span>  <br />   <br />   oGroup1 = oTabFiles:<span style=\"color: #000000;\">Groups</span>:<span style=\"color: #000000;\">AddGroup</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Test 1\"</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>   <br />   oTabFiles:<span style=\"color: #000000;\">Groups</span>:<span style=\"color: #000000;\">AddGroup</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Test 2\"</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>   <br /><br />   oGroup1:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"First\"</span> <span style=\"color: #000000;\">&#41;</span><br />   oGroup1:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"Second\"</span> <span style=\"color: #000000;\">&#41;</span><br />   oGroup1:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"Third\"</span> <span style=\"color: #000000;\">&#41;</span><br />   <br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:2zssl3ha]\n[img:2zssl3ha]http&#58;//img21&#46;imageshack&#46;us/img21/881/81610691&#46;png[/img:2zssl3ha]", "time": "22:46", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-03-31", "forum": "FiveWin for Harbour/xHarbour", "text": "Other controls\n\n[code=fw:273xjuft]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlError             <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlButton            <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlPopup             <span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlButtonPopup       <span style=\"color: #000000;\">3</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlSplitButtonPopup  <span style=\"color: #000000;\">4</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlComboBox          <span style=\"color: #000000;\">5</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlEdit              <span style=\"color: #000000;\">6</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlCustom            <span style=\"color: #000000;\">7</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlLabel             <span style=\"color: #000000;\">8</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlCheckBox          <span style=\"color: #000000;\">9</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlGallery           <span style=\"color: #000000;\">10</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlRadioButton       <span style=\"color: #000000;\">11</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oWnd, oAct, oRb, oTabFiles, oTabEdit, oTabBuild, oGroup1, oGroup2<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br />   @ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> ACTIVEX oAct PROGID <span style=\"color: #ff0000;\">\"Codejock.CommandBarsFrame.12.1.1\"</span> <span style=\"color: #0000ff;\">OF</span> oWnd<br /><br />   oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AttachToWindow\"</span>, oWnd:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><br />   oAct:<span style=\"color: #000000;\">Hide</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   oRb = oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AddRibbonBar\"</span>, <span style=\"color: #ff0000;\">\"fwh\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   oTabFiles = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"&Files\"</span> <span style=\"color: #000000;\">&#41;</span>  <br />   oTabEdit  = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"&Edit\"</span> <span style=\"color: #000000;\">&#41;</span>  <br />   oTabBuild = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"&Build\"</span> <span style=\"color: #000000;\">&#41;</span>  <br />   <br />   oGroup1 = oTabFiles:<span style=\"color: #000000;\">Groups</span>:<span style=\"color: #000000;\">AddGroup</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Test 1\"</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>  <br />   oGroup2 = oTabFiles:<span style=\"color: #000000;\">Groups</span>:<span style=\"color: #000000;\">AddGroup</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Test 2\"</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>  <br /><br />   oGroup1:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"First\"</span> <span style=\"color: #000000;\">&#41;</span><br />   oGroup1:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"Second\"</span> <span style=\"color: #000000;\">&#41;</span><br />   oGroup1:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"Third\"</span> <span style=\"color: #000000;\">&#41;</span><br />   <br />   oGroup2:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlEdit, <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"A Get\"</span> <span style=\"color: #000000;\">&#41;</span><br />   oGroup2:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlLabel, <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"A Label\"</span> <span style=\"color: #000000;\">&#41;</span><br />   oGroup2:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlCheckBox, <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"A CheckBox\"</span> <span style=\"color: #000000;\">&#41;</span><br />   <br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:273xjuft]\n\n[img:273xjuft]http&#58;//www&#46;sitasoft&#46;com/fivewin/screen/codej2&#46;png[/img:273xjuft]", "time": "23:06", "topic": "Codejock RibbonBar first tests", "username": "Daniel Garcia-Gil" } ]
Codejock RibbonBar first tests
[ { "date": "2009-03-31", "forum": "FiveWin for Harbour/xHarbour", "text": "Great! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nWe are moving forward very quickly <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "23:08", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-03-31", "forum": "FiveWin for Harbour/xHarbour", "text": "Managing the controls properties <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n[code=fw:31uodwzy]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlError &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlButton &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlPopup &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlButtonPopup &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">3</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlSplitButtonPopup &nbsp;<span style=\"color: #000000;\">4</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlComboBox &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">5</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlEdit &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">6</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlCustom &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">7</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlLabel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">8</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlCheckBox &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">9</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlGallery &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">10</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlRadioButton &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">11</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oWnd, oAct, oRb, oTabFiles, oTabEdit, oTabBuild<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oGroup1, oGroup2, oButton1, oButton2<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> ACTIVEX oAct PROGID <span style=\"color: #ff0000;\">\"Codejock.CommandBarsFrame.12.1.1\"</span> <span style=\"color: #0000ff;\">OF</span> oWnd<br /><br />&nbsp; &nbsp;oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AttachToWindow\"</span>, oWnd:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oAct:<span style=\"color: #000000;\">Hide</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oRb = oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AddRibbonBar\"</span>, <span style=\"color: #ff0000;\">\"fwh\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oTabFiles = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"&Files\"</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<br />&nbsp; &nbsp;oTabEdit &nbsp;= oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"&Edit\"</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<br />&nbsp; &nbsp;oTabBuild = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"&Build\"</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oGroup1 = oTabFiles:<span style=\"color: #000000;\">Groups</span>:<span style=\"color: #000000;\">AddGroup</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Test 1\"</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<br />&nbsp; &nbsp;oGroup2 = oTabFiles:<span style=\"color: #000000;\">Groups</span>:<span style=\"color: #000000;\">AddGroup</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Test 2\"</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<br /><br />&nbsp; &nbsp;oButton1 = oGroup1:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"First\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oButton2 = oGroup1:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"Second\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oButton1:<span style=\"color: #000000;\">Caption</span> = <span style=\"color: #ff0000;\">\"FiveWin power!\"</span><br />&nbsp; &nbsp;oButton1:<span style=\"color: #000000;\">TooltipText</span> = <span style=\"color: #ff0000;\">\"Ribbonbar for FWH\"</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:31uodwzy]\n[img:31uodwzy]http&#58;//img11&#46;imageshack&#46;us/img11/5618/72415663&#46;png[/img:31uodwzy]", "time": "23:58", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Easily inspecting CodeJock properties from Microsoft Word (VBA) to learn about it <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n[img:2eoyyzfa]http&#58;//img25&#46;imageshack&#46;us/img25/4921/captureg&#46;png[/img:2eoyyzfa]", "time": "00:07", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi all,\n\nDo we need this Activex to be registered on all client PC's to get this Ribbon control working in our application?\nIf so is there any way by which we can avoid it, so that this control is included in the .Exe itself. \n\nCan we use the Impdef and create this as a lib and then linked to our exe so that there is no external dependencies\n\nMay be I am asking a very stupid question <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> \n\nRegards\n\nAnser", "time": "08:12", "topic": "Codejock RibbonBar first tests", "username": "anserkk" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "option button:\n[code=fw:28vdwfk9]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp;oGroup1 = oTabFiles:<span style=\"color: #000000;\">Groups</span>:<span style=\"color: #000000;\">AddGroup</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Test 1\"</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp;oGroup1:<span style=\"color: #000000;\">ShowOptionButton</span> = .T.<br />&nbsp;</div>[/code:28vdwfk9]\n[img:28vdwfk9]http&#58;//img11&#46;imageshack&#46;us/img11/9404/24048518&#46;png[/img:28vdwfk9]", "time": "00:54", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Executing an action from a control <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n[code=fw:1w4v21vk]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlError              <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlButton             <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlPopup              <span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlButtonPopup        <span style=\"color: #000000;\">3</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlSplitButtonPopup   <span style=\"color: #000000;\">4</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlComboBox           <span style=\"color: #000000;\">5</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlEdit               <span style=\"color: #000000;\">6</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlCustom             <span style=\"color: #000000;\">7</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlLabel              <span style=\"color: #000000;\">8</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlCheckBox           <span style=\"color: #000000;\">9</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlGallery           <span style=\"color: #000000;\">10</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlRadioButton       <span style=\"color: #000000;\">11</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oWnd, oAct, oRb, oTabFiles, oTabEdit, oTabBuild<br />   <span style=\"color: #00C800;\">local</span> oGroup1, oGroup2, oButton1, oButton2, aButtons := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br />   @ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> ACTIVEX oAct PROGID <span style=\"color: #ff0000;\">\"Codejock.CommandBarsFrame.12.1.1\"</span> <span style=\"color: #0000ff;\">OF</span> oWnd<br /><br />   oAct:<span style=\"color: #000000;\">bOnEvent</span> = <span style=\"color: #000000;\">&#123;</span> | cEvent, aParams, pParams | RibbonBarEvent<span style=\"color: #000000;\">&#40;</span> cEvent, aParams, pParams, aButtons <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AttachToWindow\"</span>, oWnd:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><br />   oAct:<span style=\"color: #000000;\">Hide</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   oRb = oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AddRibbonBar\"</span>, <span style=\"color: #ff0000;\">\"fwh\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   oTabFiles = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"&Files\"</span> <span style=\"color: #000000;\">&#41;</span>  <br />   oTabEdit  = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"&Edit\"</span> <span style=\"color: #000000;\">&#41;</span>  <br />   oTabBuild = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"&Build\"</span> <span style=\"color: #000000;\">&#41;</span>  <br />   <br />   oGroup1 = oTabFiles:<span style=\"color: #000000;\">Groups</span>:<span style=\"color: #000000;\">AddGroup</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Test 1\"</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <br />   oGroup1:<span style=\"color: #000000;\">ShowOptionButton</span> = .T.<br />    <br />   oGroup2 = oTabFiles:<span style=\"color: #000000;\">Groups</span>:<span style=\"color: #000000;\">AddGroup</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Test 2\"</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>  <br /><br />   oButton1 = oGroup1:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"First\"</span> <span style=\"color: #000000;\">&#41;</span><br />   oButton2 = oGroup1:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"Second\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   AAdd<span style=\"color: #000000;\">&#40;</span> aButtons, oButton1 <span style=\"color: #000000;\">&#41;</span><br />   AAdd<span style=\"color: #000000;\">&#40;</span> aButtons, oButton2 <span style=\"color: #000000;\">&#41;</span><br /><br />   oButton1:<span style=\"color: #000000;\">Caption</span> = <span style=\"color: #ff0000;\">\"FiveWin power!\"</span><br />   oButton1:<span style=\"color: #000000;\">TooltipText</span> = <span style=\"color: #ff0000;\">\"Ribbonbar for FWH\"</span><br />   <br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br />      <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> RibbonBarEvent<span style=\"color: #000000;\">&#40;</span> cEvent, aParams, pParams, aButtons <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span><br />      <span style=\"color: #00C800;\">case</span> cEvent == <span style=\"color: #ff0000;\">\"Execute\"</span> .and. Len<span style=\"color: #000000;\">&#40;</span> aButtons <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />           <span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span> <br />              <span style=\"color: #00C800;\">case</span> aButtons<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">hObj</span> == aParams<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />                   <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Button 1\"</span> <span style=\"color: #000000;\">&#41;</span><br />                   <br />              <span style=\"color: #00C800;\">case</span> aButtons<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">hObj</span> == aParams<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />                   <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Button 2\"</span> <span style=\"color: #000000;\">&#41;</span><br />           <span style=\"color: #00C800;\">endcase</span>        <br />   <span style=\"color: #00C800;\">endcase</span>        <br />   <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:1w4v21vk]\n[img:1w4v21vk]http&#58;//img21&#46;imageshack&#46;us/img21/5638/66249299&#46;png[/img:1w4v21vk]", "time": "01:59", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Image on Button\nAlpha Channel Support too\n\n[img:1tx2ulny]http&#58;//www&#46;sitasoft&#46;com/fivewin/screen/codej3&#46;png[/img:1tx2ulny]\n\n[code=fw:1tx2ulny]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlError              <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlButton             <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlPopup              <span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlButtonPopup        <span style=\"color: #000000;\">3</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlSplitButtonPopup   <span style=\"color: #000000;\">4</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlComboBox           <span style=\"color: #000000;\">5</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlEdit               <span style=\"color: #000000;\">6</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlCustom             <span style=\"color: #000000;\">7</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlLabel              <span style=\"color: #000000;\">8</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlCheckBox           <span style=\"color: #000000;\">9</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlGallery           <span style=\"color: #000000;\">10</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlRadioButton       <span style=\"color: #000000;\">11</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageNormal               <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageDisabled             <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageHot                  <span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageChecked              <span style=\"color: #000000;\">3</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImagePressed              <span style=\"color: #000000;\">4</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>  <br /><br />   <span style=\"color: #00C800;\">local</span> oWnd, oAct, oRb, oTabFiles, oTabEdit, oTabBuild, oIcons<br />   <span style=\"color: #00C800;\">local</span> oGroup1, oGroup2, oButton1, oButton2, aButtons := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />   <span style=\"color: #00C800;\">local</span> oButton3, oButton4, oBmp1, oBmp2, oBmp3<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br />   <br />  obmp1 := TBitmap<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Define</span><span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\n</span>ew2.bmp\"</span>, oWnd <span style=\"color: #000000;\">&#41;</span><br />  obmp2 := TBitmap<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Define</span><span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\o</span>pen2.bmp\"</span>, oWnd <span style=\"color: #000000;\">&#41;</span> <br />  obmp3 := TBitmap<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Define</span><span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\a</span>lphabmp<span style=\"color: #000000;\">\\e</span>xplorer.bmp\"</span>, oWnd <span style=\"color: #000000;\">&#41;</span> <br /><br /><br />   @ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> ACTIVEX oAct PROGID <span style=\"color: #ff0000;\">\"Codejock.CommandBarsFrame.12.1.1\"</span> <span style=\"color: #0000ff;\">OF</span> oWnd<br /><br /><br />   oAct:<span style=\"color: #000000;\">bOnEvent</span> = <span style=\"color: #000000;\">&#123;</span> | cEvent, aParams, pParams | RibbonBarEvent<span style=\"color: #000000;\">&#40;</span> cEvent, aParams, pParams, aButtons <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AttachToWindow\"</span>, oWnd:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><br />   <br />   oIcons := oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"icons\"</span> <span style=\"color: #000000;\">&#41;</span><br />   <br />   oIcons:<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> oBmp1:<span style=\"color: #000000;\">hBitmap</span>,<span style=\"color: #000000;\">1</span>,xtpImageNormal,.f. <span style=\"color: #000000;\">&#41;</span> <br />   oIcons:<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> oBmp2:<span style=\"color: #000000;\">hBitmap</span>,<span style=\"color: #000000;\">2</span>,xtpImageNormal,.f. <span style=\"color: #000000;\">&#41;</span> <br />   oIcons:<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> oBmp3:<span style=\"color: #000000;\">hBitmap</span>,<span style=\"color: #000000;\">3</span>,xtpImageNormal,.t. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// 4th param, Bool to Alpha Channel Support</span><br />   oIcons:<span style=\"color: #000000;\">LoadBitmap</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\3</span>2x32<span style=\"color: #000000;\">\\e</span>dit.bmp\"</span>,<span style=\"color: #000000;\">4</span>, xtpImageNormal<span style=\"color: #000000;\">&#41;</span> <br /> <br />   oAct:<span style=\"color: #000000;\">Hide</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   oRb = oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AddRibbonBar\"</span>, <span style=\"color: #ff0000;\">\"fwh\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   oTabFiles = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"&Files\"</span> <span style=\"color: #000000;\">&#41;</span>  <br />   oTabEdit  = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"&Edit\"</span> <span style=\"color: #000000;\">&#41;</span>  <br />   oTabBuild = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"&Build\"</span> <span style=\"color: #000000;\">&#41;</span>  <br />   <br />   oGroup1 = oTabFiles:<span style=\"color: #000000;\">Groups</span>:<span style=\"color: #000000;\">AddGroup</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Test 1\"</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />   oGroup1:<span style=\"color: #000000;\">ShowOptionButton</span> = .T.<br />   <br />   oGroup2 = oTabFiles:<span style=\"color: #000000;\">Groups</span>:<span style=\"color: #000000;\">AddGroup</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Test 2\"</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>  <br /><br />   oButton1 = oGroup1:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"First\"</span> <span style=\"color: #000000;\">&#41;</span><br />   oButton2 = oGroup1:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"Second\"</span> <span style=\"color: #000000;\">&#41;</span><br />   <br />   oButton3 = oGroup2:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">4</span>, <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span> <br />   oButton4 = oGroup2:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">3</span>, <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br />   oButton4:<span style=\"color: #000000;\">SetIconSize</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">64</span>,<span style=\"color: #000000;\">64</span> <span style=\"color: #000000;\">&#41;</span><br />   oButton4:<span style=\"color: #000000;\">Width</span> = <span style=\"color: #000000;\">70</span><br />   oButton4:<span style=\"color: #000000;\">Height</span> = <span style=\"color: #000000;\">70</span><br />    <br />   <br />   <br />   AAdd<span style=\"color: #000000;\">&#40;</span> aButtons, oButton1 <span style=\"color: #000000;\">&#41;</span><br />   AAdd<span style=\"color: #000000;\">&#40;</span> aButtons, oButton2 <span style=\"color: #000000;\">&#41;</span><br /><br />   oButton1:<span style=\"color: #000000;\">Caption</span> = <span style=\"color: #ff0000;\">\"FiveWin power!\"</span><br />   oButton1:<span style=\"color: #000000;\">TooltipText</span> = <span style=\"color: #ff0000;\">\"Ribbonbar for FWH\"</span><br />   <br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br />     <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> RibbonBarEvent<span style=\"color: #000000;\">&#40;</span> cEvent, aParams, pParams, aButtons <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span><br />      <span style=\"color: #00C800;\">case</span> cEvent == <span style=\"color: #ff0000;\">\"Execute\"</span> .and. Len<span style=\"color: #000000;\">&#40;</span> aButtons <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />           <span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span><br />              <span style=\"color: #00C800;\">case</span> aButtons<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">hObj</span> == aParams<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />                   <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Button 1\"</span> <span style=\"color: #000000;\">&#41;</span><br />                   <br />              <span style=\"color: #00C800;\">case</span> aButtons<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">hObj</span> == aParams<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />                   <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Button 2\"</span> <span style=\"color: #000000;\">&#41;</span><br />           <span style=\"color: #00C800;\">endcase</span>        <br />   <span style=\"color: #00C800;\">endcase</span>        <br />   <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /> </div>[/code:1tx2ulny]", "time": "06:56", "topic": "Codejock RibbonBar first tests", "username": "Daniel Garcia-Gil" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Add StatusBar\n\n[img:5r175q09]http&#58;//www&#46;fivetech&#46;com&#46;tw/fwh/ribbonbar1&#46;jpg[/img:5r175q09]\n\n[code=fw:5r175q09]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlError &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">0</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlButton &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlPopup &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlButtonPopup &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">3</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlSplitButtonPopup &nbsp; <span style=\"color: #000000;\">4</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlComboBox &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">5</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlEdit &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">6</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlCustom &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">7</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlLabel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">8</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlCheckBox &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">9</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlGallery &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">10</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlRadioButton &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">11</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageNormal &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageDisabled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageHot &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageChecked &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">3</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImagePressed &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">4</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp;<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oWnd, oAct, oRb, oTabFiles, oTabEdit, oTabBuild, oIcons<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oGroup1, oGroup2, oButton1, oButton2, aButtons := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oButton3, oButton4, oBmp1, oBmp2, oBmp3<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oStatusBar<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br />&nbsp; &nbsp;<br />&nbsp; obmp1 := TBitmap<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Define</span><span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\n</span>ew2.bmp\"</span>, oWnd <span style=\"color: #000000;\">&#41;</span><br />&nbsp; obmp2 := TBitmap<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Define</span><span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\o</span>pen2.bmp\"</span>, oWnd <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; obmp3 := TBitmap<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Define</span><span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\a</span>lphabmp<span style=\"color: #000000;\">\\e</span>xplorer.bmp\"</span>, oWnd <span style=\"color: #000000;\">&#41;</span> <br /><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> ACTIVEX oAct PROGID <span style=\"color: #ff0000;\">\"Codejock.CommandBarsFrame.12.1.1\"</span> <span style=\"color: #0000ff;\">OF</span> oWnd<br /><br /><br />&nbsp; &nbsp;oAct:<span style=\"color: #000000;\">bOnEvent</span> = <span style=\"color: #000000;\">&#123;</span> | cEvent, aParams, pParams | RibbonBarEvent<span style=\"color: #000000;\">&#40;</span> cEvent, aParams, pParams, aButtons <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AttachToWindow\"</span>, oWnd:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"EnableOffice2007Frame\"</span>, .T. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"VisualTheme\"</span>, .T. <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// StatusBar-Richard</span><br />&nbsp; &nbsp;oStatusBar := TOleAuto<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> ActXPdisp<span style=\"color: #000000;\">&#40;</span> oAct:<span style=\"color: #000000;\">hActiveX</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oStatusBar:<span style=\"color: #000000;\">StatusBar</span>:<span style=\"color: #000000;\">Visible</span> = .T.<br /><br />&nbsp; &nbsp;oStatusBar:<span style=\"color: #000000;\">StatusBar</span>:<span style=\"color: #000000;\">AddPane</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oStatusBar:<span style=\"color: #000000;\">StatusBar</span>:<span style=\"color: #000000;\">AddPane</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">59137</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oStatusBar:<span style=\"color: #000000;\">StatusBar</span>:<span style=\"color: #000000;\">AddPane</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">59138</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oStatusBar:<span style=\"color: #000000;\">StatusBar</span>:<span style=\"color: #000000;\">AddPane</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">59139</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; <br />&nbsp; &nbsp;oStatusBar:<span style=\"color: #000000;\">StatusBar</span>:<span style=\"color: #000000;\">IdleText</span> = <span style=\"color: #ff0000;\">\"FWH support Codejock RibbonBar\"</span> &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oIcons := oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"icons\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oIcons:<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> oBmp1:<span style=\"color: #000000;\">hBitmap</span>,<span style=\"color: #000000;\">1</span>,xtpImageNormal,.f. <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp;oIcons:<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> oBmp2:<span style=\"color: #000000;\">hBitmap</span>,<span style=\"color: #000000;\">2</span>,xtpImageNormal,.f. <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp;oIcons:<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> oBmp3:<span style=\"color: #000000;\">hBitmap</span>,<span style=\"color: #000000;\">3</span>,xtpImageNormal,.t. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// 4th param, Bool to Alpha Channel Support</span><br />&nbsp; &nbsp;oIcons:<span style=\"color: #000000;\">LoadBitmap</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\3</span>2x32<span style=\"color: #000000;\">\\e</span>dit.bmp\"</span>,<span style=\"color: #000000;\">4</span>, xtpImageNormal<span style=\"color: #000000;\">&#41;</span> <br />&nbsp;<br />&nbsp; &nbsp;oAct:<span style=\"color: #000000;\">Hide</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oRb = oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AddRibbonBar\"</span>, <span style=\"color: #ff0000;\">\"fwh\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oTabFiles = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"&Files\"</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<br />&nbsp; &nbsp;oTabEdit &nbsp;= oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"&Edit\"</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<br />&nbsp; &nbsp;oTabBuild = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"&Build\"</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oGroup1 = oTabFiles:<span style=\"color: #000000;\">Groups</span>:<span style=\"color: #000000;\">AddGroup</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Test 1\"</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oGroup1:<span style=\"color: #000000;\">ShowOptionButton</span> = .T.<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oGroup2 = oTabFiles:<span style=\"color: #000000;\">Groups</span>:<span style=\"color: #000000;\">AddGroup</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Test 2\"</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<br /><br />&nbsp; &nbsp;oButton1 = oGroup1:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"First\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oButton2 = oGroup1:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"Second\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oButton3 = oGroup2:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">4</span>, <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp;oButton4 = oGroup2:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">3</span>, <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oButton4:<span style=\"color: #000000;\">SetIconSize</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">64</span>,<span style=\"color: #000000;\">64</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oButton4:<span style=\"color: #000000;\">Width</span> = <span style=\"color: #000000;\">70</span><br />&nbsp; &nbsp;oButton4:<span style=\"color: #000000;\">Height</span> = <span style=\"color: #000000;\">70</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;<br />&nbsp; &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> aButtons, oButton1 <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> aButtons, oButton2 <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oButton1:<span style=\"color: #000000;\">Caption</span> = <span style=\"color: #ff0000;\">\"FiveWin power!\"</span><br />&nbsp; &nbsp;oButton1:<span style=\"color: #000000;\">TooltipText</span> = <span style=\"color: #ff0000;\">\"Ribbonbar for FWH\"</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br />&nbsp; &nbsp; &nbsp;<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> RibbonBarEvent<span style=\"color: #000000;\">&#40;</span> cEvent, aParams, pParams, aButtons <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> cEvent == <span style=\"color: #ff0000;\">\"Execute\"</span> .and. Len<span style=\"color: #000000;\">&#40;</span> aButtons <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> aButtons<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">hObj</span> == aParams<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Button 1\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> aButtons<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">hObj</span> == aParams<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Button 2\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endcase</span> &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endcase</span> &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;<br /> </div>[/code:5r175q09]\n\n\nRegards,\n\nRichard", "time": "07:39", "topic": "Codejock RibbonBar first tests", "username": "richard-service" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Antonio,\n\nI downloaded the demo from CodeJock changed your code samples to Version: 13.0.0 which is now in the download.\nAll worked at the first try. Thank you very much. \nDo you know what we have to supply to the clients to get a FWH program running which the CodeJock components inside.\nBest regards,\nOtto", "time": "08:33", "topic": "Codejock RibbonBar first tests", "username": "Otto" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Daniel,\n\nSimply brilliant! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nmany thanks!", "time": "09:34", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Richard,\n\nThanks for joining us <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nYour help is very welcome!", "time": "09:35", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Anser,\n\nWe don't know yet if codejock provides a LIB instead of an OCX. \n\nWe may need to ask CodeJock <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "09:36", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Otto,\n\nCould you please provide the CodeJock download url where to get the demo version ? Thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nAfaik, you just need to supply the OCX and register it from your application. We recently published a RegisterDll() here in the forums that may be ok.", "time": "09:36", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Otto,\n\nThis is the function. We have not tested it yet with this OCX:\n[code=fw:2s9kpdds]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#pragma</span> BEGINDUMP<br /><br /><span style=\"color: #00D7D7;\">#include</span> <hbapi.h><br /><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><br />typedef LONG <span style=\"color: #000000;\">&#40;</span> * PDLLREGISTERSERVER <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#40;</span> void <span style=\"color: #000000;\">&#41;</span>; <br /><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> REGISTERDLL <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />   HMODULE hDll = LoadLibrary<span style=\"color: #000000;\">&#40;</span> hb_parc<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br />   LONG lReturn = <span style=\"color: #000000;\">0</span>;<br />   <br />   <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> hDll <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #000000;\">&#123;</span><br />      FARPROC pRegisterServer = GetProcAddress<span style=\"color: #000000;\">&#40;</span> hDll, <span style=\"color: #ff0000;\">\"DllRegisterServer\"</span> <span style=\"color: #000000;\">&#41;</span>;<br />      <br />      <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> pRegisterServer <span style=\"color: #000000;\">&#41;</span><br />         lReturn = <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> PDLLREGISTERSERVER <span style=\"color: #000000;\">&#41;</span> pRegisterServer <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>;<br />   <span style=\"color: #000000;\">&#125;</span><br />   <br />   hb_retnl<span style=\"color: #000000;\">&#40;</span> lReturn <span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #000000;\">&#125;</span>         <br /><br /><span style=\"color: #00D7D7;\">#pragma</span> ENDDUMP<br /> </div>[/code:2s9kpdds]\nFor example: MsgInfo( RegisterDll( \"Codejock.CommandBars.v12.1.1.ocx\" ) )", "time": "09:43", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi all,\non my machine <cEvent> is numerical, so I have to add the the following code to RibbonBarEvent():\n\n[code=fw:28ecxadm]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">IF</span> Valtype<span style=\"color: #000000;\">&#40;</span> cEvent <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #ff0000;\">\"N\"</span><br />      <span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">CASE</span><br />         <span style=\"color: #00C800;\">CASE</span> cEvent == <span style=\"color: #000000;\">1</span> .AND. Len<span style=\"color: #000000;\">&#40;</span> aButtons <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />            <span style=\"color: #B900B9;\">//</span><br />            <span style=\"color: #B900B9;\">// EventExecute - Occurs when a command bar control is clicked.</span><br />            <span style=\"color: #B900B9;\">//</span><br />              <span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">CASE</span><br />                 <span style=\"color: #00C800;\">CASE</span> aButtons<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">hObj</span> == aParams<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />                      <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Button 1\"</span> <span style=\"color: #000000;\">&#41;</span><br />                 <span style=\"color: #00C800;\">CASE</span> aButtons<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">hObj</span> == aParams<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />                      <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Button 2\"</span> <span style=\"color: #000000;\">&#41;</span><br />              <span style=\"color: #00C800;\">ENDCASE</span><br />      <span style=\"color: #00C800;\">ENDCASE</span><br />ELSEIF Valtype<span style=\"color: #000000;\">&#40;</span> cEvent <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #ff0000;\">\"C\"</span><br />   ...<br /> </div>[/code:28ecxadm]\n\nand it works, but don't ask me why <!-- s:? --><img src=\"{SMILIES_PATH}/icon_confused.gif\" alt=\":?\" title=\"Confused\" /><!-- s:? -->", "time": "09:54", "topic": "Codejock RibbonBar first tests", "username": "frose" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Frank,\n\nThanks for the feedback <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nWhat Windows version are you using ?", "time": "10:00", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\nvista64 SP1, but found the same behavior with XP32 SP3 under VMware.", "time": "10:22", "topic": "Codejock RibbonBar first tests", "username": "frose" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Add ToolTipContext\n\n[img:n39ug8us]http&#58;//www&#46;fivetech&#46;com&#46;tw/fwh/ribbonbar2&#46;jpg[/img:n39ug8us]\n\n[code=fw:n39ug8us]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlError &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">0</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlButton &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlPopup &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlButtonPopup &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">3</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlSplitButtonPopup &nbsp; <span style=\"color: #000000;\">4</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlComboBox &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">5</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlEdit &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">6</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlCustom &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">7</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlLabel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">8</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlCheckBox &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">9</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlGallery &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">10</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlRadioButton &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">11</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageNormal &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageDisabled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageHot &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageChecked &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">3</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImagePressed &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">4</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp;<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oWnd, oAct, oRb, oTabFiles, oTabEdit, oTabBuild, oIcons<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oGroup1, oGroup2, oButton1, oButton2, aButtons := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oButton3, oButton4, oBmp1, oBmp2, oBmp3<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oStatusBar, oToolTipContext<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br />&nbsp; &nbsp;<br />&nbsp; obmp1 := TBitmap<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Define</span><span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\n</span>ew2.bmp\"</span>, oWnd <span style=\"color: #000000;\">&#41;</span><br />&nbsp; obmp2 := TBitmap<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Define</span><span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\o</span>pen2.bmp\"</span>, oWnd <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; obmp3 := TBitmap<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Define</span><span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\a</span>lphabmp<span style=\"color: #000000;\">\\e</span>xplorer.bmp\"</span>, oWnd <span style=\"color: #000000;\">&#41;</span> <br /><br /><br />&nbsp; &nbsp;oAct := TActiveX<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> oWnd, <span style=\"color: #ff0000;\">\"Codejock.CommandBarsFrame.12.1.1\"</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//@ 0, 0 ACTIVEX oAct PROGID \"Codejock.CommandBarsFrame.12.1.1\" OF oWnd</span><br /><br /><br />&nbsp; &nbsp;oAct:<span style=\"color: #000000;\">bOnEvent</span> = <span style=\"color: #000000;\">&#123;</span> | cEvent, aParams, pParams | RibbonBarEvent<span style=\"color: #000000;\">&#40;</span> cEvent, aParams, pParams, aButtons <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AttachToWindow\"</span>, oWnd:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"EnableOffice2007Frame\"</span>, .T. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"VisualTheme\"</span>, .T. <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// ToolTipContext - Richard &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><br />&nbsp; &nbsp;oToolTipContext := TOleAuto<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> ActXPdisp<span style=\"color: #000000;\">&#40;</span> oAct:<span style=\"color: #000000;\">hActiveX</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oToolTipContext := oToolTipContext:<span style=\"color: #000000;\">ToolTipContext</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oToolTipContext:<span style=\"color: #0000ff;\">Style</span> = <span style=\"color: #000000;\">5</span> &nbsp;&& xtpToolTipOffice2007<br />&nbsp; &nbsp;oToolTipContext:<span style=\"color: #000000;\">ShowTitleAndDescription</span><span style=\"color: #000000;\">&#40;</span> .T., <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oToolTipContext:<span style=\"color: #000000;\">ShowImage</span><span style=\"color: #000000;\">&#40;</span> .T., <span style=\"color: #000000;\">10000</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oToolTipContext:<span style=\"color: #000000;\">SetMargin</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oToolTipContext:<span style=\"color: #000000;\">MaxTipWidth</span> = <span style=\"color: #000000;\">180</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// StatusBar-Richard</span><br />&nbsp; &nbsp;oStatusBar := TOleAuto<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> ActXPdisp<span style=\"color: #000000;\">&#40;</span> oAct:<span style=\"color: #000000;\">hActiveX</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oStatusBar:<span style=\"color: #000000;\">StatusBar</span>:<span style=\"color: #000000;\">Visible</span> = .T.<br /><br />&nbsp; &nbsp;oStatusBar:<span style=\"color: #000000;\">StatusBar</span>:<span style=\"color: #000000;\">AddPane</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oStatusBar:<span style=\"color: #000000;\">StatusBar</span>:<span style=\"color: #000000;\">AddPane</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">59137</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oStatusBar:<span style=\"color: #000000;\">StatusBar</span>:<span style=\"color: #000000;\">AddPane</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">59138</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oStatusBar:<span style=\"color: #000000;\">StatusBar</span>:<span style=\"color: #000000;\">AddPane</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">59139</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; <br />&nbsp; &nbsp;oStatusBar:<span style=\"color: #000000;\">StatusBar</span>:<span style=\"color: #000000;\">IdleText</span> = <span style=\"color: #ff0000;\">\"FWH support Codejock RibbonBar\"</span> &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oIcons := oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"icons\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oIcons:<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> oBmp1:<span style=\"color: #000000;\">hBitmap</span>,<span style=\"color: #000000;\">1</span>,xtpImageNormal,.f. <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp;oIcons:<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> oBmp2:<span style=\"color: #000000;\">hBitmap</span>,<span style=\"color: #000000;\">2</span>,xtpImageNormal,.f. <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp;oIcons:<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> oBmp3:<span style=\"color: #000000;\">hBitmap</span>,<span style=\"color: #000000;\">3</span>,xtpImageNormal,.t. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// 4th param, Bool to Alpha Channel Support</span><br />&nbsp; &nbsp;oIcons:<span style=\"color: #000000;\">LoadBitmap</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\3</span>2x32<span style=\"color: #000000;\">\\e</span>dit.bmp\"</span>,<span style=\"color: #000000;\">4</span>, xtpImageNormal<span style=\"color: #000000;\">&#41;</span> <br />&nbsp;<br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//oAct:Hide()</span><br /><br />&nbsp; &nbsp;oRb = oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AddRibbonBar\"</span>, <span style=\"color: #ff0000;\">\"fwh\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oTabFiles = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"&Files\"</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<br />&nbsp; &nbsp;oTabEdit &nbsp;= oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"&Edit\"</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<br />&nbsp; &nbsp;oTabBuild = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"&Build\"</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oGroup1 = oTabFiles:<span style=\"color: #000000;\">Groups</span>:<span style=\"color: #000000;\">AddGroup</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Test 1\"</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oGroup1:<span style=\"color: #000000;\">ShowOptionButton</span> = .T.<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oGroup2 = oTabFiles:<span style=\"color: #000000;\">Groups</span>:<span style=\"color: #000000;\">AddGroup</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Test 2\"</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<br /><br />&nbsp; &nbsp;oButton1 = oGroup1:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"First\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oButton2 = oGroup1:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"Second\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oButton3 = oGroup2:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">4</span>, <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp;oButton4 = oGroup2:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">3</span>, <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oButton4:<span style=\"color: #000000;\">SetIconSize</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">64</span>,<span style=\"color: #000000;\">64</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oButton4:<span style=\"color: #000000;\">Width</span> = <span style=\"color: #000000;\">70</span><br />&nbsp; &nbsp;oButton4:<span style=\"color: #000000;\">Height</span> = <span style=\"color: #000000;\">70</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> aButtons, oButton1 <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> aButtons, oButton2 <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oButton1:<span style=\"color: #000000;\">Caption</span> = <span style=\"color: #ff0000;\">\"FiveWin power!\"</span><br />&nbsp; &nbsp;oButton1:<span style=\"color: #000000;\">TooltipText</span> = <span style=\"color: #ff0000;\">\"Ribbonbar for FWH\"</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br />&nbsp; &nbsp; &nbsp;<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> RibbonBarEvent<span style=\"color: #000000;\">&#40;</span> cEvent, aParams, pParams, aButtons <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> cEvent == <span style=\"color: #ff0000;\">\"Execute\"</span> .and. Len<span style=\"color: #000000;\">&#40;</span> aButtons <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> aButtons<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">hObj</span> == aParams<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Button 1\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> aButtons<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">hObj</span> == aParams<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Button 2\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endcase</span> &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endcase</span> &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br />&nbsp;<br />&nbsp;</div>[/code:n39ug8us]\n\nRegards,\n\nRichard", "time": "11:24", "topic": "Codejock RibbonBar first tests", "username": "richard-service" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Richard,\n\nMany thanks for your help! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nDo you know how to add little bitmaps at the top of the control ? Thanks\n\n[img:3trq0gjh]http&#58;//img26&#46;imageshack&#46;us/img26/3161/captureecn&#46;png[/img:3trq0gjh]", "time": "12:31", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "oRb:AddSystemButton()", "time": "12:44", "topic": "Codejock RibbonBar first tests", "username": "lailton.webmaster" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Lailton,\n\n> oRb:AddSystemButton()\n\nMany thanks for your help. You are a great CodeJock master and surely you can help many of us here.\n\nWhat parameters should we provide to oRb:AddSystemButton() ?\nCould you modify the test.prg that we are developing together ?\n\nThanks again,", "time": "12:52", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Antonio,\n\nthe link where I downloaded the demo is:\n\n<!-- m --><a class=\"postlink\" href=\"http://www.codejock.com/downloads/\">http://www.codejock.com/downloads/</a><!-- m -->\n\nthen:\nActiveX / COM\nAll Versions of Visual Studio\n\nYou get version 13.0.0!!!\n\nBest regards,\nOtto", "time": "12:58", "topic": "Codejock RibbonBar first tests", "username": "Otto" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Lailton,\n\nOh, I see. That creates the rounded button! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) --> Thanks!\n\n[code=fw:1jc4badu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />   oRb = oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AddRibbonBar\"</span>, <span style=\"color: #ff0000;\">\"fwh\"</span> <span style=\"color: #000000;\">&#41;</span><br />   <br />   oSysButton = oRb:<span style=\"color: #000000;\">AddSystemButton</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:1jc4badu]\n[img:1jc4badu]http&#58;//img26&#46;imageshack&#46;us/img26/2006/capturenkf&#46;png[/img:1jc4badu]", "time": "13:00", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:387hau4e]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlError &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">0</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlButton &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlPopup &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlButtonPopup &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">3</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlSplitButtonPopup &nbsp; <span style=\"color: #000000;\">4</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlComboBox &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">5</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlEdit &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">6</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlCustom &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">7</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlLabel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">8</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlCheckBox &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">9</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlGallery &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">10</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlRadioButton &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">11</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageNormal &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageDisabled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageHot &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageChecked &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">3</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImagePressed &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">4</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp;<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oWnd, oAct, oRb, oTabFiles, oTabEdit, oTabBuild, oIcons<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oGroup1, oGroup2, oButton1, oButton2, aButtons := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oButton3, oButton4, oBmp1, oBmp2, oBmp3<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oStatusBar, oToolTipContext<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br />&nbsp; &nbsp;<br />&nbsp; obmp1 := TBitmap<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Define</span><span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\n</span>ew2.bmp\"</span>, oWnd <span style=\"color: #000000;\">&#41;</span><br />&nbsp; obmp2 := TBitmap<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Define</span><span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\o</span>pen2.bmp\"</span>, oWnd <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; obmp3 := TBitmap<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Define</span><span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\a</span>lphabmp<span style=\"color: #000000;\">\\e</span>xplorer.bmp\"</span>, oWnd <span style=\"color: #000000;\">&#41;</span> <br /><br /><br />&nbsp; &nbsp;oAct := TActiveX<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> oWnd, <span style=\"color: #ff0000;\">\"Codejock.CommandBarsFrame.12.1.1\"</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//@ 0, 0 ACTIVEX oAct PROGID \"Codejock.CommandBarsFrame.12.1.1\" OF oWnd</span><br /><br /><br />&nbsp; &nbsp;oAct:<span style=\"color: #000000;\">bOnEvent</span> = <span style=\"color: #000000;\">&#123;</span> | cEvent, aParams, pParams | RibbonBarEvent<span style=\"color: #000000;\">&#40;</span> cEvent, aParams, pParams, aButtons <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AttachToWindow\"</span>, oWnd:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"EnableOffice2007Frame\"</span>, .T. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"VisualTheme\"</span>, .T. <span style=\"color: #000000;\">&#41;</span> <br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// ToolTipContext - Richard &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><br />&nbsp; &nbsp;oToolTipContext := TOleAuto<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> ActXPdisp<span style=\"color: #000000;\">&#40;</span> oAct:<span style=\"color: #000000;\">hActiveX</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oToolTipContext := oToolTipContext:<span style=\"color: #000000;\">ToolTipContext</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oToolTipContext:<span style=\"color: #0000ff;\">Style</span> = <span style=\"color: #000000;\">5</span> &nbsp;&& xtpToolTipOffice2007<br />&nbsp; &nbsp;oToolTipContext:<span style=\"color: #000000;\">ShowTitleAndDescription</span><span style=\"color: #000000;\">&#40;</span> .T., <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oToolTipContext:<span style=\"color: #000000;\">ShowImage</span><span style=\"color: #000000;\">&#40;</span> .T., <span style=\"color: #000000;\">10000</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oToolTipContext:<span style=\"color: #000000;\">SetMargin</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oToolTipContext:<span style=\"color: #000000;\">MaxTipWidth</span> = <span style=\"color: #000000;\">180</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// StatusBar-Richard</span><br />&nbsp; &nbsp;oStatusBar := TOleAuto<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> ActXPdisp<span style=\"color: #000000;\">&#40;</span> oAct:<span style=\"color: #000000;\">hActiveX</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oStatusBar:<span style=\"color: #000000;\">StatusBar</span>:<span style=\"color: #000000;\">Visible</span> = .T.<br /><br />&nbsp; &nbsp;oStatusBar:<span style=\"color: #000000;\">StatusBar</span>:<span style=\"color: #000000;\">AddPane</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oStatusBar:<span style=\"color: #000000;\">StatusBar</span>:<span style=\"color: #000000;\">AddPane</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">59137</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oStatusBar:<span style=\"color: #000000;\">StatusBar</span>:<span style=\"color: #000000;\">AddPane</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">59138</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oStatusBar:<span style=\"color: #000000;\">StatusBar</span>:<span style=\"color: #000000;\">AddPane</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">59139</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; <br />&nbsp; &nbsp;oStatusBar:<span style=\"color: #000000;\">StatusBar</span>:<span style=\"color: #000000;\">IdleText</span> = <span style=\"color: #ff0000;\">\"FWH support Codejock RibbonBar\"</span> &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oIcons := oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"icons\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oIcons:<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> oBmp1:<span style=\"color: #000000;\">hBitmap</span>,<span style=\"color: #000000;\">1</span>,xtpImageNormal,.f. <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp;oIcons:<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> oBmp2:<span style=\"color: #000000;\">hBitmap</span>,<span style=\"color: #000000;\">2</span>,xtpImageNormal,.f. <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp;oIcons:<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> oBmp3:<span style=\"color: #000000;\">hBitmap</span>,<span style=\"color: #000000;\">3</span>,xtpImageNormal,.t. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// 4th param, Bool to Alpha Channel Support</span><br />&nbsp; &nbsp;oIcons:<span style=\"color: #000000;\">LoadBitmap</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\3</span>2x32<span style=\"color: #000000;\">\\e</span>dit.bmp\"</span>,<span style=\"color: #000000;\">4</span>, xtpImageNormal<span style=\"color: #000000;\">&#41;</span> <br />&nbsp;<br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//oAct:Hide()</span><br /><br />&nbsp; &nbsp;oRb = oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AddRibbonBar\"</span>, <span style=\"color: #ff0000;\">\"fwh\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; <br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// Sysbutton - Lailton</span><br />&nbsp; &nbsp;Sbutton:=oRb:<span style=\"color: #000000;\">AddSystemButton</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Sbutton:<span style=\"color: #000000;\">IconId</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;nCmb &nbsp; &nbsp; &nbsp; := Sbutton:<span style=\"color: #000000;\">Commandbar</span><br />&nbsp; &nbsp;Controls &nbsp; := nCmb:<span style=\"color: #000000;\">Controls</span><br />&nbsp; &nbsp;Controls:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">\"Menu item 1\"</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span> &nbsp; <br />&nbsp; &nbsp;Controls:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">\"Menu item 2\"</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span> &nbsp; <br /><br /><br />&nbsp; &nbsp;oTabFiles = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"&Files\"</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<br />&nbsp; &nbsp;oTabEdit &nbsp;= oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"&Edit\"</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<br />&nbsp; &nbsp;oTabBuild = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"&Build\"</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oGroup1 = oTabFiles:<span style=\"color: #000000;\">Groups</span>:<span style=\"color: #000000;\">AddGroup</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Test 1\"</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oGroup1:<span style=\"color: #000000;\">ShowOptionButton</span> = .T.<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oGroup2 = oTabFiles:<span style=\"color: #000000;\">Groups</span>:<span style=\"color: #000000;\">AddGroup</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Test 2\"</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<br /><br />&nbsp; &nbsp;oButton1 = oGroup1:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"First\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oButton2 = oGroup1:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"Second\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oButton3 = oGroup2:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">4</span>, <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp;oButton4 = oGroup2:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">3</span>, <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oButton4:<span style=\"color: #000000;\">SetIconSize</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">64</span>,<span style=\"color: #000000;\">64</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oButton4:<span style=\"color: #000000;\">Width</span> = <span style=\"color: #000000;\">70</span><br />&nbsp; &nbsp;oButton4:<span style=\"color: #000000;\">Height</span> = <span style=\"color: #000000;\">70</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> aButtons, oButton1 <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> aButtons, oButton2 <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oButton1:<span style=\"color: #000000;\">Caption</span> = <span style=\"color: #ff0000;\">\"FiveWin power!\"</span><br />&nbsp; &nbsp;oButton1:<span style=\"color: #000000;\">TooltipText</span> = <span style=\"color: #ff0000;\">\"Ribbonbar for FWH\"</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br />&nbsp; &nbsp; &nbsp;<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> RibbonBarEvent<span style=\"color: #000000;\">&#40;</span> cEvent, aParams, pParams, aButtons <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> cEvent == <span style=\"color: #ff0000;\">\"Execute\"</span> .and. Len<span style=\"color: #000000;\">&#40;</span> aButtons <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> aButtons<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">hObj</span> == aParams<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Button 1\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> aButtons<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">hObj</span> == aParams<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Button 2\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endcase</span> &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endcase</span> &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span> <br />&nbsp;</div>[/code:387hau4e]", "time": "13:03", "topic": "Codejock RibbonBar first tests", "username": "lailton.webmaster" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Lailton,\n\nThanks so much! It looks really nice <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n[img:2d1r7cty]http&#58;//img27&#46;imageshack&#46;us/img27/1919/85313517&#46;png[/img:2d1r7cty]", "time": "13:12", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Richard, Lailton,\n\nIs there a way to have small bitmaps in between the rounded button and the dropdown menu ?", "time": "13:14", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "<!-- s8) --><img src=\"{SMILIES_PATH}/icon_cool.gif\" alt=\"8)\" title=\"Cool\" /><!-- s8) --> <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> long way antonio very possibilities <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "13:23", "topic": "Codejock RibbonBar first tests", "username": "lailton.webmaster" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Mr.Antonio,\n\nI could not resist my self to congratulate you to take our FWH to the new horizons.\nNow almost our FWH is ready to welcome the developers from other development\nenvironments to migrate.\n\nRegards,\n\n- Ramesh Babu P", "time": "13:27", "topic": "Codejock RibbonBar first tests", "username": "RAMESHBABU" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Ramesh,\n\nThanks for your kind words <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nWith the help of all of us, we can build great things <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "13:30", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Lailton,\n\nI mean these small buttons:\n\n[img:mj2yqf6f]http&#58;//img27&#46;imageshack&#46;us/img27/1269/65928451&#46;png[/img:mj2yqf6f]\n\nThe screenshot is from Windows 7 MsPaint", "time": "13:33", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "[img:3latmewh]http&#58;//www&#46;redstarsoft&#46;com&#46;br/codejock/show_0&#46;jpg[/img:3latmewh]\n <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "13:36", "topic": "Codejock RibbonBar first tests", "username": "lailton.webmaster" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Add system ball Button and Menu\n\n[img:7h1ne3sh]http&#58;//www&#46;fivetech&#46;com&#46;tw/fwh/ribbonbar3&#46;jpg[/img:7h1ne3sh]\n[img:7h1ne3sh]http&#58;//www&#46;fivetech&#46;com&#46;tw/fwh/ribbonbar4&#46;jpg[/img:7h1ne3sh]\n\n\nRegards,\n\nRichard", "time": "14:11", "topic": "Codejock RibbonBar first tests", "username": "richard-service" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Add QuickAccessControls\n\n[img:2noiukc3]http&#58;//www&#46;fivetech&#46;com&#46;tw/fwh/ribbonbar5&#46;jpg[/img:2noiukc3]\n\nRegards,\n\nRichard", "time": "14:35", "topic": "Codejock RibbonBar first tests", "username": "richard-service" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Richard,\n\nWould you be so kind to show to code you are doing this ? As Antonio and the others are doing, in order to everybody knows how to do this.\n\nTIA", "time": "14:40", "topic": "Codejock RibbonBar first tests", "username": "Kleyber" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Richard,\n\nWould you mind to share the source code ? thanks", "time": "14:41", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":pe7cln9t]Richard,\n\nWould you mind to share the source code ? thanks[/quote:pe7cln9t]\n\nNo problem. I will share source code. Please wait.\n\nRegards,\n\nRichard", "time": "16:22", "topic": "Codejock RibbonBar first tests", "username": "richard-service" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Add Press ALT key and show Keyboard \n\n[img:1w2alkw6]http&#58;//www&#46;fivetech&#46;com&#46;tw/fwh/ribbonbar6&#46;jpg[/img:1w2alkw6]\n\nRichard", "time": "16:24", "topic": "Codejock RibbonBar first tests", "username": "richard-service" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Richard,\n\nI would like to thank you for your work on the RIBBONBAR.\nIs it possible to get the source code for the new features from you.\n\nI still have one application in use which I made with VB.NET and CodeJock which I \nwant to convert to FWH. \nDo you have experience how speed behaviour of a realword application is if you use RIBBONBAR insteat of FWs REBAR,TAB, BUTTONBAR, etc.\n\nI also used BUBBLEBAR.\nDo you know if it is also possible to use the BUBBLEBBAR ocx with FWH.\n\n\nThanks in advance\nOtto", "time": "08:28", "topic": "Codejock RibbonBar first tests", "username": "Otto" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nDo anybody know about the limitations in the Trial version of CodeJock control. \n\nRegards\n\nAnser", "time": "09:02", "topic": "Codejock RibbonBar first tests", "username": "anserkk" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"anserkk\":3h4436z2]Hi,\n\nDo anybody know about the limitations in the Trial version of CodeJock control. \n\nRegards\n\nAnser[/quote:3h4436z2]\n\nHi\n\nTrial version only show license demo information Dialog when your application run Codejock ActiveX.\nThat's all.\n\nRegards,\n\nRichard", "time": "03:02", "topic": "Codejock RibbonBar first tests", "username": "richard-service" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Otto\":32ykaquf]Hello Richard,\n\nI would like to thank you for your work on the RIBBONBAR.\nIs it possible to get the source code for the new features from you.\n\nI still have one application in use which I made with VB.NET and CodeJock which I \nwant to convert to FWH. \nDo you have experience how speed behaviour of a realword application is if you use RIBBONBAR insteat of FWs REBAR,TAB, BUTTONBAR, etc.\n\nI also used BUBBLEBAR.\nDo you know if it is also possible to use the BUBBLEBBAR ocx with FWH.\n\n\nThanks in advance\nOtto[/quote:32ykaquf]\n\nHI\n\nyes, I will show source code.\nI have my friend Codejock solution LIB support RibbonBar,Menu+ToolBar,OutLookbar,ExploreBar\nI think Codejock insteat of FWH functions. But sorry, LIB not free.\nMaybe BUBBLEBAR can do it.\n\nRegards,\n\nRichard", "time": "03:07", "topic": "Codejock RibbonBar first tests", "username": "richard-service" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Quick Access...\n\n[img:10sqmygo]http&#58;//www&#46;sitasoft&#46;com/fivewin/screen/codej4&#46;png[/img:10sqmygo]\n\n[code=fw:10sqmygo]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlError              <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlButton             <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlPopup              <span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlButtonPopup        <span style=\"color: #000000;\">3</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlSplitButtonPopup   <span style=\"color: #000000;\">4</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlComboBox           <span style=\"color: #000000;\">5</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlEdit               <span style=\"color: #000000;\">6</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlCustom             <span style=\"color: #000000;\">7</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlLabel              <span style=\"color: #000000;\">8</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlCheckBox           <span style=\"color: #000000;\">9</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlGallery           <span style=\"color: #000000;\">10</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlRadioButton       <span style=\"color: #000000;\">11</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageNormal               <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageDisabled             <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageHot                  <span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageChecked              <span style=\"color: #000000;\">3</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImagePressed              <span style=\"color: #000000;\">4</span><br /><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>  <br /><br />   <span style=\"color: #00C800;\">local</span> oWnd, oAct, oRb, oTabFiles, oTabEdit, oTabBuild, oIcons<br />   <span style=\"color: #00C800;\">local</span> oGroup1, oGroup2, oButton1, oButton2, aButtons := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />   <span style=\"color: #00C800;\">local</span> oButton3, oButton4, oBmp1, oBmp2, oBmp3<br />   <br />   <span style=\"color: #00C800;\">local</span> oMini<br />   <br />   <span style=\"color: #00C800;\">local</span> oStatusBar, oToolTipContext<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br />   <br />  obmp1 := TBitmap<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Define</span><span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>ivewin<span style=\"color: #000000;\">\\v</span>er903<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\n</span>ew2.bmp\"</span>, oWnd <span style=\"color: #000000;\">&#41;</span><br />  obmp2 := TBitmap<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Define</span><span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>ivewin<span style=\"color: #000000;\">\\v</span>er903<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\o</span>pen2.bmp\"</span>, oWnd <span style=\"color: #000000;\">&#41;</span><br />  obmp3 := TBitmap<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Define</span><span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>ivewin<span style=\"color: #000000;\">\\v</span>er903<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\a</span>lphabmp<span style=\"color: #000000;\">\\e</span>xplorer.bmp\"</span>, oWnd <span style=\"color: #000000;\">&#41;</span><br /><br /><br />   oAct := TActiveX<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> oWnd, <span style=\"color: #ff0000;\">\"Codejock.CommandBarsFrame.12.1.1\"</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>  <br />   <br />   <span style=\"color: #B900B9;\">//@ 0, 0 ACTIVEX oAct PROGID \"Codejock.CommandBarsFrame.12.1.1\" OF oWnd</span><br /><br /><br />   oAct:<span style=\"color: #000000;\">bOnEvent</span> = <span style=\"color: #000000;\">&#123;</span> | cEvent, aParams, pParams | RibbonBarEvent<span style=\"color: #000000;\">&#40;</span> cEvent, aParams, pParams, aButtons <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AttachToWindow\"</span>, oWnd:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><br />   <br />   oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"EnableOffice2007Frame\"</span>, .T. <span style=\"color: #000000;\">&#41;</span><br />   oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"VisualTheme\"</span>, .T. <span style=\"color: #000000;\">&#41;</span><br /><br />           <br />   <span style=\"color: #B900B9;\">// ToolTipContext - Richard          </span><br />   oToolTipContext := TOleAuto<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> ActXPdisp<span style=\"color: #000000;\">&#40;</span> oAct:<span style=\"color: #000000;\">hActiveX</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />   oToolTipContext := oToolTipContext:<span style=\"color: #000000;\">ToolTipContext</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   oToolTipContext:<span style=\"color: #0000ff;\">Style</span> = <span style=\"color: #000000;\">5</span>  && xtpToolTipOffice2007<br />   oToolTipContext:<span style=\"color: #000000;\">ShowTitleAndDescription</span><span style=\"color: #000000;\">&#40;</span> .T., <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />   oToolTipContext:<span style=\"color: #000000;\">ShowImage</span><span style=\"color: #000000;\">&#40;</span> .T., <span style=\"color: #000000;\">10000</span> <span style=\"color: #000000;\">&#41;</span><br />   oToolTipContext:<span style=\"color: #000000;\">SetMargin</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br />   oToolTipContext:<span style=\"color: #000000;\">MaxTipWidth</span> = <span style=\"color: #000000;\">180</span><br />   <br />   <span style=\"color: #B900B9;\">// StatusBar-Richard</span><br />   oStatusBar := TOleAuto<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> ActXPdisp<span style=\"color: #000000;\">&#40;</span> oAct:<span style=\"color: #000000;\">hActiveX</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />   oStatusBar:<span style=\"color: #000000;\">StatusBar</span>:<span style=\"color: #000000;\">Visible</span> = .T.<br /><br />   oStatusBar:<span style=\"color: #000000;\">StatusBar</span>:<span style=\"color: #000000;\">AddPane</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />   oStatusBar:<span style=\"color: #000000;\">StatusBar</span>:<span style=\"color: #000000;\">AddPane</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">59137</span> <span style=\"color: #000000;\">&#41;</span><br />   oStatusBar:<span style=\"color: #000000;\">StatusBar</span>:<span style=\"color: #000000;\">AddPane</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">59138</span> <span style=\"color: #000000;\">&#41;</span><br />   oStatusBar:<span style=\"color: #000000;\">StatusBar</span>:<span style=\"color: #000000;\">AddPane</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">59139</span> <span style=\"color: #000000;\">&#41;</span>  <br />   oStatusBar:<span style=\"color: #000000;\">StatusBar</span>:<span style=\"color: #000000;\">IdleText</span> = <span style=\"color: #ff0000;\">\"FWH support Codejock RibbonBar\"</span>      <br />   <br />   <br />   oIcons := oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"icons\"</span> <span style=\"color: #000000;\">&#41;</span><br />  <br />   <br />   oIcons:<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> oBmp1:<span style=\"color: #000000;\">hBitmap</span>,<span style=\"color: #000000;\">1</span>,xtpImageNormal,.f. <span style=\"color: #000000;\">&#41;</span><br />   oIcons:<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> oBmp2:<span style=\"color: #000000;\">hBitmap</span>,<span style=\"color: #000000;\">2</span>,xtpImageNormal,.f. <span style=\"color: #000000;\">&#41;</span><br />   oIcons:<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> oBmp3:<span style=\"color: #000000;\">hBitmap</span>,<span style=\"color: #000000;\">3</span>,xtpImageNormal,.t. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// 4th param, Bool to Alpha Channel Support</span><br />   oIcons:<span style=\"color: #000000;\">LoadBitmap</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>ivewin<span style=\"color: #000000;\">\\v</span>er903<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\3</span>2x32<span style=\"color: #000000;\">\\e</span>dit.bmp\"</span>,<span style=\"color: #000000;\">4</span>, xtpImageNormal<span style=\"color: #000000;\">&#41;</span><br /> <br />   <span style=\"color: #B900B9;\">//oAct:Hide()</span><br /><br />   oRb = oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AddRibbonBar\"</span>, <span style=\"color: #ff0000;\">\"fwh\"</span> <span style=\"color: #000000;\">&#41;</span><br />   <br /><span style=\"color: #B900B9;\">// QuickAccess </span><br />   <br />   oQBtn1 := oRb:<span style=\"color: #000000;\">QuickAccessControls</span>:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton,<span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span><br />   oQBtn2 := oRb:<span style=\"color: #000000;\">QuickAccessControls</span>:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton,<span style=\"color: #000000;\">2</span>,<span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span><br />   oQBtn3 := oRb:<span style=\"color: #000000;\">QuickAccessControls</span>:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton,<span style=\"color: #000000;\">3</span>,<span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br /> <br />   <span style=\"color: #B900B9;\">// Sysbutton - Lailton</span><br />   Sbutton:=oRb:<span style=\"color: #000000;\">AddSystemButton</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   Sbutton:<span style=\"color: #000000;\">IconId</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br />   nCmb       := Sbutton:<span style=\"color: #000000;\">Commandbar</span><br />   Controls   := nCmb:<span style=\"color: #000000;\">Controls</span><br />   Controls:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">\"Menu item 1\"</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span>  <br />   Controls:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">\"Menu item 2\"</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span>  <br /><br /><br />   oTabFiles = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"&Files\"</span> <span style=\"color: #000000;\">&#41;</span>  <br />   oTabEdit  = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"&Edit\"</span> <span style=\"color: #000000;\">&#41;</span>  <br />   oTabBuild = oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"&Build\"</span> <span style=\"color: #000000;\">&#41;</span>  <br />   <br />   oGroup1 = oTabFiles:<span style=\"color: #000000;\">Groups</span>:<span style=\"color: #000000;\">AddGroup</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Test 1\"</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />   oGroup1:<span style=\"color: #000000;\">ShowOptionButton</span> = .T.<br />   <br />   oGroup2 = oTabFiles:<span style=\"color: #000000;\">Groups</span>:<span style=\"color: #000000;\">AddGroup</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Test 2\"</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>  <br /><br />   oButton1 = oGroup1:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"First\"</span> <span style=\"color: #000000;\">&#41;</span><br />   oButton2 = oGroup1:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"Second\"</span> <span style=\"color: #000000;\">&#41;</span><br />   <br />   oButton3 = oGroup2:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">4</span>, <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br />   oButton4 = oGroup2:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton, <span style=\"color: #000000;\">3</span>, <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br />   oButton4:<span style=\"color: #000000;\">SetIconSize</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">64</span>,<span style=\"color: #000000;\">64</span> <span style=\"color: #000000;\">&#41;</span><br />   oButton4:<span style=\"color: #000000;\">Width</span> = <span style=\"color: #000000;\">70</span><br />   oButton4:<span style=\"color: #000000;\">Height</span> = <span style=\"color: #000000;\">70</span><br />   <br /><br />   <br />   AAdd<span style=\"color: #000000;\">&#40;</span> aButtons, oButton1 <span style=\"color: #000000;\">&#41;</span><br />   AAdd<span style=\"color: #000000;\">&#40;</span> aButtons, oButton2 <span style=\"color: #000000;\">&#41;</span><br />   AADD<span style=\"color: #000000;\">&#40;</span> aButtons, oQBtn1 <span style=\"color: #000000;\">&#41;</span><br />   AADD<span style=\"color: #000000;\">&#40;</span> aButtons, oQBtn2 <span style=\"color: #000000;\">&#41;</span><br />   AADD<span style=\"color: #000000;\">&#40;</span> aButtons, oQBtn3 <span style=\"color: #000000;\">&#41;</span>      <br />   <br /><br />   oButton1:<span style=\"color: #000000;\">Caption</span> = <span style=\"color: #ff0000;\">\"FiveWin power!\"</span><br />   oButton1:<span style=\"color: #000000;\">TooltipText</span> = <span style=\"color: #ff0000;\">\"Ribbonbar for FWH\"</span><br />     <br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br />     <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> RibbonBarEvent<span style=\"color: #000000;\">&#40;</span> cEvent, aParams, pParams, aButtons <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span><br />      <span style=\"color: #00C800;\">case</span> cEvent == <span style=\"color: #ff0000;\">\"Execute\"</span> .and. Len<span style=\"color: #000000;\">&#40;</span> aButtons <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />           <span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span><br />              <span style=\"color: #00C800;\">case</span> aButtons<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">hObj</span> == aParams<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />                   <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Button 1\"</span> <span style=\"color: #000000;\">&#41;</span><br />                   <br />              <span style=\"color: #00C800;\">case</span> aButtons<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">hObj</span> == aParams<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />                   <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Button 2\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />              <span style=\"color: #00C800;\">case</span> aButtons<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">hObj</span> == aParams<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />                   <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"From Quick Access Button 1\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />              <span style=\"color: #00C800;\">case</span> aButtons<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">hObj</span> == aParams<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />                   <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"From Quick Access Button 2\"</span> + CRLF + <span style=\"color: #ff0000;\">\"FIVEWIN SHARING POWER\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />              <span style=\"color: #00C800;\">case</span> aButtons<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">hObj</span> == aParams<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />                   <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"From Quick Access Button 3\"</span> <span style=\"color: #000000;\">&#41;</span><br />                   <br />           <span style=\"color: #00C800;\">endcase</span>        <br />   <span style=\"color: #00C800;\">endcase</span>        <br />   <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span> <br /> </div>[/code:10sqmygo]", "time": "05:46", "topic": "Codejock RibbonBar first tests", "username": "Daniel Garcia-Gil" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Codejock comes with a very good help file. Here, for example, the use of two methods of the RibbonBar collection:\n\n[code=fw:2vpqhgxr]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">   oRibbonBar := oAct:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AddRibbonBar\"</span>, <span style=\"color: #ff0000;\">\"fwh\"</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #B900B9;\">//</span><br />   <span style=\"color: #B900B9;\">// Enables\\disables the Ribbon Office 2007 style themed window frame.</span><br />   <span style=\"color: #B900B9;\">//</span><br />   oRibbonBar:<span style=\"color: #000000;\">EnableFrameTheme</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #B900B9;\">//</span><br />   <span style=\"color: #B900B9;\">// Gets\\sets whether the Quick Access bar is displayed above or below the Ribbon.</span><br />   <span style=\"color: #B900B9;\">//</span><br />   oRibbonBar:<span style=\"color: #000000;\">ShowQuickAccessBelowRibbon</span><span style=\"color: #000000;\">&#40;</span> .T. <span style=\"color: #000000;\">&#41;</span> <br /> </div>[/code:2vpqhgxr]\n\nand the suitable screen shots from the Codejock help file:\n\n[img:2vpqhgxr]http&#58;//rapidshare&#46;com/files/216832696/Codejock_-_RibbonBar_collection&#46;jpg[/img:2vpqhgxr]\n[img:2vpqhgxr]http&#58;//rapidshare&#46;com/files/216863254/Codejock_-_EnableFrameTheme&#46;jpg[/img:2vpqhgxr]\n[img:2vpqhgxr]http&#58;//rapidshare&#46;com/files/216832697/Codejock_-_ShowQuickAccessBelowRibbon&#46;jpg[/img:2vpqhgxr]\n\nBut I want to manage some more features, perhaps someone else have found the way of doing <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> :\n- Add Press ALT key and show Keyboard \n- Changing the language to german, must be something like:\n oAct:CommandBarsGlobalSettings:ResourceFile( \"SuitePro.ResourceDe.dll\" ) or \n oAct:CommandBarsGlobalSettings:Do( \"ResourceFile\", \"SuitePro.ResourceDe.dll\" )\n- etc.\n\nChange/10:45: EnableFrameTheme.jpg exchanged!", "time": "08:00", "topic": "Codejock RibbonBar first tests", "username": "frose" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nI wanted to test and know what would happen when we develop an application using FWH along with a third party OCX control.\n\nAnybody here tried to run the generated Sample Exe on a PC other than the Development PC (ie On a PC where the [color=#FF0000:46ez9d7n][b:46ez9d7n]CodeJock Setup is not installed[/b:46ez9d7n][/color:46ez9d7n]) , assumed to be a user's/client PC\n\nI registered the Codejock.CommandBarsFrame.12.1.1.Ocx Control using the following command on the assumed client's PC\n\nI Created a Folder D:\\Test and copied the Test.Exe and the Codejock.CommandBarsFrame.12.1.1.Ocx \n\nThen I registered th OCX control using the following command\n\nRegSvr32 D:\\Test\\Codejock.CommandBarsFrame.12.1.1.Ocx\n\nand it registered successfully. \n\nBut when I try to run the Exe, I get the following error screen.\n[url=http&#58;//img15&#46;imageshack&#46;us/my&#46;php?image=erroruop&#46;jpg:46ez9d7n][img:46ez9d7n]http&#58;//img15&#46;imageshack&#46;us/img15/4741/erroruop&#46;jpg[/img:46ez9d7n][/url:46ez9d7n]\n\n[u:46ez9d7n][b:46ez9d7n][color=#FF0000:46ez9d7n]The exe is working fine in the PC where I installed CodeJock Setup (Development PC)[/color:46ez9d7n][/b:46ez9d7n][/u:46ez9d7n]\n\nI inserted the MsgInfo to debug, and found that the error occurs when we try to call the Activex\n[code=fw:46ez9d7n]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Before Calling the Avtivex\"</span><span style=\"color: #000000;\">&#41;</span><br />oAct := TActiveX<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> oWnd, <span style=\"color: #ff0000;\">\"Codejock.CommandBarsFrame.12.1.1\"</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>  <br /> </div>[/code:46ez9d7n]\n\nEven the TRY CATCH is not working.\n\nIs there any parameter in TActivex to solve this problem. There should be a licence key and how do you pass the Key thru our application. Any Idea ?\n\nI am getting the same errror message irrespective of registering the OCX, I tested in different PC's. All are Win XP\n\nRegards\n\nAnser", "time": "08:35", "topic": "Codejock RibbonBar first tests", "username": "anserkk" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, and ALL,\nWhy we must use an activex to use a RIbbonBar control ?\nWhy We not create together a Ribbon control only on fwh sources ?\nI think using an activex it is too heavy and slow.\nPerhaps maybe we can together create this control\nbeginning to create only the bar control \nand the insert on down a small folder \nWhy we not try to create it?", "time": "09:11", "topic": "Codejock RibbonBar first tests", "username": "Silvio" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio,\n\nWe may create it, but in the meantime we can use CodeJock's one <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "09:24", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Daniel,\n\nExcellent! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nThanks", "time": "09:24", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Anser,\n\nPlease register the OCX this way, before creating the ActiveX&#058;\n\nRegisterServer( \"Codejock.CommandBars.v12.1.1.ocx\" ) \n\nor, if using the new version:\n\nRegisterServer( \"Codejock.CommandBars.v13.0.0.ocx\" ) \n\n[code=fw:23t8huaq]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#pragma</span> BEGINDUMP<br /><br /><span style=\"color: #00D7D7;\">#include</span> <hbapi.h><br /><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><br />typedef LONG <span style=\"color: #000000;\">&#40;</span> * PDLLREGISTERSERVER <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#40;</span> void <span style=\"color: #000000;\">&#41;</span>; <br /><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> REGISTERSERVER <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp;HMODULE hDll = LoadLibrary<span style=\"color: #000000;\">&#40;</span> hb_parc<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp;LONG lReturn = <span style=\"color: #000000;\">0</span>;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> hDll <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; &nbsp; FARPROC pRegisterServer = GetProcAddress<span style=\"color: #000000;\">&#40;</span> hDll, <span style=\"color: #ff0000;\">\"DllRegisterServer\"</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> pRegisterServer <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lReturn = <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> PDLLREGISTERSERVER <span style=\"color: #000000;\">&#41;</span> pRegisterServer <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; FreeLibrary<span style=\"color: #000000;\">&#40;</span> hDll <span style=\"color: #000000;\">&#41;</span>; <br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;hb_retnl<span style=\"color: #000000;\">&#40;</span> lReturn <span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #000000;\">&#125;</span> &nbsp; &nbsp; &nbsp; &nbsp; <br /><br /><span style=\"color: #00D7D7;\">#pragma</span> ENDDUMP<br />&nbsp;</div>[/code:23t8huaq]", "time": "09:43", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Mr.Antonio,\n\nI tried as suggested by you but unfortunaely the same result\n\n[code=fw:1oqbog0k]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Before Calling the Avtivex\"</span><span style=\"color: #000000;\">&#41;</span><br />RegisterServer<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Codejock.CommandBars.v12.1.1.ocx\"</span> <span style=\"color: #000000;\">&#41;</span> <br /><span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"After Calling RegisterServer\"</span><span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// Error occurs after displaying this message</span><br />oAct := TActiveX<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> oWnd, <span style=\"color: #ff0000;\">\"Codejock.CommandBarsFrame.12.1.1\"</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>  </div>[/code:1oqbog0k]\n\nCodejock.CommandBars.v12.1.1.ocx file and the .Exe file is in the same folder.\n\nWhen I tested in Windows 7, No error but the application never loads\n\nRegards\n\nAnser", "time": "10:02", "topic": "Codejock RibbonBar first tests", "username": "anserkk" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi All,\n\nI test some Codejock version. I found some problem.\n\n1.Test Codejock v12.1.0/v12.1.1/v13.0.0\n[img:2k60ujnl]http&#58;//www&#46;fivetech&#46;com&#46;tw/fwh/ribbonbar7&#46;jpg[/img:2k60ujnl]\n\nwhen I press Max or ajust Window Size, appear problem below:\n[img:2k60ujnl]http&#58;//www&#46;fivetech&#46;com&#46;tw/fwh/ribbonbar8&#46;jpg[/img:2k60ujnl]\n\nof course, I test v11.2.2\nEverhthing work fine.\n[img:2k60ujnl]http&#58;//www&#46;fivetech&#46;com&#46;tw/fwh/ribbonbar9&#46;jpg[/img:2k60ujnl]\n\nRegards,\n\nRichard", "time": "10:07", "topic": "Codejock RibbonBar first tests", "username": "richard-service" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi ! All .. Please help !\n\nTry to using Activex.prg but error : numeric has no exported method\nthen I use this code : \n[code=fw:tzrdyi2k]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlError              <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlButton             <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlPopup              <span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlButtonPopup        <span style=\"color: #000000;\">3</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlSplitButtonPopup   <span style=\"color: #000000;\">4</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlComboBox           <span style=\"color: #000000;\">5</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlEdit               <span style=\"color: #000000;\">6</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlCustom             <span style=\"color: #000000;\">7</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlLabel              <span style=\"color: #000000;\">8</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlCheckBox           <span style=\"color: #000000;\">9</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlGallery           <span style=\"color: #000000;\">10</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpControlRadioButton       <span style=\"color: #000000;\">11</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageNormal               <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageDisabled             <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageHot                  <span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageChecked              <span style=\"color: #000000;\">3</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImagePressed              <span style=\"color: #000000;\">4</span><br /><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>  <br /><br />   <span style=\"color: #00C800;\">local</span> oWnd, oAct, oRb, oTabFiles, oTabEdit, oTabBuild, oIcons<br />   <span style=\"color: #00C800;\">local</span> oGroup1, oGroup2, oButton1, oButton2, aButtons := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />   <span style=\"color: #00C800;\">local</span> oButton3, oButton4, oBmp1, oBmp2, oBmp3<br />   <br />   <span style=\"color: #00C800;\">local</span> oMini<br />   <br />   <span style=\"color: #00C800;\">local</span> oStatusBar, oToolTipContext<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br />   <br />aControlHandles     := InitActivex<span style=\"color: #000000;\">&#40;</span> oWnd:<span style=\"color: #000000;\">hWnd</span> , <span style=\"color: #ff0000;\">\"Codejock.CommandBarsFrame.12.1.1\"</span> , <span style=\"color: #000000;\">0</span> ,<span style=\"color: #000000;\">0</span> ,<span style=\"color: #000000;\">0</span> ,<span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br /><br />nControlHandle      := aControlHandles <span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br />nInterfacePointer   := aControlHandles <span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><br />nAtlDllHandle       := aControlHandles <span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span><br /><br />oOle := CreateObject<span style=\"color: #000000;\">&#40;</span> nInterfacePointer <span style=\"color: #000000;\">&#41;</span><br /><br />oOle:<span style=\"color: #000000;\">AttachToWindow</span><span style=\"color: #000000;\">&#40;</span>oWnd:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><br />oOle:<span style=\"color: #000000;\">EnableOffice2007Frame</span> := .t.<br />oOle:<span style=\"color: #000000;\">VisualTheme</span> := .t.<br /><br />   oRb := oOle:<span style=\"color: #000000;\">AddRibbonBar</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"The Ribbon\"</span><span style=\"color: #000000;\">&#41;</span><br /><br />   oRb:<span style=\"color: #000000;\">EnableFrameTheme</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"&Files\"</span> <span style=\"color: #000000;\">&#41;</span>  <br />   oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"&Edit\"</span> <span style=\"color: #000000;\">&#41;</span>  <br />   oRb:<span style=\"color: #000000;\">InsertTab</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"&Build\"</span> <span style=\"color: #000000;\">&#41;</span>  <br />   <br />   Sbutton:=oRb:<span style=\"color: #000000;\">AddSystemButton</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   Sbutton:<span style=\"color: #000000;\">IconId</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br />   nCmb       := Sbutton:<span style=\"color: #000000;\">Commandbar</span><br />   Controls   := nCmb:<span style=\"color: #000000;\">Controls</span><br />   Controls:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">\"Menu item 1\"</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span>  <br />   Controls:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">\"Menu item 2\"</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span>  <br />   <br />   oQBtn1 := oRb:<span style=\"color: #000000;\">QuickAccessControls</span>:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton,<span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span><br />   oQBtn2 := oRb:<span style=\"color: #000000;\">QuickAccessControls</span>:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton,<span style=\"color: #000000;\">2</span>,<span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span><br />   oQBtn3 := oRb:<span style=\"color: #000000;\">QuickAccessControls</span>:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span> xtpControlButton,<span style=\"color: #000000;\">3</span>,<span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span><br />   <br />   oBar := oOle:<span style=\"color: #000000;\">StatusBar</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   oBar:<span style=\"color: #000000;\">Visible</span> := .t.<br /><br />     <br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MAXIMIZED</span><br />     <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br />*------------------------------------------------------------------------------*<br />* Low Level C Routines<br />*------------------------------------------------------------------------------*<br /><br /><span style=\"color: #00D7D7;\">#pragma</span> BEGINDUMP<br /><br /><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><span style=\"color: #00D7D7;\">#include</span> <commctrl.h><br /><span style=\"color: #00D7D7;\">#include</span> <hbapi.h><br /><span style=\"color: #00D7D7;\">#include</span> <hbvm.h><br /><span style=\"color: #00D7D7;\">#include</span> <hbstack.h><br /><br />typedef HRESULT<span style=\"color: #000000;\">&#40;</span>WINAPI *LPAtlAxGetControl<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#40;</span>HWND hwnd,IUnknown** unk<span style=\"color: #000000;\">&#41;</span>;<br />typedef HRESULT<span style=\"color: #000000;\">&#40;</span>WINAPI *LPAtlAxWinInit<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#40;</span>void<span style=\"color: #000000;\">&#41;</span>;<br /><br /><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> INITACTIVEX <span style=\"color: #000000;\">&#41;</span> <br /><span style=\"color: #000000;\">&#123;</span><br /><br />   HMODULE hlibrary;<br />   HWND hchild;<br />   IUnknown *pUnk;<br />   IDispatch *pDisp;<br />   LPAtlAxWinInit    AtlAxWinInit;<br />   LPAtlAxGetControl AtlAxGetControl;<br /><br />   hlibrary = LoadLibrary<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Atl.Dll\"</span> <span style=\"color: #000000;\">&#41;</span>;<br />   AtlAxWinInit    = <span style=\"color: #000000;\">&#40;</span> LPAtlAxWinInit <span style=\"color: #000000;\">&#41;</span>    GetProcAddress<span style=\"color: #000000;\">&#40;</span> hlibrary, <span style=\"color: #ff0000;\">\"AtlAxWinInit\"</span> <span style=\"color: #000000;\">&#41;</span>;<br />   AtlAxGetControl = <span style=\"color: #000000;\">&#40;</span> LPAtlAxGetControl <span style=\"color: #000000;\">&#41;</span> GetProcAddress<span style=\"color: #000000;\">&#40;</span> hlibrary, <span style=\"color: #ff0000;\">\"AtlAxGetControl\"</span> <span style=\"color: #000000;\">&#41;</span>;<br />   AtlAxWinInit<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>;<br /><br />   hchild = CreateWindowEx<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"AtlAxWin\"</span>,hb_parc<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span>, WS_CHILD | WS_VISIBLE , hb_parni<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#41;</span>, hb_parni<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#41;</span>, hb_parni<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#41;</span>, hb_parni<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#40;</span>HWND<span style=\"color: #000000;\">&#41;</span>hb_parnl<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> , <span style=\"color: #000000;\">0</span> , <span style=\"color: #000000;\">0</span> , <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>;<br /><br />   AtlAxGetControl<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span>HWND<span style=\"color: #000000;\">&#41;</span> hchild , &pUnk <span style=\"color: #000000;\">&#41;</span>;<br />   pUnk->lpVtbl->QueryInterface<span style=\"color: #000000;\">&#40;</span>pUnk,&IID_IDispatch,<span style=\"color: #000000;\">&#40;</span>void**<span style=\"color: #000000;\">&#41;</span>&pDisp<span style=\"color: #000000;\">&#41;</span>;<br /><br />   hb_reta<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span>;<br />   hb_stornl<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span>LONG<span style=\"color: #000000;\">&#41;</span> hchild   , <span style=\"color: #000000;\">-1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>; <br />   hb_stornl<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span>LONG<span style=\"color: #000000;\">&#41;</span> pDisp      , <span style=\"color: #000000;\">-1</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span>; <br />   hb_stornl<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span>LONG<span style=\"color: #000000;\">&#41;</span> hlibrary   , <span style=\"color: #000000;\">-1</span>, <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span>; <br /><br /><span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> EXITACTIVEX <span style=\"color: #000000;\">&#41;</span> <br /><span style=\"color: #000000;\">&#123;</span><br /><br />   DestroyWindow <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span>HWND<span style=\"color: #000000;\">&#41;</span>hb_parnl<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br />   FreeLibrary <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span>HMODULE<span style=\"color: #000000;\">&#41;</span>hb_parnl<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br /><br /><span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #00D7D7;\">#pragma</span> ENDDUMP<br /> </div>[/code:tzrdyi2k]\n\nGood. No Error\n\nHow to get event with this function\n[img:tzrdyi2k]http&#58;//www&#46;veteranclipper&#46;com/fafi&#46;JPG[/img:tzrdyi2k]\n\n\n\n\nBest Regards\nFafi", "time": "10:27", "topic": "Codejock RibbonBar first tests", "username": "fafi" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi all,\n\nas described above, on my machine <cEvent> is numerical, so I have changed the RibbonBarEvent() as follows:\n\n[code=fw:1v4eloso]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">FUNCTION</span> RibbonBarEvent<span style=\"color: #000000;\">&#40;</span> cEvent, aParams, pParams, aControls <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">IF</span> Valtype<span style=\"color: #000000;\">&#40;</span> cEvent <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #ff0000;\">\"N\"</span><br />      <span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">CASE</span><br />         <span style=\"color: #00C800;\">CASE</span> cEvent == <span style=\"color: #000000;\">1</span> .AND. Len<span style=\"color: #000000;\">&#40;</span> aControls <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />            <span style=\"color: #B900B9;\">//</span><br />            <span style=\"color: #B900B9;\">// EventExecute - Occurs when a command bar control is clicked.</span><br />            <span style=\"color: #B900B9;\">//</span><br />            <span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">CASE</span><br />               <span style=\"color: #00C800;\">CASE</span> aControls<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">hObj</span> == aParams<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />                  <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Button 1\"</span> <span style=\"color: #000000;\">&#41;</span><br />               <span style=\"color: #00C800;\">CASE</span><br />                   ...<br />               <span style=\"color: #00C800;\">OTHERWISE</span><br />                  <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Unknown button!\"</span> <span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #00C800;\">ENDCASE</span><br />      <span style=\"color: #00C800;\">ENDCASE</span><br />   ELSEIF Valtype<span style=\"color: #000000;\">&#40;</span> cEvent <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #ff0000;\">\"C\"</span><br />      <span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">CASE</span><br />         <span style=\"color: #00C800;\">CASE</span> cEvent == <span style=\"color: #ff0000;\">\"Execute\"</span> .AND. Len<span style=\"color: #000000;\">&#40;</span> aControls <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />              <span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">CASE</span><br />                 <span style=\"color: #00C800;\">CASE</span> aControls<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">hObj</span> == aParams<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />                      <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Button 1\"</span> <span style=\"color: #000000;\">&#41;</span><br />                   ...<br />               <span style=\"color: #00C800;\">OTHERWISE</span><br />                  <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Unknown button!\"</span> <span style=\"color: #000000;\">&#41;</span><br />              <span style=\"color: #00C800;\">ENDCASE</span><br />      <span style=\"color: #00C800;\">ENDCASE</span><br />   <span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:1v4eloso]\n\nI just spend a closer look to the error.log when the original code crashes and I don't really understand this part:\n\n[list:1v4eloso]Variables in use\n================\n Procedure Type Value\n ==========================\n RIBBONBAREVENT\n Param 1: N 4\n Param 2: A Len: 4\n Param 3: N 1570948\n Param 4: A Len: 0\n Local 1: L .F.\n Local 2: N 4\n Local 3: C \"Execute\"\n Local 4: U \n Local 5: N 0\n[/list:u:1v4eloso]\n\nOk, Param 1 == cEvent, Param 2 == aParams, Param 3 == pParams, Param 4 == aControls.\n\nBut what about the Locals 1..5? I don't declare them, so I don't know the names of them and 'Local 5' is obviously the missing variable with the value 'Execute' <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->", "time": "11:00", "topic": "Codejock RibbonBar first tests", "username": "frose" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Fafi,\n\nYour code crashes (GPF) in Windows 7.\n\nWhy don't you use FWH Class TActiveX ?", "time": "11:01", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Frank,\n\nAre you using Harbour or xHarbour ? What build ?\n\nWhat C compiler ?", "time": "11:03", "topic": "Codejock RibbonBar first tests", "username": "Antonio Linares" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Fafi,\n\nI remember OsKar make some code like you. Only problem I don't know his EVEN source.\n\nRegards,\n\nRichard", "time": "11:03", "topic": "Codejock RibbonBar first tests", "username": "richard-service" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nfrom the error.log:\nCompiler version: xHarbour build 1.1.0 Intl. (SimpLex) (Rev. 6220)\nWindows version: 6.0, Build 6001 Service Pack 1\n\nI'm using xHarbour.com (xHarbour Builder) with 'xCC'.", "time": "11:20", "topic": "Codejock RibbonBar first tests", "username": "frose" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":3cmznqwo]Fafi,\n\nYour code crashes (GPF) in Windows 7.\n\nWhy don't you use FWH Class TActiveX ?[/quote:3cmznqwo]\n\nMr. Antonio..\n\nwhen I use tactivex.. get error : numeric has no exported method\n\nwhen I call : \n\n>> oRb = oAct:Do( \"AddRibbonBar\", \"fwh\" )\n\n oRB return valtype = N\n\n>> oTabFiles = oRb:InsertTab( 0, \"&Files\" ) \n return error : numeric has no exported method\n \nI use : fwh ver 8.05 with xhb commercial\n\nPlease help !\n\nRegards\nFafi", "time": "11:27", "topic": "Codejock RibbonBar first tests", "username": "fafi" } ]
Codejock RibbonBar first tests
[ { "date": "2009-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"fafi\":d56ds4pl][quote=\"Antonio Linares\":d56ds4pl]Fafi,\n\nYour code crashes (GPF) in Windows 7.\n\nWhy don't you use FWH Class TActiveX ?[/quote:d56ds4pl]\n\nMr. Antonio..\n\nwhen I use tactivex.. get error : numeric has no exported method\n\nwhen I call : \n\n>> oRb = oAct:Do( \"AddRibbonBar\", \"fwh\" )\n\n oRB return valtype = N\n\n>> oTabFiles = oRb:InsertTab( 0, \"&Files\" ) \n return error : numeric has no exported method\n \nI use : fwh ver 8.05 with xhb commercial\n\nPlease help !\n\nRegards\nFafi[/quote:d56ds4pl]\n\nHi Fafi,\n\nTry FWH ActiveX, My Ribbonbar will be finish.\n\nRegards,\n\nRichard", "time": "11:53", "topic": "Codejock RibbonBar first tests", "username": "richard-service" } ]
Codejock RibbonBar first tests