Page 1 of 1

Posted: Sun Apr 13, 2003 4:12 pm
by BackupUser
Restored from previous forum. Originally posted by julianbury.

Hi :)

Is it it possible?

I need to highlight StringGadgets.

Thanks in anticipation


Julian ^00^

Posted: Sun Apr 13, 2003 4:36 pm
by BackupUser
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

Posted: Sun Apr 13, 2003 4:36 pm
by BackupUser
Restored from previous forum. Originally posted by Saboteur.

viewtopic.php?t=2393

or search: colored gadgets
:)

Win98 Athlon 1200 256DDR ATI RADEON 9000

Posted: Sun Apr 13, 2003 6:24 pm
by BackupUser
Restored from previous forum. Originally posted by Manolo.

Hi,
See in Tricks 'n' Tips
One full example for this and others questions.
Regards,
Manolo

Posted: Mon Apr 14, 2003 1:18 am
by BackupUser
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^