Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
Posts: 16777133 Joined: Tue Apr 22, 2003 7:42 pm
Post
by BackupUser » Sun Apr 13, 2003 4:12 pm
Restored from previous forum. Originally posted by julianbury .
Hi
Is it it possible?
I need to highlight StringGadgets.
Thanks in anticipation
Julian ^00^
BackupUser
PureBasic Guru
Posts: 16777133 Joined: Tue Apr 22, 2003 7:42 pm
Post
by BackupUser » Sun Apr 13, 2003 4:36 pm
Restored from previous forum. Originally posted by El_Choni .
This changes front/bgcolor of the active StringGadget. Mainly written by Manolo:
Code: Select all
Procedure Colorear(WindowID, Message, wParam, lParam)
Result = #PB_ProcessPureBasicEvents
Frente = $FFFFFF
Fondo = $70E2E2
Select Message
Case #WM_CTLCOLOREDIT
If GetFocus_()=lParam
SetBkMode_(wParam, #TRANSPARENT)
SetTextColor_(wParam, Frente)
Result = CreateSolidBrush_(Fondo)
EndIf
EndSelect
ProcedureReturn Result
EndProcedure
; your openwindow, etc.
SetWindowCallback(@Colorear())
; your event loop
El_Choni
BackupUser
PureBasic Guru
Posts: 16777133 Joined: Tue Apr 22, 2003 7:42 pm
Post
by BackupUser » Sun Apr 13, 2003 4:36 pm
Restored from previous forum. Originally posted by Saboteur .
viewtopic.php?t=2393
or search: colored gadgets
Win98 Athlon 1200 256DDR ATI RADEON 9000
BackupUser
PureBasic Guru
Posts: 16777133 Joined: Tue Apr 22, 2003 7:42 pm
Post
by BackupUser » Sun Apr 13, 2003 6:24 pm
Restored from previous forum. Originally posted by Manolo .
Hi,
See in Tricks 'n' Tips
One full example for this and others questions.
Regards,
Manolo
BackupUser
PureBasic Guru
Posts: 16777133 Joined: Tue Apr 22, 2003 7:42 pm
Post
by BackupUser » Mon Apr 14, 2003 1:18 am
Restored from previous forum. Originally posted by julianbury .
Hi Saboteur and Manolo
Thank you for your help.
I have four examples to follow now (^_^)
Julian ^00^