A way, to calculate a same Button-Size for Source/Resource ?

A way, to calculate a same Button-Size for Source/Resource ?

Postby ukoenig » Mon May 11, 2009 12:09 pm

Hello,
It is the same question I asked in another post.
Now I can explain better my problem.

A Button-Tool-Download-Version 1.1, with activated SETUP
to change Dialog-Backgrounds ( Color, Gradient, Brushes and Image ) and Button-Bmp's and Size.
http://www.pflegeplus.com/fw_downloads/btntools2.zip ( 2.0 MB )

It is a version, You can test settings. The Source-Creator will be ready in the next Version.
You don't need to close any Dialogs with the exit button. I click on a Button-bar-button does
automaticly the needed Action ( close active Dialog ). To open a Preview twice, is also disabled.
Maybe You can give me some ideas, to make it still better ?
The next Version will include some nice BMP Button-Sets.

Example :
From Source : Button-Size 65 x 40 is Resized to a new Size : 50 x 30
The Preview must show the same Size from Source and Resource.
To do this, I had to calculate the Button-Size with a Factor of 2, to show the same Size from Resource.
On my Computer, the Result is OK.
I'm not shure, if the result will be different on other Computers.
Maybe also different fonts, defined in Dialogs, can show different Results ?

Defined Button-Size for Source
W_BUTTONV := 40
W_BUTTONH := 65

To show the same Size from Resource :
ACTIVATE DIALOG oDlg3 CENTERED NOWAIT ;
ON INIT ( oDlg3:Move( 100, 470, 430, 290, .f. ), DisableX(oDlg3, .T.), ;
oBtn1:SetSize( W_BUTTONH * 2, W_BUTTONV * 2, .T. ), ;
oBtn2:SetSize( W_BUTTONH * 2, W_BUTTONV * 2, .T. ), ;
oBtn3:SetSize( W_BUTTONH * 2, W_BUTTONV * 2, .T. ), ;
oBtn4:SetSize( W_BUTTONH * 2, W_BUTTONV * 2, .T. ), ;
oBtn5:SetSize( W_BUTTONH * 2, W_BUTTONV * 2, .T. ), ;
oBtn6:SetSize( W_BUTTONH * 2, W_BUTTONV * 2, .T. ) )

The Original-Button-Size 65 x 40
Image

Define a new Button-Size in Setup-Section 50 x 30
Image

The Result with new Button-Size 50 x 30
Image

Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 62 guests