Root character

Everything else that doesn't fall into one of the other PB categories.
merendo
Enthusiast
Enthusiast
Posts: 449
Joined: Sat Apr 26, 2003 7:24 pm
Location: Germany
Contact:

Root character

Post by merendo »

Hi all

Does anybody know how i can draw a simple root symbol Image on a button gadget without using an imagebuttongadget?

Thanks for any help! Bye!
The truth is never confined to a single number - especially scientific truth!
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

Code: Select all

If OpenWindow(1,0,0,200,200,#PB_Window_ScreenCentered|#PB_Window_SystemMenu,"Test")
  If CreateGadgetList(WindowID())
    Id=LoadFont(1,"Symbol",10)
    ButtonGadget(1,90,90,40,40,Chr($D6)+Chr($60))
    SetGadgetFont(1,Id)
    Repeat
      event=WaitWindowEvent()
      
    Until event=#PB_Event_CloseWindow
  EndIf
EndIf
Post Reply