web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

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

(0) ShareShare
ReportReport
Posted on by

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

  • PA-22040759-0 Profile Picture
    6,194 on at

    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.

  • Suggested answer
    Community Member Profile Picture
    on at

    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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Prashant Singh Profile Picture

Prashant Singh 2

#1
nmaenpaa Profile Picture

nmaenpaa 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans