Quantcast
Channel: MicroStation Programming - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1677

SS3 toolsettings dialog cannot be adjusted

$
0
0

Hi to all,

the SS3 toolsettings dialog appears much too big - and cannot be adjusted.

Even every start primitive command (while toolsettings is opened) leads to a wider Dialog. Simply clicking the same toolbox-Icon twice let the toolsettings Dialog grow. This differs from SS2.

The following function has no effect in SS3 (but worked in SS2 perfectly):

 

__declspec (dllexport) int divutilsSetToolSettingsWidth(double width)
{
   DialogBox *db=NULL;
   BSIRect    rect;
   Point2d    pNewpos;

   memset(&rect,   0,sizeof(BSIRect));
   memset(&pNewpos,0,sizeof(Point2d));

   /* Toolsettingsdialog anpassen */
   if((db=mdlDialog_getToolSettings())!=(DialogBox*)NULL){

       if(SUCCESS!=mdlWindow_globalRectGetGlobal(&rect,(MSWindow*)db))
          return(FALSE);

       pNewpos.x= (long)width;
       pNewpos.y= (long)(rect.corner.y - rect.origin.y);

       mdlWindow_resize((MSWindow*)db,CORNER_LOWERRIGHT,&pNewpos);
      
       if(mdlWindow_isMinimized((MSWindow*)db))
         return(TRUE);

      if(mdlWindow_isDisplayed((MSWindow*)db)){
         mdlWindow_flush((MSWindow*)db);
         mdlWindow_show((MSWindow*)db,FALSE);
      }
      mdlDialog_adjustPopDownHeight(db);
      return(TRUE);
   }
   return(FALSE);
}

here is an example:

1. at start of the function - the toolsettings is already 2 cm wider than the resources and the mdlWindow_resize() function define:

 

 

2. after clicking the same toolbox-Icon 2,3 times the Dialog becomes bigger and bigger:

 

Kind regards,

Willi


Viewing all articles
Browse latest Browse all 1677

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>