added MoveElement(), MergeLists(), SplitList() commands added SetGadgetItemData() for PanelGadget Comments on the new structure are welcome. This is still a work in progress which should be finished for the final release. It wasn't finished in time, and its not a big enough priority to justify delaying this release any longer.įinally, we are in the process of changing the PureBasic documentation to be more precise and readable when it comes to function parameters and return values. Unfortunately, the automation framework that I talked about here on the forum did not make it into this release. The IDE got some additions as well, like the ability to build projects directly from the command-line, or the option to be warned when a file is changed on disk while open in the IDE. All new non-3D commands are already documented in the manual. Other than that, there are some smaller new commands like additions to the LinkedList library for example. You can see this new gadget in action in the IDE already: The new file panel and the new color picker tool both make use of it. It is a simple drawing surface that provides detailed mouse and keyboard events to easily implement custom data views or controls (all cross-platform of course). On the application side of things, the most notable addition is the CanvasGadget() command. If you get a missing DLL error when running the 3D examples, then install this: Note: It may be required that you update your DirectX 9 runtimes to work with this new version. The 3D commands are not documented yet, but we will put up some examples to demonstrate them.Ī special thanks to G-Rom and TMyke from the french forum for their help on the new 3D commands! Furthermore, there are a ton of new 3D libraries and commands. The OGRE engine was updated to version 1.7.0 and we switched the physics engine from ODE to Bullet. This release is mostly about the 3D side of things, but there are new features for application programmers as well. It is available for download on your personal account. You can change everything by hand, but primarily you don't have to do anything at all, it always fits.You probably saw the fake April 1 announcement, but as we all know: real releases happen on a Monday! So here it is, after a longer than usual period: The first beta of the upcoming PureBasic 4.60 release. The text size is adjusted automatically, also the alignment and padding. The same with the Font Flags, you can specify them, but you don't have to. Yes and you don't need to load any fonts at all, if you want to use a special one, just enter its name. The problems start with the automatic fitting of the text, text length and text size for multiline texts and continue with the fitting and alignment of the text. Really good codes become very large and complicated to code very quickly The next days there will be a whole bag of new incredible text functions for and without gadgets.Ĭustom gadgets are often created canvas based.īut if you want the perfect look and feel of the OS, there is no way around ButtonImageGadgets.įor your problem just look for StretchText Gadget, or any other Several authors, as well as myself, develop new functions and add extensions for the GFX_Wizzard_BF. The first address for such things is the GFX_Wizzard_BF, which you can not deny. Well, of course it is not so easy to find something suitable, these things are often well hidden. Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow StopDrawing() : ok=ButtonImageGadget(gad,x,y,w,h,ImageID(text),flags) If font=#PB_Default : font=GetStockObject_(#DEFAULT_GUI_FONT) : EndIfĭrawText(w/2-TextWidth(text$)/2,h/2-TextHeight(text$)/2,text$,fgcolor,bgcolor) If fgcolor=#PB_Default : fgcolor=GetSysColor_(#COLOR_BTNFACE) : EndIf If bgcolor=#PB_Default : bgcolor=GetSysColor_(#COLOR_BTNFACE) : EndIf Code: Select all Procedure ButtonGadgetColor(gad,x,y,w,h,text$="",flags=0,fgcolor=#PB_Default,bgcolor=#PB_Default,font=#PB_Default)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |