dbTalk Databases Forums  

FPW 2D/3D controls style switch

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss FPW 2D/3D controls style switch in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
valery_kz@rambler.ru
 
Posts: n/a

Default FPW 2D/3D controls style switch - 02-24-2005 , 10:26 AM






Hi all,

If someone still interested about 2D/3D controls
behavior in FPW2.6 - there is some hints.

I found, that FPW uses very strange logic to switch
between 2D/3D presentation. When the control vertical
size is enough to fit text (font.height + 3) pixels,
then 3D image is used (14x14).
When this text is supposed to be shrinked, 2D bitmap
(11x11) is selected instead.

Example below uses SIZE 0.9/1.2 clause to force
this switch, while all other tokens are the same:

p=1
* ------- 2D bitmap used for height(-10%) ---------
@ 1,1 get p func "*R One;Two;Three" size 0.9,10 font "Tahoma",8
q=1
* ------- 3D bitmap used for height(+20%)---------
@ 5,1 get q func "*R One;Two;Three" size 1.2,10 font "Tahoma",8
read cycle


As usual, applying 3 bytes patch, it is possible
to force 3D controls everywhere...


Hope this helps
Valery Kuznetsov

---------------------------------------
PS: There is a way also to get all PUSH buttons looking
in a "modern style", i.e. without surrounding ugly
black borders (2 byte patch), apply arbitrary colors when
drawing button (not Grey) etc...
I can release generic "GUI upgrade" patch for FPW if the
people really need it.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.