Search found 563 matches
- Tue Mar 19, 2024 9:30 pm
- Forum: Announcement
- Topic: ProGUI V3 Alpha Sneak Peek!
- Replies: 12
- Views: 1007
Re: ProGUI V3 Alpha Sneak Peek!
Looks exciting! I look forward to seeing more.
- 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: 316
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?
https://stackoverflow.com/questions/689 ... lopen-in-c - does this help?
- 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: 316
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...
- Tue Mar 12, 2024 10:34 pm
- Forum: Mac OSX
- Topic: TreeGadget scroll position
- Replies: 4
- Views: 152
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...
- Tue Mar 12, 2024 5:15 pm
- Forum: Mac OSX
- Topic: TreeGadget scroll position
- Replies: 4
- Views: 152
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...
- Sun Mar 10, 2024 6:46 pm
- Forum: Mac OSX
- Topic: Drag & Drop Cursor
- Replies: 0
- Views: 76
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...
- Sun Mar 10, 2024 2:04 pm
- Forum: Mac OSX
- Topic: Edit TreeGadget items?
- Replies: 14
- Views: 4367
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...
- Tue Mar 05, 2024 7:59 pm
- Forum: Coding Questions
- Topic: Word wrapping
- Replies: 1
- Views: 152
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...
- Fri Feb 09, 2024 7:07 am
- Forum: Coding Questions
- Topic: Get dead keys in canvases?
- Replies: 6
- Views: 452
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...
- Thu Jan 18, 2024 4:08 pm
- Forum: Coding Questions
- Topic: Easily validating if JSON fields exist?
- Replies: 6
- Views: 344
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...
- Mon Jan 15, 2024 6:47 am
- Forum: Windows
- Topic: ProGUI - CreateToolBarEx fails in PB 6.10
- Replies: 0
- Views: 761
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.
- Sun Jan 14, 2024 7:20 pm
- Forum: Announcement
- Topic: PureBasic 6.10 LTS is out !
- Replies: 293
- Views: 36612
- Mon Jan 01, 2024 2:22 pm
- Forum: Off Topic
- Topic: Happy New Year 2024 !
- Replies: 23
- Views: 2824
Re: Happy New Year 2024 !
Happy New Year
- Sun Dec 31, 2023 9:10 am
- Forum: Coding Questions
- Topic: Image Size and SAVEIMAGE Problem [Resolved]
- Replies: 19
- Views: 1186
Re: Image Size and SAVEIMAGE Problem
Check out the EncodeImage command.
- Sat Dec 30, 2023 5:49 am
- Forum: Coding Questions
- Topic: WebViewGadget and DialogXML library
- Replies: 4
- Views: 397
Re: WebViewGadget and DialogXML library
It didn't work when I tried "webview" in the XML. You can add it manually to a dialog with a little bit of work: #Dialog = 0 #XML = 0 Procedure OnContainerResized() ResizeGadget(1, #PB_Ignore, #PB_Ignore, GadgetWidth(0), GadgetHeight(0)) EndProcedure XML$ = "<window id='#PB_Any' name=...