Page 1 of 1

Help with PV_GADgets

Posted: Fri Sep 20, 2013 5:56 am
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

Re: Help with PV_GADgets

Posted: Fri Sep 20, 2013 6:02 am
by sec
It does looks using PureVisionXP http://purevision.reelmedia.org/HTML/in ... namic.html

or you find one other solution in forum :mrgreen:

Re: Help with PV_GADgets

Posted: Fri Sep 20, 2013 6:14 am
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

Re: Help with PV_GADgets

Posted: Fri Sep 20, 2013 9:07 am
by Fred
That's why you should never rely on third part libraries without having the source code.

Re: Help with PV_GADgets

Posted: Fri Sep 20, 2013 10:17 am
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

Re: Help with PV_GADgets

Posted: Fri Sep 20, 2013 10:51 am
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 :)

Re: Help with PV_GADgets

Posted: Fri Sep 20, 2013 12:20 pm
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?

Re: Help with PV_GADgets

Posted: Fri Sep 20, 2013 12:27 pm
by IdeasVacuum
...or better still, Select message. Probably not a snippet from Reel Media though?

Re: Help with PV_GADgets

Posted: Fri Sep 20, 2013 3:52 pm
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.

Re: Help with PV_GADgets

Posted: Fri Sep 20, 2013 8:36 pm
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

Re: Help with PV_GADgets

Posted: Sat Sep 21, 2013 11:14 pm
by Andre
Paul is alive, as you can see from his actual posts here: http://www.purebasic.fr/english/viewtop ... 13&t=56769 :-)

Re: Help with PV_GADgets

Posted: Sun Sep 22, 2013 8:50 pm
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...

Re: Help with PV_GADgets

Posted: Mon Sep 23, 2013 2:19 pm
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