bigger border arround the imagegadget?

Windows specific forum
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

bigger border arround the imagegadget?

Post by Hroudtwolf »

hello,


Do anyone know the API-Constant for making a bigger border arround the imagegadget?
A border like "#PB_Frame3D_Double" . But for ImageGadget.
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

You could fake it
Think about placing some gadget under the image that will work as the border? but not a nice way.... nevermind
localmotion34
Enthusiast
Enthusiast
Posts: 665
Joined: Fri Sep 12, 2003 10:40 pm
Location: Tallahassee, Florida

Post by localmotion34 »

ok here you go:

Code: Select all


#WindowWidth  = 450
#WindowHeight = 305



If OpenWindow(30, 100, 200, #WindowWidth, #WindowHeight, #PB_Window_SystemMenu | #PB_Window_MinimizeGadget, "PureBasic - Advanced Gadget Demonstration")
  
  If CreateGadgetList(WindowID(30))
    ImageGadget(0, 20, 5, 100, 100,0,#PB_Image_Border|#WS_EX_DLGMODALFRAME)
  EndIf
  Repeat
    EventID = WaitWindowEvent()
    
    If EventID = #PB_EventGadget
      
      Select EventGadgetID()
        
        
      EndSelect
      
    EndIf
    
  Until EventID = #PB_EventCloseWindow
EndIf

End 
that gives you a nice big 3D border around the imagegadget.

Code: Select all

!.WHILE status != dwPassedOut
! Invoke AllocateDrink, dwBeerAmount
!MOV Mug, Beer
!Invoke Drink, Mug, dwBeerAmount
!.endw
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Post by Hroudtwolf »

1000 * thx.... :D
Post Reply