Posted: Sat Aug 15, 2009 12:48 pm
Sure, it was primilary done for that case.
http://www.purebasic.com
https://www.purebasic.fr/english/
I thought so but wanted to check. Thanks Fred!Fred wrote:Sure, it was primilary done for that case.
That's it .USCode wrote:Is that because this is a beta release and the doc is still in progress
Progi1984 wrote:Has SDK been updated for PB 4.41 on all OS ?
@Freak : Is that all tools in Windows SDK are in Linux/MacOs SDK ?freak wrote:If you are using the 4.40 beta on Windows x64, then here is a tip on how to better test your 64bit programs (and the PB beta): http://www.purebasic.fr/blog/?p=172
Code: Select all
Text$="PUREBASIC ROCKS"
If OpenWindow(0, 0, 0, 200, 200, "Testing", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
CreateImage(0,100,50)
If StartDrawing(ImageOutput(0))
tw=TextWidth(Text$):th=TextHeight(Text$)
StopDrawing()
EndIf
FreeImage(0):tw+6:th+4
CreateImage(1,tw,th)
If StartDrawing(ImageOutput(1))
Box(0,0,tw,th,$CCCCCC)
DrawingMode(#PB_2DDrawing_Transparent)
DrawText(3,3,Text$,$000000)
DrawText(2,2,Text$,$FFFFFF)
StopDrawing()
EndIf
ButtonImageGadget(0,10,10,tw,th,ImageID(1))
Repeat : Event = WaitWindowEvent() : Until Event = #PB_Event_CloseWindow
EndIf
http://www.purebasic.fr/english/viewtopic.php?t=38522electrochrisso wrote:Great work PB team and many thanks.
I found a bug in ButtonImageGadget.
The image disappears when you click on the button for PB 440.
The code below works fine for PB 431.
Code: Select all
; ===================================================
; Simplified form using the features "MAP"
; GeBonet
; ===================================================
; If you have ....
;
NewMap Test.s() ;
Dim T$(5) ; Array with somme name or other thiing.... Here name.
;
; Buld of the Map and array with the key...
;
T$(1)="Fred" :Test(T$(1)) = "1 - Any sentence that contains all the desired item"
T$(2)="Timo" :Test(T$(2)) = "2- Is two or 2"
T$(3)="Albert" :Test(T$(3)) = "3- And this is the additional writing"
T$(4)="Joseph" :Test(T$(4)) = "4- c'est une série B"
T$(5)="Dorothe":Test(T$(5)) = "5- It's not a joke but not serious"
T$(6)="Roberto":Test(T$(6)) = "6- Eu acho que o pais de você e o Brasil ?"
;
; A Simple access of this is ...
;
FindMapElement(Test.s(),InputRequester("research","Give the key name : ", Clef$))
MessageRequester("Your answers is / Votre réponse est : ",Test.s(),#PB_MessageRequester_Ok )
;
End