Search found 564 matches

by wombats
Mon Apr 01, 2024 5:26 pm
Forum: Off Topic
Topic: Happy Birthday, Fred!
Replies: 17
Views: 733

Re: Happy Birthday, Fred!

Happy birthday, Fred :)
by wombats
Tue Mar 19, 2024 9:30 pm
Forum: Announcement
Topic: ProGUI V3 Alpha Sneak Peek!
Replies: 25
Views: 2110

Re: ProGUI V3 Alpha Sneak Peek!

Looks exciting! I look forward to seeing more.
by wombats
Mon Mar 18, 2024 3:52 pm
Forum: Mac OSX
Topic: Is it possible to load a dylib exported by purebasic in xcode?
Replies: 3
Views: 428

Re: Is it possible to load a dylib exported by purebasic in xcode?

I don't have any experience doing that myself, though I'm sure you can find plenty of resources online.

https://stackoverflow.com/questions/689 ... lopen-in-c - does this help?
by wombats
Thu Mar 14, 2024 4:10 pm
Forum: Mac OSX
Topic: Is it possible to load a dylib exported by purebasic in xcode?
Replies: 3
Views: 428

Re: Is it possible to load a dylib exported by purebasic in xcode?

Do you mean as a plugin for Xcode (I don't know if it supports them, however) or in code you've developed in Xcode? If the latter, since Xcode is an IDE, it'd depend on the language you're using. I would expect that a dylib could be used by most languages on macOS since it's the equivalent of a Wind...
by wombats
Tue Mar 12, 2024 10:34 pm
Forum: Mac OSX
Topic: TreeGadget scroll position
Replies: 4
Views: 266

Re: TreeGadget scroll position

You already asked in this thread how to get the y-coordinate of a TreeGadget item and RASHAD and me both posted an example. Did you try my MacOS example in that thread? It displays the text of a clicked item and its y-position. I just tested it to work in PB 6.04. Oh, my goodness, I apologise. I fo...
by wombats
Tue Mar 12, 2024 5:15 pm
Forum: Mac OSX
Topic: TreeGadget scroll position
Replies: 4
Views: 266

TreeGadget scroll position

I'm trying to retrieve the current scroll position of a TreeGadget so I can position another control appropriately (it needs to be in line with a specific item, for example). Am I heading in the right direction? This returns values much higher than expected. EnableExplicit Global scrollPos, scrollba...
by wombats
Sun Mar 10, 2024 6:46 pm
Forum: Mac OSX
Topic: Drag & Drop Cursor
Replies: 0
Views: 175

Drag & Drop Cursor

When dragging items from a TreeGadget, for example, the text of the item appears under the cursor to show it's being dragged. When dragging from a CanvasGadget, obviously there are no items for the Drag & Drop Library to use. Is there a way to show what's being set? I know I can change the curso...
by wombats
Sun Mar 10, 2024 2:04 pm
Forum: Mac OSX
Topic: Edit TreeGadget items?
Replies: 14
Views: 4538

Re: Edit TreeGadget items?

My apologies for not thanking you for that. This doesn't seem to work anymore in the latest PureBasic, unfortunately. I had created my own tree gadget using the CanvasGadget since drag and drop wasn't working on macOS, but now that's fixed, I'd like to use the proper TreeGadget. I couldn't get my ow...
by wombats
Tue Mar 05, 2024 7:59 pm
Forum: Coding Questions
Topic: Word wrapping
Replies: 1
Views: 170

Word wrapping

Hi, I'm trying to create algorithms to wrap text into maximum width. I'd like to be able to do both word and character. I'm not sure I'm doing this right. It adds an unwanted line at the beginning if the rectangle is too small for any word. And would I handle wrapping based on characters in a simila...
by wombats
Fri Feb 09, 2024 7:07 am
Forum: Coding Questions
Topic: Get dead keys in canvases?
Replies: 6
Views: 466

Re: Get dead keys in canvases?

An option for the Tab key is to use AddKeyboardShortcut. I think Window's default tab handling might prevent the CanvasGadget from detecting it. #PB_Canvas_Modifiers returns a bitwise value, so it might not be exactly equal to #PB_Canvas_Shift or #PB_Canvas_Control. Use the bitwise AND (&) opera...
by wombats
Thu Jan 18, 2024 4:08 pm
Forum: Coding Questions
Topic: Easily validating if JSON fields exist?
Replies: 6
Views: 349

Re: Easily validating if JSON fields exist?

GetJSONMember will return 0 if the member doesn't exist, so you can use it to check if a member exists, unless I'm missing something. You can also loop through the members: Global jsonStr.s = ~"{\"type\": 1, \"name\": \"Quin\", \"message\": \"Hello w...
by wombats
Mon Jan 15, 2024 6:47 am
Forum: Windows
Topic: ProGUI - CreateToolBarEx fails in PB 6.10
Replies: 0
Views: 783

ProGUI - CreateToolBarEx fails in PB 6.10

Obviously I can’t share any of the ProGUI source here, but since PB 6.10, its MenuEx and ToolbarEx don’t work anymore. CreateToolBar is used in CreateToolbarEx and fails for some reason. Does anyone have any suggestions? I have emailed Chris, but I thought I’d ask here as well.
by wombats
Sun Jan 14, 2024 7:20 pm
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 334
Views: 41827

Re: PureBasic 6.10 beta 2 - Xmas Release - is out !

breeze4me wrote: Sun Jan 14, 2024 5:10 pm
Added: #PB_EventType_ColumnClick for ListIconGadget()
By any chance, is there a command to know which column is clicked when there is more than one column?
You can use #PB_ListIcon_ClickedColumn with GetGadgetAttribute().
by wombats
Mon Jan 01, 2024 2:22 pm
Forum: Off Topic
Topic: Happy New Year 2024 !
Replies: 23
Views: 3037

Re: Happy New Year 2024 !

Happy New Year :)
by wombats
Sun Dec 31, 2023 9:10 am
Forum: Coding Questions
Topic: Image Size and SAVEIMAGE Problem [Resolved]
Replies: 19
Views: 1200

Re: Image Size and SAVEIMAGE Problem

Check out the EncodeImage command.