Page 2 of 4
Re: Includefile for creating real Gadgets in PB
Posted: Wed Apr 26, 2006 12:14 pm
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???
Posted: Wed Apr 26, 2006 12:30 pm
by ts-soft
not all declared in pb!
missing
#PB_GadgetType_Scintilla
all constants from the library SDK
i habe no problems with this

Posted: Wed Apr 26, 2006 12:36 pm
by Phoenix
Should that be reported as a bug then???
Posted: Wed Apr 26, 2006 12:48 pm
by gnozal
ts-soft wrote:New Example:
RaEditGadget, also a programmer-edit-control, without need of dll.
Great !
Some suggestions : RAGrid, RadASM custom controls, ...

Posted: Wed Apr 26, 2006 12:53 pm
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, ...

RAGrid is in progress by hallodri

Posted: Wed Apr 26, 2006 4:41 pm
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.
Suppose no need for this wish anymore:
http://www.purebasic.fr/english/viewtop ... usergadget
Thanks guys.
Posted: Wed Apr 26, 2006 4:55 pm
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.
Suppose no need for this wish anymore:
http://www.purebasic.fr/english/viewtop ... usergadget
Thanks guys.
You can rename creategadget to usergadget

Posted: Wed Apr 26, 2006 5:41 pm
by Num3
I get this error when using DrawProgress:
POLINK: Error: Unresolved external symbol ´_lstrlenA´
Posted: Thu Apr 27, 2006 1:15 pm
by ts-soft
RaGrid added, thx to hallodri

Posted: Thu Apr 27, 2006 3:40 pm
by Flype
thanks again,
will this 'framework' / 'sdk' be included in PBOSL ?
Posted: Thu Apr 27, 2006 3:52 pm
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...
Posted: Thu Apr 27, 2006 6:40 pm
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
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
Posted: Thu Apr 27, 2006 7:03 pm
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
Posted: Thu Apr 27, 2006 7:10 pm
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= )
Posted: Thu Apr 27, 2006 7:28 pm
by ts-soft
No problem, post me the source, i will add it
