View Single Post
01-11-24, 02:15 AM   #4
Carriola
A Murloc Raider
Join Date: Jan 2024
Posts: 4
Thank you Fizzlemizz and Xrystal for replies. I had already tried with Frame:SetHyperlinksEnabled and EditBox:SetHyperlinksEnabled but it seems doesn't work.
Code example:
Code:
function Open_Frame_With_Link_Test1(link)

    local f = CreateFrame("Frame", "PippoPlutoPaperino", UIParent);
    f:SetSize(300, 300);
    f:SetPoint("LEFT", 100, 0);

    f:SetHyperlinksEnabled(true);
    print("passed --------");
    local pippo = f:CreateFontString(nil, "OVERLAY", "GameFontNormal");
    pippo:SetPoint("TOPLEFT", LaFratellanza_note_frame, "TOPLEFT", 30, -30);
    pippo:SetText(link);

end

function Open_Frame_With_Link_Test2(link)
    local f = CreateFrame("Frame", "PippoPlutoPaperino", UIParent);
    f:SetSize(300, 300);
    f:SetPoint("LEFT", 100, 0);

    local editBox = CreateFrame("EditBox", nil, f, "InputBoxTemplate");
    editBox:SetAllPoints();
    editBox:SetCursorPosition(0);
    editBox:SetHyperlinksEnabled(true);
    print("passed --------");
    editBox:SetText(link);

end
In both function I can't see "passed --------" printed, because it seems :SetHyperlinksEnabled have an error.

Alternatively, is there an API/function that, having the profession link (of another player), opens the tradeSkill? I would like to specify that the profession link belongs to another player, not mine professions.
  Reply With Quote