News: SPECIAL OFFER: EZGUI Classic (4.0) until May 31, 2013 only $29 !

TO REGISTER on Forum, contact tech support: http://cwsof.com/support.html
 
Pages: [1]   Go Down
  Print  
Author Topic: some Wine/Windows differences  (Read 542 times)
Rod Gobby
Full Member
***
Posts: 128


View Profile
« on: July 05, 2011, 08:25:01 AM »

Chris

We're in the process of changing the structure of our packages from an MDI style to a Splitterbar style. Most of the changes apply to the main form, and so far everything has been going well. However, we recently encountered a couple of minor problems.

The first involves the Splitterbar itself. On Windows, the bar is coloured pale blue, but using Wine the bar is grey and the ">" image is very small and hardly noticeable. We've tried changing the colour of the bar so that it's the same for both Wine and Windows, but this doesn't seem possible. It would be nice to be able to change the colour of the Splitterbar so that it's the same colour for both Wine and Windows.

The second problem involves the "F" property on Page forms. On Windows we get a frame around the Page form as expected, but with Wine there is no frame. The Frame and Shape controls work ok, so we're currently using a Shape control to produce the frame. This adds many extra controls to our programs, since we make extensive use of Page forms with our new Splitterbar format.

These aren't major problems, but if there's any way for you to get around the problems it would be appreciated. So far, EZGUI has been working extremely well with Wine.

Thanks

Rod
Logged
Chris Boss
Administrator
Hero Member
*****
Posts: 1814


View Profile
« Reply #1 on: July 05, 2011, 09:45:40 AM »

The splitterbar control is actually allows you to custom draw it.

The control sends the %EZ_EraseSP event (which is similiar to %EZ_EraseBG). You can use the EZ_StartEraseBG and EZ_EndEraseBG command (and any DC drawing commands in between) to custom draw the splitterbar control.

This will allow you to draw exactly the same thing on Windows and Wine.

I would suggest using a 3D Gradient.
Logged
Chris Boss
Administrator
Hero Member
*****
Posts: 1814


View Profile
« Reply #2 on: July 05, 2011, 09:47:50 AM »

You can also try the S (sunken edge) property instead of the F (flat border) property for your page forms. That may work on both Windows and Wine.

If not, then you can custom draw the Page form background. Don't use the F property and then process the forms %EZ_EraseBG event and draw the background with any border you like.
Logged
Rod Gobby
Full Member
***
Posts: 128


View Profile
« Reply #3 on: July 05, 2011, 10:21:36 AM »

The S property works fine with Wine, but I've been using flat borders since Visual Basic and would prefer to continue using them. Also, the default on Ubuntu is to use flat borders.

I've never used the custom draw features, but this looks like a good time to start. And since EZGUI works well with Wine, custom drawing might be the way to get around any future differences I encounter.

Thanks for the suggestion.

Rod
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: