Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
clickable web link in edit line
I was wondering if there was an addition to the edit line control that gives the user the capability to double click on the web address entered and opening the webpage that address was pointing to.
Comments
If you only need to display the link and the end user is not allowed to edit this directly, I would recommend the SRP HyperLink control.
https://wiki.srpcs.com/display/SubclassControl/OptionButton
https://wiki.srpcs.com/display/SubclassControl/OptionImage
The command that I am using is "Set_Property(@Window:".OLE_SUBCLASS", "OLE.OptionImage[":CtrlId:"]", "C:\MyOptionImage.png")" Any suggestions?
Set_Property(@Window:".OLE_SUBCLASS", "OLE.OptionImage[MY_FORM.MY_EDITLINE]", "C:\MyOptionImage.png")
But this does:
Set_Property(@Window:".OLE_SUBCLASS", "OLE.OptionImage[MY_FORM;MY_EDITLINE]", "C:\MyOptionImage.png")
Option 3 is to tell the Subclass control the name of the window in advance so you can use just the control name:
Set_Property(@Window:".OLE_SUBCLASS", "OLE.CurrentWindow", "MY_FORM") . . . Set_Property(@Window:".OLE_SUBCLASS", "OLE.OptionImage[MY_EDITLINE]", "C:\MyOptionImage.png")
Here is the real line of code that I used
Set_Property(@Window:".OLE_SUBCLASS", "OLE.OptionImage[":@Window : ';' : EditCtrl:"]", "f:\Shoes2000\bmps\chrome.jpg")
For EditCnt = 1 to NumCtrls
EditCtrl = Field(EditCtrls, ',', EditCnt, 1)
Handle = Get_Property(@Window : '.' : EditCtrl, 'HANDLE')
Send_Message(Ctrl, 'OLE.Subclass', Handle, @Window : '.' : EditCtrl)
Set_Property(Ctrl, 'OLE.OptionButton[' : @Window : ';' : EditCtrl : ']', True$)
Send_Message(Ctrl, 'QUALIFY_EVENT', 'OLE.OnOptionClick', Qualify)
if EditCtrl = 'EDL_SHARE_URL' then
Set_Property(@Window:".OLE_SUBCLASS", "OLE.OptionImage[":@Window : ';' : EditCtrl:"]", "f:\Shoes2000\bmps\chrome.jpg")
end
Next EditCnt
Did you figure this out?
Glad it's sorted.