[V8i SS2 VBA] Caption Issue

Hi Folks,

I am having trouble with a modified caption changing when I choose File > Copy from the MicroStation menu?

I am also encountering issues with the modified caption reverting to a default when changing between files from ProjectWise and external to ProjectWise, within the same MicroStation session.

I have configured DGN and Model event monitors, and recently am also trying the EnterIdle event. None of these are "consistently" updating the caption as desired nor preventing the default reversion from occuring.

Is there an effective mechanism for retaining a modified caption, reliably?

 

References:

Application.Caption Issue

http://communities.bentley.com/products/microstation/microstation_programming/f/19570/p/61653/150034.aspx

 VBA test if dgn checked out from ProjectWise

http://communities.bentley.com/products/microstation/microstation_programming/f/343173/p/87807/248014.aspx#248014

 

  • I am finding management of the caption difficult to maintain consistently.

    One of our testers found this morning that when trying a few drawing commands like; move, copy and scale, that the modified caption retained its correct assignments in the title bar. However, like the behaviour witnessed when using File>Copy, when selecting the 'drawing scale' command and applying a scale value, this seems to cause the caption to revert back to a ProjectWise default.

    Can anyone at Bentley suggest what is triggering this behaviour by what I am observing occur, and that the default state appears to be the "pw:\\" value?

  • Hi cweber,

    I tested with the solution in your first link, it works fine in ProjectWise environment. Please following the below steps to use this solution:

    1. Download the attached test.mvba file and save it into your ...\Workspace\standard\vba folder;

    2. Start MicroStation, load this test.mvba into VBA Project Manager and tick "Auto-Load" column of Test. Shown as below:

    3. Restart your MicroStation, and see what happen for the title of your MicroStation application window.

    HTH, YongAn



    test.mvba
  • Hi YongAn,

    That worked thankyou. I didn't include "SetDualScreenAppTitle" correctly.

    How does this work?

    I found that the DGN & Model event monitors were not as reliable as this appears to be. Print Organizer has a bug with ProjectWise Document Names when they don't match file names and I "capture" the PW Doc Names when MicroStation starts up...

  • I am finding that anything posted to the message centre, either directly or as a result of a call to a routine within this class, will do so continuously.

    I therefore tried disabling messaging during the EnterIdle Event with SetCExpressionValue "tcb->control.inh_err", 0 but this does not appear to work?

    I want to do this because I am calling some common utilities within this class and do not want to change the messaging in those other routines or it will affect other utilities.

    Messages are being broadcast using msdMessageCenterPriorityDebug if that provdies a hint...