|
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
DStrong
Joined: 22 Feb 2006 Posts: 13 Location: Chicago, Illinois, USA
|
Posted: Tue May 09, 2006 10:28 am Post subject: XP Theme for Input Box (CW+) |
|
|
When I use a line in my .rc resource script that reads
1 24 DEFAULT.MANIFEST
my radio buttons, check boxes, drop-down lists, etc all take on the XP-style of display, as desired. However, my integer input boxes such (%rd) have an incomplete box around the input field with no top line for the box above the input field. As a simple example, the following from the CW+ Tutorial exhibits this problem.
WINAPP 0,0
PROGRAM FACTOR2
IMPLICIT NONE
INCLUDE <WINDOWS.INS>
INTEGER ANS,NUMBER
NUMBER=1
ANS=WINIO@('%BG[BTNFACE]&')
ANS=WINIO@('%CA[Number Factoriser]&')
ANS=WINIO@('%IL&',1,2147483647)
ANS=WINIO@('Number to be factorised: &')
ANS=WINIO@('%`BG[WHITE]%RD&',NUMBER)
ANS=WINIO@('%NL%BT[OK]')
END
Any idea what I am doing wrong? I'd like to see a complete XP-style dialog. Also, is there a way to make the box around the input field blue (like in most other XP-styled inputs I've seen) rather than black?
Thanks,
Dennis
Dennis Strong, Strong Concepts _________________ Dennis Strong
Strong Concepts |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Wed May 10, 2006 1:14 am Post subject: XP Theme for Input Box (CW+) |
|
|
Dennis
As far as I know you cannot get the correct border unless you resort to using %di as follows:
Resource file....
#include <windows.h>
1 24 DEFAULT.MANIFEST
1001 DIALOGEX 0, 0, 186, 54
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Number Factoriser"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
DEFPUSHBUTTON "OK",IDOK,41,30,109,14
EDITTEXT 101,106,11,62,12,ES_AUTOHSCROLL
LTEXT "Number to be factorised",-1,16,13,81,8
END
Fortran file.....
WINAPP
PROGRAM FACTOR2
INTEGER ANS,NUMBER,WINIO@
NUMBER=1
ANS=WINIO@('%DI&',1001)
ANS=WINIO@('%RD',101,NUMBER)
END
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|