Page 1 of 1

SONIC SKINNER ACTIVEX

Posted: Thu Mar 02, 2023 6:39 am
by unixkd
HI All

Sonic Activex can be used to skin an Xbase++ Application and it cost just $21. I tried the control but it gives automation runtime error 440. Anybody familiar with this error? Sonic skinner can be downloaded here: https://sonicactivex.com/download.html
#include "dcdialog.ch"
#include "appevent.ch"
#define OCX_CID "SonicSkinner.SonicSkin"

PROCEDURE Xtest()

LOCAL GetList := {}, oFileMenu, oMenuBar, oEditMenu, oMemo, oUtilMenu, cMemo := ""

@ 0,0 DCACTIVEXCONTROL oSkin CLSID OCX_CID SIZE 0,0 EVAL {|o| _ConfigureSkin(o)}

@ 0,0 DCMULTILINE cMemo SIZE 70,7 FONT "10.Courier.Bold"


/* ---- Menu ---- */

DCMENUBAR oMenuBar

DCSUBMENU oFileMenu PROMPT "&File" PARENT oMenuBar

DCMENUITEM "&Open a File" PARENT oFileMenu ;
ACTION {||Msgbox('OpenFile')} ;

DCMENUITEM "&Close File" PARENT oFileMenu ;
ACTION {||Msgbox('CloseFile')}

DCMENUITEM "&Pack File" PARENT oFileMenu ;
ACTION {||Msgbox('Packfile')}

DCSUBMENU oEditMenu PROMPT "&Edit" PARENT oMenuBar

DCMENUITEM "&Next Record" PARENT oEditMenu ;
ACTION {||Msgbox('Packfile')}

DCMENUITEM "&Previous Record" PARENT oEditMenu ;
ACTION {||Msgbox('Packfile')}


DCMENUITEM "&Top of File" PARENT oEditMenu ;
ACTION {||Msgbox('Packfile')}

DCMENUITEM "&Bottom of File" PARENT oEditMenu ;
ACTION {||Msgbox('Packfile')}

DCSUBMENU oUtilMenu PROMPT "&Util" PARENT oMenuBar

DCMENUITEM "Copy File" PARENT oUtilMenu ;
ACTION {||Msgbox('CopyFile')}

DCMENUITEM "Move File" PARENT oUtilMenu ;
ACTION {||Msgbox('MoveFile')}

DCREAD GUI ;
TITLE 'Menu Demo' ;
FIT ;
ADDBUTTONS EVAL {|o| .t. }

RETURN

Static Function _ConfigureSkin(o)
o:AllowFullScreen := .t.
o:AllowResize := .t.
o:AllowSystemMenu := .t.
o:Enabled := .t.
Return nil

Re: SONIC SKINNER ACTIVEX

Posted: Thu Mar 02, 2023 9:46 am
by skiman
Maybe you can try the following. This was how I used it in the past for Codejock. I don't know if the method applyWindow (or something similar) exists in your control.
DCREAD GUI ;
PARENT @oDlg
TITLE 'Menu Demo' ;
FIT ;
ADDBUTTONS EVAL {|o| oSkin:applyWindow(oDlg:getHwnd()) }

Re: SONIC SKINNER ACTIVEX

Posted: Thu Mar 02, 2023 10:46 pm
by Auge_Ohr
hi,

i try to install in VirtualBox but got
Skinner_Virus.jpg
Skinner_Virus.jpg (47.58 KiB) Viewed 1933 times
have try it as Administrator with same Result

Re: SONIC SKINNER ACTIVEX

Posted: Fri Mar 03, 2023 7:32 am
by unixkd
Find the OCX file. just unzip it and try
SonicSkinner.zip
(116.71 KiB) Downloaded 102 times
Joe

Re: SONIC SKINNER ACTIVEX

Posted: Fri Mar 03, 2023 11:58 am
by unixkd
Hi Jimmy

I made the sonicskinner.ocx available in the post above

Joe