Tab control, Vista and HMG 2.5.3

Source code related resources

Moderator: Rathinagiri

Post Reply
User avatar
Rathinagiri
Posts: 5105
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 95 times
Been thanked: 107 times
Contact:

Tab control, Vista and HMG 2.5.3

Post by Rathinagiri » Sat Aug 02, 2008 3:30 am

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: 3881
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 13 times
Been thanked: 107 times

Post by Roberto Lopez » Sat Aug 02, 2008 7:51 am

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: 3881
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 13 times
Been thanked: 107 times

Post by Roberto Lopez » Sat Aug 02, 2008 8:48 am

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: 5105
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 95 times
Been thanked: 107 times
Contact:

Post by Rathinagiri » Sat Aug 02, 2008 5:21 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest