Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Layout (Forms) Designer » Layout editor reverting changes
Layout editor reverting changes [message #55266] Sun, 25 October 2020 22:04 Go to next message
jimlef is currently offline  jimlef
Messages: 76
Registered: September 2020
Location: US
Member
Has anyone else noticed this? I've seen it in multiple versions from 2020.1 up to and including 15279 (running on Linux). It just happened again...

I have a layout with the line:
ITEM(Option, optProdTaxable, SetLabel(t_("Taxable?")).WantFocus(true).LeftPosZ(708, 60).TopPosZ(120, 16))
                                                      ^^^^^^^^^^^^^^^^

everything compiles fine... However, after I change anything else in the layout (say adding a new one), then compile, it reverts that line to:
ITEM(Option, optProdTaxable, WantFocus(true).SetLabel(t_("Taxable?")).LeftPosZ(708, 60).TopPosZ(120, 16))
                             ^^^^^^^^^^^^^^^^

which fails to compile with an /home/james/upp/MyApps/Invoices/Invoices.lay (49): error: no member named 'SetLabel' in 'Upp::Ctrl'

I switch it back to the first version, and all is well - until I make another change (forcing the saving of the layout file again).

Anyone else?

Jim

[Updated on: Sun, 25 October 2020 22:05]

Report message to a moderator

Re: Layout editor reverting changes [message #55267 is a reply to message #55266] Mon, 26 October 2020 01:16 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12954
Registered: November 2005
Ultimate Member
Looks like a bug in .usc. Looks like nobody ever used WantFocus in .lay until today Smile

(I usually set it in the constructor, but that is of courase no excuse, will fix it asap).
Re: Layout editor reverting changes [message #55269 is a reply to message #55267] Mon, 26 October 2020 03:48 Go to previous messageGo to next message
jimlef is currently offline  jimlef
Messages: 76
Registered: September 2020
Location: US
Member
Thank you Smile
Re: Layout editor reverting changes [message #55272 is a reply to message #55269] Mon, 26 October 2020 13:26 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 589
Registered: November 2008
Location: France
Contributor
Hello,

I recently stumbled on it to (and it used to work)
Since I was only playing around I just reverted it to defaul value (so it disappears from the line) ... and compiled again

So it may be a more general bug
Re: Layout editor reverting changes [message #55285 is a reply to message #55266] Tue, 27 October 2020 15:03 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12954
Registered: November 2005
Ultimate Member
jimlef wrote on Sun, 25 October 2020 22:04
Has anyone else noticed this? I've seen it in multiple versions from 2020.1 up to and including 15279 (running on Linux). It just happened again...

I have a layout with the line:
ITEM(Option, optProdTaxable, SetLabel(t_("Taxable?")).WantFocus(true).LeftPosZ(708, 60).TopPosZ(120, 16))
                                                      ^^^^^^^^^^^^^^^^

everything compiles fine... However, after I change anything else in the layout (say adding a new one), then compile, it reverts that line to:
ITEM(Option, optProdTaxable, WantFocus(true).SetLabel(t_("Taxable?")).LeftPosZ(708, 60).TopPosZ(120, 16))
                             ^^^^^^^^^^^^^^^^

which fails to compile with an /home/james/upp/MyApps/Invoices/Invoices.lay (49): error: no member named 'SetLabel' in 'Upp::Ctrl'

I switch it back to the first version, and all is well - until I make another change (forcing the saving of the layout file again).

Anyone else?

Jim


Now looking at it, I believe that you must have edited .lay file in text editor to add WantFocus there. Is that correct?

Mirek
Re: Layout editor reverting changes [message #55287 is a reply to message #55285] Tue, 27 October 2020 15:49 Go to previous messageGo to next message
jimlef is currently offline  jimlef
Messages: 76
Registered: September 2020
Location: US
Member
I did hand-edit the file, to correct a tab order error and to give the option control focus as a tab stop. Here's the resulting file, which I can't find an error in and which compiles correctly:

LAYOUT(InvoicesLayout, 460, 116)
END_LAYOUT

LAYOUT(CompanyInfoWindowLayout, 360, 279)
	ITEM(Label, dv___0, SetLabel(t_("Business Name")).SetFont(SansSerifZ(12)).LeftPosZ(20, 96).TopPosZ(16, 19))
	ITEM(Label, dv___1, SetLabel(t_("Owner")).SetFont(SansSerifZ(12)).LeftPosZ(20, 96).TopPosZ(40, 19))
	ITEM(Label, dv___2, SetLabel(t_("Address")).SetFont(SansSerifZ(12)).LeftPosZ(20, 96).TopPosZ(64, 19))
	ITEM(Label, dv___3, SetLabel(t_("City")).SetFont(SansSerifZ(12)).LeftPosZ(20, 96).TopPosZ(88, 19))
	ITEM(Label, dv___4, SetLabel(t_("State")).SetFont(SansSerifZ(12)).LeftPosZ(20, 96).TopPosZ(112, 19))
	ITEM(Label, dv___5, SetLabel(t_("Zip")).SetFont(SansSerifZ(12)).LeftPosZ(20, 96).TopPosZ(136, 19))
	ITEM(Label, dv___6, SetLabel(t_("Phone")).SetFont(SansSerifZ(12)).LeftPosZ(20, 96).TopPosZ(160, 19))
	ITEM(Label, dv___7, SetLabel(t_("Email")).SetFont(SansSerifZ(12)).LeftPosZ(20, 96).TopPosZ(186, 19))
	ITEM(Label, dv___8, SetLabel(t_("Tax Rate")).SetFont(SansSerifZ(12)).LeftPosZ(19, 96).TopPosZ(211, 19))
	ITEM(EditString, txtBusName, SetFont(SansSerifZ(12)).LeftPosZ(136, 200).TopPosZ(16, 19))
	ITEM(EditString, txtBusOwner, SetFont(SansSerifZ(12)).LeftPosZ(136, 200).TopPosZ(40, 19))
	ITEM(EditString, txtBusAddress, SetFont(SansSerifZ(12)).LeftPosZ(136, 200).TopPosZ(64, 19))
	ITEM(EditString, txtBusCity, SetFont(SansSerifZ(12)).LeftPosZ(136, 200).TopPosZ(88, 19))
	ITEM(EditString, txtBusState, SetFont(SansSerifZ(12)).LeftPosZ(136, 200).TopPosZ(112, 19))
	ITEM(EditString, txtBusZip, SetFont(SansSerifZ(12)).LeftPosZ(136, 200).TopPosZ(136, 19))
	ITEM(EditString, txtBusPhone, SetFont(SansSerifZ(12)).LeftPosZ(136, 200).TopPosZ(160, 19))
	ITEM(EditString, txtBusEmail, SetFont(SansSerifZ(12)).LeftPosZ(136, 200).TopPosZ(186, 19))
	ITEM(EditDoubleNotNull, txtTaxrate, SetFont(SansSerifZ(12)).LeftPosZ(135, 62).TopPosZ(211, 19))
	ITEM(Button, ok, SetLabel(t_("Ok")).SetFont(SansSerifZ(12)).LeftPosZ(88, 56).TopPosZ(244, 15))
	ITEM(Button, cancel, SetLabel(t_("Cancel")).SetFont(SansSerifZ(12)).LeftPosZ(212, 56).TopPosZ(244, 15))
END_LAYOUT

LAYOUT(LineItemsWindowLayout, 808, 576)
	ITEM(Button, btnAddItem, SetLabel(t_("New Line Item")).SetFont(SansSerifZ(12)).LeftPosZ(252, 112).TopPosZ(544, 19))
	ITEM(SqlArray, LineItemsArray, SetFrame(ThinInsetFrame()).LeftPosZ(4, 800).TopPosZ(4, 528))
	ITEM(Button, btnDelItem, SetLabel(t_("Delete Line Item")).SetFont(SansSerifZ(12)).LeftPosZ(440, 112).TopPosZ(544, 19))
END_LAYOUT

LAYOUT(CustomersWindowLayout, 664, 500)
	ITEM(Button, btnNewCustomer, SetLabel(t_("Add New Customer")).SetFrame(ThinInsetFrame()).LeftPosZ(272, 120).TopPosZ(436, 15))
	ITEM(SqlArray, CustArray, AutoHideSb(true).LeftPosZ(4, 656).TopPosZ(4, 420))
END_LAYOUT

LAYOUT(ProductsWindowLayout, 580, 500)
	ITEM(Button, btnAddProduct, SetLabel(t_("Add New Product")).SetFont(SansSerifZ(16)).SetFrame(ButtonFrame()).LeftPosZ(210, 160).TopPosZ(456, 28))
	ITEM(SqlArray, ProductArray, SetFrame(ThinInsetFrame()).LeftPosZ(4, 572).TopPosZ(4, 440))
END_LAYOUT

LAYOUT(CreateInvoiceWindowLayout, 935, 478)
	ITEM(DropList, cbCustomers, LeftPosZ(92, 140).TopPosZ(24, 19))
	ITEM(Option, optCustTaxable, SetLabel(t_("Taxable?")).LeftPosZ(548, 56).TopPosZ(25, 16))
	ITEM(EditDate, dtpBillDate, LeftPosZ(436, 104).TopPosZ(24, 19))
	ITEM(EditDouble, txtTaxRate, WantFocus(false).LeftPosZ(652, 36).TopPosZ(24, 19))
	ITEM(EditString, txtTerms, SetFont(SansSerifZ(12)).WantFocus(false).LeftPosZ(736, 148).TopPosZ(24, 19))
	ITEM(Option, optProdTaxable, SetLabel(t_("Taxable?")).WantFocus(true).LeftPosZ(708, 60).TopPosZ(120, 16))
	ITEM(DropList, cbProducts, LeftPosZ(76, 108).TopPosZ(120, 19))
	ITEM(EditString, txtDescription, SetFont(SansSerifZ(12)).LeftPosZ(280, 172).TopPosZ(120, 19))
	ITEM(EditDouble, txtPrice, LeftPosZ(512, 64).TopPosZ(120, 19))
	ITEM(EditInt, txtQty, LeftPosZ(620, 64).TopPosZ(120, 19))
	ITEM(EditDouble, txtNonTaxable, SetEditable(false).WantFocus(false).LeftPosZ(836, 64).TopPosZ(196, 19))
	ITEM(EditDouble, txtTaxable, SetEditable(false).WantFocus(false).LeftPosZ(836, 64).TopPosZ(224, 19))
	ITEM(Label, dv___12, SetLabel(t_("Description")).SetFont(SansSerifZ(12)).LeftPosZ(200, 72).TopPosZ(120, 19))
	ITEM(Label, dv___13, SetLabel(t_("Non-Taxable Sub:")).SetAlign(ALIGN_RIGHT).SetFont(SansSerifZ(12)).LeftPosZ(716, 108).TopPosZ(196, 19))
	ITEM(Label, dv___14, SetLabel(t_("Taxable Sub:")).SetAlign(ALIGN_RIGHT).SetFont(SansSerifZ(12)).LeftPosZ(716, 108).TopPosZ(224, 19))
	ITEM(Label, dv___15, SetLabel(t_("Sales Tax:")).SetAlign(ALIGN_RIGHT).SetFont(SansSerifZ(12)).LeftPosZ(716, 108).TopPosZ(252, 19))
	ITEM(Label, dv___16, SetLabel(t_("Grand Total:")).SetAlign(ALIGN_RIGHT).SetFont(SansSerifZ(12)).LeftPosZ(716, 108).TopPosZ(280, 19))
	ITEM(Label, dv___17, SetLabel(t_("Price")).SetFont(SansSerifZ(12)).LeftPosZ(464, 36).TopPosZ(120, 19))
	ITEM(Label, dv___18, SetLabel(t_("Qty")).SetFont(SansSerifZ(12)).LeftPosZ(588, 24).TopPosZ(120, 19))
	ITEM(EditDouble, txtSalesTax, SetEditable(false).WantFocus(false).LeftPosZ(836, 64).TopPosZ(252, 19))
	ITEM(EditDouble, txtGrandtotal, SetEditable(false).WantFocus(false).LeftPosZ(836, 64).TopPosZ(280, 19))
	ITEM(Label, dv___21, SetLabel(t_("Name")).SetFont(SansSerifZ(12)).LeftPosZ(32, 36).TopPosZ(120, 19))
	ITEM(Button, ok, SetLabel(t_("Save")).LeftPosZ(724, 172).TopPosZ(368, 40))
	ITEM(Button, cancel, SetLabel(t_("Cancel")).LeftPosZ(724, 172).TopPosZ(420, 40))
	ITEM(Button, btnPrintSave, SetLabel(t_("Save and Print")).LeftPosZ(724, 172).TopPosZ(316, 40))
	ITEM(EditInt64, txtInvoice, NotNull(true).SetEditable(false).WantFocus(false).LeftPosZ(328, 52).TopPosZ(24, 19))
	ITEM(LabelBox, dv___26, SetLabel(t_("Customer Details:")).LeftPosZ(20, 896).TopPosZ(4, 56))
	ITEM(Label, dv___27, SetLabel(t_("Invoice Number")).LeftPosZ(240, 80).TopPosZ(24, 19))
	ITEM(Label, dv___28, SetLabel(t_("Bill Date")).LeftPosZ(388, 44).TopPosZ(24, 19))
	ITEM(Label, dv___29, SetLabel(t_("Rate")).LeftPosZ(616, 28).TopPosZ(24, 19))
	ITEM(Label, dv___30, SetLabel(t_("Terms")).LeftPosZ(696, 32).TopPosZ(24, 19))
	ITEM(Label, dv___31, SetLabel(t_("Name")).SetFont(SansSerifZ(12)).LeftPosZ(52, 36).TopPosZ(24, 19))
	ITEM(LabelBox, dv___32, SetLabel(t_("Line Item:")).LeftPosZ(20, 896).TopPosZ(68, 84))
	ITEM(Button, btnAdd, SetLabel(t_("Add")).LeftPosZ(784, 56).TopPosZ(120, 15))
	ITEM(Button, btnUpdate, SetLabel(t_("Update")).LeftPosZ(784, 56).TopPosZ(96, 15))
	ITEM(Button, btnClear, SetLabel(t_("Clear")).LeftPosZ(852, 56).TopPosZ(96, 15))
	ITEM(Button, btnDelete, SetLabel(t_("Delete")).LeftPosZ(852, 56).TopPosZ(120, 15))
	ITEM(Button, btnSubtract, SetLabel(t_("Subtract Sales Tax")).LeftPosZ(508, 176).TopPosZ(96, 15))
	ITEM(LabelBox, dv___38, SetLabel(t_("Line Items:")).LeftPosZ(20, 668).TopPosZ(172, 300))
	ITEM(ArrayCtrl, arrayLineItems, LeftPosZ(28, 652).TopPosZ(188, 276))
	ITEM(LabelBox, dv___40, SetLabel(t_("Totals:")).LeftPosZ(704, 212).TopPosZ(172, 300))
END_LAYOUT

LAYOUT(InvoicesWindowLayout, 1128, 584)
	ITEM(SqlArray, InvoicesArray, SetFrame(ThinInsetFrame()).RightPosZ(8, 928).VSizePosZ(8, 12))
	ITEM(Button, btnPrint, SetLabel(t_("Print Selected")).LeftPosZ(4, 80).TopPosZ(16, 15))
	ITEM(Button, btnApplyPayment, SetLabel(t_("Apply Payment")).LeftPosZ(4, 80).TopPosZ(36, 15))
	ITEM(Button, btnVoid, SetLabel(t_("Void Selected")).LeftPosZ(96, 80).TopPosZ(16, 15))
	ITEM(Button, btnFixDate, SetLabel(t_("Fix Dates")).LeftPosZ(4, 80).TopPosZ(56, 15))
	ITEM(Button, btnByPaid, SetLabel(t_("All Paid")).LeftPosZ(12, 76).TopPosZ(112, 15))
	ITEM(Button, btnByBalanceDue, SetLabel(t_("Balance Due")).LeftPosZ(100, 72).TopPosZ(112, 15))
	ITEM(LabelBox, dv___7, SetLabel(t_("Show:")).LeftPosZ(4, 180).TopPosZ(92, 152))
	ITEM(Button, btnAll, SetLabel(t_("Show All")).LeftPosZ(60, 56).TopPosZ(216, 15))
	ITEM(EditDouble, edbPayment, AlignRight(true).LeftPosZ(96, 80).TopPosZ(36, 19))
	ITEM(EditDate, ddFixDate, LeftPosZ(96, 80).TopPosZ(56, 19))
	ITEM(DropList, cbCustomers, LeftPosZ(12, 164).TopPosZ(148, 19))
	ITEM(EditDate, ddRange1, LeftPosZ(92, 84).TopPosZ(168, 19))
	ITEM(EditDate, ddRange2, LeftPosZ(92, 84).TopPosZ(192, 19))
	ITEM(Button, btnByDates, SetLabel(t_("Date Range")).LeftPosZ(12, 76).TopPosZ(196, 15))
	ITEM(Button, btnByCustomer, SetLabel(t_("By Customer")).LeftPosZ(52, 80).TopPosZ(132, 15))
	ITEM(Button, btnByVoided, SetLabel(t_("All Voided")).LeftPosZ(12, 76).TopPosZ(172, 15))
END_LAYOUT

LAYOUT(CustomerAddLayout, 436, 352)
	ITEM(Label, dv___0, SetLabel(t_("Name")).SetFont(SansSerifZ(16)).LeftPosZ(36, 100).VSizePosZ(16, 316))
	ITEM(Label, dv___1, SetLabel(t_("Email")).SetFont(SansSerifZ(16)).LeftPosZ(36, 100).TopPosZ(208, 19))
	ITEM(Label, dv___2, SetLabel(t_("Phone")).SetFont(SansSerifZ(16)).LeftPosZ(36, 100).TopPosZ(248, 19))
	ITEM(Label, dv___3, SetLabel(t_("Address")).SetFont(SansSerifZ(16)).LeftPosZ(36, 100).TopPosZ(52, 19))
	ITEM(Label, dv___4, SetLabel(t_("City")).SetFont(SansSerifZ(16)).LeftPosZ(36, 100).TopPosZ(88, 19))
	ITEM(Label, dv___5, SetLabel(t_("State")).SetFont(SansSerifZ(16)).LeftPosZ(36, 100).TopPosZ(128, 19))
	ITEM(Label, dv___6, SetLabel(t_("Zip")).SetFont(SansSerifZ(16)).LeftPosZ(36, 100).TopPosZ(164, 19))
	ITEM(EditString, txtCustName, SetFont(SansSerifZ(16)).SetFrame(FieldFrame()).LeftPosZ(152, 256).TopPosZ(16, 19))
	ITEM(EditString, txtCustAddress, SetFont(SansSerifZ(16)).SetFrame(FieldFrame()).LeftPosZ(152, 256).TopPosZ(52, 19))
	ITEM(EditString, txtCustCity, SetFont(SansSerifZ(16)).SetFrame(FieldFrame()).LeftPosZ(152, 256).TopPosZ(88, 19))
	ITEM(EditString, txtCustState, SetFont(SansSerifZ(16)).SetFrame(FieldFrame()).LeftPosZ(152, 256).TopPosZ(128, 19))
	ITEM(EditString, txtCustZip, MaxChars(10).SetFont(SansSerifZ(16)).SetFrame(FieldFrame()).LeftPosZ(152, 64).TopPosZ(164, 19))
	ITEM(EditString, txtCustEmail, SetFont(SansSerifZ(16)).SetFrame(FieldFrame()).LeftPosZ(152, 256).TopPosZ(208, 19))
	ITEM(EditString, txtCustPhone, SetFont(SansSerifZ(16)).SetFrame(FieldFrame()).LeftPosZ(152, 256).TopPosZ(248, 19))
	ITEM(Option, chkTaxable, SetLabel(t_("Taxable?")).SetFont(SansSerifZ(16)).LeftPosZ(152, 108).TopPosZ(284, 16))
	ITEM(Button, ok, SetLabel(t_("OK")).LeftPosZ(68, 64).TopPosZ(316, 24))
	ITEM(Button, cancel, SetLabel(t_("Cancel")).LeftPosZ(292, 64).TopPosZ(316, 24))
END_LAYOUT

LAYOUT(ProductAddLayout, 360, 360)
	ITEM(Label, dv___0, SetLabel(t_("Name")).SetFont(SansSerifZ(16)).LeftPosZ(8, 88).TopPosZ(52, 32))
	ITEM(Label, dv___1, SetLabel(t_("Date Purchased")).SetFont(SansSerifZ(16)).LeftPosZ(8, 132).TopPosZ(96, 32))
	ITEM(Label, dv___2, SetLabel(t_("Description")).SetFont(SansSerifZ(16)).LeftPosZ(8, 88).TopPosZ(140, 32))
	ITEM(Label, dv___3, SetLabel(t_("Cost")).SetFont(SansSerifZ(16)).LeftPosZ(8, 88).TopPosZ(284, 32))
	ITEM(Label, dv___4, SetLabel(t_("Invoice")).SetFont(SansSerifZ(16)).LeftPosZ(8, 72).TopPosZ(8, 32))
	ITEM(EditIntSpin, txtInvoiceNo, Min(-1).SetFrame(FieldFrame()).LeftPosZ(104, 80).TopPosZ(16, 19))
	ITEM(EditString, txtProductName, SetFont(SansSerifZ(16)).SetFrame(FieldFrame()).LeftPosZ(104, 248).TopPosZ(56, 19))
	ITEM(EditDate, dtpDatePurchased, SetFrame(FieldFrame()).LeftPosZ(152, 104).VSizePosZ(100, 241))
	ITEM(DocEdit, txtDescription, SetFont(SansSerifZ(16)).SetFrame(FieldFrame()).LeftPosZ(108, 244).TopPosZ(148, 128))
	ITEM(EditDouble, txtProductCost, SetFont(SansSerifZ(16)).SetFrame(FieldFrame()).LeftPosZ(108, 244).TopPosZ(292, 19))
	ITEM(Button, ok, SetLabel(t_("Ok")).LeftPosZ(44, 56).TopPosZ(332, 15))
	ITEM(Button, cancel, SetLabel(t_("Cancel")).LeftPosZ(252, 56).TopPosZ(332, 15))
END_LAYOUT

LAYOUT(LineItemAddLayout, 292, 168)
	ITEM(Button, btnSubtract, SetLabel(t_("Subtract Sales Tax")).LeftPosZ(8, 116).TopPosZ(64, 15))
	ITEM(Label, dv___1, SetLabel(t_("Description")).SetFont(SansSerifZ(12)).LeftPosZ(8, 72).TopPosZ(36, 19))
	ITEM(Label, dv___2, SetLabel(t_("Price")).SetFont(SansSerifZ(12)).LeftPosZ(8, 36).TopPosZ(88, 19))
	ITEM(Label, dv___3, SetLabel(t_("Qty")).SetFont(SansSerifZ(12)).LeftPosZ(188, 24).TopPosZ(88, 19))
	ITEM(Label, dv___4, SetLabel(t_("Total")).SetFont(SansSerifZ(12)).LeftPosZ(180, 52).TopPosZ(112, 19))
	ITEM(EditInt64Spin, txtInvoiceNum, LeftPosZ(64, 60).TopPosZ(8, 19))
	ITEM(DropList, cbProducts, LeftPosZ(176, 108).TopPosZ(8, 19))
	ITEM(EditString, txtDescription, LeftPosZ(88, 196).TopPosZ(36, 19))
	ITEM(EditDouble, txtPrice, LeftPosZ(64, 64).TopPosZ(88, 19))
	ITEM(EditInt, txtQty, LeftPosZ(220, 64).TopPosZ(88, 19))
	ITEM(EditDouble, txtTotal, SetFont(SansSerifZ(12)).LeftPosZ(220, 64).TopPosZ(112, 19))
	ITEM(Label, dv___11, SetLabel(t_("Name")).SetFont(SansSerifZ(12)).LeftPosZ(132, 36).TopPosZ(8, 19))
	ITEM(Label, dv___12, SetLabel(t_("Invoice#")).SetFont(SansSerifZ(12)).LeftPosZ(8, 56).TopPosZ(8, 19))
	ITEM(Option, optProdTaxable, SetLabel(t_("Taxable?")).LeftPosZ(8, 60).TopPosZ(112, 16))
	ITEM(Button, ok, SetLabel(t_("Save")).SetFont(SansSerifZ(12)).LeftPosZ(8, 56).TopPosZ(148, 15))
	ITEM(Button, cancel, SetLabel(t_("Cancel")).LeftPosZ(228, 56).TopPosZ(148, 15))
END_LAYOUT
Re: Layout editor reverting changes [message #55288 is a reply to message #55287] Tue, 27 October 2020 16:02 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12954
Registered: November 2005
Ultimate Member
jimlef wrote on Tue, 27 October 2020 15:49
I did hand-edit the file, to correct a tab order error and to give the option control focus as a tab stop.


Undestood. The problem there is that at the time theide did not knew about WantFocus, so did not place it in correct place, instead placing it at the start of the list as the best bet.

I have now edited .usc file which controls it and added WantFocus correctly.

Mirek
Re: Layout editor reverting changes [message #55289 is a reply to message #55288] Tue, 27 October 2020 16:15 Go to previous messageGo to next message
jimlef is currently offline  jimlef
Messages: 76
Registered: September 2020
Location: US
Member
I understand... it's a minor thing as as you say I can do a optProdTaxable.WantFocus(true) in code...
but better to keep theide and library all at the same level I think.
Thanks again Smile
Re: Layout editor reverting changes [message #55290 is a reply to message #55289] Tue, 27 October 2020 16:18 Go to previous message
mirek is currently offline  mirek
Messages: 12954
Registered: November 2005
Ultimate Member
jimlef wrote on Tue, 27 October 2020 16:15
I understand... it's a minor thing as as you say I can do a optProdTaxable.WantFocus(true) in code...
but better to keep theide and library all at the same level I think.
Thanks again Smile


Actually, it is not hardwired in theide; special files with .usc extension control this. Check CtrlLib/CtrlLib.usc ... So it is to keep library and library at the same level Smile

Mirek
Previous Topic: Layout with raspberry
Next Topic: Designer: Tutorial for beginners
Goto Forum:
  


Current Time: Sat Nov 28 23:43:54 CET 2020

Total time taken to generate the page: 0.01133 seconds