Transparency for TextGadget and overlaping...???
Posted: Mon Oct 27, 2008 3:14 pm
If there is a movable TextGadget under mouse position same as :
then is some askings:
1) Your t'n't for Solving\improvement in overlaping with other gadgets???
2) Your t'n't for Transparency on TextGadget???
i think the above cases are without proceed about These in forum.
Code: Select all
#Wsize = 50
#Hsize = 25
imgid = LoadImage(0, #PB_Compiler_Home + "\Examples\Sources\Data\Background.bmp")
fonid = LoadFont(0, "Arial", 8, #PB_Font_Bold)
icoid = LoadIcon_(0, #IDI_ASTERISK)
Procedure MoveGadjet(Gadget)
MoveWindow_(GadgetID(Gadget), WindowMouseX(0)-40, WindowMouseY(0)-20, #Wsize, #Hsize, 1);
EndProcedure
OpenWindow(0, 100, 100, 300, 240, "Test", #PB_Window_SystemMenu | #SS_CENTER)
SetWindowColor(0, #Blue)
CreateGadgetList(WindowID(0))
ButtonImageGadget(1, 10, 25, 50, 50, icoid)
TextGadget(2, 10, 10, #Wsize, #Hsize, "Hello", #PB_Text_Center | #SS_CENTERIMAGE) : SetGadgetFont(2, fonid)
Repeat
ev = WaitWindowEvent()
tp = EventType()
gt = EventGadget()
Select ev
Case #WM_MOUSEMOVE ;And tp = #PB_EventType_LeftClick
MoveGadjet(2)
; Case #PB_Event_Repaint
; TextGadget(100, WindowMouseX(0)-40, WindowMouseY(0)-20, #Wsize, #Hsize, "Hello", #PB_Text_Center | #SS_CENTERIMAGE)
EndSelect
Until ev = #PB_Event_CloseWindow
; need Transparency TextGadget and overlaping...
then is some askings:
1) Your t'n't for Solving\improvement in overlaping with other gadgets???
2) Your t'n't for Transparency on TextGadget???
i think the above cases are without proceed about These in forum.