Tab control, Vista and HMG 2.5.3

Source code related resources

Moderator: Rathinagiri

Post Reply
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Tab control, Vista and HMG 2.5.3

Post by Rathinagiri »

I had come across blacking out of controls defined inside a Tab container in Vista. In XP it works well.

This is the sample code.

Code: Select all

# include "minigui.ch"

function main

define window sample at 0,0 width 220 height 300 main
	define tab tab1 at 10,10 width 200 height 200
	    define page "Page1"
			define frame frame1
				row 40
				col 10
				width 150
				height 75
				caption "Frame caption"
			end frame
		   define checkbox samcheck
		      row 70
			  col 10
			  caption "Check"
		    end checkbox
		end page
	end tab
end window
sample.center
sample.activate
return nil
	
This is the screenshot.

Image

I had submitted this to the bug tracker too.

This problem is for Frame captions, Checkbox Captions and Labels (wherever fixed texts are shown in the window inside a tab, I think.)

Does anybody else have like this?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Tab control, Vista and HMG 2.5.3

Post by Roberto Lopez »

rathinagiri wrote:I had come across blacking out of controls defined inside a Tab container in Vista. In XP it works well.

This is the sample code.

Does anybody else have like this?
Yes. You are right.

The problem arises in Vista, only when 'Windows Classic' theme is selected.

It works fine with 'Windows Vista' (default theme).

I must found the correct Windows api function to detect selected theme in Vista to make the correct painting of controls.

A little note to MS: Backwards compatibility ? :)

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Tab control, Vista and HMG 2.5.3

Post by Roberto Lopez »

OOPS!

I've already fixed and it was my mistake. An error on my IsAppThemed() function implementation.

Sorry MS. This time was my fault :)

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Tab control, Vista and HMG 2.5.3

Post by Rathinagiri »

Oh! Nice 'n' thanks Roberto.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply