Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

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

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,918 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans