Re: need help please

hello all

help 8

how can i make registration form

username = array for example [admin1,admin2,admin3]

password = dynamic = day + month + year + hours + minutes for example 1/1/2020  03:15       =2040

for i = 0 to array .length

if username= array[i] and password = 2040 

go to another form

thanks for help

27 (edited by brian.zaballa 2020-12-01 14:12:12)

Re: need help please

Here. I got something for you. I added a re-usable function Confirm at the end of the script.

Post's attachments

Attachment icon help8.zip 639.57 kb, 316 downloads since 2020-12-01 

brian

Re: need help please

As for the registration, auto-generated password cannot be done for now if you are using the MVD User-Role feature. Only MVD Dev knows the password hash key being used. I hope it gets the attention of the Dev for it seems that there are couple of topics looking for something like that.

brian

Re: need help please

hello brian.zaballa

thank you very much

good work

help 9

it is possible to change highlight a new row color (light blue) after adding or editing

thanks for help

Re: need help please

hello all

help 10

how can i remove menu bar (file - option - about )

thanks for help

Re: need help please

Hi  Kofa,  please  look this link forum

http://myvisualdatabase.com/forum/viewtopic.php?id=7135

Re: need help please

Form1.mniFile.visible := false;
Form1.mniClose.visible := false;
Form1.mniOptions.visible := false;
Form1.mniSettings.visible := false;
Form1.mniReport.visible := false;
Form1.mniExportData.visible := false;
Form1.mniImportData.visible := false;
Form1.mniAbout.visible := false;

33 (edited by derek 2020-12-02 00:06:06)

Re: need help please

another option is to set the form's borderstyle property to 'bsdialog'

Post's attachments

Attachment icon borderstyle.jpg 227.21 kb, 152 downloads since 2020-12-02 

Re: need help please

hello ehwagner and derek

thanks for help

i am very happy  to MVD because this forum  has many experts who are helping beginning students

thank you for all

happy time

Re: need help please

hello all

help 11

how can i resize form as this code

form.width=my screen.width ;

form.height=my screen.height;

it makes form re-sizable of any desktop resolution

thanks for help

Re: need help please

Hello Kofa

First of all, you could use Anchors property for any component you place on a form

JB

37 (edited by kofa 2020-12-02 18:46:39)

Re: need help please

hello jean.brezhonek

thanks for advance

but i want to set my form geometry for any desktop resolution

after that i set component geometry by form

for example

form.width=my screen.width ;

form.height=my screen.height;

TableGrid.width=form.width-100
TableGrid.height=form.height-100

it means that TableGrid geometry  always to be by form



it is possible ??

excuse me for my bad english

thanks for help

38

Re: need help please

Kofa,


I've been trying to get this to work for monitors of different resolutions and I have failed.


It seems there is a Windows magnification factor that MVD can't cope with. It might be due to the version of Delphi that is used to make MVD.



Here is what I've tried, but it fails if the monitor is set to 150%.


procedure ScaleForm  (F: TForm; ScreenWidth, ScreenHeight: LongInt) ;
begin

 F.Scaled := True;
 F.AutoScroll := False;
 F.Position := poDefaultPosOnly; //poScreenCenter;
 F.Font.Name := 'Arial';
 if (Screen.Width <> ScreenWidth) then
 begin
     F.Height :=  (F.Height * Screen.Height) div ScreenHeight;
     F.Width :=  (F.Width * Screen.Width) div ScreenWidth;
     F.ScaleBy(Screen.Width,ScreenWidth) ;
 end; 
end;

procedure CentreForm(Form: TForm);
begin
    with Form do
    begin
        Left := Application.frmMain.Left + (Application.frmMain.Width - Width) div 2;
        if Left < 0 then Left:=0;
        Top := Application.frmMain.Top + (Application.frmMain.Height - Height) div 2;
        if Top <0 then Top:=0;
   end;
end;

Called in the default begin...end by:

 ScaleForm(frmMain,1920,1080) ;

//OR

  CentreForm(frmMain);
On a clear disk you can seek forever

Re: need help please

hello CDB

thanks for advance

happy time

Re: need help please

Hello CDB, hello Kofa

Weird because MVD is built from Embarcadero RAD XE3 which can handle this type of dysfunction.

Unless Dmitri didn't integrate this functionality when he created MVD. You can take a look at this link.

https://community.embarcadero.com/artic … esolutions

Have a good day

JB

Re: need help please

hello jean.brezhonek


It is difficult for me to understand this. This is for experts, not for beginners

i will study it  and hope for success

thanks for help

42 (edited by kofa 2020-12-05 20:23:57)

Re: need help please

hello all

help 12

how can i add and remove item in TableGrid2 , TableGrid3, TableGrid4

thanks for help

Post's attachments

Attachment icon help12.zip 639.57 kb, 326 downloads since 2020-12-05 

43

Re: need help please

Kofa,

Do you want to remove the entry from display or completely from the database?

On a clear disk you can seek forever

Re: need help please

hello CDB

i want remove from database and refresh display

thanks for help

Re: need help please

Kofa

how can i add and remove item in TableGrid2 , TableGrid3, TableGrid4

These are editable grids. 
1.  To add a new records, enter data where indicated (see red box in the screenshot).  But you are already doing this so I don't really understand your question.
2.  To delete a record, right click against the appropriate record and select 'delete (see blue box in the screenshot).  If the record is not being referred to elsewhere (referential integrity), it will be removed.  If it is being referred to elsewhere, you will get an error message and can only be removed once all references to it have first been removed.
3.  I don't understand your issue relating to 'refreshing displays'.
Derek.

Post's attachments

Attachment icon editablegrid.jpg 133.89 kb, 149 downloads since 2020-12-06 

Re: need help please

Hello Kofa, Hello Derek

if by 'refresh display', you mean refresh the database, as Derek indicated, they are editable grids, the refresh will be done automatically.
It is the equivalent of Form1.TableGrid1.dbUpdate in a traditional grid that we work through scripts.

JB

47 (edited by chartcatuser 2022-07-18 11:09:05)

Re: need help please

Does anyone know how to increase the tick on the checkbox ?? And then in the editor it shows a large one, but in fact, when you run the program, it is small
datetimepiker

Post's attachments

Attachment icon Безымянный.png 6.2 kb, 83 downloads since 2022-07-18 

Re: need help please

chartcatuser wrote:

Does anyone know how to increase the tick on the checkbox ?? And then in the editor it shows a large one, but in fact, when you run the program, it is small
datetimepiker

It is impossible to do this, since a system component is used to display the checker. Neither the size nor the color can be changed.

Визуальное программирование: блог и телеграм-канал.