What's the purpose of redefining these constants???ts-soft wrote: Enumeration
#PB_GadgetType_Unknown
#PB_GadgetType_Button
#PB_GadgetType_String
#PB_GadgetType_Text
#PB_GadgetType_CheckBox
#PB_GadgetType_Option
#PB_GadgetType_ListView
#PB_GadgetType_Frame3D
#PB_GadgetType_ComboBox
#PB_GadgetType_Image
#PB_GadgetType_HyperLink
#PB_GadgetType_Container
#PB_GadgetType_ListIcon
#PB_GadgetType_IPAddress
#PB_GadgetType_ProgressBar
#PB_GadgetType_ScrollBar
#PB_GadgetType_ScrollArea
#PB_GadgetType_TrackBar
#PB_GadgetType_Web
#PB_GadgetType_ButtonImage
#PB_GadgetType_Calendar
#PB_GadgetType_Date
#PB_GadgetType_Editor
#PB_GadgetType_ExplorerList
#PB_GadgetType_ExplorerTree
#PB_GadgetType_ExplorerCombo
#PB_GadgetType_Spin
#PB_GadgetType_Tree
#PB_GadgetType_Panel
#PB_GadgetType_Splitter
#PB_GadgetType_MDI
#PB_GadgetType_Scintilla
#PB_GadgetType_LastEnum
EndEnumeration
Includefile for creating real Gadgets in PB
Re: Includefile for creating real Gadgets in PB
not all declared in pb!
missing #PB_GadgetType_Scintilla
all constants from the library SDK
i habe no problems with this
missing #PB_GadgetType_Scintilla
all constants from the library SDK
i habe no problems with this

PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Great !ts-soft wrote:New Example:
RaEditGadget, also a programmer-edit-control, without need of dll.
Some suggestions : RAGrid, RadASM custom controls, ...

For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
no, isn't a bug, i think is for later time or for linuxPhoenix wrote:Should that be reported as a bug then???
RAGrid is in progress by hallodrignozal wrote:Great !ts-soft wrote:New Example:
RaEditGadget, also a programmer-edit-control, without need of dll.
Some suggestions : RAGrid, RadASM custom controls, ...

PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

ts-soft wrote:Update
the examples have a complette ScintillaGadget, same syntax as
EditorGadget, optional, you can use an OOP-Like Interface with enhanced
functions.
New Example:
RaEditGadget, also a programmer-edit-control, without need of dll.

Suppose no need for this wish anymore:
http://www.purebasic.fr/english/viewtop ... usergadget
Thanks guys.
You can rename creategadget to usergadgetfsw wrote:ts-soft wrote:Update
the examples have a complette ScintillaGadget, same syntax as
EditorGadget, optional, you can use an OOP-Like Interface with enhanced
functions.
New Example:
RaEditGadget, also a programmer-edit-control, without need of dll.![]()
Suppose no need for this wish anymore:
http://www.purebasic.fr/english/viewtop ... usergadget
Thanks guys.

PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

RaGrid added, thx to hallodri


PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

I wait for TailBite. Can't test anything before.Flype wrote:thanks again,
will this 'framework' / 'sdk' be included in PBOSL ?
I hope i can implement CreateGadget and ScintillaGadget.
Gadgets which requires a static lib can't be include. Doesn't work
as UserLib, in the moment...
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Add this resource file (RaEdit.rc) to the RaEdit example to get the cursors and images on the buttons:
The splitter cursor is showing up too
You have to add the proper directory to the file names.
Also you have to add the RaEdit.rc file to the resources in compiler setting.
BTW: the image and cursor files are coming with the RaEdit.lib
Code: Select all
#define IDC_HSPLITTCUR 101
#define IDB_BOOKMARK 102
#define IDC_SELECTCUR 103
#define IDB_LINENUMBER 104
#define IDB_EXPAND 105
#define IDB_COLLAPSE 106
IDC_HSPLITTCUR CURSOR DISCARDABLE "SplitH.cur"
IDB_BOOKMARK BITMAP DISCARDABLE "Bookmark.bmp"
IDC_SELECTCUR CURSOR DISCARDABLE "Select.cur"
IDB_LINENUMBER BITMAP DISCARDABLE "Linenumber.bmp"
IDB_EXPAND BITMAP DISCARDABLE "Expand.bmp"
IDB_COLLAPSE BITMAP DISCARDABLE "Collapse.bmp"

You have to add the proper directory to the file names.
Also you have to add the RaEdit.rc file to the resources in compiler setting.
BTW: the image and cursor files are coming with the RaEdit.lib
I have added the cursor and bitmap for RaGrid
Please, change the path in RAGridRes.rc
(absolute Path with double-backslash for the pb-ide)
some updates on scintilla example
Please, change the path in RAGridRes.rc
(absolute Path with double-backslash for the pb-ide)
some updates on scintilla example
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

would be nice to create a PBSourceGadget() with your CreateGadget()/Scintilla and the brand new dll provided by Freak ( see post http://www.purebasic.fr/english/viewtop ... highlight= )
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
No problem, post me the source, i will add itFlype wrote:would be nice to create a PBSourceGadget() with your CreateGadget()/Scintilla and the brand new dll provided by Freak ( see post http://www.purebasic.fr/english/viewtop ... highlight= )

PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
