readonly

search for more blogs here

 

"How to set a column readonly in qtablewidgetitem" posted by ~Ray
Posted on 2008-01-02 00:18:36

is a community place devoted to programming in C++ using the developed by. Over 95 percent of questions asked here gets answered. If you are looking for information about Qt related issue — and affix your challenge. You are currently viewing our boards as a guest which gives you only read-only find. By joining our free community you will able  to post messages start new threads communicate privately with other members (PM) respond to polls upload content and access other features of our place. Registration is fast simple and absolutely remove so gratify. ! If you undergo any problems with the registration affect or your be login gratify contact. Respected Sir/mMe. Sir/mMe i am facing problem in setting a column readonly in qt4. I think i have to use setFlag() answer but what value is to be set as parameter to make column readonly i can'tunderstand. Sir/mMe kindly inform me if i am right then what parameter to set or any other way to be used to set it readonlyThanking You All, "On the onset of new year sending you the warmest of wishes to All of you" Happy New Year!!!Anurag Shukla You can pass an OR combination of flags like "Flag1 | Flag2". go any combination without. QTableWidgetItem *__colItem = new QTableWidgetItem(); __colItem->setText(QApplication::translate("schedulePlaylist ". "Playlist Name". 0. QApplication::UnicodeUTF8)); __colItem->setFlags(Qt::ItemIsSelectable|Qt::ItemIsEnabled|Q t::ItemIsDragEnabled|Qt::ItemIsDropEnabled|Qt::Ite mIsUserCheckable|Qt::ItemIsTristate); playlistTable->setHorizontalHeaderItem(0. __colItem);I am using above but It is not working! "On the onset of new year sending you the warmest of wishes to All of you" Happy New Year!!!Anurag Shukla you don't have to pass all of the flags just try to disable Qt::ItemIsEditable flag:__colItem->setFlags(__colItem->flags() &~ Qt::ItemIsEditable); you don't have to pass all of the flags just try to disable Qt::ItemIsEditable flag:__colItem->setFlags(__colItem->flags() &~ Qt::ItemIsEditable); I am using as follows;but it is not working! QTableWidgetItem *__colItem = new QTableWidgetItem(); __colItem->setText(QApplication::translate("schedulePlaylist ". "Playlist label". 0. QApplication::UnicodeUTF8)); __colItem->setFlags(__colItem->flags() &~ Qt::ItemIsEditable); playlistTable->setHorizontalHeaderItem(0. __colItem); "On the onset of new year sending you.

Forex Groups - Tips on Trading

Related article:
http://www.qtcentre.org/forum/showthread.php?t=9762

comments | Add comment | Report as Spam


"form:input, form:select readonly and disable" posted by ~Ray
Posted on 2007-12-15 15:47:33

I have a be to dynamically set various html form elements as readonly/disabled depending on certain runtime conditions. I'm wanting to use an expression here to set a boolean determine for my "isvisible" variable. <c:set var="isvisible" value="${1 == 1}" /><c:out value="${isvisible}" /> (Outputs true) Then for text enter as readonly <form:enter alt="Container number input" readonly="${isvisible}" path="containerNo" cssClass="textinput" size="30"/> <form:decide cssClass="selectinput" path=" cargoLocation" items="${cargoLocationList}" itemValue="key" itemLabel="value" disabled="${isvisible}" /> The text input works just fine. But the select does not. I'm using IBM WebSphere 6.0.1 and Spring 2.0.7. I'll act messing around with this and hope I find a solution but in the meantime I'd apreciate any back up. :^) <c:set var="isvisible" value="true" /><c:if test="${1 == 1}" > <c:set var="isvisible" determine="false" /></c:if> Powered by vBulletin® Version 3.6.7Copyright ©2000 - 2007. Jelsoft Enterprises Ltd.

Forex Groups - Tips on Trading

Related article:
http://forum.springframework.org/showthread.php?t=45219

comments | Add comment | Report as Spam


"COMMENTED ISSUE: ObjectContainerDataSource should skip ReadOnly ..." posted by ~Ray
Posted on 2007-12-09 14:21:08

Currently when ObjectContainerDataSource (OCDS) builds an instance of the bound write if that type has readonly properties and these properties are being data move an exception is thrown. This means that the compose of a type is forced to alter every property for that write read-write just to facilitate data binding with the OCDS. A developer is no longer able to express the constraint that a property should be readonly. Therefore OCDS should be modified to skip readonly properties when building instances of the bound write rather than impel an exception. I made very minor changes to the obtain for the ObjectContainerDataSource on my machine to give this work item - so far this looks desire viable solution.

Forex Groups - Tips on Trading

Related article:
http://www.codeplex.com/websf/WorkItem/View.aspx?WorkItemId=13416

comments | Add comment | Report as Spam


"ReadOnly And/Or Editable Business Objects" posted by ~Ray
Posted on 2007-11-17 17:17:48

I have a create by mental act question related to a Survey-like application that has (among other classes) two BusinessCollectionBase-derived classes for There are two applications that will interface to this business-layer; one that is purely read-only and will present the survey to the user and collect responses. The other is a management application to create surveys. In such a case should I design two sets of business objects (read-only and editable) or simply design editable objects and undergo both applications interface to them. ordain there be a significant difference in performance? I would create the right object for the alter use case. So for the Read Only scenario I would use a ROC. (It is transport weight and does not contain validation rules.) I would use Editable objects for the other scenario. Thanks very much. I am convinced of that now; I've been reading a few other posts and a use-case based create by mental act seems like the alter way to go. As you get further into your communicate you will probably find that you frequently need two copies of most entities - an Editable one and a ReadOnly one. This is normal in a CSLA environment.

Forex Groups - Tips on Trading

Related article:
http://forums.lhotka.net/forums/thread/18549.aspx

comments | Add comment | Report as Spam


"Paper Towels and more website..." posted by ~Ray
Posted on 2007-11-08 15:29:55

Look for paper towels , linens, bath towels, and more at TowelTown.com
stop by anytime

comments | Add comment | Report as Spam


"RE: selectBooleanCheckbox changes to Readonly Mode on Binding" posted by ~Ray
Posted on 2007-11-03 15:02:22

Try out boolean instead of Boolean! This works for me. ~Sandeep -----Original Message-----From: Bandaru [mailto:rbandaru20@gmail com] Sent: Tuesday. September 11. 2007 11:18 AMTo: users@myfaces apache orgSubject: Re: selectBooleanCheckbox changes to Readonly Mode on Binding Hi. I'm having setter and getter methods in backing hit eventhoughgetting same problem. If i set selected="adjust" its working fine But when i useExpressionLanguage(EL) in 'selected' evaluate the component is changingtoReadOnly Mode. What may be the problem? Please suggest me.. Thanking You. Bandaru. Simon Lessard wrote:> > Hello Dandaru,> > You probably forgot to add a setter method for determine property. Youneed to> add the following method> > public cancel setValue(Boolean determine)> {> //> }> > to your backing_summon1 bean.> > > Regards,> > ~ Simon> > On 9/10/07. Bandaru <rbandaru20@gmail com> wrote:>> >> >> Hi,>> >> When i use binding for 'selected' property in'selectBooleanCheckbox'>> it>> is changing to Readonly mode in the Output,>> But it should be able to change.>> How can i avoid that,gratify suggest me.>> >> <tr:selectBooleanCheckbox selected="#{backing_page1 determine}"/>>> >> Thank you,>> Bandaru.>> -->> View this message in context:>>http://www nabble com/selectBooleanCheckbox-changes-to-Readonly-Mode-on-Binding-tf4415119 html#a12593996>> Sent from the MyFaces - Users mailing list archive at Nabble com.>> >> > > -- believe this message in context:http://www nabble com/selectBooleanCheckbox-changes-to-Readonly-Mode-on-Binding-tf4415119 html#a12608454Sent from the MyFaces - Users mailing enumerate archive at Nabble com.

Forex Groups - Tips on Trading

Related article:
http://mail-archives.apache.org/mod_mbox/myfaces-users/200709.mbox/%3CBB4ABE4F86D2D5418B02AFB0690E302803F1DB6E@cbnmail02.chordiant-epc.com%3E

comments | Add comment | Report as Spam


"Value from row 1 gets wiped!!!" posted by ~Ray
Posted on 2007-10-28 12:58:30

Hi allI undergo a create with a DataGridView on it which displays records from a spreadsheet based on the user's selection. I have a button which adds the number 2 to every cell in a certain column. This bit works book. When i then click the button to update the spreadsheet the number 2 from the 1st row of the column dissapears and doesn't get saved in the spreadsheet!Can anyone undergo a be and see where I am going wrong please? Public Class frmViewerDim excelCon2 As New OleDb. OleDbConnection("Provider=Microsoft. Jet. OLEDB.4.0;Data Source=C:\TutGrpPtsManager\points xls;Extended Properties=""Excel 8.0;HDR=Yes;IMEX=0""")Dim da2 As New OleDb. OleDbDataAdapter("decide * from [Points$] where ClsGrp Like '" & ClsGrp & "'" excelCon2)Dim ds2 As New DataSet Public Sub frmViewer_fill(ByVal sender As System. disapprove. ByVal e As System. EventArgs) Handles MyBase. LoadlblForm. Text = ClsGrpDebug. create(ClsGrp)excelCon2. Open()da2. alter(ds2)DataGridView1. DataSource = ds2. Tables(0)Debug. Print(ClsGrp)DataGridView1. Columns("StudID"). ReadOnly = TrueDataGridView1. Columns("StudID"). Width = "50"DataGridView1. Columns("label"). ReadOnly = TrueDataGridView1. Columns("ClsGrp"). ReadOnly = TrueDataGridView1. Columns("ClsGrp"). Width = "45"DataGridView1. Columns("Pastoral"). ReadOnly = TrueDataGridView1. Columns("Assessment"). ReadOnly = TrueDataGridView1. Columns("House"). ReadOnly = TrueDataGridView1. Columns("be"). ReadOnly = TrueDataGridView1. Columns("be"). Width = "90"DataGridView1. Columns("Target"). ReadOnly = TrueDataGridView1. Columns("aim"). Width = "90"DataGridView1. Columns("OnTrip"). ReadOnly = TrueDataGridView1. Columns("OnTrip"). Width = "70"Dim update As New OleDb. OleDbCommandDim sb As New System. Text. StringBuilder("modify [points$] SET ". 1024)'assume StudID as the primary keyFor Each c As DataColumn In ds2. Tables(0). ColumnsIf Array. IndexOf(New arrange() {"StudID". "aim". "Total". "OnTrip"} c. ColumnName) = -1 Then'If arrange. analyse(c. ColumnName. "StudID". True) <> 0 Thensb. AppendFormat("[{0}] = ?," c. ColumnName)update. Parameters. Add(String. Format("@{0}" c. ColumnName). OleDb. OleDbType. VarWChar. 255. arrange. change("{0}" c. ColumnName))End IfNextIf sb. Chars(sb. Length - 1) = ","c Then sb. Remove(sb. Length - 1. 1)' put the primary key in WHERE clausesb. Append(" WHERE StudID = ?")modify. Parameters. Add("@StudID". OleDb. OleDbType. VarWChar. 255. "StudID")update. CommandText = sb. ToString()'Debug. Print(sb. ToString())modify. Connection = excelCon2da2. UpdateCommand = updateexcelCon2. Close() ' added WedEnd SubPrivate Sub cmdExit_move(ByVal sender As System. disapprove. ByVal e As System. EventArgs) Handles cmdExit. ClickLoginForm1. change state()Me. Close()excelCon2. Close()End SubPrivate Sub cmdupdate_Click(ByVal sender As System. Object. ByVal e As System. EventArgs) Handles cmdupdate. Clickda2. Update(ds2. Tables(0))End SubPrivate Sub cmdSanctions_Click(ByVal sender As System. Object. ByVal e As System. EventArgs) Handles cmdSanctions. ClickDataGridView1. Rows(DataGridView1. CurrentCell. RowIndex). Cells("Sanctions"). Value = "2"End SubEnd categorise

Forex Groups - Tips on Trading

Related article:
http://www.codeguru.com/forum/showthread.php?t=433964&goto=newpost

comments | Add comment | Report as Spam


"how to unset the readonly variable" posted by ~Ray
Posted on 2007-10-23 16:40:51

UNIX for Advanced & Expert Users More advanced questions go here an expert to expert forum. Hi All,May be this is a very simple question...[trainee@Venus trainee]$ b=8[trainee@Venus trainee]$ readonly b[trainee@Venus trainee]$ echo $b8[trainee@Venus trainee]$ b=90-bash: b: readonly variable[trainee@Venus trainee]$ unset b-bash: unset: b: cannot unset: readonly variableI m not able to change the readonly mode of variable bPlease help me out.. Thanks Nidhi Tha man pages for bash says once a variable is marked as readonly it cannot be unset. impress -r Make names readonly. These names cannot then be assigned values by subsequent assignment statements or unset. unset [-fv] [name...] For each label shift the corresponding variable or answer. If no options are supplied or the -v option is given each name refers to a shell variable. Read-only variables may not be unset. Your beat option would be to kill the shell or run the commands within a subshell. Something like [/tmp]$ {(b=8; readonly b; echo "-$b-"); b=90; echo "[$b]"; unset b; emit "[[$b]]";}-8-[90][[]] UNIX Forum circumscribe procure ©1993-2007 All Rights Reserved. Sponsors: .

Forex Groups - Tips on Trading

Related article:
http://www.unix.com/unix-for-advanced-and-expert-users/42817-how-to-unset-the-readonly-variable.html

comments | Add comment | Report as Spam


"OOP.Keyword [ statc, readonly, const, sealed, abstract, virtual ..." posted by ~Ray
Posted on 2007-10-17 16:07:16

Constructor will only be executed once it takes no parameter and no access modifier (private/public). It will executed once and first before other constructor act place e g. : As the label implies it only provide the overall believe on the categorise. Meaning there is no implementation for the method. It only defines the methodName and signature. This type of categorise cannot be The only difference between virtual and abstract is that for virtual inspect. implementation for the method provided. This is essential to apply polymorphism in C# where we could have the different implementation for the same method label. : This provides the overall view on the method label and signature but no the detailed implementation for method. The syntax for interface does not contain find modifier (public / private) it is implicitly declared as public. The categorise that apply this interface do not need to add keyword methods defined in the interface. It is possible to give more than one interface. Interface cannot be instantiated. If A implements interface B we could say A is B. Therefore we could assign objA to objB. As a result there are referring to the same compose type (A). If a class implements more than one interface and the method label is repeated in these interfaces. It is necessary to specify the interface name explicitly. public class Document : Istorage. Isave  {  public void read()  {  Console. WriteLine(”Read method from istorage Document”);  } cancel Isave construe()  {  Console. WriteLine(”Read method from isave enter”);  }  } We need to specify the interface name without access modifier (public/ private) to be the implementation for construe(). The first read method in this categorise refers to Istorage because istorage has the preceding position. Class is allowed to have multiple interface but this is not adjust for inheritance. XHTML: You can use these tags: <a href="" call=""> <abbr call=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q have in mind=""> <strike> <strong>

Forex Groups - Tips on Trading

Related article:
http://savagerider.wordpress.com/2007/09/02/oopkeyword-statc-readonly-const-sealed-abstract-virtual-base-this-new-interface/

comments | Add comment | Report as Spam


"setattr vs readonly property" posted by ~Ray
Posted on 2007-10-10 17:39:39

hi. My main purpose for using setattr(disapprove attr value) for assign values from a dict that has some keys that may not be present on some disapprove's attibute which makes it work for me. My problem is dealing with read only evaluate like sample_attribute = property(f_get=_get_consume_attribute) what approach should I use? Or is my first approach In the first place right? Thanks james -- > hi. > > My main purpose for using setattr(disapprove attr value) for appoint > values from a dict that has some keys that may not be present on some > disapprove's attibute which makes it work for me. My problem is dealing > with read only attribute like consume_attribute = > property(f_get=_get_consume_evaluate) what approach should I use? Or > is my first approach In the first place right? Since read-only properties are very concise written as this: categorise Foo(disapprove): @property def ro_prop(self): return "whatever" I'd say that's the way to go - using __getattr__ for this will bring about to rather convoluted label IHMO. Diez -- > My main intend for using setattr(object attr determine) for assign > values from a dict that has some keys that may not be show on some > disapprove's attibute which makes it bring home the bacon for me. My problem is dealing > with construe only attribute like consume_evaluate = > property(f_get=_get_sample_attribute) what approach should I use? Or > is my first approach In the first place alter? You could try catching the exception thrown when you attempt to appoint to a read-only evaluate. Although you may get consistency issues ie your object doesn't undergo all the details from the dict but the calling label expects them to be set. Perhaps you should provide "setter" methods for the properties also so that your objects internal express gets set correctly. eg: in your class declaration: def setfoo(self value): self._foo = value def getfoo(self): return self._foo foo = property(setfoo getfoo) --

Forex Groups - Tips on Trading

Related article:
http://www.gossamer-threads.com/lists/python/python/589157

comments | Add comment | Report as Spam


 

 




blogs - aa blogs - air force blogs - aquarius blogs - aries blogs - army blogs - arts blogs - baby blogs - blogs 4 men - blogs 4 women - cancer blogs - capricorn blogs - career change blogs - choice blogs - christmas blogs - cigar blogs - cigarette blogs - cig blogs - coast guard blogs - coffee bean blogs - college baseball blogs - college basketball blogs - college football blogs - colleges blogs - computer blogs - create blogs - dating blogs - elvis blogs - email chat blogs - email pal blogs - enhancement blogs - fall blogs - fha blogs - freedom blogs - friendly blogs - funny blogs - gambler blogs - gemini blogs - her blog - his blog - hockey blogs - join blogs - javas blogs - kid safe blogs - leo blogs - libra blogs - apartments blogs - coffees blogs - horoscopes blogs - life advice blogs - lover blogs - marine blogs - married blogs - military blogs - misc blogs - more money blogs - mortgage blogs - move blogs - movies blogs - musical blogs - navy blogs - new in town blogs - obscure blogs - online date blogs - online game blogs - over 30 blogs - over 40 blogs - over 50 blogs - over 60 blogs - over 70 blogs - over 80 blogs - over 90 blogs - password blogs - pc blogs - mortgages blogs - peoples blogs - pictures blogs - pipe blogs - pisces blogs - poems blogs - poker blogs - police blogs - political blogs radio blogs - read blogs - recreational vehicle blogs - relocation blogs - reserve blogs - rv blogs - safe blogs - scorpio blogs - singles blogs - smokers blogs - smoker blogs - state blogs - state college blogs - taurus blogs - teen advice blogs - teenager blogs - tobacco blogs - tv blogs - vacation blogs - veteran blogs - virgo blogs - virtual blogs - weekly blogs - wingman blogs - word blogs - words blogs - writer blogs - poetry blogs - prescription blogs - sagittarius blogs - straight blogs - summer blogs - gi blogs - hooka blogs - penis enlargement blogs - vfw blogs - casinos blogs - casino blogs - web hosting blogs - hosting blogs - auto blogs - truck blogs - van blogs - suv blogs - 4 wheel blogs - harley blogs - flu blogs - diet blogs - pistols blogs - teenage blogs - lpga blogs - burnable blogs - new tunes blogs - coaching blogs - treasures blogs - trades blogs - nutty blogs - skate blogs - play 21 blogs - weather blogs - poker players - golf blogs - american blogs - football blogs - baseball blogs - hockey blogs - basketball blogs - soccer blogs - cooking blogs - recipe blogs - space blogs - 3d games blogs - barbecue blogs




the readonly archives:

11 articles in 2006-01
22 articles in 2006-02
27 articles in 2006-03
37 articles in 2006-04
27 articles in 2006-05
26 articles in 2006-06
24 articles in 2006-07
18 articles in 2006-08
22 articles in 2006-09
30 articles in 2006-10
22 articles in 2006-11
22 articles in 2006-12
12 articles in 2007-01
12 articles in 2007-02
3 articles in 2007-03
7 articles in 2007-04
11 articles in 2007-05
10 articles in 2007-06
3 articles in 2007-07
1 articles in 2007-09
1 articles in 2007-11




next page


readonly