Search found 262 matches

by Julian
Mon May 27, 2019 10:41 pm
Forum: Coding Questions
Topic: RunProgram("c:notepad.exe","","",0) ?
Replies: 12
Views: 3579

Re: RunProgram("c:notepad.exe","","",0) ?

Change the w$ to "Find" in your paste so you send it to the correct window.

Code: Select all

Delay(1000) : SendKeys(0,"Find","{CONTROLDOWN}v{CONTROLUP}") ; Paste.
by Julian
Wed Nov 01, 2017 10:20 pm
Forum: Coding Questions
Topic: Can you check this out? (mac os)
Replies: 26
Views: 7579

Re: Can you check this out? (mac os)

The button does not move on macOS
by Julian
Wed Nov 01, 2017 6:54 pm
Forum: Coding Questions
Topic: Flickering when MDI child move [Resolved]
Replies: 15
Views: 3639

Re: Flickering when MDI child move [Resolved]

This is what I see, there is a jump when the window is open.

https://www.dropbox.com/s/yuiayhmk1d08q ... 3.mp4?dl=0
by Julian
Wed Nov 01, 2017 4:00 pm
Forum: Coding Questions
Topic: Flickering when MDI child move [Resolved]
Replies: 15
Views: 3639

Re: Flickering when MDI child move [Resolved]

FYI the above two pieces of code cause incorrect movement in the window on Windows 10. Its to do with the different sizes of windows borders etc between editions of the Windows. If you're just running this on your OS then no worries, but if you want it to work elsewhere you will need to calculate ...
by Julian
Tue Oct 31, 2017 6:24 pm
Forum: Coding Questions
Topic: Flickering when MDI child move [Resolved]
Replies: 15
Views: 3639

Re: Flickering when MDI child move

Sorry, I didnt understand what you wanted, here you go.

You can trim it down to size, there's a lot of debug/testing in there. The problem is that you need to remember the old position as you dont know how far to keep it away from the new size of the window.

The +6 is probably due to border size ...
by Julian
Tue Oct 31, 2017 4:37 pm
Forum: Coding Questions
Topic: Flickering when MDI child move [Resolved]
Replies: 15
Views: 3639

Re: Flickering when MDI child move

I came to the same conclusion, here's a working version, I hope its what you wanted:

#FenetrePrincipale = 0
#FenetreFille = 1
#MdiGadget = 2

;MACROS from http://forums.purebasic.com/english/viewtopic.php?p=439919&sid=8e97d5aba0e4678f3e64140ee1846d83#p439919
Macro LOWORD(dwValue) : dwValue & $FFFF ...
by Julian
Tue Oct 31, 2017 1:05 pm
Forum: Coding Questions
Topic: [solved] SHGetPropertyStoreForWindow
Replies: 2
Views: 1844

Re: SHGetPropertyStoreForWindow and DisableTouchWhenFullscre

Thank you nco2k, that works perfectly!
by Julian
Mon Oct 30, 2017 3:17 pm
Forum: Coding Questions
Topic: [solved] SHGetPropertyStoreForWindow
Replies: 2
Views: 1844

[solved] SHGetPropertyStoreForWindow

Hi,

I'm trying to ultimately set DisableTouchWhenFullscreen to true so I can have a full screen app without being able to swipe open from the right. I don't want to set the device into kiosk mode as I just want it to be disabled when this app is running. I've not managed that so I tweaked things to ...
by Julian
Sat Apr 08, 2017 7:18 pm
Forum: General Discussion
Topic: Purebasic scans registry on first install?
Replies: 2
Views: 2535

Re: Purebasic scans registry on first install?

Thanks for the quick reply. Acronis is a backup/protection/recovery system. I uninstalled and reinstalled PB and the problem didn't reoccur. I'll keep an eye on it next time I reinstall Windows.
by Julian
Sat Apr 08, 2017 2:44 am
Forum: General Discussion
Topic: Purebasic scans registry on first install?
Replies: 2
Views: 2535

Purebasic scans registry on first install?

Does purebasic scan the registry on its first start after a fresh install?

I have a fresh windows install and was putting PB back on (fresh d/l of PB) and I just had a popup from Acronis (first time I've ever seen it) saying that PB was blocked from accessing some registry files.

On checking the ...
by Julian
Thu Feb 23, 2017 12:39 pm
Forum: General Discussion
Topic: [solved] Does anyone have the Control Spy v2.0 msi?
Replies: 2
Views: 2204

[solved] Does anyone have the Control Spy v2.0 msi?

As per the title, I'm trying to get hold of the Control Spy v2.0 msi installer. Microsoft seems to have taken it down from the following site https://msdn.microsoft.com/en-us/library/windows/desktop/bb773165(v=vs.85).aspx

I have the md5 of the version I'm looking for. A PM would be appreciated ...
by Julian
Mon Dec 26, 2016 4:14 pm
Forum: Coding Questions
Topic: #PB_EventType_Change fires twice on BindEvent?
Replies: 3
Views: 1687

Re: #PB_EventType_Change fires twice on BindEvent?

Ah yes, I had a feeling it was a de-select and re-select event but it seemed a bit odd that one method raised the one event and the other method raised two events.

I'm wondering if BindEvent just picks up the "real" events and WindowEvent/WaitWindowEvent is more of a "pseudo" event after some state ...
by Julian
Sat Dec 24, 2016 10:44 pm
Forum: Coding Questions
Topic: Using DrawText() API with 32-bit images [WINDOWS]
Replies: 12
Views: 3825

Re: Using DrawText() API with 32-bit images [WINDOWS]

Is there a particular reason why you want/need to use DrawText_ ?

What are you trying to do, render your own buttons?

Have you tried DrawVectorText ?
by Julian
Sat Dec 24, 2016 5:24 pm
Forum: Coding Questions
Topic: Clearing a Structure
Replies: 7
Views: 2905

Re: Clearing a Structure

Code: Select all

 EnableExplicit


Structure BookList
  List BookNames$()
EndStructure
Structure SeriesList
  List   Series.BookList()
EndStructure
Structure Details
  List Authors.SeriesList()
EndStructure

Global Library.Details

ClearStructure(@Library, Details)

ShowMemoryViewer(@Library, SizeOf(Details))