Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pageframe & Shape colors problems
Message
 
 
To
16/08/2005 18:57:52
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01041434
Message ID:
01041499
Views:
27
>>>By the way, Naomi,
>>>
>>>>My question is: the backcolor of pages in the pageframe is lighter than the background of the shape. I made my shape opaque and I set its backcolor to
>>>>=EVAL("RGB("+SUBSTR(RGBSCHEME(15,1),AT(",",RGBSCHEME(15,1),3)+1))
>>>>
>>>>(that's the expression I found in page's backcolor)
>>>
>>>If you have themes enabled, having that or any other expression in the backcolor of the page of a pageframe does not do anything, for it is overriden by the themes, afaik
>>
>>Thanks, Hugo. I think, I'll go with a pageframe. However, it seems to be a little bit of overkill to create a pageframe for a sole purpose of having the same look as the other form. I wish there would be a simpler soluton.
>>
>>Also in GetSysColor how can we find out which number represents what? Do you have a reference handy? That's just out of curiousity, since it looks like we can not make the shape to look exactly like the pageframe...
>>
>>
>>Thanks a lot again.
>
>The themes is not a simple color or a color pattern rule,
>it can to be a texture pattern;
>and it can change at runtime!
>
>Then:
>or you abdicate
>or you use a not tabbed pageframe single page
>or you use the suggestion of Craig
>(but it is a fun if you want to do well it,
>you have to capture the messages of Windows with BINDEVENT ().... )

You're right. The user can change Theme in run-time. I guess, from my point of view it would be simpler to use a pageframe than try to create gradient color and bindevent to Windows events.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform