LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

two graphic design issues of control elements

Hello,

 

transferring my UI from a Windows XP computer to a Windows 7 PC I realized to minor design issues:

 

  1. tab controls of a given width are 1 pixel wider as compared to classic recessed narrow frames; hence in order to align tabs with other controls tabs have to be set to a width 1 pixel less which is counterintuitive. I am attaching a screenshot of a tab control (top) touching a recessed frame (bottom). On the graphic, both elements now have the same width, however, the width of the tab control is 1 pixel less than the frame.
  2. tab.jpg  

  3. I don't know if it is due to Win 7 or the different screen resolution of the two computers, but on Win 7 the arrows of numeric controls are incomplete/asymmetric as shown in the figure below: the upper black border is missing...

arrow-design.jpg

Wolfgang

0 Kudos
Message 1 of 8
(3,997 Views)

Hi Wolfgang,

 

 

1.) Can you please post an example project which is allowing me to see the issue clearly?

 

2.) The arrows are just displayed like this on WIN 7

 

XP:

 

CVI Control XP.jpg

WIN 7:

 

CVI Control WIN 7.jpg

 

 

Marco Brauner NIG

0 Kudos
Message 2 of 8
(3,954 Views)

Hi,

 

Thanks for addressing the issue. I'll prepare an example project (I don't have a Win7 machine here) and post it

 

Wolfgang

 

0 Kudos
Message 3 of 8
(3,951 Views)

OK,

 

here is an UIR that shows the issue with tab panel width and decoration width: while optically both controls seem to have the same width, actually they differ by 1 pixel (checked by SHIFT + F10).

 

Also, there is a numeric control with arrows.

 

This UIR was prepared on XP.

 

Hth, Wolfgang

0 Kudos
Message 4 of 8
(3,942 Views)

Hi Marco,

 

I have confirmed that the UIR I posted yesterday shows the faded upper arrow on the Win7 machine.

 

 

0 Kudos
Message 5 of 8
(3,919 Views)

Hi Wolfgang,

 

you are eventually right with your opinion about the 1 pixel difference in alignment of the decoration and the tabcontrol.

I have filed a CAR so our R&D can talk it over, but unfortunately I cannot come up with a quick workaround for you other than 

programatically adjusting the width. 

 

 

GetCtrlAttribute (panelHandle, PANEL_TAB_2, ATTR_WIDTH, &width);
GetCtrlAttribute (panelHandle, PANEL_DECORATION_3, ATTR_WIDTH, &width2); 
	
	
	if (width = width2)
	{
		SetCtrlAttribute (panelHandle, PANEL_DECORATION_3, ATTR_WIDTH, width-1); 
	}

 

 

 

Thanks for your feedback

 

 

Marco Brauner NIG

0 Kudos
Message 6 of 8
(3,855 Views)

Hi Marco,

 

I'm happy to hear that is is not my eyes Smiley Wink Thanks for taking care,

 

Wolfgang

0 Kudos
Message 7 of 8
(3,853 Views)

Hi Marco,

 

concerning the issue of the wrong tabcontrol width: I could not find it in the updated list of known issues here

 

Thanks.

0 Kudos
Message 8 of 8
(3,739 Views)