Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sat Sep 21, 2019 3:46 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: MultiMedia soft Controls
PostPosted: Sun Jul 17, 2011 12:17 am 
Offline

Joined: Sun Jul 17, 2011 12:11 am
Posts: 2
Hello,

I am exploring RealStudio. Has anyone attempted to use the 3D Button controls from MultiMedia Soft in RealStudio?

Thanks,

Bob


Top
 Profile  
Reply with quote  
 Post subject: Re: MultiMedia soft Controls
PostPosted: Mon Jul 18, 2011 4:54 pm 
Offline
User avatar

Joined: Fri Sep 30, 2005 11:48 am
Posts: 3554
Location: Lenexa, KS
I've not heard of them before. Do you have a link to them?

_________________
Bob K.

A blog about being a Real Studio/Xojo developer at http://www.bkeeneybriefs.com


Top
 Profile  
Reply with quote  
 Post subject: Re: MultiMedia soft Controls
PostPosted: Mon Jul 18, 2011 5:25 pm 
Offline

Joined: Mon May 31, 2010 5:35 am
Posts: 2412
Location: Netherlands
those should be it: http://www.multimediasoft.com/

You can use them, but it's better to create your own buttons (from a Canvas).

_________________
SWORT™
- Windows Vista, Windows XP, Windows 7, Linux Mint 11 and Mac OSX Lion
- REAL Studio Enterprise(latest) and WEB Edition(latest)
- Plugins (MBS Complete, ToringoLib, Einhugur, VanHoek + Some open source plugins)
For Dutch User Groups ask me to enter!


Top
 Profile  
Reply with quote  
 Post subject: Re: MultiMedia soft Controls
PostPosted: Tue Jul 19, 2011 2:02 pm 
Offline

Joined: Sun Jul 17, 2011 12:11 am
Posts: 2
Yes, the link is http://www.multimediasoft.com/. The MultiMedia Soft folks are not familiar with RealStudio.

We use these controls in a couple VB6 applications and they provide very slick GUI operations with a boatload of definable properties. Have not seen a native equivalent for RealStudio and knowing the sophistication of these controls, it appears using the Canvas control might be a stretch.

As a test I tried loading the MultiMedia Soft controls into the evaluation version of RealStudio with limited success. Not all of the properties appeared in the list and a simple "Hello World" program would not run. I also tried importing some Infragistics 3D controls we still use and that attempt immediately crashed the RealStudio IDE.

What governs how an ActiveX will or will not work in RealStudio? It would be great to have controls like the MultiMedia Soft (or another 3rd party group) native to the RealStudio environment.

Thanks,

Bob G.


Top
 Profile  
Reply with quote  
 Post subject: Re: MultiMedia soft Controls
PostPosted: Tue Jul 19, 2011 2:17 pm 
Offline
User avatar

Joined: Fri Sep 30, 2005 11:48 am
Posts: 3554
Location: Lenexa, KS
ActiveX support is limited, at best, because Real Studio does not fully support COM. <feedback://showreport?report_id=6349>

With that said, I don't find I miss ActiveX controls all that much. But then I do cross-platform programming which means I lose ActiveX on Mac and Linux anyway so it's just been easier to find replacements or roll my own. If you're doing Windows-only programming then it's a much bigger deal.

_________________
Bob K.

A blog about being a Real Studio/Xojo developer at http://www.bkeeneybriefs.com


Top
 Profile  
Reply with quote  
 Post subject: Re: MultiMedia soft Controls
PostPosted: Tue Jul 19, 2011 3:23 pm 
Offline

Joined: Thu Dec 16, 2010 1:22 pm
Posts: 188
I swear older versions of RS you used to be able to right-click and select "Show Property Page" and edit the properties specific to the ActiveX control. This doesn't work now.
You can (for instance) put the following code in mouseenter
me.ShowPropertyPages

and that does indeed show the properties relevant to the control and modifying them does indeed work as expected, unfortunately it's not saved after runtime.

So you have to just struggle through it, hopefully it comes with good documentation.
Just did a little experiment and this works

Open:
me.content.caption="My 3D Button Magic Control"


EventTriggered:
select case eventName
case "containerneedrefresh"
case "Paintdone"
case "mousein"
case "mouseout"
case "mousemove"
case "mousedown"
MsgBox "Hello, World"
else
break // to discover other events by name
end

Unfortunately after dismissing the MsgBox, it steals all future clicks ANYWHERE on the window. Interestingly just throwing a break, does indeed call "mousedown" as the eventname so we have that right, and it does resume properly, so something about the msgbox is messing it up. Just updating text on the page to verify the click, does work as expected.

I tried setting the backcolor with
me.content.backcolor=rgb(200,0,0)
and it does indeed "change" the color, but examining it in the propertypages, I found it changes it to rgb(1,1,1) and luminescence to zero, so maybe we have to pass colors differently.

I tried checking the color after setting in the propertypage to see if it's somehow stored differently, I tried
me.content.backcolor=&cff0080

and then checked in the debugger with
dim c as color=me.content.backcolor
and it returns &c010101 - weird

conclusion, if you absolutely have to use an ActiveX control, plan on spending the weekend to achieve basic functionality, but don't expect advanced usage unless you have a lifetime.

Enjoy :D


Top
 Profile  
Reply with quote  
 Post subject: Re: MultiMedia soft Controls
PostPosted: Tue Jul 19, 2011 3:42 pm 
Offline
User avatar

Joined: Fri Sep 30, 2005 11:48 am
Posts: 3554
Location: Lenexa, KS
Quote:
I swear older versions of RS you used to be able to right-click and select "Show Property Page" and edit the properties specific to the ActiveX control


I've been using RB for 10 years and I don't *ever* remember that happening. At best, importing an ActiveX control created a class instance that was populated with the various methods, properties and events. Frankly, I've given up on full COM support in Real Studio.

_________________
Bob K.

A blog about being a Real Studio/Xojo developer at http://www.bkeeneybriefs.com


Top
 Profile  
Reply with quote  
 Post subject: Re: MultiMedia soft Controls
PostPosted: Tue Jul 19, 2011 4:25 pm 
Offline

Joined: Thu Dec 16, 2010 1:22 pm
Posts: 188
ah, that was it, thanks for racking my brain Bob.
I was doing it through the OLEContainer.

Do Project->Add-> ActiveX Component...
Drag it into a window and sure enough, there's a property list 10 miles long, and all the events and methods accessible...
unfortunately it crashes on build :lol:
Oh well, not gonna lose sleep over this, maybe revisit another day.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group