ProGUI V1.38 UI Library (Small Bug Fix)

Developed or developing a new product in PureBasic? Tell the world about it.
PrincieD
Addict
Addict
Posts: 858
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Post by PrincieD »

can you add the following lines before the "index = SendMessage_(RebarID(#rbMain), #RB_IDTOINDEX, ReBar\wID, 0)" and let me know the values:

debug RebarID(#rbMain)
debug ReBar\wID

^these should not display as null

Cheers!
PrincieD
Addict
Addict
Posts: 858
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Post by PrincieD »

Hey guys!

I've managed to get a VMware version of Windows7 running side by side on my XP installation :D so I'll have the last few Vista bugs/rendering glitches fixed pretty soon now :) The Office Example "menu clicking" crashes on Vista/Windows7 due to not adding 1byte null termination when allocating memory for passing unicode txt to Scintilla and is not a bug in ProGUI, just the example (I'll re-upload the fix soon).

change: *txt = AllocateMemory(StringByteLength(txt, #PB_Ascii))
to: *txt = AllocateMemory(StringByteLength(txt, #PB_Ascii)+1)

Cheers!

Chris.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

PrincieD wrote:can you add the following lines before the "index = SendMessage_(RebarID(#rbMain), #RB_IDTOINDEX, ReBar\wID, 0)" and let me know the values:

debug RebarID(#rbMain)
debug ReBar\wID

^these should not display as null

Cheers!
Debugger wrote:198360
0
198360
298
198360
25
greetings
Thomas

// edit
for your scintilla problem use this:
scintillahelper :wink:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

PrincieD, what are you using for VM7? A VM such as VMWare or VirtualBox?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

blueznl: Windows 7 runs fine in VirtualPC from Microsoft.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

ts-soft: What's ScintillaHelper? :shock:
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

DoubleDutch wrote:ts-soft: What's ScintillaHelper? :shock:
Is a small OpenSource UserLib from me, documented in german :wink:
Some Functions like EditorGadget, some Helpfunctions and a
ScintillaGadgetPB() with SyntaxHighlighning for PB

You can use it, but translation is not my problem :wink:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
PrincieD
Addict
Addict
Posts: 858
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Post by PrincieD »

PrincieD wrote:
can you add the following lines before the "index = SendMessage_(RebarID(#rbMain), #RB_IDTOINDEX, ReBar\wID, 0)" and let me know the values:

debug RebarID(#rbMain)
debug ReBar\wID

^these should not display as null

Cheers!

Debugger wrote:
198360
0
198360
298
198360
25
Hmm looks like the first wID is not initalised or saved?
Thanks for the Scintilla helper btw! :)
PrincieD, what are you using for VM7? A VM such as VMWare or VirtualBox?
I'm using VMWare player, it works really well even though I've got bugger all RAM :)

P.S. New update is out! see top of thread :)
User avatar
X0r
Enthusiast
Enthusiast
Posts: 138
Joined: Tue May 01, 2007 3:49 am
Location: Germany

Post by X0r »

Still can not get any of the examples to run.
The debugger always says: The debugged executable quit unexpectedly.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

The examples I've tried work fine.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Examples works fine.

Next Bug:
Without Mainmenü PopupMenuEx doesn't work!
With Menu all PB-Menues a broken!

I still wait for a 64-Bit version

Greetings

Thomas
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

How can i show a $ in a popupmenu without right alignment
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
PrincieD
Addict
Addict
Posts: 858
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Post by PrincieD »

Hi guys!
Still can not get any of the examples to run.
The debugger always says: The debugged executable quit unexpectedly.
Soner, do the examples work when compiled with the userlib or do they just crash with the dll?
Next Bug:
Without Mainmenü PopupMenuEx doesn't work!
With Menu all PB-Menues a broken!
Hmm, i'll look into it!
How can i show a $ in a popupmenu without right alignment
Do you mean the character '$' ? if so i'll add a double '$' escape code.

Thanks for the bug reports guys!

Chris.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

> Do you mean the character '$' ?
Yes, i have to add some directories and Recycle.bin beginns with $ :wink:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
PrincieD
Addict
Addict
Posts: 858
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Post by PrincieD »

> Do you mean the character '$' ?
Yes, i have to add some directories and Recycle.bin beginns with $ Wink
Ahh cool man, I'll get onto it :)
Locked