There is no item at index 2, therefore nothing will be set!
AddGadgetItem(5, 1, "Picture 1", ImageID(0)) on an empty List will NOT add it to position 1, but to position 0
Search found 880 matches
- Fri Apr 12, 2024 8:30 pm
- Forum: Coding Questions
- Topic: Setting and Getting GadgetITemData on a ListIconGadget
- Replies: 7
- Views: 442
- Fri Apr 12, 2024 8:20 pm
- Forum: Applications - Feedback and Discussion
- Topic: [IDE Tool] History Viewer 2.20 [Win & LINUX]
- Replies: 82
- Views: 43073
Re: [IDE Tool] History Viewer 2.20 [Win & LINUX]
It's still at the same place you asked for last year: https://www.purebasic.fr/english/viewtopic.php?p=603769#p603769 Since interest is very low, I didn't update the original download link on my site. I probably should do that, just give me a hint, when you lost the download link again (in ~ one yea...
- Thu Apr 11, 2024 4:34 pm
- Forum: Coding Questions
- Topic: PB 6.10 x64 OpenLibrary
- Replies: 6
- Views: 438
Re: PB 6.10 x64 OpenLibrary
to keep fair against old codes/coders, at the beginning of PB, there were no integers and longs were the default.
- Sun Apr 07, 2024 6:36 pm
- Forum: Tricks 'n' Tips
- Topic: MQTT Framework
- Replies: 22
- Views: 3814
Re: MQTT Framework
It's just to avoid unforseen problems, you never know where a bug is hiding, and what if BufferLength reaches _SendCommand(), for whatever reason (maybe some exploit I couldn't even think about), with a negative value?
- Sun Apr 07, 2024 12:58 am
- Forum: Tricks 'n' Tips
- Topic: MQTT Framework
- Replies: 22
- Views: 3814
Re: MQTT Framework
Sometimes (not often), the simple solutions rule the world
- Sat Apr 06, 2024 10:12 pm
- Forum: Feature Requests and Wishlists
- Topic: Keep same CurrentDir if run from taskbar
- Replies: 13
- Views: 586
Re: Keep same CurrentDir if run from taskbar
I can't remember having used G/SetCurrentDirectory() in any of my programs!
It might be useful for console programs (which I rarely produce), but in "normal" applications, GetPathPart(ProgramFilename()) should be the way to go.
It might be useful for console programs (which I rarely produce), but in "normal" applications, GetPathPart(ProgramFilename()) should be the way to go.
- Sat Apr 06, 2024 9:31 pm
- Forum: Tricks 'n' Tips
- Topic: MQTT Framework
- Replies: 22
- Views: 3814
Re: MQTT Framework
An empty payload... nice, somehow I didn't had that on my radar. I'm too lazy to try to recreate it (I have no use for the broker these days), but I think it would be enough to add an If/EndIf here: If i > 0 CompilerIf #USE_BASE64_PAYLOAD Base64Decoder(\PayLoad\PayLoadBase64, *Buff + OffsetOf(HEADER...
- Fri Apr 05, 2024 7:12 pm
- Forum: Applications - Feedback and Discussion
- Topic: DialogDesign0R V1.85
- Replies: 212
- Views: 106463
Re: DialogDesign0R V1.85
Update, see => -here-
- Wed Apr 03, 2024 8:03 pm
- Forum: Feature Requests and Wishlists
- Topic: (Solved in 6.10) Close a minimized window (Win)
- Replies: 4
- Views: 191
Re: Close a minimized window (Win)
I couldn't recreate this, only with older PB versions (prior to 6.10).
Did you try this with the latest version?
Did you try this with the latest version?
- Wed Apr 03, 2024 11:16 am
- Forum: Coding Questions
- Topic: How to change default of File > File format
- Replies: 4
- Views: 173
- Wed Apr 03, 2024 10:42 am
- Forum: Coding Questions
- Topic: How to change default of File > File format
- Replies: 4
- Views: 173
Re: How to change default of File > File format
Preferences -> Compiler -> Defaults -> Source File Text Encoding
- Wed Apr 03, 2024 9:59 am
- Forum: Coding Questions
- Topic: Using ListIconGadget with #PB_ListIcon_ColumnAlignment
- Replies: 3
- Views: 164
Re: Using ListIconGadget with #PB_ListIcon_ColumnAlignment
it's #PB_ListIcon_ClickedColumn instead of #PB_EventType_ColumnClick for GetGadgetAttribute()
And I think #PB_ListIcon_ColumnAlignment should be mentioned in the help of SetGadgetItemAttribute()
And I think #PB_ListIcon_ColumnAlignment should be mentioned in the help of SetGadgetItemAttribute()
- Mon Apr 01, 2024 6:40 pm
- Forum: Coding Questions
- Topic: start an app when windows starts
- Replies: 16
- Views: 1928
Re: start an app when windows starts
Procedure.s GetSpecialFolder(CSIDL) Protected *itemid.ITEMIDLIST Protected location.s = Space(#MAX_PATH) If SHGetSpecialFolderLocation_ (0, CSIDL, @*itemid) = #NOERROR If SHGetPathFromIDList_(*itemid, @location) CoTaskMemFree_(*itemid) If Right(location, 1) <> "\" : location + "\&quo...
- Mon Mar 25, 2024 5:04 pm
- Forum: The PureBasic Editor
- Topic: [IDE Tool] Search in PB Files
- Replies: 10
- Views: 581
Re: [IDE Tool] Search in PB Files
Nice idea!
I implemented it quite different to yours now.
When doubleclicking on the found file, the line will be selected in the IDE
btw.:
Instead of adding the two constants in the source, you probably should add it to the compiler options (tab constants)
I implemented it quite different to yours now.
When doubleclicking on the found file, the line will be selected in the IDE
btw.:
Instead of adding the two constants in the source, you probably should add it to the compiler options (tab constants)
- Fri Mar 22, 2024 11:03 pm
- Forum: The PureBasic Editor
- Topic: [IDE Tool] Search in PB Files
- Replies: 10
- Views: 581