Help with PV_GADgets

Just starting out? Need help? Post your questions and find answers here.
loulou
User
User
Posts: 38
Joined: Tue Dec 08, 2009 7:42 am

Help with PV_GADgets

Post by loulou »

How can i translate this in PB 5.20

Code: Select all

Procedure WindowCallback(WindowID,message,wParam,lParam)
  ReturnValue=#PB_ProcessPureBasicEvents
  If message=#WM_GETMINMAXINFO
   ReturnValue=PVDynamic_LockWindow(WindowID,lParam)
  EndIf
  If message=#WM_SIZE
    ReturnValue=PVDynamic_Resize(WindowID)
  EndIf
  
  If message=#WM_CTLCOLORSTATIC Or message=#WM_CTLCOLOREDIT Or message=#WM_CTLCOLORLISTBOX
   ReturnValue=PVDynamic_ColorGadget(lParam,wParam)
  EndIf
 ProcedureReturn ReturnValue
EndProcedure
  
Thanks in advance
sec
Enthusiast
Enthusiast
Posts: 792
Joined: Sat Aug 09, 2003 3:13 am
Location: 90-61-92 // EU or ASIA
Contact:

Re: Help with PV_GADgets

Post by sec »

It does looks using PureVisionXP http://purevision.reelmedia.org/HTML/in ... namic.html

or you find one other solution in forum :mrgreen:
loulou
User
User
Posts: 38
Joined: Tue Dec 08, 2009 7:42 am

Re: Help with PV_GADgets

Post by loulou »

sec wrote:It does looks using PureVisionXP http://purevision.reelmedia.org/HTML/in ... namic.html

or you find one other solution in forum :mrgreen:
Unfortunately REAL MEDIA seems to be out and there isn't a new version for PB 5.20
Fred
Administrator
Administrator
Posts: 18161
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Help with PV_GADgets

Post by Fred »

That's why you should never rely on third part libraries without having the source code.
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Help with PV_GADgets

Post by IdeasVacuum »

If you PM André, he might be able to tell you what is happening at Reel Media. Their website is fully functional, which is a good sign, and the latest PV supports PBv5x. André sells PureVision to European customers: http://www.purearea.net/pb/english/indexpv.htm
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Ramihyn_
Enthusiast
Enthusiast
Posts: 314
Joined: Fri Feb 24, 2006 9:40 am

Re: Help with PV_GADgets

Post by Ramihyn_ »

It is usually a matter of informing Reel Media about the new PB release and a few days later a new compatible PvXP version is released. I did already inform them by Mail when 5.20 was released, but a second notice to their support, wont hurt :)
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Help with PV_GADgets

Post by PB »

Code: Select all

Procedure WindowCallback(WindowID,message,wParam,lParam)
  ReturnValue=#PB_ProcessPureBasicEvents
  If message=#WM_GETMINMAXINFO
   ReturnValue=PVDynamic_LockWindow(WindowID,lParam)
  EndIf
  If message=#WM_SIZE
    ReturnValue=PVDynamic_Resize(WindowID)
  EndIf
  If message=#WM_CTLCOLORSTATIC Or message=#WM_CTLCOLOREDIT Or message=#WM_CTLCOLORLISTBOX
   ReturnValue=PVDynamic_ColorGadget(lParam,wParam)
  EndIf
 ProcedureReturn ReturnValue
EndProcedure
I'm very shocked that the Callback uses multiples of If/EndIf instead of
the more optimized If/ElseIf/EndIf structure. :shock: Is this sample from a
current release of PureVision?
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Help with PV_GADgets

Post by IdeasVacuum »

...or better still, Select message. Probably not a snippet from Reel Media though?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: Help with PV_GADgets

Post by netmaestro »

Forum member "Paul" is the author of all things reelmedia. He's been here almost from the beginning and is very good about keeping his libraries updated with every new release of PureBasic. Just drop him a PM and if an update is required I'm sure he'll take care of it. But iirc he does wait until final releases before updating, so while many of us have been using 5.20 for months now, keep in mind that the final is brand-new.
BERESHEIT
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2137
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: Help with PV_GADgets

Post by Andre »

netmaestro wrote:Forum member "Paul" is the author of all things reelmedia. He's been here almost from the beginning and is very good about keeping his libraries updated with every new release of PureBasic. Just drop him a PM and if an update is required I'm sure he'll take care of it. But iirc he does wait until final releases before updating, so while many of us have been using 5.20 for months now, keep in mind that the final is brand-new.
I can second this, even if I don't use PureVisionXP myself. Paul is regularly updating PV very fast, but mostly for the final release of PB.

And from handling PV orders I can say, that Paul is replying almost immediately :D
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2137
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: Help with PV_GADgets

Post by Andre »

Paul is alive, as you can see from his actual posts here: http://www.purebasic.fr/english/viewtop ... 13&t=56769 :-)
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2137
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: Help with PV_GADgets

Post by Andre »

I got a message from Paul, where he told that he already started with updating PureVision to PB5.20 now. :D

He was not at home for some days, so he didn't notive the PB5.20 final release immediately, and last days he had to solve a bigger hardware / server crash...
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
Ramihyn_
Enthusiast
Enthusiast
Posts: 314
Joined: Fri Feb 24, 2006 9:40 am

Re: Help with PV_GADgets

Post by Ramihyn_ »

I got a mail reply from Paul and he pointed me to the new PureVisionXP version for PB 5.20 LTS.

download link
Post Reply