PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Elias Montoya on January 11, 2012, 05:32:45 AM

Title: Playing with examples
Post by: Elias Montoya on January 11, 2012, 05:32:45 AM

Im trying to understand the OCX examples. But when i click RUN with Jose's Carousel example, i get a compile time error:

Deftype, Type ID (?%?&!#$) or AS required: LISTVIEW_GETCOLUMNWIDTH

Is this a know issue or am i missing an update?
Title: Re: Playing with examples
Post by: Rolf Brandt on January 11, 2012, 10:19:12 AM
Hi Elias,

did you see this?
http://www.planetsquires.com/protect/forum/index.php?topic=2982.msg22307#msg22307

Rolf
Title: Re: Playing with examples
Post by: José Roca on January 11, 2012, 12:14:48 PM
The example compiles fine if you have your settings right, but who knows what you're doing? For example, there is not a call to LISTVIEW_GETCOLUMNWIDTH in it, so how can you get that error?
Title: Re: Playing with examples
Post by: Elias Montoya on January 11, 2012, 03:04:00 PM
 Rolf, i downloaded before paul updated the link, i just downloaded it, installed it, and problem solved. :)

Jose, I did nothing strange, just opened your example, and compiled it without editing it whatsoever, in fact i have been using firefly for the past 3 or 4 days and compiled many things without problems. Last night i worked around it by adding a 'pontless' listview to the form. I figured if i did that, firefly would include the required libraries, and it did. I dont know what the problem was either but it's gone with the update that paul posted. :)

Thanks!
Title: Re: Playing with examples
Post by: Elias Montoya on January 11, 2012, 03:06:53 PM

By the way, i was clicking the elements of the carousel and nothing was happening until i made this modification in your example:

      ' // Get the identifier of the element that has fired the event
      'strId = ACode$(pElement.Id)
      strId = pElement.Id


Now i get a message box displaying what icon i clicked.
Title: Re: Playing with examples
Post by: José Roca on January 11, 2012, 06:59:09 PM
That was an old example for PB9.