Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

AX 2012 R2: WINAPI::setWindowText doesn't work (on customer machine)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Setting the title text in info.workspaceWindowCreated() using WINAPI::setWindowText

  works ono our machine

  but doesn't work on customer's machine

We deployed all 3 databases (xxx, xxx_Baseline, xxx_model),

user role: administrator

identical lizences

Kernel version 6.2.1000.1437

Application version: 6.2.1000.14347

The connection to the client is via Citrix

I wrote a job that changes the title text on the developer workspace:

static void test_ws_title(Args _args)

{

   int hWnd;

   ;

   hWnd = infolog.hWnd();

   WinAPI::setWindowText(hWnd, 'test');

}

it works on our machine,

but it doesn't work on the customer's machine.

Any ideas?

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: AX 2012 R2: WINAPI::setWindowText doesn't work (on customer machine)

    Mea culpa.

    Everything works fine - it was my fault.

    On our machine the text of the title bar is localted on the left side;

    on the customer's machine, it is located on the middle.

    ... This part was overlapped by the Control-Bar of the RDP-connection.

    i.e. the text is ok, I just didn't see it :-(

    Sorry for the inconvenience.

    Ronald

  • PA-22040759-0 Profile Picture
    PA-22040759-0 6,194 on at
    RE: AX 2012 R2: WINAPI::setWindowText doesn't work (on customer machine)

    Your code works for me too.

    One idea could be that another modifcation to the customers installation changes the text too. Code like that may be implemented from infoLog.onEventgoindIdle.

    Does the method return true? Otherwise you could try to figure out what error the SetWindowTextW call returns.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans