Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

/Picture/EditFieldWithDropShadow
Function:
Required plugins for this example: MBS Picture Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Picture/EditFieldWithDropShadow
This example is the version from Thu, 6th Feb 2013.
Project "EditFieldWithDropShadow.rbp"
Class App Inherits Application
Const kEditClear = "&Delete"
Const kFileQuit = "&Quit"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
Control TextField1 Inherits TextField
ControlInstance TextField1 Inherits TextField
End Control
EventHandler Sub Paint(g As Graphics, areas() As REALbasic.Rect) Dim PMask, P2 As Picture Const kBlurRad = 4 PMask = New Picture(TextField1.Width+(kBlurRad*2),TextField1.Height+(kBlurRad*2),32) PMask.Graphics.ForeColor = &c666666 PMask.Graphics.FillRect(kBlurRad,kBlurRad,TextField1.Width-(kBlurRad/3),TextField1.Height) PMask = PMask.BlurMBS(kBlurRad) p2 = New Picture(TextField1.Width+(kBlurRad*2),TextField1.Height+(kBlurRad*2),32) p2.Graphics.ForeColor = &c000000 p2.Graphics.FillRect(0,0,TextField1.Width+kBlurRad+kBlurRad,TextField1.Height+kBlurRad+kBlurRad) P2.Mask = PMask g.DrawPicture p2,TextField1.Left-1,TextField1.Top-1 g.ForeColor = &CCCCCCC g.DrawRect TextField1.Left-1,TextField1.Top-1,TextField1.Width+2,TextField1.Height+2 End EventHandler
End Class
MenuBar MenuBar1
MenuItem FileMenu = "&File"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Edit"
MenuItem EditUndo = "&Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cu&t"
MenuItem EditCopy = "&Copy"
MenuItem EditPaste = "&Paste"
MenuItem EditClear = "#App.kEditClear"
MenuItem UntitledMenu0 = "-"
MenuItem EditSelectAll = "Select &All"
End MenuBar
End Project

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Picture Plugin.





Links
MBS Xojo Plugins