Includefile for creating real Gadgets in PB

Share your advanced PureBasic knowledge/code with the community.
Phoenix
Enthusiast
Enthusiast
Posts: 141
Joined: Sun Sep 04, 2005 2:25 am

Re: Includefile for creating real Gadgets in PB

Post by Phoenix »

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
What's the purpose of redefining these constants???
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

not all declared in pb!
missing #PB_GadgetType_Scintilla
all constants from the library SDK
i habe no problems with this :wink:
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.
Image
Phoenix
Enthusiast
Enthusiast
Posts: 141
Joined: Sun Sep 04, 2005 2:25 am

Post by Phoenix »

Should that be reported as a bug then???
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

ts-soft wrote:New Example:
RaEditGadget, also a programmer-edit-control, without need of dll.
Great !
Some suggestions : RAGrid, RadASM custom controls, ... :twisted:
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Phoenix wrote:Should that be reported as a bug then???
no, isn't a bug, i think is for later time or for linux
gnozal wrote:
ts-soft wrote:New Example:
RaEditGadget, also a programmer-edit-control, without need of dll.
Great !
Some suggestions : RAGrid, RadASM custom controls, ... :twisted:
RAGrid is in progress by hallodri :wink:
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.
Image
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Post by fsw »

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.
8)

Suppose no need for this wish anymore:
http://www.purebasic.fr/english/viewtop ... usergadget

Thanks guys.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

fsw 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.
8)

Suppose no need for this wish anymore:
http://www.purebasic.fr/english/viewtop ... usergadget

Thanks guys.
You can rename creategadget to usergadget :wink:
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.
Image
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

I get this error when using DrawProgress:

POLINK: Error: Unresolved external symbol ´_lstrlenA´
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

RaGrid added, thx to hallodri

Image
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.
Image
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

thanks again,
will this 'framework' / 'sdk' be included in PBOSL ?
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
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Flype wrote:thanks again,
will this 'framework' / 'sdk' be included in PBOSL ?
I wait for TailBite. Can't test anything before.
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.
Image
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Post by fsw »

Add this resource file (RaEdit.rc) to the RaEdit example to get the cursors and images on the buttons:

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"
The splitter cursor is showing up too :P

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
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

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
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.
Image
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

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
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Flype 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= )
No problem, post me the source, i will add it :wink:
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.
Image
Post Reply