06-25-2013, 01:30 AM
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
Function border_color
I am looking for a way to give an interface element-border a different color (example: text-inputfield).
(see code below)
- I tried the 'DrawFocusRect'
http://msdn.microsoft.com/nl-nl/library ... 85%29.aspx
But I coudn't get it to render a focus-rectangle around a text-inputfield
- I also tried to find something in the MSDN 'windows styles' here:
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
But the problem here is that most styles can't be modified after the window has been created.
- I also tried the on screen drawing of an rectangle:
Drop Box for OCR
On-screen drawing
But the problem is that it is time constrained (rectangle is drawn for an amount of seconds/minutes/...).
I need to keep it 'on' until the user switches to another interface element (or does something else).
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
str controls = "3"
str e3Cha="Change bordercolor of this inputfield"
if(!ShowDialog("border_color" &border_color &controls)) ret
Function border_color
;\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