Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog control - add color border when focused
#1
Sorry again for this simple question.
I am looking for a way to give an interface element-border a different color (example: text-inputfield).
(see code below)

To summarize, I am just looking for a very simple way to change the border color of an interface element.
Or change the borderline/border color of the "Group, or multi-drag container", in that way I just place the around the interface-object(s)
(see code below)

Macro border_color_macro
Code:
Copy      Help
str controls = "3"
str e3Cha="Change bordercolor of this inputfield"
if(!ShowDialog("border_color" &border_color &controls)) ret

Function border_color
Code:
Copy      Help
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages


;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 223 135 "Dialog"
;3 Edit 0x54030080 0x200 28 46 154 14 "Change color of the inputfield border"
;4 Button 0x54020007 0x0 22 24 168 44 "Or change border-line/border-color of this element"
;END DIALOG
;DIALOG EDITOR: "" 0x2030307 "" "" ""

ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)