Problem with MTable new table flags...

forum.3rdparty.tools (2005-2010)
Fabricio Suárez

Problem with MTable new table flags...

Post by Fabricio Suárez » 31 Oct 2008, 03:30

 Posted by:  Fabricio Suárez 

For some reason when I try to use the MTBL_FLAG_GRADIENT_HEADERS table
flag nothing happens??? Do I miss something???

On SAM_Create
Call MTblSubClass( hWndTable )
Call MTblSetHeadersBackColor( hWndTbl, COLOR_Blue, MTSC_REDRAW
|MTBL_FLAG_GRADIENT_HEADERS )

TIA

Fabricio

micsto
Germany
Posts: 985
Joined: 07 Mar 2017, 16:07
Location: Germany

Re: Problem with MTable new table flags...

Post by micsto » 31 Oct 2008, 09:11

 Posted by:  Michael Stoll \(MICSTO\) 

Hi Fabricio,

you have to set the flags with MTblSetFlags:
Call MTblSetFlags( hWndTbl, MTBL_FLAG_GRADIENT_HEADERS, TRUE )

Michael

EWetzel
Germany
Posts: 267
Joined: 07 Mar 2017, 12:08
Location: Germany

Re: Problem with MTable new table flags...

Post by EWetzel » 01 Nov 2008, 15:09

 Posted by:  Enrico Wetzel 

Hi Michael,

the flag MTBL_FLAG_GRADIENT_HEADERS works fine on Windows XP and Windows
2000,
but in my case it doesnt work on Windows VISTA.

Enrico

micsto
Germany
Posts: 985
Joined: 07 Mar 2017, 16:07
Location: Germany

Re: Problem with MTable new table flags...

Post by micsto » 03 Nov 2008, 08:46

 Posted by:  Michael Stoll \(MICSTO\) 

Hi Enrico,

that's very strange...
M!Table uses GradientFill from the Windows API, and all Microsoft
documentation says that it works with Vista.
Maybe it's a problem related to Aero? Did you try to disable Aero?

Michael

EWetzel
Germany
Posts: 267
Joined: 07 Mar 2017, 12:08
Location: Germany

Re: Problem with MTable new table flags...

Post by EWetzel » 03 Nov 2008, 09:09

 Posted by:  Enrico Wetzel 

Hi Michael,

thank you for the hint.
You are right, the problem is Aero.

With the Windows Standard and Classic Theme it works.

Enrico

Gerhard Achrainer

Re: Problem with MTable new table flags...

Post by Gerhard Achrainer » 03 Nov 2008, 11:41

 Posted by:  g.achrainer 

Hi Michael,

maybe it's just a color issue (once the base color is too bright, a gradient
to white is hardly visible). Therefore, I'd suggest a new function to define
the gradient, something like:

MTblDefineGradientColors( hWndTbl, nColorFrom, nColorTo, nAngle)
where
hWndTbl - the Table
nColorFrom, nColorTo - the two colors
nAngle - the Gradient Angle, to define horizontal, vertical or diagonal
gradients

(In addition, it would be nice to have these at table, column, and rowlevel,
just to allow some "highlighting".)

Regards and thanks for another great M!Table feature,

Gerhard

micsto
Germany
Posts: 985
Joined: 07 Mar 2017, 16:07
Location: Germany

Re: Problem with MTable new table flags...

Post by micsto » 03 Nov 2008, 17:45

 Posted by:  Michael Stoll \(MICSTO\) 

Hi Gerhard,

this implementation is only a "first shot".
There will be a more sophisticated implementation in one of the next
releases.

Cheers
Michael

Gerhard Achrainer

Re: Problem with MTable new table flags...

Post by Gerhard Achrainer » 04 Nov 2008, 14:14

 Posted by:  g.achrainer 

Great! Can't wait to see it.

Return to “3rdparty.tools”

Who is online

Users browsing this forum: [Ccbot] and 0 guests