ProGUI V1.38 UI Library (Small Bug Fix)

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
X0r
Enthusiast
Enthusiast
Posts: 138
Joined: Tue May 01, 2007 3:49 am
Location: Germany

Post by X0r »

>can you get the source examples to run?
No, none of them. Only the executables work.
PrincieD
Addict
Addict
Posts: 858
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Post by PrincieD »

Right, might be to do with the subsystem directories.
Here I use JaPBe for dev and the subsystem dirs work correctly, just tested the userlib version out with PB IDE and not compiling with the correct subsystem so can someone confirm what the correct SubSystem directories should be? (The latest build of PB4.30 does not have them created)
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 »

\SubSystems\UserLibThreadSafe\PureLibraries\UserLibraries\
\SubSystems\UserLibUnicode\PureLibraries\UserLibraries\
\SubSystems\UserLibUnicodeThreadSafe\PureLibraries\UserLibraries\
But if you use the newest TailBite with the /MULT option, you create one
UserLib with support for all Systems! No SubSystems required.
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 »

Quote:
\SubSystems\UserLibThreadSafe\PureLibraries\UserLibraries\
\SubSystems\UserLibUnicode\PureLibraries\UserLibraries\
\SubSystems\UserLibUnicodeThreadSafe\PureLibraries\UserLibraries\

But if you use the newest TailBite with the /MULT option, you create one
UserLib with support for all Systems! No SubSystems required.
Ahha!! thanks Thomas! this could be the problem :) I'll re-compile tomorrow, i'm a bit tired now and inebriated lol

Cheers!

Chris.
David Martin
New User
New User
Posts: 6
Joined: Sat Feb 03, 2007 2:12 pm
Location: Towanda, PA, USA

Post by David Martin »

It runs fine on my Dell Precision 490, dual Quad Xeons, 8 Gb RAM, XP x64.
PrincieD
Addict
Addict
Posts: 858
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Post by PrincieD »

I've re-compiled and re-uploaded the archives, there is just a single UserLibrary version now which is a multi-library. I've tested the new UserLibrary version in the PB IDE and JaPBe and no problems :)

Please let me know if you guys are still having problems though!

I'll release another small update later tonight with the TextControlEx alignment flags fix :)

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:I've re-compiled and re-uploaded the archives, there is just a single UserLibrary version now which is a multi-library. I've tested the new UserLibrary version in the PB IDE and JaPBe and no problems :)
This is, what i have say for some weeks :wink:

The UserLib is a bit bigger but the resulting executable is the same.
No more problems with subsystem-settings :D

Thanks

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
PrincieD
Addict
Addict
Posts: 858
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Post by PrincieD »

This is, what i have say for some weeks Wink

The UserLib is a bit bigger but the resulting executable is the same.
No more problems with subsystem-settings Very Happy

Thanks

Thomas
Good to hear! :)

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

Post by PrincieD »

Hey guys, I've re-uploaded with a small update fixing the TextControlEx alignment flags, also there is a new #TCX_RIGHT alignment flag :)

Cheers!

Chris.
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

But if you use the newest TailBite with the /MULT option, you create one
UserLib with support for all Systems! No SubSystems required.
Nice. :)
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 »

Where can i find the bandnumber in REBARBANDINFO?
I can store the rebar but not restore without this information. You can store
this in lParam of REBARBANDINFO.

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
PrincieD
Addict
Addict
Posts: 858
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Post by PrincieD »

Hi Thomas!
Where can i find the bandnumber in REBARBANDINFO?
I can store the rebar but not restore without this information. You can store
this in lParam of REBARBANDINFO.
The REBARBANDINFO\wID value is the command identifier of the band and is the same as the handle returned by AddRebarGadget (ProGUI).

You can get the band index with the following command:

index = SendMessage_(RebarHandle, #RB_IDTOINDEX, wID, 0)

Hope that answers your question :)

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 »

Thanks, i will test this

Greetings

Thomas

// edit
i have test it, index is alway - 1 :(

Code: Select all

       For i = 0 To SendMessage_(RebarID(#rbMain), #RB_GETBANDCOUNT, 0, 0) -1

         ReadData(FF, ReBar, SizeOf(ReBar))
         index = SendMessage_(RebarID(#rbMain), #RB_IDTOINDEX, ReBar\wID, 0) 
         Debug index
         Select index
          Case 0
            ReBar\hwndChild = MenuExID(#mnuMain)
          Case 1
            ReBar\hwndChild =  ToolBarID(#tbMain)
          Case 2
            ReBar\hwndChild = ToolBarID(#tbTools)
           EndSelect
          SendMessage_(RebarID(#rbMain), #RB_SETBANDINFO, i, ReBar)
        Next
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 »

i have test it, index is alway - 1
Does the fMask member of REBARBANDINFO contain the #RBBIM_ID flag?
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:
i have test it, index is alway - 1
Does the fMask member of REBARBANDINFO contain the #RBBIM_ID flag?
No difference:

Code: Select all

Global ReBar.REBARBANDINFO
ReBar\cbSize = SizeOf(REBARBANDINFO)
ReBar\fMask = #RBBIM_CHILDSIZE|#RBBIM_HEADERSIZE|#RBBIM_STYLE|#RBBIM_CHILD|#RBBIM_SIZE|#RBBIM_TEXT|#RBBIM_ID
ReBar\fStyle = #RBBS_GRIPPERALWAYS|#RBBS_CHILDEDGE
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
Locked