Solved I have a little problem with __INVENTORY_RESIZE

Status
Not open for further replies.

SeSephiroth

Premium
Premium
Joined
Nov 5, 2024
Messages
24
Reaction score
2
Points
3
I have attached the video as well. In case everyone doesn't understand my problem. Because my English is not very good.
I have installed the system __INVENTORY_RESIZE This system was taken from Florist V2 and put in Lodelight V18.2. The inventory window can be resized. But what is lost I think it's an arrow (I'll attach a picture).
45.png
 
Solution
Can you mark what comments that fix you problem so staff can mark this as solved 😊👍
Hey There!
Please login and(or) register to see this awesome content today.

It's just a call to "CWndNeuz::OnSetCursor(pWndBase, nHitTest, message);" (bypass to a base class, to set a sizable cursor when m_bIsUpgradeMode is false).
In Florist files this also happens, but this call is not inside an __INVENTORY_RESIZE preprocessor.
Some people change SetEnchantCursor() to a boolean to return false when m_bIsUpgradeMode is false, and then call...
Recheck your d3dapp.cpp as thats where mouse cursors are set mostly for resizing.

CD3DApplication::MsgProc
 
Im not too familiar with florist's source so can't help further.

does the vertical/horizontal arrow showup resizing client or chat or anything else ?
 
Florist uses containers in v2 you'll have to change the entire inventory.


So take it from v1 or any other source and u shouldn't have issues.
 
  • Like
Reactions: Hyphae
I don't know the Florist source well, but I believe this problem is related to resources and not with c++ part...

Open up your Resdata.inc on any 'text editor'
Search for APP_INVENTORY :
You will find something like this:
Hey There!
Please login and(or) register to see this awesome content today.


Replace with ...something like:
Hey There!
Please login and(or) register to see this awesome content today.

If I remember correctly, the penultimate hexadecimal number represents the style of your window(including whether it is resizable or not)... use a resizable style, like the one on APP_NAVIGATOR ...since it usually comes before APP_INVENTORY, it's easier to copy its window style...

Save, run merge , copy the generated files from ResClient to your client folder.....
 
  • Like
Reactions: Kyraie
my
APP_INVENTORY "WndTile00.tga" "" 1 240 496 0x2410040 26
{
// Title String
IDS_RESDATA_INC_002130
}
{
// ToolTip
IDS_RESDATA_INC_008361
}
{
WTYPE_CUSTOM WIDC_CUSTOM1 "" 0 178 4 222 48 0x260000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008362
}
{
// ToolTip
IDS_RESDATA_INC_008363
}
WTYPE_TABCTRL WIDC_INVENTORY "" 1 8 271 224 417 0x220000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008364
}
{
// ToolTip
IDS_RESDATA_INC_008365
}
WTYPE_STATIC WIDC_GOLD_NUM "WndEditTile00.tga" 1 109 423 218 443 0x2220000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008366
}
{
// ToolTip
IDS_RESDATA_INC_008367
}
WTYPE_CUSTOM WIDC_CUSTOM2 "" 0 178 52 222 96 0x260000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008368
}
{
// ToolTip
IDS_RESDATA_INC_008369
}
WTYPE_CUSTOM WIDC_CUSTOM3 "" 0 178 100 222 144 0x260000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008370
}
{
// ToolTip
IDS_RESDATA_INC_008371
}
WTYPE_CUSTOM WIDC_CUSTOM4 "" 0 178 148 222 192 0x260000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008372
}
{
// ToolTip
IDS_RESDATA_INC_008373
}
WTYPE_CUSTOM WIDC_CUSTOM5 "" 0 4 4 50 48 0x260000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008374
}
{
// ToolTip
IDS_RESDATA_INC_008375
}
WTYPE_CUSTOM WIDC_CUSTOM6 "" 0 4 52 50 96 0x260000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008376
}
{
// ToolTip
IDS_RESDATA_INC_008377
}
WTYPE_CUSTOM WIDC_CUSTOM7 "" 0 4 100 50 144 0x260000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008378
}
{
// ToolTip
IDS_RESDATA_INC_008379
}
WTYPE_CUSTOM WIDC_CUSTOM8 "" 0 4 148 50 192 0x260000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008380
}
{
// ToolTip
IDS_RESDATA_INC_008381
}
WTYPE_CUSTOM WIDC_CUSTOM9 "" 0 4 196 50 240 0x260000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008382
}
{
// ToolTip
IDS_RESDATA_INC_008383
}
WTYPE_CUSTOM WIDC_CUSTOM10 "" 0 176 196 220 240 0x260000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008384
}
{
// ToolTip
IDS_RESDATA_INC_008385
}
WTYPE_CUSTOM WIDC_CUSTOM11 "" 0 52 4 76 28 0x260000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008386
}
{
// ToolTip
IDS_RESDATA_INC_008387
}
WTYPE_CUSTOM WIDC_CUSTOM12 "" 0 76 4 100 28 0x260000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008388
}
{
// ToolTip
IDS_RESDATA_INC_008389
}
WTYPE_CUSTOM WIDC_CUSTOM13 "" 0 102 4 126 28 0x260000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008390
}
{
// ToolTip
IDS_RESDATA_INC_008391
}
WTYPE_CUSTOM WIDC_CUSTOM14 "" 0 128 4 152 28 0x260000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008392
}
{
// ToolTip
IDS_RESDATA_INC_008393
}
WTYPE_CUSTOM WIDC_CUSTOM15 "" 0 152 4 176 28 0x260000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008394
}
{
// ToolTip
IDS_RESDATA_INC_008395
}
WTYPE_CUSTOM WIDC_CUSTOM16 "" 0 52 210 83 241 0x260000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008396
}
{
// ToolTip
IDS_RESDATA_INC_008397
}
WTYPE_CUSTOM WIDC_CUSTOM17 "" 0 82 210 113 241 0x260000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008398
}
{
// ToolTip
IDS_RESDATA_INC_008399
}
WTYPE_CUSTOM WIDC_CUSTOM18 "" 0 114 210 145 241 0x260000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008400
}
{
// ToolTip
IDS_RESDATA_INC_008401
}
WTYPE_CUSTOM WIDC_CUSTOM19 "" 0 144 210 175 241 0x260000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008402
}
{
// ToolTip
IDS_RESDATA_INC_008403
}
WTYPE_CUSTOM WIDC_CUSTOM20 "" 0 54 32 174 206 0x260000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008404
}
{
// ToolTip
IDS_RESDATA_INC_008405
}
WTYPE_CUSTOM WIDC_CUSTOM21 "" 0 8 420 33 445 0x220000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008406
}
{
// ToolTip
IDS_RESDATA_INC_008407
}
WTYPE_STATIC WIDC_STATIC1 "ButtMoney.tga" 0 83 423 102 442 0x220002 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008408
}
{
// ToolTip
IDS_RESDATA_INC_008409
}
WTYPE_STATIC WIDC_STATIC11 "InvLeft.tga" 0 4 5 48 237 0x220002 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008410
}
{
// ToolTip
IDS_RESDATA_INC_008411
}
WTYPE_STATIC WIDC_STATIC12 "InvTop.tga" 0 54 6 175 27 0x220002 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008412
}
{
// ToolTip
IDS_RESDATA_INC_008413
}
WTYPE_STATIC WIDC_STATIC13 "InvRight.tga" 0 177 6 220 238 0x220002 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008414
}
{
// ToolTip
IDS_RESDATA_INC_008415
}
WTYPE_STATIC WIDC_STATIC14 "InvBottom.tga" 0 54 210 174 239 0x220002 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008416
}
{
// ToolTip
IDS_RESDATA_INC_008417
}
WTYPE_CUSTOM WIDC_GOLD "" 0 83 423 102 442 0x260000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008418
}
{
// ToolTip
IDS_RESDATA_INC_008419
}
WTYPE_BUTTON WIDC_BUTTON1 "WndInventoryAlign.tga" 0 39 420 64 445 0x220010 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008420
}
{
// ToolTip
IDS_RESDATA_INC_008421
}
WTYPE_EDITCTRL WIDC_EDIT1 "WndEditTile00.tga" 1 25 250 223 270 0x20000 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008422
}
{
// ToolTip
IDS_RESDATA_INC_008423
}
WTYPE_BUTTON WIDC_BUTTON_1 "ButItemMulti.BMP" 0 7 249 21 265 0x220010 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008480
}
{
// ToolTip
IDS_RESDATA_INC_008481
}
WTYPE_BUTTON WIDC_BTN_NUM1 "Icon_DiceMeony.bmp" 0 206 423 220 443 0x220010 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_212464
}
{
// ToolTip
IDS_RESDATA_INC_212465
}
WTYPE_BUTTON WIDC_CHECK2 "" 0 6 195 21 210 0x220008 0 0 0 0 0 0 0 0
{
// Title String
IDS_RESDATA_INC_767959
}
{
// ToolTip
IDS_RESDATA_INC_767960
}
}

of florist
APP_INVENTORY "WndTile00.tga" 1 240 496 0x2410040 26
{
// Title String
IDS_RESDATA_INC_002130
}
{
// ToolTip
IDS_RESDATA_INC_008361
}
{
WTYPE_CUSTOM WIDC_CUSTOM1 "" 0 178 4 222 48 0x260000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008362
}
{
// ToolTip
IDS_RESDATA_INC_008363
}
WTYPE_TABCTRL WIDC_INVENTORY "" 1 8 271 224 417 0x220000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008364
}
{
// ToolTip
IDS_RESDATA_INC_008365
}
WTYPE_STATIC WIDC_GOLD_NUM "WndEditTile00.tga" 1 109 423 218 443 0x2220000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008366
}
{
// ToolTip
IDS_RESDATA_INC_008367
}
WTYPE_CUSTOM WIDC_CUSTOM2 "" 0 178 52 222 96 0x260000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008368
}
{
// ToolTip
IDS_RESDATA_INC_008369
}
WTYPE_CUSTOM WIDC_CUSTOM3 "" 0 178 100 222 144 0x260000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008370
}
{
// ToolTip
IDS_RESDATA_INC_008371
}
WTYPE_CUSTOM WIDC_CUSTOM4 "" 0 178 148 222 192 0x260000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008372
}
{
// ToolTip
IDS_RESDATA_INC_008373
}
WTYPE_CUSTOM WIDC_CUSTOM5 "" 0 4 4 50 48 0x260000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008374
}
{
// ToolTip
IDS_RESDATA_INC_008375
}
WTYPE_CUSTOM WIDC_CUSTOM6 "" 0 4 52 50 96 0x260000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008376
}
{
// ToolTip
IDS_RESDATA_INC_008377
}
WTYPE_CUSTOM WIDC_CUSTOM7 "" 0 4 100 50 144 0x260000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008378
}
{
// ToolTip
IDS_RESDATA_INC_008379
}
WTYPE_CUSTOM WIDC_CUSTOM8 "" 0 4 148 50 192 0x260000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008380
}
{
// ToolTip
IDS_RESDATA_INC_008381
}
WTYPE_CUSTOM WIDC_CUSTOM9 "" 0 4 196 50 240 0x260000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008382
}
{
// ToolTip
IDS_RESDATA_INC_008383
}
WTYPE_CUSTOM WIDC_CUSTOM10 "" 0 176 196 220 240 0x260000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008384
}
{
// ToolTip
IDS_RESDATA_INC_008385
}
WTYPE_CUSTOM WIDC_CUSTOM11 "" 0 52 4 76 28 0x260000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008386
}
{
// ToolTip
IDS_RESDATA_INC_008387
}
WTYPE_CUSTOM WIDC_CUSTOM12 "" 0 76 4 100 28 0x260000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008388
}
{
// ToolTip
IDS_RESDATA_INC_008389
}
WTYPE_CUSTOM WIDC_CUSTOM13 "" 0 102 4 126 28 0x260000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008390
}
{
// ToolTip
IDS_RESDATA_INC_008391
}
WTYPE_CUSTOM WIDC_CUSTOM14 "" 0 128 4 152 28 0x260000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008392
}
{
// ToolTip
IDS_RESDATA_INC_008393
}
WTYPE_CUSTOM WIDC_CUSTOM15 "" 0 152 4 176 28 0x260000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008394
}
{
// ToolTip
IDS_RESDATA_INC_008395
}
WTYPE_CUSTOM WIDC_CUSTOM16 "" 0 52 210 83 241 0x260000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008396
}
{
// ToolTip
IDS_RESDATA_INC_008397
}
WTYPE_CUSTOM WIDC_CUSTOM17 "" 0 82 210 113 241 0x260000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008398
}
{
// ToolTip
IDS_RESDATA_INC_008399
}
WTYPE_CUSTOM WIDC_CUSTOM18 "" 0 114 210 145 241 0x260000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008400
}
{
// ToolTip
IDS_RESDATA_INC_008401
}
WTYPE_CUSTOM WIDC_CUSTOM19 "" 0 144 210 175 241 0x260000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008402
}
{
// ToolTip
IDS_RESDATA_INC_008403
}
WTYPE_CUSTOM WIDC_CUSTOM20 "" 0 54 32 174 206 0x260000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008404
}
{
// ToolTip
IDS_RESDATA_INC_008405
}
WTYPE_CUSTOM WIDC_CUSTOM21 "" 0 8 420 33 445 0x220000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008406
}
{
// ToolTip
IDS_RESDATA_INC_008407
}
WTYPE_STATIC WIDC_STATIC1 "ButtMoney.tga" 0 83 423 102 442 0x220002 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008408
}
{
// ToolTip
IDS_RESDATA_INC_008409
}
WTYPE_STATIC WIDC_STATIC11 "InvLeft.tga" 0 4 5 48 237 0x220002 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008410
}
{
// ToolTip
IDS_RESDATA_INC_008411
}
WTYPE_STATIC WIDC_STATIC12 "InvTop.tga" 0 54 6 175 27 0x220002 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008412
}
{
// ToolTip
IDS_RESDATA_INC_008413
}
WTYPE_STATIC WIDC_STATIC13 "InvRight.tga" 0 177 6 220 238 0x220002 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008414
}
{
// ToolTip
IDS_RESDATA_INC_008415
}
WTYPE_STATIC WIDC_STATIC14 "InvBottom.tga" 0 54 210 174 239 0x220002 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008416
}
{
// ToolTip
IDS_RESDATA_INC_008417
}
WTYPE_CUSTOM WIDC_GOLD "" 0 83 423 102 442 0x260000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008418
}
{
// ToolTip
IDS_RESDATA_INC_008419
}
WTYPE_BUTTON WIDC_BUTTON1 "WndInventoryAlign.tga" 0 39 420 64 445 0x220010 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008420
}
{
// ToolTip
IDS_RESDATA_INC_008421
}
WTYPE_EDITCTRL WIDC_EDIT1 "WndEditTile00.tga" 1 25 250 223 270 0x20000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008422
}
{
// ToolTip
IDS_RESDATA_INC_008423
}
WTYPE_BUTTON WIDC_BUTTON_1 "ButItemMulti.BMP" 0 7 249 21 265 0x220010 0 0 0 0
{
// Title String
IDS_RESDATA_INC_008480
}
{
// ToolTip
IDS_RESDATA_INC_008481
}
WTYPE_BUTTON WIDC_BTN_NUM1 "Icon_DiceMeony.bmp" 0 206 423 220 443 0x220010 0 0 0 0
{
// Title String
IDS_RESDATA_INC_212464
}
{
// ToolTip
IDS_RESDATA_INC_212465
}

}
I'm not sure where I went wrong.
 
At first glance, your APP appears to be correct to me.
I looked at a source version based on Florist that someone sent me and I implemented it in a clean version of L19.4.
I had to change some things (removing controls related to other systems, etc.), but probably what matters to you is adding one more preprocessor here:

Hey There!
Please login and(or) register to see this awesome content today.
 
Last edited:
  • Like
Reactions: molezinha
At first glance, your APP appears to be correct to me.
I looked at a source version based on Florist that someone sent me and implemented it in a clean version of L19.4.
I had to change some things (removing controls related to other systems, etc.), but probably what matters to you is adding one more preprocessor here:

Hey There!
Please login and(or) register to see this awesome content today.
Thank you very much, I have tried the code you sent. It's worked.

And thank you to everyone who helped.
 
  • Like
Reactions: Cikk
Can you mark what comments that fix you problem so staff can mark this as solved 😊👍
Hey There!
Please login and(or) register to see this awesome content today.

It's just a call to "CWndNeuz::OnSetCursor(pWndBase, nHitTest, message);" (bypass to a base class, to set a sizable cursor when m_bIsUpgradeMode is false).
In Florist files this also happens, but this call is not inside an __INVENTORY_RESIZE preprocessor.
Some people change SetEnchantCursor() to a boolean to return false when m_bIsUpgradeMode is false, and then call CWndNeuz::OnSetCursor(pWndBase, nHitTest, message); ...but this is not necessary, since you can check m_bIsUpgradeMode directly in CWndInventory::OnSetCursor...
 
  • Like
Reactions: zOmbie
Solution
I meant to close this, this was resolved privately and he didn't know to close this.

@Fliperworld is correct and has been marked as the solution.
 
  • Like
Reactions: Cikk
Status
Not open for further replies.